|
|
|
@ -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) { |
|
|
|
|