新增用户修改接口
This commit is contained in:
@@ -125,4 +125,29 @@
|
||||
last_login_time = #{lastLoginTime}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateByName">
|
||||
update user
|
||||
<set>
|
||||
<if test="password != null">
|
||||
password = #{password},
|
||||
</if>
|
||||
<if test="realName != null">
|
||||
real_name = #{realName},
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
phone = #{phone},
|
||||
</if>
|
||||
<if test="deptId != null">
|
||||
dept_id = #{deptId},
|
||||
</if>
|
||||
<if test="role != null">
|
||||
role = #{role},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
</set>
|
||||
where username = #{username}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user