修复兼容接口查询通道列表查询
parent
89956873d7
commit
a4c93cf613
|
@ -114,8 +114,9 @@ public class ApiDeviceController {
|
||||||
deviceChannels = storager.queryChannelsByDeviceId(serial);
|
deviceChannels = storager.queryChannelsByDeviceId(serial);
|
||||||
result.put("ChannelCount", deviceChannels.size());
|
result.put("ChannelCount", deviceChannels.size());
|
||||||
}else {
|
}else {
|
||||||
PageInfo<DeviceChannel> pageResult = storager.queryChannelsByDeviceId(serial, null, null, null,start/limit, limit);
|
start ++;
|
||||||
result.put("ChannelCount", pageResult.getTotal());
|
PageInfo pageResult = storager.queryChannelsByDeviceId(serial, null, null, null,start, limit);
|
||||||
|
result.put("ChannelCount", pageResult.getList().size());
|
||||||
deviceChannels = pageResult.getList();
|
deviceChannels = pageResult.getList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue