|
@@ -16,10 +16,7 @@ import com.tzld.longarticle.recommend.server.model.dto.CrawlerContent;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.PublishContentDTO;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.aigc.PublishAccount;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.crawler.PublishSortLog;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.longArticle.ArticlePoolPromotionSource;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.longArticle.DatastatSortStrategy;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.longArticle.PublishSingleVideoSource;
|
|
|
-import com.tzld.longarticle.recommend.server.model.entity.longArticle.VideoTitleReWrite;
|
|
|
+import com.tzld.longarticle.recommend.server.model.entity.longArticle.*;
|
|
|
import com.tzld.longarticle.recommend.server.model.param.PublishContentParam;
|
|
|
import com.tzld.longarticle.recommend.server.model.vo.IdNameVO;
|
|
|
import com.tzld.longarticle.recommend.server.model.vo.WxContentDetailResponse;
|
|
@@ -450,7 +447,7 @@ public class ArticlePromotionService {
|
|
|
upLevel.setUpLevelSource(singleVideoSource.getContentTraceId());
|
|
|
upLevel.setContentTraceId("video" + UUID.randomUUID().toString().replace("-", ""));
|
|
|
upLevel.setFlowPoolLevel(poolLevel);
|
|
|
- publishSingleVideoSourceRepository.save(upLevel);
|
|
|
+ upLevel = publishSingleVideoSourceRepository.save(upLevel);
|
|
|
|
|
|
List<VideoTitleReWrite> videoTitleReWrites = videoTitleReWriteRepository.getByContentTraceId(singleVideoSource.getContentTraceId());
|
|
|
if (CollectionUtils.isNotEmpty(videoTitleReWrites)) {
|
|
@@ -460,6 +457,15 @@ public class ArticlePromotionService {
|
|
|
videoTitleReWriteRepository.save(videoTitleReWrite);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ VideoEndScreenTransformationTask task = new VideoEndScreenTransformationTask();
|
|
|
+ task.setVideoOriginId(upLevel.getId());
|
|
|
+ task.setVideoOriginType("video_pool");
|
|
|
+ task.setTitle(upLevel.getArticleTitle());
|
|
|
+ task.setOssPath(upLevel.getVideoOssPath());
|
|
|
+ task.setStatus(0);
|
|
|
+ longArticleBaseMapper.saveVideoEndScreenTransformationTask(task);
|
|
|
+
|
|
|
promotionNum++;
|
|
|
}
|
|
|
ContentPoolEnum poolEnum = ContentPoolEnum.from(poolLevel);
|