Commit 81815907 by jianan

个人声明曾经报聘为空,最高学历加code

parent 27682633
......@@ -269,6 +269,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
SaveLastGraduateGradeResponseVO resp = new SaveLastGraduateGradeResponseVO();
try {
Long basicInfoId = requestVO.getHiringBasicInfoId();
String code = requestVO.getLastGraduateCode();
String grade = requestVO.getLastGraduateGrade();
String school = requestVO.getLastGraduateSchool();
String vxUrl = requestVO.getCertificationVxUrl();
......@@ -278,6 +279,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
if (imgUrl != null) {
AclPractitionerHiringBasicInfo basicInfo = new AclPractitionerHiringBasicInfo();
basicInfo.setId(basicInfoId);
basicInfo.setLastGraduateCode(code);
basicInfo.setLastGraduateGrade(grade);
basicInfo.setLastGraduateSchool(school);
basicInfo.setLastGraduateCertificationOssPath(imgUrl);
......@@ -510,6 +512,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
try {
AclPractitionerHiringBasicInfo basicInfo = new AclPractitionerHiringBasicInfo();
BeanUtils.copyProperties(requestVO, basicInfo);
basicInfo.setId(requestVO.getHiringBasicInfoId());
basicInfoMapper.updateByPrimaryKeySelective(basicInfo);
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
......
......@@ -5,6 +5,7 @@ import lombok.Data;
@Data
public class SaveLastGraduateGradeRequestVO {
private Long hiringBasicInfoId;
private String lastGraduateCode;
private String lastGraduateGrade;
private String lastGraduateSchool;
private String certificationVxUrl;
......
......@@ -109,6 +109,11 @@ public class AclPractitionerHiringBasicInfo {
private String idBackPageOssPath;
/**
* 学历编码 FK ag_md_code.code_type:EducationLevel code_code
*/
private String lastGraduateCode;
/**
* 最高学历
*/
private String lastGraduateGrade;
......
......@@ -24,6 +24,7 @@
<result column="personer_picture_oss_path" jdbcType="VARCHAR" property="personerPictureOssPath" />
<result column="id_front_page_oss_path" jdbcType="VARCHAR" property="idFrontPageOssPath" />
<result column="id_back_page_oss_path" jdbcType="VARCHAR" property="idBackPageOssPath" />
<result column="last_graduate_code" jdbcType="VARCHAR" property="lastGraduateCode" />
<result column="last_graduate_grade" jdbcType="VARCHAR" property="lastGraduateGrade" />
<result column="last_graduate_school" jdbcType="VARCHAR" property="lastGraduateSchool" />
<result column="last_graduate_certification_oss_path" jdbcType="VARCHAR" property="lastGraduateCertificationOssPath" />
......@@ -41,7 +42,7 @@
id, practitioner_potential_id, invitee_practitioner_id, `name`, mobile_no, id_type_id,
id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id,
city_name, resident_address, wechat_id, email, personer_picture_oss_path, id_front_page_oss_path,
id_back_page_oss_path, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
id_back_page_oss_path, last_graduate_code, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
bank_account_opening, bank_account_id, personal_sign_oss_path, is_active, created_at,
created_by, updated_at, updated_by
</sql>
......@@ -333,6 +334,9 @@
<if test="idBackPageOssPath != null">
id_back_page_oss_path = #{idBackPageOssPath,jdbcType=VARCHAR},
</if>
<if test="lastGraduateCode != null">
last_graduate_code = #{lastGraduateCode,jdbcType=VARCHAR},
</if>
<if test="lastGraduateGrade != null">
last_graduate_grade = #{lastGraduateGrade,jdbcType=VARCHAR},
</if>
......@@ -391,6 +395,7 @@
personer_picture_oss_path = #{personerPictureOssPath,jdbcType=VARCHAR},
id_front_page_oss_path = #{idFrontPageOssPath,jdbcType=VARCHAR},
id_back_page_oss_path = #{idBackPageOssPath,jdbcType=VARCHAR},
last_graduate_code = #{lastGraduateCode,jdbcType=VARCHAR},
last_graduate_grade = #{lastGraduateGrade,jdbcType=VARCHAR},
last_graduate_school = #{lastGraduateSchool,jdbcType=VARCHAR},
last_graduate_certification_oss_path = #{lastGraduateCertificationOssPath,jdbcType=VARCHAR},
......
......@@ -10,6 +10,7 @@
<result column="md_drop_option_name" jdbcType="VARCHAR" property="mdDropOptionName" />
<result column="status" jdbcType="BIGINT" property="status" />
<result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="user_input" jdbcType="INTEGER" property="userInput" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
......@@ -17,7 +18,7 @@
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, hiring_basic_info_id, md_drop_option_id, md_drop_option_name, `status`, is_active,
id, hiring_basic_info_id, md_drop_option_id, md_drop_option_name, `status`, is_active, user_input,
created_at, created_by, updated_at, updated_by
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
......@@ -284,12 +285,13 @@
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into ag_acl_practitioner_hiring_personal_statements
(hiring_basic_info_id, md_drop_option_id, md_drop_option_name, `status`, is_active,
(hiring_basic_info_id, md_drop_option_id, md_drop_option_name, `status`, is_active, user_input,
created_at, created_by, updated_at, updated_by)
values
<foreach collection="list" item="item" separator=",">
(#{item.hiringBasicInfoId,jdbcType=BIGINT}, #{item.mdDropOptionId,jdbcType=BIGINT},
#{item.mdDropOptionName,jdbcType=VARCHAR}, #{item.status,jdbcType=BIGINT}, #{item.isActive,jdbcType=INTEGER},
#{item.mdDropOptionName,jdbcType=VARCHAR}, #{item.status,jdbcType=BIGINT}, #{item.isActive,jdbcType=INTEGER},
#{item.userInput,jdbcType=VARCHAR},
#{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT}, #{item.updatedAt,jdbcType=TIMESTAMP},
#{item.updatedBy,jdbcType=BIGINT})
</foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment