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