|  | @@ -19,8 +19,10 @@ import com.tzld.longarticle.recommend.server.mapper.crawler.CrawlerBaseMapper;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.mapper.growth.NewPushMessageCallbackMapper;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.mapper.longArticle.LongArticleBaseMapper;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.dto.*;
 | 
	
		
			
				|  |  | +import com.tzld.longarticle.recommend.server.model.dto.aigc.BadCrawlerAccountDTO;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.entity.aigc.CrawlerPlan;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.entity.aigc.ProducePlan;
 | 
	
		
			
				|  |  | +import com.tzld.longarticle.recommend.server.model.entity.aigc.ProduceReviewRecord;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.entity.aigc.PublishAccount;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountAvgInfo;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.entity.crawler.GetOffVideoCrawler;
 | 
	
	
		
			
				|  | @@ -30,6 +32,7 @@ import com.tzld.longarticle.recommend.server.model.param.ArticleFindSourceParam;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.param.TitleHisCacheParam;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.model.vo.FeishuTableDTO;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.remote.ODPSManager;
 | 
	
		
			
				|  |  | +import com.tzld.longarticle.recommend.server.remote.aigc.AIGCProduceContentAuditService;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.repository.aigc.ProducePlanRepository;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.repository.crawler.GetOffVideoCrawlerRepository;
 | 
	
		
			
				|  |  |  import com.tzld.longarticle.recommend.server.repository.crawler.LongArticlesVideoRepository;
 | 
	
	
		
			
				|  | @@ -105,6 +108,8 @@ public class XxlJobService {
 | 
	
		
			
				|  |  |      private RecallService recallService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private ProducePlanRepository producePlanRepository;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private AIGCProduceContentAuditService aigcProduceContentAuditService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      ExecutorService thread = new CommonThreadPoolExecutor(
 | 
	
		
			
				|  |  |              5,
 | 
	
	
		
			
				|  | @@ -116,6 +121,10 @@ public class XxlJobService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApolloJsonValue("${touliu.account.ghIds:[\"gh_93e00e187787\", \"gh_ac43e43b253b\", \"gh_68e7fdc09fe4\",\"gh_77f36c109fb1\", \"gh_b181786a6c8c\", \"gh_1ee2e1b39ccf\"]}")
 | 
	
		
			
				|  |  |      private List<String> touliuAccountGhIds;
 | 
	
		
			
				|  |  | +    @ApolloJsonValue("${cold.pool.produce.planId:[\"20240802021606053813696\", \"20240802080355355308981\",\n" +
 | 
	
		
			
				|  |  | +            "\"20240805154433785506170\", \"20240805154359027876170\", \"20241024100016206421084\", " +
 | 
	
		
			
				|  |  | +            "\"20241030070010871546586\"]}")
 | 
	
		
			
				|  |  | +    private static List<String> producePlanIds;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @XxlJob("checkPublishPlan")
 | 
	
		
			
				|  |  |      public ReturnT<String> checkPublishPlan(String param) {
 | 
	
	
		
			
				|  | @@ -807,4 +816,26 @@ public class XxlJobService {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @XxlJob("badAccountContentReject")
 | 
	
		
			
				|  |  | +    public ReturnT<String> badAccountContentReject(String param) {
 | 
	
		
			
				|  |  | +        List<BadCrawlerAccountDTO> badAccountList = aigcBaseMapper.getBadAccountList(producePlanIds);
 | 
	
		
			
				|  |  | +        List<String> accountNames = badAccountList.stream().map(BadCrawlerAccountDTO::getAccountName).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +        // 抓取内容设置废弃
 | 
	
		
			
				|  |  | +        aigcBaseMapper.setCrawlerContentDisuseByAccountName(accountNames);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        List<String> planExeIds = aigcBaseMapper.getPlanExeIdByAccountName(accountNames);
 | 
	
		
			
				|  |  | +        List<ProduceReviewRecord> reviewList = aigcBaseMapper.getReviewList(planExeIds);
 | 
	
		
			
				|  |  | +        Map<String, String> reviewMap = reviewList.stream().collect(
 | 
	
		
			
				|  |  | +                Collectors.toMap(ProduceReviewRecord::getPlanExeId, ProduceReviewRecord::getRecordId));
 | 
	
		
			
				|  |  | +        for (String planExeId : planExeIds) {
 | 
	
		
			
				|  |  | +            String reviewId = reviewMap.get(planExeId);
 | 
	
		
			
				|  |  | +            if (!StringUtils.hasText(reviewId)) {
 | 
	
		
			
				|  |  | +                continue;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            // 已生成内容审核不通过
 | 
	
		
			
				|  |  | +            aigcProduceContentAuditService.request(reviewId, planExeId);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return ReturnT.SUCCESS;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  }
 |