use of com.megagao.production.ssm.domain.DeviceFault in project production_ssm by megagao.
the class DeviceFaultServiceImpl method searchDeviceFaultByDeviceFaultId.
@Override
public EUDataGridResult searchDeviceFaultByDeviceFaultId(Integer page, Integer rows, String deviceFaultId) {
// 分页处理
PageHelper.startPage(page, rows);
List<DeviceFault> list = deviceFaultMapper.searchDeviceFaultByDeviceFaultId(deviceFaultId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<DeviceFault> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.megagao.production.ssm.domain.DeviceFault in project production_ssm by megagao.
the class DeviceFaultServiceImpl method searchDeviceFaultByDeviceName.
@Override
public EUDataGridResult searchDeviceFaultByDeviceName(Integer page, Integer rows, String deviceName) {
// 分页处理
PageHelper.startPage(page, rows);
List<DeviceFault> list = deviceFaultMapper.searchDeviceFaultByDeviceName(deviceName);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<DeviceFault> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
Aggregations