Commit a4c93cf6138d2a92cea618a0b628364bc402adf7
1 parent
89956873
修复兼容接口查询通道列表查询
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/genersoft/iot/vmp/web/gb28181/ApiDeviceController.java
| ... | ... | @@ -114,8 +114,9 @@ public class ApiDeviceController { |
| 114 | 114 | deviceChannels = storager.queryChannelsByDeviceId(serial); |
| 115 | 115 | result.put("ChannelCount", deviceChannels.size()); |
| 116 | 116 | }else { |
| 117 | - PageInfo<DeviceChannel> pageResult = storager.queryChannelsByDeviceId(serial, null, null, null,start/limit, limit); | |
| 118 | - result.put("ChannelCount", pageResult.getTotal()); | |
| 117 | + start ++; | |
| 118 | + PageInfo pageResult = storager.queryChannelsByDeviceId(serial, null, null, null,start, limit); | |
| 119 | + result.put("ChannelCount", pageResult.getList().size()); | |
| 119 | 120 | deviceChannels = pageResult.getList(); |
| 120 | 121 | } |
| 121 | 122 | ... | ... |