|
@@ -101,14 +101,14 @@ public class DeviceAttributeServiceImpl extends AbstractCrudService<DeviceAttrib
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public CommonPage<MonitorDeviceListVO> monitorDeviceList(String siteName ,Integer size,Integer current) {
|
|
|
- List<MonitorDeviceListVO> monitorDeviceListOne = baseMapper.monitorDeviceList(siteName,null,0);
|
|
|
+ public CommonPage<MonitorDeviceListVO> monitorDeviceList(String siteName ,String userName,String phone,Integer size,Integer current) {
|
|
|
+ List<MonitorDeviceListVO> monitorDeviceListOne = baseMapper.monitorDeviceList(siteName,userName,phone,null,0);
|
|
|
Integer total = 0;
|
|
|
if (monitorDeviceListOne.size()>0){
|
|
|
total = monitorDeviceListOne.size();
|
|
|
}
|
|
|
Integer startCurrent = (current - 1) * size;
|
|
|
- List<MonitorDeviceListVO> monitorDeviceList = baseMapper.monitorDeviceList(siteName,startCurrent,size);
|
|
|
+ List<MonitorDeviceListVO> monitorDeviceList = baseMapper.monitorDeviceList(siteName,userName,phone,startCurrent,size);
|
|
|
return new CommonPage<>(monitorDeviceList, total, size,current);
|
|
|
}
|
|
|
|