|
@ -218,13 +218,13 @@ public class UserBaseInfoServiceImpl extends BaseServiceImpl<UserBaseInfoDao, Us |
|
|
if(StringUtils.isBlank(baseInfo.getUserId())){ |
|
|
if(StringUtils.isBlank(baseInfo.getUserId())){ |
|
|
return ; |
|
|
return ; |
|
|
} |
|
|
} |
|
|
UserBaseInfoResultDTO userBaseInfoResultDTO = baseDao.selectListByUserIdList(baseInfo.getUserId()); |
|
|
String id = baseDao.selectIdByUserId(baseInfo.getUserId()); |
|
|
if(StringUtils.isNotBlank(baseInfo.getSurname())) { |
|
|
if(StringUtils.isNotBlank(baseInfo.getSurname())) { |
|
|
baseInfo.setRealName(new StringBuilder(baseInfo.getSurname()).append(baseInfo.getName()).toString()); |
|
|
baseInfo.setRealName(new StringBuilder(baseInfo.getSurname()).append(baseInfo.getName()).toString()); |
|
|
} |
|
|
} |
|
|
if(null != userBaseInfoResultDTO && StringUtils.isNotBlank(userBaseInfoResultDTO.getId())){ |
|
|
if(StringUtils.isNotBlank(id)){ |
|
|
//更新
|
|
|
//更新
|
|
|
baseInfo.setId(userBaseInfoResultDTO.getId()); |
|
|
baseInfo.setId(id); |
|
|
baseDao.updateWithoutCover(baseInfo); |
|
|
baseDao.updateWithoutCover(baseInfo); |
|
|
}else{ |
|
|
}else{ |
|
|
//新增
|
|
|
//新增
|
|
|