tlias管理系统-员工管理查询回显&修改员工信息功能实现
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user