lyhzzz 2 years ago
parent
commit
907643bff5

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

@@ -283,7 +283,7 @@ public class CameraDetailServiceImpl extends ServiceImpl<ICameraDetailMapper, Ca
             if(incrementType!=null && incrementType.getCameraCapacity() == -1){
                 return true;
             }
-            totalSpace = incrementType != null ?incrementType.getCameraCapacity()  * 1024 * 1024 * 1024: detailEntity.getTotalSpace();
+            totalSpace = incrementType != null ?incrementType.getCameraCapacity()  * 1024 * 1024 * 1024L: detailEntity.getTotalSpace();
             return detailEntity.getUsedSpace() + space <= totalSpace ;
         }
         return false;
@@ -300,7 +300,7 @@ public class CameraDetailServiceImpl extends ServiceImpl<ICameraDetailMapper, Ca
             if(incrementType!=null && incrementType.getCameraCapacity() == -1){
                 return -1L;
             }
-            return incrementType != null ?incrementType.getCameraCapacity() * 1024 * 1024 * 1024: detailEntity.getTotalSpace();
+            return incrementType != null ?incrementType.getCameraCapacity() * 1024 * 1024 * 1024L: detailEntity.getTotalSpace();
         }
         return 0L;
     }