|
@@ -203,6 +203,8 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
update.setCurrentStatus(2L);
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|
|
|
this.updateById(update);
|
|
|
+ //同步身份证到用户信息
|
|
|
+ getUserPicInfo(addProfile);
|
|
|
return this.save(addProfile);
|
|
|
}
|
|
|
|
|
@@ -484,19 +486,27 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
objectLambdaUpdateWrapper.eq(User::getUserId, bo.getUserId());
|
|
|
if (maps.containsKey("recent_photos")) {
|
|
|
recent_photos = JSONObject.parseObject(String.valueOf(maps.get("recent_photos")), UserProfileFit.class).getValue();
|
|
|
- objectLambdaUpdateWrapper.set(User::getOneInchPhotos, recent_photos);
|
|
|
+ if(Validator.isNotEmpty(recent_photos)){
|
|
|
+ objectLambdaUpdateWrapper.set(User::getOneInchPhotos, recent_photos);
|
|
|
+ }
|
|
|
}
|
|
|
if (maps.containsKey("idcard_face_photo")) {
|
|
|
idcard_face_photo = JSONObject.parseObject(String.valueOf(maps.get("idcard_face_photo")), UserProfileFit.class).getValue();
|
|
|
- objectLambdaUpdateWrapper.set(User::getIdCardImg1, idcard_face_photo);
|
|
|
+ if(Validator.isNotEmpty(idcard_face_photo)){
|
|
|
+ objectLambdaUpdateWrapper.set(User::getIdCardImg1, idcard_face_photo);
|
|
|
+ }
|
|
|
}
|
|
|
if (maps.containsKey("idcard_national_photo")) {
|
|
|
idcard_national_photo = JSONObject.parseObject(String.valueOf(maps.get("idcard_national_photo")), UserProfileFit.class).getValue();
|
|
|
- objectLambdaUpdateWrapper.set(User::getIdCardImg2, idcard_national_photo);
|
|
|
+ if(Validator.isNotEmpty(idcard_national_photo)){
|
|
|
+ objectLambdaUpdateWrapper.set(User::getIdCardImg2, idcard_national_photo);
|
|
|
+ }
|
|
|
}
|
|
|
if (maps.containsKey("work_unit")) {
|
|
|
work_unit = JSONObject.parseObject(String.valueOf(maps.get("work_unit")), UserProfileFit.class).getValue();
|
|
|
- objectLambdaUpdateWrapper.set(User::getCompanyName, work_unit);
|
|
|
+ if(Validator.isNotEmpty(work_unit)){
|
|
|
+ objectLambdaUpdateWrapper.set(User::getCompanyName, work_unit);
|
|
|
+ }
|
|
|
}
|
|
|
objectLambdaUpdateWrapper.set(User::getUpdateTime, DateUtils.getNowTime());
|
|
|
iUserService.update(null, objectLambdaUpdateWrapper);
|