| 
					
				 | 
			
			
				@@ -829,7 +829,7 @@ public class DataDashboardService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static void delFeishuSheet(HttpHeaders httpHeaders, String sheetId, Integer startRowIndex, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                       List<String> delDateStrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                      List<String> delDateStrList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (CollectionUtil.isEmpty(delDateStrList)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1013,6 +1013,7 @@ public class DataDashboardService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Map<String, Map<Integer, List<String>>> titleTypePoolMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Map<String, Set<String>> wxsnHisDistinctSetMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Map<String, List<String>> fansAccountTypeMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Map<String, List<String>> futurePromotionDistinctMap = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (DatastatSortStrategy data : newSortStrategyExportList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             String type = getArticleType(data, small); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Article article = articleMap.get(data.getWxSn()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1049,7 +1050,7 @@ public class DataDashboardService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             setPublishSourcePerformance(item, data, article, accountAvgInfoIndexMap, articleDetailInfoMap, publishSortLogMap, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     type, scoreHisPublishTimeMap, wxsnHisDistinctSetMap, list, poolLevel, small, hisPublishMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 发布未来表现 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            setPublishFuturePerformance(item, data, poolLevel, promotionSourceMap, futurePublishMap, small); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            setPublishFuturePerformance(item, data, poolLevel, promotionSourceMap, futurePublishMap, small, futurePromotionDistinctMap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             titles.add(data.getTitle()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             poolTitles.add(data.getTitle()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1113,18 +1114,23 @@ public class DataDashboardService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private void setPublishFuturePerformance(IntermediateIndicatorsExport item, DatastatSortStrategy data, Integer poolLevel, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              Map<String, ArticlePoolPromotionSource> promotionSourceMap, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              Map<String, List<Article>> futurePublishMap, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                             List<String> small) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                             List<String> small, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                             Map<String, List<String>> futurePromotionDistinctMap) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int futurePoolLevel = getPromotionPoolLevel(data.getGhId(), data, promotionSourceMap, small); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (futurePoolLevel > poolLevel) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (futurePoolLevel == 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.setPromotionCountL2(item.getPromotionCountL2() + 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.setPromotionRateL2((item.getPromotionCountL2() * 1.0) / item.getActualArticleReleaseCount()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } else if (futurePoolLevel == 3) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.setPromotionCountL3(item.getPromotionCountL3() + 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.setPromotionRateL3((item.getPromotionCountL3() * 1.0) / item.getActualArticleReleaseCount()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } else if (futurePoolLevel == 4) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.setPromotionCountL4(item.getPromotionCountL4() + 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.setPromotionRateL4((item.getPromotionCountL4() * 1.0) / item.getActualArticleReleaseCount()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (!futurePromotionDistinctMap.containsKey(item.getType()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    || !futurePromotionDistinctMap.get(item.getType()).contains(data.getTitle())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (futurePoolLevel == 2) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setPromotionCountL2(item.getPromotionCountL2() + 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setPromotionRateL2((item.getPromotionCountL2() * 1.0) / item.getActualArticleReleaseCount()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else if (futurePoolLevel == 3) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setPromotionCountL3(item.getPromotionCountL3() + 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setPromotionRateL3((item.getPromotionCountL3() * 1.0) / item.getActualArticleReleaseCount()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else if (futurePoolLevel == 4) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setPromotionCountL4(item.getPromotionCountL4() + 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    item.setPromotionRateL4((item.getPromotionCountL4() * 1.0) / item.getActualArticleReleaseCount()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                futurePromotionDistinctMap.computeIfAbsent(item.getType(), k -> new ArrayList<>()).add(data.getTitle()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<Article> futurePublishList = futurePublishMap.get(data.getTitle()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1245,8 +1251,8 @@ public class DataDashboardService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private List<DatastatSortStrategy> getNewSortStrategyExportList(List<Article> todayPublish, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                     Map<String, List<ArticleDetailInfo>> articleDetailInfoMap, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                                                     Map<String, Map<String, Map<String, AccountAvgInfo>>> accountAvgInfoIndexMap) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                    Map<String, List<ArticleDetailInfo>> articleDetailInfoMap, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                                                    Map<String, Map<String, Map<String, AccountAvgInfo>>> accountAvgInfoIndexMap) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<DatastatSortStrategy> result = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (Article article : todayPublish) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             DatastatSortStrategy obj = new DatastatSortStrategy(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1786,18 +1792,18 @@ public class DataDashboardService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (CollectionUtils.isNotEmpty(auditCheckDTOList)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 for (ProducePlanAuditCheckDTO producePlanAuditCheckDTO : auditCheckDTOList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (Objects.equals(producePlanAuditCheckDTO.getAuditStatus(), ProduceContentAuditStatusEnum.waiting.getVal())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        waitingAuditNum = producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        totalWaitingAuditNum += waitingAuditNum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        waitingAuditNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        totalWaitingAuditNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } else if (Objects.equals(producePlanAuditCheckDTO.getAuditStatus(), ProduceContentAuditStatusEnum.pass.getVal())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        yesterdayAuditPassNum = producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        totalAuditPassNum += yesterdayAuditPassNum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        yesterdayAuditPassNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        totalAuditPassNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         yesterdayAuditNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        totalAuditNum += yesterdayAuditNum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        totalAuditNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } else if (Objects.equals(producePlanAuditCheckDTO.getAuditStatus(), ProduceContentAuditStatusEnum.reject.getVal())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         yesterdayAuditNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        totalAuditNum += yesterdayAuditNum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        totalAuditNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         yesterdayAuditFailNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        totalAuditFailNum += yesterdayAuditFailNum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        totalAuditFailNum += producePlanAuditCheckDTO.getNum(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 |