Browse Source

深时迁移,不在需要laserData

lyhzzz 1 year ago
parent
commit
1bb28de5d0

+ 0 - 9
src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

@@ -365,15 +365,6 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
 //            throw new BusinessException(ResultCode.MOVE_ERROR_COPY);
 //        }
 
-        if((cameraDetail.getType() == 10 || cameraDetail.getType() == 11) && status ==-2) {       //深时场景
-            //迁移深时 dataSource
-            File file = new File(dataSource + "_laserData");
-            if (!file.exists()) {
-                log.info("迁移失败--dataSource:{},sceneNum:{},toSnCode:{}",dataSource + "_laserData",param.getNum(),param.getSnCode());
-                throw new BusinessException(ResultCode.MOVE_ERROR);
-            }
-        }
-
         Long oldUseSpace = oldCameraDetail.getUsedSpace() - space < 0 ? 0 : oldCameraDetail.getUsedSpace() - space;
         if("GB".equals(oldCameraDetail.getUnit())){
             oldUseSpace = 1L;