|
@@ -604,6 +604,10 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
IncrementType incrementType = incrementTypeService.getById(userIncrement.getIncrementTypeId());
|
|
|
totalSpace = incrementType.getCameraCapacity() * 1024 * 1024 * 1024L;
|
|
|
}
|
|
|
+ if(detailEntity.getType() == 10 || detailEntity.getType() == 11){
|
|
|
+ totalSpace = -1L;
|
|
|
+ }
|
|
|
+
|
|
|
Long needSpace = 0L;
|
|
|
if(scenePro != null){
|
|
|
needSpace = scenePro.getSpace();
|
|
@@ -614,14 +618,11 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
needSpace = scenePlusExt.getSpace();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if( totalSpace > 0 && detailEntity.getUsedSpace() + needSpace > totalSpace){
|
|
|
throw new BusinessException(ResultCode.CAMERA_SPACE_ERROR);
|
|
|
}
|
|
|
|
|
|
-// if(detailEntity.getType() == 10 ){
|
|
|
-// throw new BusinessException(ResultCode.SS_NO_COPY);
|
|
|
-// }
|
|
|
-
|
|
|
HashMap<String, Object> param = new HashMap<>();
|
|
|
param.put("num",sceneNum);
|
|
|
fdKKClient.copyScene(param,"m_a_n_a_g_e");
|