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