|
@@ -9,6 +9,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.fyun.config.FYunFileConfig;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
+import com.fdkankan.job.entity.SceneCopyLog;
|
|
|
import com.fdkankan.job.entity.SceneMoveLog;
|
|
|
import com.fdkankan.job.entity.ScenePro;
|
|
|
import com.fdkankan.job.service.*;
|
|
@@ -46,6 +47,8 @@ public class RepairVideosHandler {
|
|
|
private FYunFileConfig fYunFileConfig;
|
|
|
@Autowired
|
|
|
private ISceneMoveLogService sceneMoveLogService;
|
|
|
+ @Autowired
|
|
|
+ private ISceneCopyLogService sceneCopyLogService;
|
|
|
|
|
|
|
|
|
@XxlJob("repairVideosHandler")
|
|
@@ -118,6 +121,11 @@ public class RepairVideosHandler {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
+ List<SceneCopyLog> copyList = sceneCopyLogService.list(new LambdaQueryWrapper<SceneCopyLog>().eq(SceneCopyLog::getNewNum, scenePro.getNum()));
|
|
|
+ if(CollUtil.isNotEmpty(copyList)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
upPath = JSONObject.parseObject(scenePro.getVideos()).getString("upPath").replace(fYunFileConfig.getHost(), "");
|
|
|
if (!fYunFileService.fileExist(upPath)) {
|
|
|
continue;
|