소스 검색

深时,深光复制,不限制容量

lyhzzz 2 년 전
부모
커밋
747b0702ae
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

+ 5 - 4
src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

@@ -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");