Procházet zdrojové kódy

fix: 修复全部查询异常问题

kindring před 1 rokem
rodič
revize
2f61c6efb4

+ 4 - 2
src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java

@@ -276,8 +276,10 @@ public class DeviceQuery {
 
 //		if (page == null) page = 0;
 //		if (count == null) count = 20;
-
-		return storager.queryVideoDeviceList(page, count,online);
+		if(online){
+			return storager.queryVideoDeviceList(page, count, online);
+		}
+		return storager.queryVideoDeviceList(page, count, null);
 	}
 
 	/**