| 
														
															@@ -33,14 +33,12 @@ import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountAvgInfo 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.entity.crawler.GetOffVideoCrawler; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.entity.crawler.GetOffVideoCrawler; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.entity.crawler.LongArticlesVideo; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.entity.crawler.LongArticlesVideo; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.entity.longArticle.*; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.entity.longArticle.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.tzld.longarticle.recommend.server.model.param.ArticleFindSourceParam; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.tzld.longarticle.recommend.server.model.param.RecommendParam; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.tzld.longarticle.recommend.server.model.param.RecommendRequest; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import com.tzld.longarticle.recommend.server.model.param.TitleHisCacheParam; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.tzld.longarticle.recommend.server.model.param.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.vo.ArticleSortResponseDataItem; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.vo.ArticleSortResponseDataItem; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.vo.FeishuTableDTO; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.model.vo.FeishuTableDTO; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.remote.ODPSManager; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.remote.ODPSManager; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.remote.aigc.AIGCProduceContentAuditService; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.remote.aigc.AIGCProduceContentAuditService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import com.tzld.longarticle.recommend.server.remote.aigc.AIGCPublishContentDiscardService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.remote.aigc.AIGCWaitingPublishContentService; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.remote.aigc.AIGCWaitingPublishContentService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.repository.aigc.ProducePlanRepository; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.repository.aigc.ProducePlanRepository; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.tzld.longarticle.recommend.server.repository.aigc.PublishPlanRepository; 
														 | 
														
														 | 
														
															 import com.tzld.longarticle.recommend.server.repository.aigc.PublishPlanRepository; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -152,6 +150,8 @@ public class XxlJobService { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private RecommendService recommendService; 
														 | 
														
														 | 
														
															     private RecommendService recommendService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Autowired 
														 | 
														
														 | 
														
															     @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private PublishPlanSettingRepository publishPlanSettingRepository; 
														 | 
														
														 | 
														
															     private PublishPlanSettingRepository publishPlanSettingRepository; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private AIGCPublishContentDiscardService aigcPublishContentDiscardService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     @Autowired 
														 | 
														
														 | 
														
															     @Autowired 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     private RedisUtil redisUtil; 
														 | 
														
														 | 
														
															     private RedisUtil redisUtil; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1131,9 +1131,9 @@ public class XxlJobService { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return; 
														 | 
														
														 | 
														
															             return; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<String> contentIds = contentList.stream().map(Content::getId).collect(Collectors.toList()); 
														 | 
														
														 | 
														
															         List<String> contentIds = contentList.stream().map(Content::getId).collect(Collectors.toList()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        // 不存在状态置0 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        // 全量更新删除历史所有 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (findAll) { 
														 | 
														
														 | 
														
															         if (findAll) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            longArticleBaseMapper.updatePublishContentGzhWaitingStatus(planId, accountId, contentIds, 0, now); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            longArticleBaseMapper.deleteGzhWaitingByPlanIdAccountId(planId, accountId); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<PublishContentGzhWaiting> existList = publishContentGzhWaitingRepository.getByIdIn(contentIds); 
														 | 
														
														 | 
														
															         List<PublishContentGzhWaiting> existList = publishContentGzhWaitingRepository.getByIdIn(contentIds); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<String> existContentIds = existList.stream().map(PublishContentGzhWaiting::getId).collect(Collectors.toList()); 
														 | 
														
														 | 
														
															         List<String> existContentIds = existList.stream().map(PublishContentGzhWaiting::getId).collect(Collectors.toList()); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1141,16 +1141,8 @@ public class XxlJobService { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Collectors.toMap(PublishContentGzhWaiting::getId, Function.identity())); 
														 | 
														
														 | 
														
															                 Collectors.toMap(PublishContentGzhWaiting::getId, Function.identity())); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<PublishContentGzhWaiting> saveList = new ArrayList<>(); 
														 | 
														
														 | 
														
															         List<PublishContentGzhWaiting> saveList = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         for (Content content : contentList) { 
														 | 
														
														 | 
														
															         for (Content content : contentList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            // 已存在更新 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 已存在跳过 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if (existContentIds.contains(content.getId())) { 
														 | 
														
														 | 
														
															             if (existContentIds.contains(content.getId())) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                PublishContentGzhWaiting existItem = existMap.get(content.getId()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                if (existItem.getStatus().equals(0)) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    existItem.setStatus(1); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    existItem.setUpdateTimestamp(now); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                    publishContentGzhWaitingRepository.save(existItem); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-//                setPublishContentValue(existItem, content, planId, accountId, now); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-//                publishContentGzhWaitingRepository.save(existItem); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 continue; 
														 | 
														
														 | 
														
															                 continue; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             // 新增 
														 | 
														
														 | 
														
															             // 新增 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1224,6 +1216,10 @@ public class XxlJobService { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         log.info("ContentPreFilterJob success index:{} planId: {} accountId: {} filterContent: {}", 
														 | 
														
														 | 
														
															                         log.info("ContentPreFilterJob success index:{} planId: {} accountId: {} filterContent: {}", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                                 finalIndex, item.getPlanId(), item.getAccountId(), filterContentList.size()); 
														 | 
														
														 | 
														
															                                 finalIndex, item.getPlanId(), item.getAccountId(), filterContentList.size()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         recommendService.updateWaitingContentFilter(filterContentList); 
														 | 
														
														 | 
														
															                         recommendService.updateWaitingContentFilter(filterContentList); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        // 调用aigc publish_content待发布内容状态废弃 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        LongArticleSystemFilterSortParam param = new LongArticleSystemFilterSortParam(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        param.setFilterSortContentList(buildFilterSortContentList(filterResult)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                        aigcPublishContentDiscardService.filterSortContents(param); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                         success = true; 
														 | 
														
														 | 
														
															                         success = true; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     } 
														 | 
														
														 | 
														
															                     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 } catch (Exception e) { 
														 | 
														
														 | 
														
															                 } catch (Exception e) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -1247,6 +1243,17 @@ public class XxlJobService { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return ReturnT.SUCCESS; 
														 | 
														
														 | 
														
															         return ReturnT.SUCCESS; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    private List<LongArticleSystemFilterSortContentParam> buildFilterSortContentList(FilterResult filterResult) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        List<LongArticleSystemFilterSortContentParam> contentList = new ArrayList<>(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        for (Content filterContent : filterResult.getFilterContent()) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            LongArticleSystemFilterSortContentParam item = new LongArticleSystemFilterSortContentParam(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            item.setPublishContentId(filterContent.getId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            item.setFilterReason(filterContent.getFilterReason()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            contentList.add(item); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        return contentList; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     /** 
														 | 
														
														 | 
														
															     /** 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * 计算长字符串数字余数 
														 | 
														
														 | 
														
															      * 计算长字符串数字余数 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * @param numberStr 长字符串数字 
														 | 
														
														 | 
														
															      * @param numberStr 长字符串数字 
														 |