岗位申请业务逻辑
This commit is contained in:
@@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<resultMap type="HotakeInitScreQuestionsReplyRecordInfo" id="HotakeInitScreQuestionsReplyRecordInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="roleApplyId" column="role_apply_id" />
|
||||
<result property="roleId" column="role_id" />
|
||||
<result property="candidateId" column="candidate_id" />
|
||||
<result property="questionId" column="question_id" />
|
||||
@@ -19,12 +20,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHotakeInitScreQuestionsReplyRecordInfoVo">
|
||||
select id, role_id, candidate_id, question_id, answer_connect, del_flag, create_by, create_time, update_by, update_time, remark from hotake_init_scre_questions_reply_record_info
|
||||
select id, role_apply_id,role_id, candidate_id, question_id, answer_connect, del_flag, create_by, create_time, update_by, update_time, remark from hotake_init_scre_questions_reply_record_info
|
||||
</sql>
|
||||
|
||||
<select id="selectHotakeInitScreQuestionsReplyRecordInfoList" parameterType="HotakeInitScreQuestionsReplyRecordInfo" resultMap="HotakeInitScreQuestionsReplyRecordInfoResult">
|
||||
<include refid="selectHotakeInitScreQuestionsReplyRecordInfoVo"/>
|
||||
<where>
|
||||
<if test="roleApplyId != null "> and role_apply_id = #{roleApplyId}</if>
|
||||
<if test="roleId != null "> and role_id = #{roleId}</if>
|
||||
<if test="candidateId != null "> and candidate_id = #{candidateId}</if>
|
||||
<if test="questionId != null "> and question_id = #{questionId}</if>
|
||||
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<insert id="insertHotakeInitScreQuestionsReplyRecordInfo" parameterType="HotakeInitScreQuestionsReplyRecordInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into hotake_init_scre_questions_reply_record_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="roleApplyId != null">role_apply_id,</if>
|
||||
<if test="roleId != null">role_id,</if>
|
||||
<if test="candidateId != null">candidate_id,</if>
|
||||
<if test="questionId != null">question_id,</if>
|
||||
@@ -52,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="roleApplyId != null">#{roleApplyId},</if>
|
||||
<if test="roleId != null">#{roleId},</if>
|
||||
<if test="candidateId != null">#{candidateId},</if>
|
||||
<if test="questionId != null">#{questionId},</if>
|
||||
@@ -68,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<update id="updateHotakeInitScreQuestionsReplyRecordInfo" parameterType="HotakeInitScreQuestionsReplyRecordInfo">
|
||||
update hotake_init_scre_questions_reply_record_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="roleApplyId != null">role_apply_id = #{roleApplyId},</if>
|
||||
<if test="roleId != null">role_id = #{roleId},</if>
|
||||
<if test="candidateId != null">candidate_id = #{candidateId},</if>
|
||||
<if test="questionId != null">question_id = #{questionId},</if>
|
||||
@@ -86,6 +91,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
delete from hotake_init_scre_questions_reply_record_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
|
||||
<delete id="deleteHotakeInitScreQuestionsReplyRecordInfoByRoleApplyId" parameterType="Long">
|
||||
delete from hotake_init_scre_questions_reply_record_info where role_apply_id = #{roleApplyId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHotakeInitScreQuestionsReplyRecordInfoByIds" parameterType="String">
|
||||
delete from hotake_init_scre_questions_reply_record_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.vetti.hotake.mapper.HotakeRolesApplyInfoMapper">
|
||||
|
||||
<resultMap type="HotakeRolesApplyInfo" id="HotakeRolesApplyInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="candidateId" column="candidate_id" />
|
||||
<result property="roleId" column="role_id" />
|
||||
<result property="fullName" column="full_name" />
|
||||
<result property="email" column="email" />
|
||||
<result property="phoneNumber" column="phone_number" />
|
||||
<result property="cvFile" column="cv_file" />
|
||||
<result property="cvFileSuffix" column="cv_file_suffix" />
|
||||
<result property="fileSizeShow" column="file_size_show" />
|
||||
<result property="coverLetter" column="cover_letter" />
|
||||
<result property="candidateStatus" column="candidate_status" />
|
||||
<result property="stage" column="stage" />
|
||||
<result property="lastContact" column="last_contact" />
|
||||
<result property="cvTemplateJson" column="cv_template_json" />
|
||||
<result property="cvScore" column="cv_score" />
|
||||
<result property="cvMd5" column="cv_md5" />
|
||||
<result property="experience" column="experience" />
|
||||
<result property="aiMatchScore" column="ai_match_score" />
|
||||
<result property="aiMatchScorePercentage" column="ai_match_score_percentage" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHotakeRolesApplyInfoVo">
|
||||
select id, candidate_id, role_id, full_name, email, phone_number, cv_file, cv_file_suffix,file_size_show,cover_letter, candidate_status, stage, last_contact, cv_template_json, cv_score, cv_md5, experience, ai_match_score, ai_match_score_percentage, del_flag, create_by, create_time, update_by, update_time, remark from hotake_roles_apply_info
|
||||
</sql>
|
||||
|
||||
<select id="selectHotakeRolesApplyInfoList" parameterType="HotakeRolesApplyInfo" resultMap="HotakeRolesApplyInfoResult">
|
||||
<include refid="selectHotakeRolesApplyInfoVo"/>
|
||||
<where>
|
||||
<if test="candidateId != null "> and candidate_id = #{candidateId}</if>
|
||||
<if test="roleId != null "> and role_id = #{roleId}</if>
|
||||
<if test="fullName != null and fullName != ''"> and full_name like concat('%', #{fullName}, '%')</if>
|
||||
<if test="email != null and email != ''"> and email = #{email}</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
|
||||
<if test="cvFile != null and cvFile != ''"> and cv_file = #{cvFile}</if>
|
||||
<if test="cvFileSuffix != null and cvFileSuffix != ''"> and cv_file_suffix = #{cvFileSuffix}</if>
|
||||
|
||||
<if test="coverLetter != null and coverLetter != ''"> and cover_letter = #{coverLetter}</if>
|
||||
<if test="candidateStatus != null and candidateStatus != ''"> and candidate_status = #{candidateStatus}</if>
|
||||
<if test="stage != null and stage != ''"> and stage = #{stage}</if>
|
||||
<if test="lastContact != null and lastContact != ''"> and last_contact = #{lastContact}</if>
|
||||
<if test="cvTemplateJson != null and cvTemplateJson != ''"> and cv_template_json = #{cvTemplateJson}</if>
|
||||
<if test="cvScore != null and cvScore != ''"> and cv_score = #{cvScore}</if>
|
||||
<if test="cvMd5 != null and cvMd5 != ''"> and cv_md5 = #{cvMd5}</if>
|
||||
<if test="experience != null and experience != ''"> and experience = #{experience}</if>
|
||||
<if test="aiMatchScore != null and aiMatchScore != ''"> and ai_match_score = #{aiMatchScore}</if>
|
||||
<if test="aiMatchScorePercentage != null "> and ai_match_score_percentage = #{aiMatchScorePercentage}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectHotakeRolesApplyInfoById" parameterType="Long" resultMap="HotakeRolesApplyInfoResult">
|
||||
<include refid="selectHotakeRolesApplyInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertHotakeRolesApplyInfo" parameterType="HotakeRolesApplyInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into hotake_roles_apply_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="candidateId != null">candidate_id,</if>
|
||||
<if test="roleId != null">role_id,</if>
|
||||
<if test="fullName != null">full_name,</if>
|
||||
<if test="email != null">email,</if>
|
||||
<if test="phoneNumber != null">phone_number,</if>
|
||||
<if test="cvFile != null">cv_file,</if>
|
||||
<if test="cvFileSuffix != null">cv_file_suffix,</if>
|
||||
<if test="fileSizeShow != null">file_size_show,</if>
|
||||
<if test="coverLetter != null">cover_letter,</if>
|
||||
<if test="candidateStatus != null">candidate_status,</if>
|
||||
<if test="stage != null">stage,</if>
|
||||
<if test="lastContact != null">last_contact,</if>
|
||||
<if test="cvTemplateJson != null">cv_template_json,</if>
|
||||
<if test="cvScore != null">cv_score,</if>
|
||||
<if test="cvMd5 != null">cv_md5,</if>
|
||||
<if test="experience != null">experience,</if>
|
||||
<if test="aiMatchScore != null">ai_match_score,</if>
|
||||
<if test="aiMatchScorePercentage != null">ai_match_score_percentage,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="candidateId != null">#{candidateId},</if>
|
||||
<if test="roleId != null">#{roleId},</if>
|
||||
<if test="fullName != null">#{fullName},</if>
|
||||
<if test="email != null">#{email},</if>
|
||||
<if test="phoneNumber != null">#{phoneNumber},</if>
|
||||
<if test="cvFile != null">#{cvFile},</if>
|
||||
<if test="cvFileSuffix != null">#{cvFileSuffix},</if>
|
||||
<if test="fileSizeShow != null">#{fileSizeShow},</if>
|
||||
<if test="coverLetter != null">#{coverLetter},</if>
|
||||
<if test="candidateStatus != null">#{candidateStatus},</if>
|
||||
<if test="stage != null">#{stage},</if>
|
||||
<if test="lastContact != null">#{lastContact},</if>
|
||||
<if test="cvTemplateJson != null">#{cvTemplateJson},</if>
|
||||
<if test="cvScore != null">#{cvScore},</if>
|
||||
<if test="cvMd5 != null">#{cvMd5},</if>
|
||||
<if test="experience != null">#{experience},</if>
|
||||
<if test="aiMatchScore != null">#{aiMatchScore},</if>
|
||||
<if test="aiMatchScorePercentage != null">#{aiMatchScorePercentage},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateHotakeRolesApplyInfo" parameterType="HotakeRolesApplyInfo">
|
||||
update hotake_roles_apply_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="candidateId != null">candidate_id = #{candidateId},</if>
|
||||
<if test="roleId != null">role_id = #{roleId},</if>
|
||||
<if test="fullName != null">full_name = #{fullName},</if>
|
||||
<if test="email != null">email = #{email},</if>
|
||||
<if test="phoneNumber != null">phone_number = #{phoneNumber},</if>
|
||||
<if test="cvFile != null">cv_file = #{cvFile},</if>
|
||||
<if test="cvFileSuffix != null">cv_file_suffix = #{cvFileSuffix},</if>
|
||||
<if test="fileSizeShow != null">file_size_show = #{fileSizeShow},</if>
|
||||
<if test="coverLetter != null">cover_letter = #{coverLetter},</if>
|
||||
<if test="candidateStatus != null">candidate_status = #{candidateStatus},</if>
|
||||
<if test="stage != null">stage = #{stage},</if>
|
||||
<if test="lastContact != null">last_contact = #{lastContact},</if>
|
||||
<if test="cvTemplateJson != null">cv_template_json = #{cvTemplateJson},</if>
|
||||
<if test="cvScore != null">cv_score = #{cvScore},</if>
|
||||
<if test="cvMd5 != null">cv_md5 = #{cvMd5},</if>
|
||||
<if test="experience != null">experience = #{experience},</if>
|
||||
<if test="aiMatchScore != null">ai_match_score = #{aiMatchScore},</if>
|
||||
<if test="aiMatchScorePercentage != null">ai_match_score_percentage = #{aiMatchScorePercentage},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteHotakeRolesApplyInfoById" parameterType="Long">
|
||||
delete from hotake_roles_apply_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHotakeRolesApplyInfoByIds" parameterType="String">
|
||||
delete from hotake_roles_apply_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="batchInsertHotakeRolesApplyInfo">
|
||||
insert into hotake_roles_apply_info( id, candidate_id, role_id, full_name, email, phone_number, cv_file, cover_letter, candidate_status, stage, last_contact, cv_template_json, cv_score, cv_md5, experience, ai_match_score, ai_match_score_percentage, del_flag, create_by, create_time, update_by, update_time, remark) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
( #{item.id}, #{item.candidateId}, #{item.roleId}, #{item.fullName}, #{item.email}, #{item.phoneNumber}, #{item.cvFile}, #{item.coverLetter}, #{item.candidateStatus}, #{item.stage}, #{item.lastContact}, #{item.cvTemplateJson}, #{item.cvScore}, #{item.cvMd5}, #{item.experience}, #{item.aiMatchScore}, #{item.aiMatchScorePercentage}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
|
||||
</foreach>
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user