|
@@ -11,4 +11,37 @@
|
|
|
</where>
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
+ <update id="update">
|
|
|
+ update employee
|
|
|
+ <set>
|
|
|
+ <if test="name != null">
|
|
|
+ name = #{name},
|
|
|
+ </if>
|
|
|
+ <if test="username != null">
|
|
|
+ username = #{username},
|
|
|
+ </if>
|
|
|
+ <if test="password != null">
|
|
|
+ password = #{password},
|
|
|
+ </if>
|
|
|
+ <if test="phone != null">
|
|
|
+ phone = #{phone},
|
|
|
+ </if>
|
|
|
+ <if test="sex != null">
|
|
|
+ sex = #{sex},
|
|
|
+ </if>
|
|
|
+ <if test="idNumber != null">
|
|
|
+ id_number = #{idNumber},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime},
|
|
|
+ </if>
|
|
|
+ <if test="updateUser != null">
|
|
|
+ update_user = #{updateUser},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ status = #{status},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
</mapper>
|