diff --git a/users/src/main/java/com/huoran/users/controller/EnterpriseCertificationController.java b/users/src/main/java/com/huoran/users/controller/EnterpriseCertificationController.java index 1e7d52a..233481d 100644 --- a/users/src/main/java/com/huoran/users/controller/EnterpriseCertificationController.java +++ b/users/src/main/java/com/huoran/users/controller/EnterpriseCertificationController.java @@ -145,7 +145,8 @@ public class EnterpriseCertificationController { //删除账号表 QueryWrapper accountQueryWrapper1 = new QueryWrapper<>(); - accountQueryWrapper1.eq("id", enterpriseCertification.getAccountId()); + accountQueryWrapper1.eq("app_open_id", enterpriseCertification.getOpenId()); + accountQueryWrapper1.eq("platform_id",enterpriseCertification.getPlatformSource()); HrUserAccount userAccount = userAccountService.getOne(accountQueryWrapper1); userAccountService.removeById(userAccount); @@ -153,7 +154,7 @@ public class EnterpriseCertificationController { userInfoService.removeById(userAccount.getUserId()); //删除团队信息表 - service.deleteTeamInformation(enterpriseCertification.getAccountId()); + service.deleteTeamInformation(userAccount.getId()); } boolean delState = service.removeByIds(ids);