소스 검색

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

kindring 1 년 전
부모
커밋
2f61c6efb4
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/main/java/com/genersoft/iot/vmp/vmanager/gb28181/device/DeviceQuery.java

+ 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);
 	}
 
 	/**