tlias管理系统-员工管理查询回显&修改员工信息功能实现

This commit is contained in:
2025-10-13 13:51:14 +08:00
parent 08c75b8908
commit c5541c22d4
5 changed files with 84 additions and 0 deletions

View File

@@ -27,4 +27,39 @@
#{id}
</foreach>
</delete>
<update id="updateEmp">
update emp
<set>
<if test="username !=null and username != ''">
username = #{username},
</if>
<if test="password !=null and password != ''">
password = #{password},
</if>
<if test="name !=null and name != ''">
name = #{name},
</if>
<if test="gender !=null ">
gender = #{gender},
</if>
<if test="image !=null and image != ''">
image = #{image},
</if>
<if test="job !=null ">
job = #{job},
</if>
<if test="entrydate !=null ">
entrydate = #{entrydate},
</if>
<if test="deptId !=null ">
dept_id = #{deptId},
</if>
<if test="updateTime !=null">
update_time = #{updateTime}
</if>
</set>
where
id = #{id};
</update>
</mapper>