From 522015271c9ed7aa408ae9b8778ecb08fb68e1e5 Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Fri, 22 Dec 2023 14:16:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=8C=E6=AC=A1=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E5=90=8E=E6=9B=B4=E6=94=B9=E7=BB=84=E7=BB=87=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AliRealNameAuthenticationController.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java index 9a619cd..b74d434 100644 --- a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java +++ b/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 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 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) {