|
|
|
@ -41,29 +41,47 @@ |
|
|
|
|
AND s.isdel = 0 |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="queryPersonalFile" parameterType="com.msdw.tms.entity.PersonalFileEntity" resultType="hashMap"> |
|
|
|
|
<!-- <select id="queryPersonalFile" parameterType="com.msdw.tms.entity.PersonalFileEntity" resultType="hashMap">--> |
|
|
|
|
<!-- SELECT--> |
|
|
|
|
<!-- per.personalFileId,--> |
|
|
|
|
<!-- per.schoolId,--> |
|
|
|
|
<!-- per.schoolName,--> |
|
|
|
|
<!-- disciplineId,--> |
|
|
|
|
<!-- disciplineName,--> |
|
|
|
|
<!-- professionalClassId,--> |
|
|
|
|
<!-- per.professionalClassName,--> |
|
|
|
|
<!-- per.professionalId,--> |
|
|
|
|
<!-- per.professionalName,--> |
|
|
|
|
<!-- per.personalCareerId,--> |
|
|
|
|
<!-- s.cityId,--> |
|
|
|
|
<!-- s.cityName,--> |
|
|
|
|
<!-- s.provinceId,--> |
|
|
|
|
<!-- s.provinceName--> |
|
|
|
|
<!-- FROM--> |
|
|
|
|
<!-- hr_personal_file per,--> |
|
|
|
|
<!-- school s--> |
|
|
|
|
<!-- WHERE--> |
|
|
|
|
<!-- per.schoolId = s.schoolId--> |
|
|
|
|
<!-- AND per.userId = #{userId}--> |
|
|
|
|
<!-- AND s.isdel = 0--> |
|
|
|
|
<!-- </select>--> |
|
|
|
|
|
|
|
|
|
<select id="queryPersonalFileES" parameterType="com.msdw.tms.entity.UserPersonalFileEntity" resultType="hashMap"> |
|
|
|
|
SELECT |
|
|
|
|
per.personalFileId, |
|
|
|
|
per.schoolId, |
|
|
|
|
per.schoolName, |
|
|
|
|
personalFileId, |
|
|
|
|
schoolId, |
|
|
|
|
schoolName, |
|
|
|
|
disciplineId, |
|
|
|
|
disciplineName, |
|
|
|
|
professionalClassId, |
|
|
|
|
per.professionalClassName, |
|
|
|
|
per.professionalId, |
|
|
|
|
per.professionalName, |
|
|
|
|
per.personalCareerId, |
|
|
|
|
s.cityId, |
|
|
|
|
s.cityName, |
|
|
|
|
s.provinceId, |
|
|
|
|
s.provinceName |
|
|
|
|
professionalClassName, |
|
|
|
|
professionalId, |
|
|
|
|
professionalName, |
|
|
|
|
personalCareerId |
|
|
|
|
FROM |
|
|
|
|
hr_personal_file per, |
|
|
|
|
school s |
|
|
|
|
hr_personal_file |
|
|
|
|
WHERE |
|
|
|
|
per.schoolId = s.schoolId |
|
|
|
|
AND per.userId = #{userId} |
|
|
|
|
AND s.isdel = 0 |
|
|
|
|
userId = #{userId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<update id="updateUserPersonal" parameterType="com.msdw.tms.entity.vo.UserProsonalEntityVo"> |
|
|
|
@ -72,25 +90,35 @@ |
|
|
|
|
<set> |
|
|
|
|
<if test="personalCareerId!=null">per.personalCareerId = #{personalCareerId},</if> |
|
|
|
|
<if test="schoolId!=null">per.schoolId = #{schoolId},</if> |
|
|
|
|
<if test="schoolId==null">per.schoolId = NULL,</if> |
|
|
|
|
<if test="schoolName!=null">per.schoolName = #{schoolName},</if> |
|
|
|
|
<if test="schoolName==null">per.schoolName = NULL,</if> |
|
|
|
|
<if test="disciplineId!=null">per.disciplineId = #{disciplineId},</if> |
|
|
|
|
<if test="disciplineId==null">per.disciplineId = NULL,</if> |
|
|
|
|
<if test="disciplineName!=null">per.disciplineName = #{disciplineName},</if> |
|
|
|
|
<if test="disciplineName==null">per.disciplineName = NULL,</if> |
|
|
|
|
<if test="professionalId!=null">per.professionalId = #{professionalId},</if> |
|
|
|
|
<if test="professionalId==null">per.professionalId = NULL,</if> |
|
|
|
|
<if test="professionalName!=null">per.professionalName = #{professionalName},</if> |
|
|
|
|
<if test="professionalName==null">per.professionalName = NULL,</if> |
|
|
|
|
<if test="professionalClassId!=null">per.professionalClassId = #{professionalClassId},</if> |
|
|
|
|
<if test="professionalClassId==null">per.professionalClassId = NULL,</if> |
|
|
|
|
<if test="professionalClassName!=null">per.professionalClassName = #{professionalClassName},</if> |
|
|
|
|
<if test="professionalClassName==null">per.professionalClassName = NULL,</if> |
|
|
|
|
<if test="updatetime==null">per.updatetime = NOW()</if> |
|
|
|
|
</set> |
|
|
|
|
WHERE |
|
|
|
|
per.userId = #{userId} |
|
|
|
|
AND |
|
|
|
|
per.personalFileId = #{personalFileId} |
|
|
|
|
AND |
|
|
|
|
per.schoolId = s.schoolId |
|
|
|
|
|
|
|
|
|
</update> |
|
|
|
|
|
|
|
|
|
<insert id="insertPersonalInfo" parameterType="int"> |
|
|
|
|
<insert id="insertPersonalInfo" useGeneratedKeys="true"> |
|
|
|
|
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()) |
|
|
|
|
(#{userId},#{personalCareerId},#{schoolId},#{schoolName},#{disciplineId},#{disciplineName},#{professionalId},#{professionalName},#{professionalClassId},#{professionalClassName},NOW()) |
|
|
|
|
</insert> |
|
|
|
|
</mapper> |