修复兼容接口查询通道列表查询
This commit is contained in:
parent
89956873d7
commit
a4c93cf613
@ -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…
Reference in New Issue
Block a user