diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdLeaderInviteBdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdLeaderInviteBdExe.java index 7333a72b..5da56ded 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdLeaderInviteBdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdLeaderInviteBdExe.java @@ -46,7 +46,6 @@ public class BdLeaderInviteBdExe { private final RoomBdLeadService roomBdLeadService; private final UserProfileGateway userProfileGateway; private final OfficialNoticeClient officialNoticeClient; - private final EnumConfigCacheService enumConfigCacheService; private final UserProfileAppConvertor userProfileAppConvertor; private final BdInviteAgentMessageService bdInviteAgentMessageService; private final BusinessDevelopmentBaseInfoService businessDevelopmentBaseInfoService; @@ -61,6 +60,9 @@ public class BdLeaderInviteBdExe { ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION, roomBdLeadService.checkBdLeader(cmd.getInviteUserId())); + ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION, + businessDevelopmentBaseInfoService.checkBD(cmd.getInviteUserId())); + // 权限不足 BusinessDevelopmentBaseInfo bd = getDevelopmentBaseInfoServiceByUserId(cmd); ResponseAssert.isFalse(CommonErrorCode.INSUFFICIENT_PERMISSION, Objects.nonNull(bd)