Browse Source

修改用户地址

Yangzw 9 months ago
parent
commit
77a51786a9

+ 1 - 1
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/service/sharepath/SharePathServiceImpl.java

@@ -148,7 +148,7 @@ public class SharePathServiceImpl implements SharePathService {
         List<SharePathDO> sharePathDO = sharePathMapper.selectList(new LambdaQueryWrapperX<SharePathDO>()
                 .eqIfPresent(SharePathDO::getDescendant, descendant)
                 .eqIfPresent(SharePathDO::getDepth, 1));
-        return sharePathDO != null;
+        return !sharePathDO.isEmpty();
     }
 
     @Override

+ 3 - 0
feifan-module-system/feifan-module-system-biz/src/main/java/cn/newfeifan/mall/module/system/controller/admin/user/vo/profile/UserProfileRespVO.java

@@ -43,6 +43,9 @@ public class UserProfileRespVO {
     @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
     private LocalDateTime createTime;
 
+    @Schema(description = "地址")
+    private Long areaId;
+
     /**
      * 所属角色
      */

+ 3 - 0
feifan-module-system/feifan-module-system-biz/src/main/java/cn/newfeifan/mall/module/system/controller/admin/user/vo/profile/UserProfileUpdateReqVO.java

@@ -28,4 +28,7 @@ public class UserProfileUpdateReqVO {
     @Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
     private Integer sex;
 
+    @Schema(description = "地址")
+    private Long areaId;
+
 }