|
@@ -186,6 +186,9 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
@Autowired
|
|
@Autowired
|
|
private ISceneColdStorageLogService sceneColdStorageLogService;
|
|
private ISceneColdStorageLogService sceneColdStorageLogService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISceneColdStorageService sceneColdStorageService;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public SceneFileBuild findByFileId(String fileId) {
|
|
public SceneFileBuild findByFileId(String fileId) {
|
|
|
|
|
|
@@ -1173,10 +1176,10 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
cameraId = scenePro.getCameraId();
|
|
cameraId = scenePro.getCameraId();
|
|
}
|
|
}
|
|
|
|
|
|
- //查询最后一次计算时间后是否冻结,如果是,则不支持重算
|
|
|
|
- List<SceneColdStorageLog> sceneColdStorageLogList = sceneColdStorageLogService.listFreezeByNumAfterLastCall(num, laseCallTime);
|
|
|
|
- if(CollUtil.isNotEmpty(sceneColdStorageLogList)){
|
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_5072);
|
|
|
|
|
|
+ //查询场景是否处于冻结状态,如果已冻结,不允许重算
|
|
|
|
+ SceneColdStorage sceneColdStorage = sceneColdStorageService.getOne(new LambdaQueryWrapper<SceneColdStorage>().eq(SceneColdStorage::getNum, num).eq(SceneColdStorage::getState, 1));
|
|
|
|
+ if(Objects.nonNull(sceneColdStorage)){
|
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_5074);
|
|
}
|
|
}
|
|
|
|
|
|
//查询最后一次计算时间后是否有删除过目录,如果有,则不支持重算
|
|
//查询最后一次计算时间后是否有删除过目录,如果有,则不支持重算
|