Browse Source

修复兼容接口查询通道列表查询

pull/295/head
648540858 3 years ago
parent
commit
a4c93cf613
  1. 5
      src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java

5
src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java

@ -114,8 +114,9 @@ public class ApiDeviceController {
deviceChannels = storager.queryChannelsByDeviceId(serial);
result.put("ChannelCount", deviceChannels.size());
}else {
PageInfo<DeviceChannel> pageResult = storager.queryChannelsByDeviceId(serial, null, null, null,start/limit, limit);
result.put("ChannelCount", pageResult.getTotal());
start ++;
PageInfo pageResult = storager.queryChannelsByDeviceId(serial, null, null, null,start, limit);
result.put("ChannelCount", pageResult.getList().size());
deviceChannels = pageResult.getList();
}

Loading…
Cancel
Save