wangyunpeng 11 月之前
父節點
當前提交
b0195c0b11

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recall/RecallService.java

@@ -134,7 +134,7 @@ public class RecallService implements ApplicationContextAware {
         if (CollectionUtils.isEmpty(categoryList)) {
             return;
         }
-        Map<String, List<String>> categoryMap = categoryList.stream().collect(Collectors.groupingBy(CrawlerMetaArticle::getChannelContentId,
+        Map<String, List<String>> categoryMap = categoryList.stream().collect(Collectors.groupingBy(CrawlerMetaArticle::getUniqueIndex,
                 Collectors.mapping(CrawlerMetaArticle::getCategory, Collectors.toList())));
         for (Content content : contentList) {
             String md5 = articleMd5Map.get(content.getId());