ソースを参照

Merge branch 'wyp/1029-rootId' of Server/long-article-recommend into master

wangyunpeng 8 ヶ月 前
コミット
2623adcdf4

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

@@ -261,6 +261,11 @@ public class ArticleService {
         for (ArticlePoolPromotionSource task : tasks) {
             // 溯源
             Article article = articleRepository.getByWxSn(task.getWxSn());
+            if (Objects.isNull(article)) {
+                task.setDeleted(StatusEnum.SUCCESS.getCode());
+                articlePoolPromotionSourceRepository.save(task);
+                continue;
+            }
             PublishAccount publishAccount = publishAccountRepository.getByGhId(article.getGhId());
             if (Objects.isNull(publishAccount)) {
                 continue;