|
@@ -508,15 +508,19 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
throw new CustomException("身份证号码已存在,创建失败");
|
|
|
}
|
|
|
objectLambdaUpdateWrapper.set(User::getIdCard, idcard);
|
|
|
- if (maps.containsKey("name")) {
|
|
|
- name = JSONObject.parseObject(String.valueOf(maps.get("name")), UserProfileFit.class).getValue();
|
|
|
- if(Validator.isNotEmpty(name)){
|
|
|
- objectLambdaUpdateWrapper.set(User::getRealname, name);
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (maps.containsKey("name")) {
|
|
|
+ name = JSONObject.parseObject(String.valueOf(maps.get("name")), UserProfileFit.class).getValue();
|
|
|
+ if(Validator.isNotEmpty(name)){
|
|
|
+ UserVo user = iUserService.queryById(bo.getUserId());
|
|
|
+ if(Validator.isNotEmpty(user)&&Validator.isEmpty(user.getRealname())) { //姓名为空是覆盖
|
|
|
+ objectLambdaUpdateWrapper.set(User::getRealname, name);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
if (maps.containsKey("recent_photos")) {
|
|
|
recent_photos = JSONObject.parseObject(String.valueOf(maps.get("recent_photos")), UserProfileFit.class).getValue();
|
|
|
if(Validator.isNotEmpty(recent_photos)){
|