修改用户地址
@@ -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
@@ -43,6 +43,9 @@ public class UserProfileRespVO {
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
private LocalDateTime createTime;
+ @Schema(description = "地址")
+ private Long areaId;
+
/**
* 所属角色
*/
@@ -28,4 +28,7 @@ public class UserProfileUpdateReqVO {
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
private Integer sex;