|  | @@ -218,7 +218,19 @@ public class CoreServiceImpl implements CoreService {
 | 
	
		
			
				|  |  |                  LarkRobotUtil.sendMessage("获取例外设置失败,accountId=" + accountId);
 | 
	
		
			
				|  |  |                  continue;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            List<PlanAccount> normalPlanAccounts = planAccountService.getNormalPlanAccount(accountId);
 | 
	
		
			
				|  |  | +            boolean isSend = false;
 | 
	
		
			
				|  |  | +            List<PlanAccount> planAccountList = planAccountService.getPlanAccount(accountId);
 | 
	
		
			
				|  |  | +            for (PlanAccount planAccount : planAccountList) {
 | 
	
		
			
				|  |  | +                int sendCount = publicContentService.getSendCount(planAccount.getId());
 | 
	
		
			
				|  |  | +                if (sendCount > 0) {
 | 
	
		
			
				|  |  | +                    isSend = true;
 | 
	
		
			
				|  |  | +                    break;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if (isSend) {
 | 
	
		
			
				|  |  | +                continue;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            List<PlanAccount> normalPlanAccounts = planAccountList.stream().filter(e -> e.getIsDelete() == 0).filter(e -> e.getPublishOpenFlag() == 1).collect(Collectors.toList());
 | 
	
		
			
				|  |  |              if (CollectionUtils.isEmpty(normalPlanAccounts)) {
 | 
	
		
			
				|  |  |                  Optional<PlanAccount> firstAccount = planAccounts.stream().min((a1, a2) -> -a1.getPublishNum().compareTo(a2.getPublishNum()));
 | 
	
		
			
				|  |  |                  if (!firstAccount.isPresent()) {
 |