浏览代码

Merge branch 'wyp/1225-bugFix' of Server/long-article-recommend into master

wangyunpeng 6 月之前
父节点
当前提交
1aca1eb269

+ 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()));