报名增加修改报名机构接口

This commit is contained in:
ly19960718 2021-05-15 21:24:37 +08:00
parent b08e87d628
commit 1c289fd8aa
2 changed files with 17 additions and 0 deletions

View File

@ -16,6 +16,8 @@ public class ApplyDTO {
@ApiModelProperty(name = "applyInstitutionId", value = "报名机构ID") @ApiModelProperty(name = "applyInstitutionId", value = "报名机构ID")
private String applyInstitutionId; private String applyInstitutionId;
@ApiModelProperty(name = "applyInstitutionName", value = "报名机构中文名称")
private String applyInstitutionName;
@ApiModelProperty(name = "applyId", value = "报名信息ID") @ApiModelProperty(name = "applyId", value = "报名信息ID")
private String applyId; private String applyId;
@ApiModelProperty(name = "applyClassId", value = "报名班级ID") @ApiModelProperty(name = "applyClassId", value = "报名班级ID")
@ -96,6 +98,14 @@ public class ApplyDTO {
this.applyInstitutionId = applyInstitutionId; this.applyInstitutionId = applyInstitutionId;
} }
public String getApplyInstitutionName() {
return applyInstitutionName;
}
public void setApplyInstitutionName(String applyInstitutionName) {
this.applyInstitutionName = applyInstitutionName;
}
public String getApplyId() { public String getApplyId() {
return applyId == null ? "" : applyId.trim(); return applyId == null ? "" : applyId.trim();
} }

View File

@ -4,6 +4,7 @@
<resultMap id="applyDTO" type="cn.com.tenlion.pojo.dtos.apply.ApplyDTO"> <resultMap id="applyDTO" type="cn.com.tenlion.pojo.dtos.apply.ApplyDTO">
<result column="apply_institution_id" property="applyInstitutionId"/> <result column="apply_institution_id" property="applyInstitutionId"/>
<result column="apply_institution_name" property="applyInstitutionName"/>
<result column="apply_id" property="applyId"/> <result column="apply_id" property="applyId"/>
<result column="apply_class_id" property="applyClassId"/> <result column="apply_class_id" property="applyClassId"/>
<result column="apply_class_name" property="applyClassName"/> <result column="apply_class_name" property="applyClassName"/>
@ -275,6 +276,7 @@
<select id="get" parameterType="map" resultMap="applyDTO"> <select id="get" parameterType="map" resultMap="applyDTO">
SELECT SELECT
t1.apply_institution_id, t1.apply_institution_id,
m1.institution_name AS apply_institution_name,
t1.apply_class_id, t1.apply_class_id,
t1.apply_class_name, t1.apply_class_name,
t1.apply_work_type_id, t1.apply_work_type_id,
@ -316,6 +318,8 @@
ON t1.apply_physical_state = t5.data_id ON t1.apply_physical_state = t5.data_id
LEFT JOIN e_work_type e1 LEFT JOIN e_work_type e1
ON t1.apply_work_type_id = e1.work_type_id ON t1.apply_work_type_id = e1.work_type_id
LEFT JOIN m_institution m1
ON t1,apply_institution_id = m1.institution_id
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="applyId != null and applyId != ''"> <if test="applyId != null and applyId != ''">
@ -410,6 +414,7 @@
<select id="list" parameterType="map" resultMap="applyDTO"> <select id="list" parameterType="map" resultMap="applyDTO">
SELECT SELECT
t1.apply_institution_id, t1.apply_institution_id,
m1.institution_name AS apply_institution_name,
t1.apply_id, t1.apply_id,
t1.apply_class_id, t1.apply_class_id,
t1.apply_class_name, t1.apply_class_name,
@ -451,6 +456,8 @@
ON t1.apply_physical_state = t5.data_id ON t1.apply_physical_state = t5.data_id
LEFT JOIN e_work_type e1 LEFT JOIN e_work_type e1
ON t1.apply_work_type_id = e1.work_type_id ON t1.apply_work_type_id = e1.work_type_id
LEFT JOIN m_institution m1
ON t1,apply_institution_id = m1.institution_id
WHERE WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">