Sfoglia il codice sorgente

相机容量 long类型

lyhzzz 2 anni fa
parent
commit
32f095b965

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

@@ -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;
     }
     }

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -1,6 +1,6 @@
 spring:
 spring:
   profiles:
   profiles:
-    active: dev
+    active: test-eur
 server:
 server:
   port: 8082
   port: 8082
   servlet:
   servlet: