|
@@ -163,6 +163,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
if(Validator.isEmpty(bo.getOrderGoodsId())||bo.getOrderGoodsId()==0L){
|
|
|
throw new CustomException("参数错误");
|
|
|
}
|
|
|
+
|
|
|
UserProfile add = BeanUtil.toBean(bo, UserProfile.class);
|
|
|
validEntityBeforeSave(add);
|
|
|
add.setCreateTime(DateUtils.getNowTime());
|
|
@@ -172,6 +173,8 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
add.setLastTime(DateUtils.getNowTime());
|
|
|
add.setCurrentStatus(1L);
|
|
|
add.setChangeStatus(1);
|
|
|
+ //同步身份证到用户信息
|
|
|
+ getUserPicInfo(add);
|
|
|
return this.save(add);
|
|
|
}
|
|
|
|
|
@@ -462,8 +465,6 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
sendAuidit(update);
|
|
|
if (update.getStatus().equals(1)) {
|
|
|
//审核通过同步身份证到用户信息
|
|
|
- getUserPicInfo(update);
|
|
|
-
|
|
|
}
|
|
|
//审核承诺书发送消息
|
|
|
sendAuiditSMS(update);
|
|
@@ -478,7 +479,7 @@ 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 = null;
|
|
|
+ String recent_photos, idcard_face_photo, idcard_national_photo,work_unit = null;
|
|
|
LambdaUpdateWrapper<User> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
|
objectLambdaUpdateWrapper.eq(User::getUserId, bo.getUserId());
|
|
|
if (maps.containsKey("recent_photos")) {
|
|
@@ -493,6 +494,10 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
|
|
|
idcard_national_photo = JSONObject.parseObject(String.valueOf(maps.get("idcard_national_photo")), UserProfileFit.class).getValue();
|
|
|
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);
|
|
|
+ }
|
|
|
objectLambdaUpdateWrapper.set(User::getUpdateTime, DateUtils.getNowTime());
|
|
|
iUserService.update(null, objectLambdaUpdateWrapper);
|
|
|
}
|