feat(修改): 用户头像没有写入数据库,用户退出和查询菜单丢失
Signed-off-by: bunny <1319900154@qq.com>
This commit is contained in:
parent
7f00ce85fa
commit
5efbc229f8
|
@ -16,9 +16,7 @@
|
||||||
<update id="updateSysUser">
|
<update id="updateSysUser">
|
||||||
update sys_user
|
update sys_user
|
||||||
set
|
set
|
||||||
<if test="avatar != null and avatar != ''">
|
|
||||||
avatar = #{avatar},
|
|
||||||
</if>
|
|
||||||
<if test="userName != null and userName != ''">
|
<if test="userName != null and userName != ''">
|
||||||
username = #{userName},
|
username = #{userName},
|
||||||
</if>
|
</if>
|
||||||
|
@ -31,6 +29,9 @@
|
||||||
<if test="phone != null and phone != ''">
|
<if test="phone != null and phone != ''">
|
||||||
phone = #{phone},
|
phone = #{phone},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="avatar != null and avatar != ''">
|
||||||
|
avatar = #{avatar},
|
||||||
|
</if>
|
||||||
<if test="description != null and description != ''">
|
<if test="description != null and description != ''">
|
||||||
description = #{description},
|
description = #{description},
|
||||||
</if>
|
</if>
|
||||||
|
|
Loading…
Reference in New Issue