feat(修改): 用户头像没有写入数据库,用户退出和查询菜单丢失

Signed-off-by: bunny <1319900154@qq.com>
This commit is contained in:
bunny 2024-03-25 23:18:42 +08:00
parent 7f00ce85fa
commit 5efbc229f8
1 changed files with 4 additions and 3 deletions

View File

@ -16,9 +16,7 @@
<update id="updateSysUser">
update sys_user
set
<if test="avatar != null and avatar != ''">
avatar = #{avatar},
</if>
<if test="userName != null and userName != ''">
username = #{userName},
</if>
@ -31,6 +29,9 @@
<if test="phone != null and phone != ''">
phone = #{phone},
</if>
<if test="avatar != null and avatar != ''">
avatar = #{avatar},
</if>
<if test="description != null and description != ''">
description = #{description},
</if>