修复兼容接口查询通道列表查询
This commit is contained in:
parent
e5cdd60203
commit
ac5921122a
@ -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
Block a user