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 dd5e1a3..1aa9d8e 100644 --- a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java +++ b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java @@ -255,6 +255,9 @@ public class AliRealNameAuthenticationController { userInfoUpdateWrapper.set("user_name", enterpriseCertification.getCompanyName()); userInfoUpdateWrapper.eq("user_id", userAccount1.getUserId()); userInfoService.update(new HrUserInfo(), userInfoUpdateWrapper); + + //删除团队信息 + enterpriseCertificationService.deleteTeamInformation(enterpriseCertification.getAccountId()); return R.ok("提交成功,请等待审核!"); } diff --git a/users/src/main/java/com/huoran/users/mapper/EnterpriseCertificationMapper.java b/users/src/main/java/com/huoran/users/mapper/EnterpriseCertificationMapper.java index 857aeda..e843d46 100644 --- a/users/src/main/java/com/huoran/users/mapper/EnterpriseCertificationMapper.java +++ b/users/src/main/java/com/huoran/users/mapper/EnterpriseCertificationMapper.java @@ -22,4 +22,7 @@ public interface EnterpriseCertificationMapper extends BaseMapper + + DELETE + a, + t, + c + FROM + k_platform_team_account a + INNER JOIN k_platform_team t ON t.manage_id = a.manage_id + INNER JOIN k_platform_team_classification c ON c.id = t.classification_id + WHERE + a.account_id = #{accountId} + +