|
|
|
@ -69,21 +69,28 @@ |
|
|
|
|
<update id="updateUserPersonal" parameterType="com.msdw.tms.entity.vo.UserProsonalEntityVo"> |
|
|
|
|
UPDATE |
|
|
|
|
hr_personal_file per |
|
|
|
|
SET |
|
|
|
|
per.personalCareerId = #{personalCareerId}, |
|
|
|
|
per.schoolId = #{schoolId}, |
|
|
|
|
per.schoolName = #{schoolName}, |
|
|
|
|
per.disciplineId = #{disciplineId}, |
|
|
|
|
per.disciplineName = #{disciplineName}, |
|
|
|
|
per.professionalId = #{professionalId}, |
|
|
|
|
per.professionalName = #{professionalName}, |
|
|
|
|
per.professionalClassId = #{professionalClassId}, |
|
|
|
|
per.professionalClassName = #{professionalClassName}, |
|
|
|
|
per.updatetime = NOW() |
|
|
|
|
<set> |
|
|
|
|
<if test="personalCareerId!=null">per.personalCareerId = #{personalCareerId},</if> |
|
|
|
|
<if test="schoolId!=null">per.schoolId = #{schoolId},</if> |
|
|
|
|
<if test="schoolName!=null">per.schoolName = #{schoolName},</if> |
|
|
|
|
<if test="disciplineId!=null">per.disciplineId = #{disciplineId},</if> |
|
|
|
|
<if test="disciplineName!=null">per.disciplineName = #{disciplineName},</if> |
|
|
|
|
<if test="professionalId!=null">per.professionalId = #{professionalId},</if> |
|
|
|
|
<if test="professionalName!=null">per.professionalName = #{professionalName},</if> |
|
|
|
|
<if test="professionalClassId!=null">per.professionalClassId = #{professionalClassId},</if> |
|
|
|
|
<if test="professionalClassName!=null">per.professionalClassName = #{professionalClassName},</if> |
|
|
|
|
<if test="updatetime==null">per.updatetime = NOW()</if> |
|
|
|
|
</set> |
|
|
|
|
WHERE |
|
|
|
|
per.userId = #{userId} |
|
|
|
|
AND |
|
|
|
|
per.personalFileId = #{personalFileId} |
|
|
|
|
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<insert id="insertPersonalInfo" parameterType="int"> |
|
|
|
|
INSERT INTO hr_personal_file ( userId, personalCareerId, schoolId, schoolName, disciplineId, disciplineName, professionalId, professionalName, professionalClassId, professionalClassName, updatetime ) |
|
|
|
|
VALUES |
|
|
|
|
(#{userId},#{personalCareerId,jdbcType=INTEGER},#{schoolId,jdbcType=INTEGER},#{schoolName,jdbcType=VARCHAR},#{disciplineId,jdbcType=INTEGER},#{disciplineName,jdbcType=VARCHAR},#{professionalId,jdbcType=INTEGER},#{professionalName,jdbcType=VARCHAR},#{professionalClassId,jdbcType=INTEGER},#{professionalClassName,jdbcType=INTEGER},NOW()) |
|
|
|
|
</insert> |
|
|
|
|
</mapper> |