|
@@ -411,7 +411,11 @@ public class ArticlePromotionService {
|
|
|
continue;
|
|
|
}
|
|
|
PublishSingleVideoSource singleVideoSource = publishSingleVideoSourceRepository.getByContentTraceId(sourceId);
|
|
|
- if (singleVideoSource == null) {
|
|
|
+ if (Objects.isNull(singleVideoSource)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ PublishSingleVideoSource exists = publishSingleVideoSourceRepository.getByUpLevelSource(sourceId);
|
|
|
+ if (Objects.nonNull(exists)) {
|
|
|
continue;
|
|
|
}
|
|
|
PublishSingleVideoSource upLevel = new PublishSingleVideoSource();
|
|
@@ -420,6 +424,7 @@ public class ArticlePromotionService {
|
|
|
singleVideoSource.setUpLevelTimestamp(System.currentTimeMillis() / 1000);
|
|
|
publishSingleVideoSourceRepository.save(singleVideoSource);
|
|
|
upLevel.setId(null);
|
|
|
+ upLevel.setUpLevelSource(singleVideoSource.getContentTraceId());
|
|
|
upLevel.setContentTraceId("video" + UUID.randomUUID().toString().replace("-", ""));
|
|
|
upLevel.setFlowPoolLevel(poolLevel);
|
|
|
publishSingleVideoSourceRepository.save(upLevel);
|