Преглед на файлове

文章晋级溯源问题修复

wangyunpeng преди 7 месеца
родител
ревизия
b56267e0db

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

@@ -1,7 +1,9 @@
 package com.tzld.longarticle.recommend.server.service.recommend;
 
 import com.ctrip.framework.apollo.spring.annotation.ApolloJsonValue;
+import com.tzld.longarticle.recommend.server.common.enums.StatusEnum;
 import com.tzld.longarticle.recommend.server.common.enums.aigc.CrawlerModeEnum;
+import com.tzld.longarticle.recommend.server.common.enums.recommend.ArticlePoolPromotionSourceStatusEnum;
 import com.tzld.longarticle.recommend.server.common.enums.recommend.FeishuRobotIdEnum;
 import com.tzld.longarticle.recommend.server.mapper.longArticle.LongArticleBaseMapper;
 import com.tzld.longarticle.recommend.server.model.entity.aigc.PublishAccount;
@@ -313,6 +315,8 @@ public class ArticlePromotionService {
             articlePromotion.setTitle(title);
             articlePromotion.setTitleMd5(Md5Util.encoderByMd5(title));
             articlePromotion.setCreateTimestamp(System.currentTimeMillis());
+            articlePromotion.setStatus(ArticlePoolPromotionSourceStatusEnum.WAITING.getCode());
+            articlePromotion.setDeleted(StatusEnum.ZERO.getCode());
         }
         articlePromotion.setWxSn(wxSn);
         articlePromotion.setLevel(level);

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

@@ -338,7 +338,7 @@ public class ArticleService {
                         item.setChannelContentId(midChannelContentId);
                         item.setCreateTimestamp(item.getUpdateTimestamp());
                     }
-                    item.setDeleted(0);
+                    item.setDeleted(StatusEnum.ZERO.getCode());
                     articlePoolPromotionSourceRepository.save(item);
                 }
                 longArticleBaseMapper.updateRootProduceContentLevel(task.getRootProduceContentId(), task.getLevel());