wangyunpeng 9 часов назад
Родитель
Сommit
e57b898eea

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

@@ -461,7 +461,7 @@ public class RecallService implements ApplicationContextAware {
         Set<String> ghIds = hisArticleList.stream().map(Article::getGhId).collect(Collectors.toSet());
         Set<String> appMsgIds = hisArticleList.stream().map(Article::getAppMsgId).collect(Collectors.toSet());
         List<Article> firstIndexHisArticleList = new ArrayList<>();
-        if (CollectionUtils.isEmpty(ghIds) || CollectionUtils.isEmpty(appMsgIds)) {
+        if (CollectionUtils.isNotEmpty(ghIds) && CollectionUtils.isNotEmpty(appMsgIds)) {
             firstIndexHisArticleList = articleMapper.getByGhIdInAndAppMsgIdInAndItemIndexAndTypeEqualsAndStatusEquals(
                     ghIds, appMsgIds, 1, type, 1);
         }