|
@@ -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);
|
|
|
}
|
|
|
|
|
@@ -467,7 +469,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
//审核通过同步身份证到用户信息
|
|
|
}
|
|
|
//审核承诺书发送消息
|
|
|
- sendAuiditSMS(update);
|
|
|
+ // sendAuiditSMS(update);
|
|
|
|
|
|
return this.updateById(update);
|
|
|
}
|
|
@@ -479,24 +481,32 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
String keyValue = bo.getKeyValue();
|
|
|
if (Validator.isNotEmpty(keyValue)) {
|
|
|
Map<String, String> maps = JSONObject.parseObject(keyValue, Map.class);
|
|
|
- String recent_photos, idcard_face_photo, idcard_national_photo,work_unit = null;
|
|
|
+ String recent_photos, idcard_face_photo, idcard_national_photo,work_unit;
|
|
|
LambdaUpdateWrapper<User> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
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);
|