用户头像更换后移除旧头像文件

This commit is contained in:
RuoYi
2025-06-06 14:02:03 +08:00
parent f39f944a4d
commit 45cc53652b
8 changed files with 91 additions and 11 deletions

View File

@@ -166,6 +166,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</delete>
<update id="updateUserAvatar" parameterType="SysUser">
update sys_user set avatar = #{avatar} where user_id = #{userId}
</update>
<update id="updateUser" parameterType="SysUser">
update sys_user
<set>