|
@@ -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.SceneMoveLog;
|
|
|
import com.fdkankan.job.entity.ScenePro;
|
|
|
import com.fdkankan.job.service.*;
|
|
|
import com.fdkankan.model.constants.ConstantFilePath;
|
|
@@ -43,6 +44,8 @@ public class RepairVideosHandler {
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
@Autowired
|
|
|
private FYunFileConfig fYunFileConfig;
|
|
|
+ @Autowired
|
|
|
+ private ISceneMoveLogService sceneMoveLogService;
|
|
|
|
|
|
|
|
|
@XxlJob("repairVideosHandler")
|
|
@@ -108,6 +111,13 @@ public class RepairVideosHandler {
|
|
|
.orderByDesc(ScenePro::getCreateTime));
|
|
|
if (CollUtil.isNotEmpty(v3List)) {
|
|
|
for (ScenePro scenePro : v3List) {
|
|
|
+
|
|
|
+ //查询是否做过场景迁移
|
|
|
+ List<SceneMoveLog> moveList = sceneMoveLogService.list(new LambdaQueryWrapper<SceneMoveLog>().eq(SceneMoveLog::getNum, scenePro.getNum()));
|
|
|
+ if(CollUtil.isNotEmpty(moveList)){
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
upPath = JSONObject.parseObject(scenePro.getVideos()).getString("upPath").replace(fYunFileConfig.getHost(), "");
|
|
|
if (!fYunFileService.fileExist(upPath)) {
|
|
|
continue;
|