简历解析业务逻辑处理
This commit is contained in:
@@ -13,6 +13,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="fileSizeShow" column="file_size_show" />
|
||||
<result property="cvFileSuffix" column="cv_file_suffix" />
|
||||
<result property="status" column="status" />
|
||||
<result property="cvTemplateJson" column="cv_template_json" />
|
||||
<result property="cvScore" column="cv_score" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
@@ -22,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHotakeCvInfoVo">
|
||||
select id, user_id, cv_name, cv_file_type, cv_url,file_size_show,cv_file_suffix, status,
|
||||
select id, user_id, cv_name, cv_file_type, cv_url,file_size_show,cv_file_suffix, status,cv_template_json,cv_score,
|
||||
del_flag, create_by, create_time, update_by, update_time, remark from hotake_cv_info
|
||||
</sql>
|
||||
|
||||
@@ -54,6 +56,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="fileSizeShow != null">file_size_show,</if>
|
||||
<if test="cvFileSuffix != null">cv_file_suffix,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="cvTemplateJson != null">cv_template_json,</if>
|
||||
<if test="cvScore != null">cv_score,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
@@ -69,6 +73,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="fileSizeShow != null">#{fileSizeShow},</if>
|
||||
<if test="cvFileSuffix != null">#{cvFileSuffix},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="cvTemplateJson != null">#{cvTemplateJson},</if>
|
||||
<if test="cvScore != null">#{cvScore},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
@@ -88,6 +94,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="fileSizeShow != null">file_size_show = #{fileSizeShow},</if>
|
||||
<if test="cvFileSuffix != null">cv_file_suffix = #{cvFileSuffix},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="cvTemplateJson != null">cv_template_json = #{cvTemplateJson},</if>
|
||||
<if test="cvScore != null">cv_score = #{cvScore},</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>
|
||||
|
||||
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<resultMap type="HotakeProblemBaseInfo" id="HotakeProblemBaseInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="cvId" column="cv_id" />
|
||||
<result property="contents" column="contents" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
@@ -18,13 +19,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectHotakeProblemBaseInfoVo">
|
||||
select id, user_id, contents, status, del_flag, create_by, create_time, update_by, update_time, remark from hotake_problem_base_info
|
||||
select id, user_id,cv_id, contents, status, del_flag, create_by, create_time, update_by, update_time, remark from hotake_problem_base_info
|
||||
</sql>
|
||||
|
||||
<select id="selectHotakeProblemBaseInfoList" parameterType="HotakeProblemBaseInfo" resultMap="HotakeProblemBaseInfoResult">
|
||||
<include refid="selectHotakeProblemBaseInfoVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="cvId != null "> and cv_id = #{cvId}</if>
|
||||
<if test="contents != null and contents != ''"> and contents = #{contents}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
@@ -39,6 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
insert into hotake_problem_base_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="cvId != null">cv_id,</if>
|
||||
<if test="contents != null">contents,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
@@ -50,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="cvId != null">#{cvId},</if>
|
||||
<if test="contents != null">#{contents},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
@@ -65,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
update hotake_problem_base_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="cvId != null">cv_id = #{cvId},</if>
|
||||
<if test="contents != null">contents = #{contents},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
@@ -82,7 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHotakeProblemBaseInfoByUserId" parameterType="Long">
|
||||
delete from hotake_problem_base_info where user_id = #{userId}
|
||||
delete from hotake_problem_base_info where user_id = #{userId} and cv_id = #{cvId}
|
||||
|
||||
</delete>
|
||||
|
||||
<delete id="deleteHotakeProblemBaseInfoByIds" parameterType="String">
|
||||
|
||||
Reference in New Issue
Block a user