完善二次认证后更改组织信息

main
rong.liu 11 months ago
parent 144f8fe6a5
commit 522015271c
  1. 18
      users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java

@ -269,6 +269,20 @@ public class AliRealNameAuthenticationController {
return R.error(errorMsg);
}
enterpriseCertificationService.save(enterpriseCertification);
//更改二次验证的组织信息
enterpriseCertification.setSubmitTime(new Date());
QueryWrapper<HrUserAccount> accountQueryWrapper1 = new QueryWrapper<>();
accountQueryWrapper1.eq("app_open_id", enterpriseCertification.getOpenId());
accountQueryWrapper1.eq("platform_id", enterpriseCertification.getPlatformSource());
HrUserAccount userAccount1 = userAccountService.getOne(accountQueryWrapper1);
userAccount1.setAccount(enterpriseCertification.getCompanyName());
userAccountService.updateById(userAccount1);
UpdateWrapper<HrUserInfo> userInfoUpdateWrapper = new UpdateWrapper<>();
userInfoUpdateWrapper.set("user_name", enterpriseCertification.getCompanyName());
userInfoUpdateWrapper.eq("user_id", userAccount1.getUserId());
userInfoService.update(new HrUserInfo(), userInfoUpdateWrapper);
return R.ok("提交成功,请等待审核!");
} else {
errorMsg = info.getReason();
@ -282,10 +296,6 @@ public class AliRealNameAuthenticationController {
userInfoService.removeById(userAccount.getUserId());
userAccountService.removeById(userAccount);
//
return R.error().put("message", info.getReason());
}
} catch (Exception e) {

Loading…
Cancel
Save