|
|
@@ -97,6 +97,10 @@ public class VideoGenerateJob {
|
|
|
if (produceCount == 0) {
|
|
|
break;
|
|
|
}
|
|
|
+ Long exist = countProcessionVideo(content.getId());
|
|
|
+ if (exist > 0) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
produceCount--;
|
|
|
// 检查是否存在模型
|
|
|
List<AiModelTts> ttsList = ttsMapper.selectByExample(new AiModelTtsExample());
|
|
|
@@ -142,6 +146,12 @@ public class VideoGenerateJob {
|
|
|
return produceVideoMapper.countByExample(example);
|
|
|
}
|
|
|
|
|
|
+ private Long countProcessionVideo(Long contentId) {
|
|
|
+ ProduceVideoExample example = new ProduceVideoExample();
|
|
|
+ example.createCriteria().andContentIdEqualTo(contentId);
|
|
|
+ return produceVideoMapper.countByExample(example);
|
|
|
+ }
|
|
|
+
|
|
|
@Getter
|
|
|
@Setter
|
|
|
@Accessors(chain = true)
|