Browse Source

Merge branch 'test'

lyhzzz 2 years ago
parent
commit
7d98258290

+ 0 - 3
src/main/java/com/fdkankan/manage/service/impl/CameraVersionServiceImpl.java

@@ -170,9 +170,6 @@ public class CameraVersionServiceImpl extends ServiceImpl<ICameraVersionMapper,
         if(cameraVersion == null){
         if(cameraVersion == null){
             throw new BusinessException(ResultCode.CAMERA_VERSION_NOT_EXIST);
             throw new BusinessException(ResultCode.CAMERA_VERSION_NOT_EXIST);
         }
         }
-        if(param.getDescription().length() >255){
-            throw new BusinessException(ResultCode.CAMERA_VERSION_NOT_EXIST);
-        }
         if(StringUtils.isNotBlank(param.getStatus()) && !param.getStatus().equals(cameraVersion.getStatus())){
         if(StringUtils.isNotBlank(param.getStatus()) && !param.getStatus().equals(cameraVersion.getStatus())){
             if(StringUtils.isBlank(param.getStatus()) || param.getType() == null){
             if(StringUtils.isBlank(param.getStatus()) || param.getType() == null){
                 throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
                 throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);

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

@@ -142,7 +142,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
                 if(incrementType.getCameraCapacity() == -1){
                 if(incrementType.getCameraCapacity() == -1){
                     totalSpace   = -1L;
                     totalSpace   = -1L;
                 }else {
                 }else {
-                    totalSpace = incrementType.getCameraCapacity() * 1024 * 1024L;
+                    totalSpace = incrementType.getCameraCapacity() * 1024* 1024 * 1024L;
                 }
                 }
             }
             }
         }
         }
@@ -348,7 +348,7 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
                 if(incrementType.getCameraCapacity() == -1){
                 if(incrementType.getCameraCapacity() == -1){
                     totalSpace   = -1L;
                     totalSpace   = -1L;
                 }else {
                 }else {
-                    totalSpace = incrementType.getCameraCapacity() * 1024 * 1024L;
+                    totalSpace = incrementType.getCameraCapacity() * 1024 *1024 * 1024L;
                 }
                 }
             }
             }
         }
         }