wangyunpeng 3 月之前
父節點
當前提交
0fdd0142ad

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

@@ -490,7 +490,7 @@ public class RecallService implements ApplicationContextAware {
                 .collect(Collectors.toMap(ArticleCategory::getTitleMd5, Function.identity(), (a, b) -> a));
         // 根据sourceId查询kimiSafeScore
         List<ProduceTaskAtom> safeScoreList = aigcBaseMapper.getProduceScoreByContentId(sourceIds);
-        Map<String, String> safeScoreMap = safeScoreList.stream()
+        Map<String, String> safeScoreMap = safeScoreList.stream().filter(o -> StringUtils.hasText(o.getOutput()))
                .collect(Collectors.toMap(ProduceTaskAtom::getPlanExeId, ProduceTaskAtom::getOutput));
 
         for (TitleHisCacheParam cacheParam : paramList) {