|
|
@ -245,7 +245,7 @@ public class UserBaseInfoServiceImpl extends BaseServiceImpl<UserBaseInfoDao, Us |
|
|
|
userBaseInfoRedis.getUserInfo(userId); |
|
|
|
if(null != userInfo){ |
|
|
|
CustomerUserDetailResultDTO result = ConvertUtils.sourceToTarget(userInfo,CustomerUserDetailResultDTO.class); |
|
|
|
result.setName(userInfo.getRealName()); |
|
|
|
result.setName(StringUtils.isBlank(userInfo.getRealName()) ? userInfo.getNickname() : userInfo.getRealName()); |
|
|
|
result.setGender(StringUtils.equals(NumConstant.ZERO_STR,userInfo.getGender()) || StringUtils.isBlank(userInfo.getGender()) ? |
|
|
|
ModuleConstant.GENDER_UNKNOWN : (StringUtils.equals(NumConstant.ONE_STR,userInfo.getGender()) ? ModuleConstant.GENDER_MALE : ModuleConstant.GENDER_FEMALE)); |
|
|
|
result.setAddress(new StringBuilder(StringUtils.isBlank(userInfo.getDistrict()) ? ModuleConstant.EMPTY_STR : userInfo.getDistrict()).append(StringUtils.isBlank(userInfo.getStreet())? ModuleConstant.EMPTY_STR : userInfo.getStreet()).append(StringUtils.isBlank(userInfo.getBuildingAddress()) ? ModuleConstant.EMPTY_STR : userInfo.getBuildingAddress()).toString()); |
|
|
|