|
@@ -50,59 +50,54 @@
|
|
|
<update id="update" parameterType="com.keao.edu.user.entity.Employee">
|
|
|
UPDATE employee
|
|
|
<set>
|
|
|
- <if test="graduateSchool != null">
|
|
|
- graduate_school_ = #{graduateSchool},
|
|
|
- </if>
|
|
|
- <if test="introduction != null">
|
|
|
- introduction_ = #{introduction},
|
|
|
- </if>
|
|
|
- <if test="postalCode != null">
|
|
|
- postal_code_ = #{postalCode},
|
|
|
- </if>
|
|
|
- <if test="technicalTitles != null">
|
|
|
- technical_titles_ = #{technicalTitles},
|
|
|
- </if>
|
|
|
- <if test="entryDate != null">
|
|
|
- entry_date_ = #{entryDate},
|
|
|
- </if>
|
|
|
- <if test="contactAddress != null">
|
|
|
- contact_address_ = #{contactAddress},
|
|
|
- </if>
|
|
|
- <if test="jobNature != null">
|
|
|
- job_nature_ = #{jobNature},
|
|
|
- </if>
|
|
|
- <if test="createTime != null">
|
|
|
- create_time_ = #{createTime},
|
|
|
- </if>
|
|
|
- <if test="userId != null">
|
|
|
- user_id_ = #{userId},
|
|
|
- </if>
|
|
|
- <if test="certificateType != null">
|
|
|
- certificate_type_ = #{certificateType},
|
|
|
- </if>
|
|
|
- <if test="updateTime != null">
|
|
|
- update_time_ = #{updateTime},
|
|
|
- </if>
|
|
|
- <if test="educationBackground != null">
|
|
|
- education_background_ = #{educationBackground},
|
|
|
- </if>
|
|
|
- <if test="certificateNum != null">
|
|
|
- certificate_num_ = #{certificateNum},
|
|
|
- </if>
|
|
|
- <if test="demissionDate != null">
|
|
|
- demission_date_ = #{demissionDate},
|
|
|
- </if>
|
|
|
- <if test="tenantId != null">
|
|
|
- tenant_id_=#{tenantId},
|
|
|
- </if>
|
|
|
- <if test="organId != null">
|
|
|
- organ_id_=#{organId},
|
|
|
- </if>
|
|
|
- </set> WHERE user_id_ = #{userId}
|
|
|
+ <if test="graduateSchool != null">
|
|
|
+ graduate_school_ = #{graduateSchool},
|
|
|
+ </if>
|
|
|
+ <if test="introduction != null">
|
|
|
+ introduction_ = #{introduction},
|
|
|
+ </if>
|
|
|
+ <if test="postalCode != null">
|
|
|
+ postal_code_ = #{postalCode},
|
|
|
+ </if>
|
|
|
+ <if test="technicalTitles != null">
|
|
|
+ technical_titles_ = #{technicalTitles},
|
|
|
+ </if>
|
|
|
+ <if test="entryDate != null">
|
|
|
+ entry_date_ = #{entryDate},
|
|
|
+ </if>
|
|
|
+ <if test="contactAddress != null">
|
|
|
+ contact_address_ = #{contactAddress},
|
|
|
+ </if>
|
|
|
+ <if test="jobNature != null">
|
|
|
+ job_nature_ = #{jobNature},
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ user_id_ = #{userId},
|
|
|
+ </if>
|
|
|
+ <if test="certificateType != null">
|
|
|
+ certificate_type_ = #{certificateType},
|
|
|
+ </if>
|
|
|
+ <if test="educationBackground != null">
|
|
|
+ education_background_ = #{educationBackground},
|
|
|
+ </if>
|
|
|
+ <if test="certificateNum != null">
|
|
|
+ certificate_num_ = #{certificateNum},
|
|
|
+ </if>
|
|
|
+ <if test="demissionDate != null">
|
|
|
+ demission_date_ = #{demissionDate},
|
|
|
+ </if>
|
|
|
+ <if test="tenantId != null">
|
|
|
+ tenant_id_=#{tenantId},
|
|
|
+ </if>
|
|
|
+ <if test="organId != null">
|
|
|
+ organ_id_=#{organId},
|
|
|
+ </if>
|
|
|
+ update_time_ = NOW()
|
|
|
+ </set> WHERE user_id_ = #{userId}
|
|
|
</update>
|
|
|
<!-- 根据主键删除一条记录 -->
|
|
|
<update id="delete" >
|
|
|
- UPDATE employee SET del_flag_ = 0,update_time_ = NOW() WHERE user_id_ = #{userId}
|
|
|
+ UPDATE employee SET del_flag_ = 1,update_time_ = NOW() WHERE user_id_ = #{userId}
|
|
|
</update>
|
|
|
<sql id="employeeQueryPage">
|
|
|
<where>
|