wangyunpeng пре 2 месеци
родитељ
комит
6e6403325e

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

@@ -241,6 +241,9 @@ public class DataDashboardService {
         for (List<PublishContentParam> partitions : Lists.partition(publishContentParamList, 100)) {
             publishContents.addAll(publishContentMapper.getPublishContentByTitle(partitions));
         }
+        if (CollectionUtils.isEmpty(publishContents)) {
+            return new ArrayList<>();
+        }
         log.info("newSortStrategyData publishContents finish");
         Map<String, Map<String, Map<Long, PublishContentDTO>>> publishContentMap = publishContents.stream()
                 .filter(o -> Objects.nonNull(o.getPublishTimestamp()))