个人中心优化,增加上传头像接口1

This commit is contained in:
menxipeng
2025-08-23 12:49:04 +08:00
parent 44057267ea
commit acfb370c73
7 changed files with 18 additions and 11 deletions

View File

@@ -121,7 +121,7 @@ public class OrderInfoServiceImpl implements IOrderInfoService
// 获取当前用户
LoginUser loginUser = SecurityUtils.getLoginUser();
if (loginUser == null) {
return AjaxResult.error("用户未登录");
return AjaxResult.error(401,"用户未登录");
}
// 创建订单

View File

@@ -167,6 +167,7 @@
<if test="phone != null">phone = #{phone},</if>
<if test="nickname != null">nickname = #{nickname},</if>
<if test="sex != null">sex = #{sex},</if>
<if test="headImg != null">head_img = #{headImg},</if>
<if test="birthday != null">birthday = #{birthday},</if>
<if test="addr != null">addr = #{addr},</if>
<if test="registerTime != null">register_time = #{registerTime},</if>
@@ -178,7 +179,7 @@
<if test="isDel != null">is_del = #{isDel},</if>
<if test="vipStartTime != null"> vip_start_time = #{vipStartTime},</if>
<if test="vipEndTime != null"> vip_end_time = #{vipEndTime},</if>
<if test="descinfo != null"> vip_end_time = #{descinfo},</if>
<if test="descinfo != null"> descinfo = #{descinfo},</if>
</trim>
where shop_user.user_id = #{userId}
</update>