Prechádzať zdrojové kódy

每日发布-明细 过滤非系统发布内容

wangyunpeng 1 deň pred
rodič
commit
6d0745d9cf

+ 3 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/DataDashboardService.java

@@ -407,6 +407,9 @@ public class DataDashboardService {
             DatastatSortStrategy obj = new DatastatSortStrategy();
             obj.setType(articleType);
             List<ArticleDetailInfo> articleDetailInfos = articleDetailInfoMap.get(article.getWxSn());
+            if (CollectionUtils.isEmpty(articleDetailInfos)) {
+                continue;
+            }
             setObjArticleDetailInfo(article, obj, articleDetailInfos);
             Article firstArticle = articleMap.get(article.getGhId()).get(article.getAppMsgId()).get(1);
             Map<String, Map<String, PublishSortLog>> dateStrategy = sortStrategyMap.get(article.getGhId());