用户vo-增加regionDesc
This commit is contained in:
@@ -2,6 +2,7 @@ package com.accompany.core.vo;
|
||||
|
||||
import com.accompany.common.annotation.ReplaceAppDomain;
|
||||
import com.accompany.core.annotation.I18n;
|
||||
import com.accompany.core.model.RegionInfo;
|
||||
import com.accompany.core.vo.audiocard.UserAudioCardVo;
|
||||
import com.accompany.core.vo.car.CarportVo;
|
||||
import com.accompany.core.vo.headwear.UserHeadwearVo;
|
||||
@@ -236,7 +237,10 @@ public class UserVo {
|
||||
@ReplaceAppDomain
|
||||
private String guildNameplateIcon;
|
||||
|
||||
@ApiModelProperty("地区id")
|
||||
private Integer regionId;
|
||||
@ApiModelProperty("地区中文描述")
|
||||
private String regionDesc;
|
||||
|
||||
private Long inviteUid;
|
||||
private Long inviteErbanNo;
|
||||
@@ -244,4 +248,5 @@ public class UserVo {
|
||||
private List<BaseMedalVo> medalsPic = new ArrayList<>();
|
||||
|
||||
private Integer useStatus;
|
||||
|
||||
}
|
||||
|
@@ -436,10 +436,14 @@ public class UsersService extends BaseService {
|
||||
|
||||
// 地区
|
||||
if (null != user.getRegionId()){
|
||||
RegionInfo regionInfo = regionInfoService.getById(user.getRegionId());
|
||||
if (null != regionInfo){
|
||||
userVo.setRegion(regionInfo.getName());
|
||||
}
|
||||
userVo.setRegionId(user.getRegionId());
|
||||
|
||||
RegionInfo regionInfo = regionInfoService.getById(user.getRegionId());
|
||||
|
||||
if (null != regionInfo){
|
||||
userVo.setRegion(regionInfo.getName());
|
||||
userVo.setRegionDesc(regionInfo.getName());
|
||||
}
|
||||
}
|
||||
|
||||
return userVo;
|
||||
|
Reference in New Issue
Block a user