修复兼容接口查询通道列表查询

This commit is contained in:
648540858 2021-12-27 18:07:21 +08:00
parent e5cdd60203
commit ac5921122a

View File

@ -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();
} }