From 144f8fe6a5d1f23133eb46718661d186bdef2058 Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Fri, 22 Dec 2023 13:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BC=81=E4=B8=9A=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E5=A4=B1=E8=B4=A5=E5=90=8E=E5=88=A0=E9=99=A4=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E8=B4=A6=E6=88=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AliRealNameAuthenticationController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 48250bc..9a619cd 100644 --- a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java +++ b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java @@ -272,6 +272,20 @@ public class AliRealNameAuthenticationController { return R.ok("提交成功,请等待审核!"); } else { errorMsg = info.getReason(); + + //失败后删除本次生成的企业团队信息 + QueryWrapper accountQueryWrapper = new QueryWrapper<>(); + accountQueryWrapper.eq("app_open_id", enterpriseCertification.getOpenId()); + accountQueryWrapper.eq("platform_id", enterpriseCertification.getPlatformSource()); + + HrUserAccount userAccount = userAccountService.getOne(accountQueryWrapper); + + userInfoService.removeById(userAccount.getUserId()); + userAccountService.removeById(userAccount); + + // + + return R.error().put("message", info.getReason()); } } catch (Exception e) {