wangyunpeng il y a 6 mois
Parent
commit
888a6a05c7

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

@@ -427,6 +427,9 @@ public class ArticleAuditService {
                                  Map<String, PublishAccountTypeDTO> accountTypeMap) {
         List<String> publishContentIds = alarmList.stream().map(o -> o.getString("publishContentId"))
                 .collect(Collectors.toList());
+        if (CollectionUtils.isEmpty(publishContentIds)) {
+            return;
+        }
         List<PublishContentDTO> publishContents = aigcBaseMapper.getPublishContentByIdIn(publishContentIds);
         Map<String, PublishContentDTO> publishContentMap = publishContents.stream()
                 .collect(Collectors.toMap(PublishContentDTO::getId, Function.identity()));