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