use of com.megagao.production.ssm.domain.DeviceCheck in project production_ssm by megagao.
the class DeviceCheckServiceImpl method getList.
@Override
public EUDataGridResult getList(int page, int rows, DeviceCheck deviceCheck) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<DeviceCheck> list = deviceCheckMapper.find(deviceCheck);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<DeviceCheck> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.megagao.production.ssm.domain.DeviceCheck in project production_ssm by megagao.
the class DeviceCheckServiceImpl method searchDeviceCheckByDeviceCheckId.
@Override
public EUDataGridResult searchDeviceCheckByDeviceCheckId(Integer page, Integer rows, String deviceCheckId) {
// 分页处理
PageHelper.startPage(page, rows);
List<DeviceCheck> list = deviceCheckMapper.searchDeviceCheckByDeviceCheckId(deviceCheckId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<DeviceCheck> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.megagao.production.ssm.domain.DeviceCheck in project production_ssm by megagao.
the class DeviceCheckServiceImpl method searchDeviceCheckByDeviceName.
@Override
public EUDataGridResult searchDeviceCheckByDeviceName(Integer page, Integer rows, String deviceName) {
// 分页处理
PageHelper.startPage(page, rows);
List<DeviceCheck> list = deviceCheckMapper.searchDeviceCheckByDeviceName(deviceName);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<DeviceCheck> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
Aggregations