新增用户修改接口

This commit is contained in:
2026-01-15 10:04:46 +08:00
parent bc8a1c901f
commit ca88a6f910
6 changed files with 58 additions and 2 deletions

View File

@@ -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>