use of com.megagao.production.ssm.domain.customize.EUDataGridResult in project production_ssm by megagao.
the class DeviceServiceImpl method getList.
@Override
public EUDataGridResult getList(int page, int rows, Device device) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<Device> list = deviceMapper.find(device);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<Device> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.megagao.production.ssm.domain.customize.EUDataGridResult in project production_ssm by megagao.
the class EmployeeServiceImpl method getList.
@Override
public EUDataGridResult getList(int page, int rows, EmployeeVO employee) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<EmployeeVO> list = employeeMapper.find();
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<EmployeeVO> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.megagao.production.ssm.domain.customize.EUDataGridResult in project production_ssm by megagao.
the class ManufactureServiceImpl method searchManufactureByManufactureSn.
@Override
public EUDataGridResult searchManufactureByManufactureSn(Integer page, Integer rows, String manufactureSn) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<ManufactureVO> list = manufactureMapper.searchManufactureByManufactureSn(manufactureSn);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<ManufactureVO> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.megagao.production.ssm.domain.customize.EUDataGridResult in project production_ssm by megagao.
the class ManufactureServiceImpl method searchManufactureByManufactureOrderId.
@Override
public EUDataGridResult searchManufactureByManufactureOrderId(Integer page, Integer rows, String manufactureOrderId) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<ManufactureVO> list = manufactureMapper.searchManufactureByManufactureOrderId(manufactureOrderId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<ManufactureVO> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.megagao.production.ssm.domain.customize.EUDataGridResult in project production_ssm by megagao.
the class MaterialReceiveServiceImpl method searchMaterialReceiveByMaterialId.
@Override
public EUDataGridResult searchMaterialReceiveByMaterialId(int page, int rows, String materialId) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<MaterialReceiveVO> list = materialReceiveMapper.searchMaterialReceiveByMaterialId(materialId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<MaterialReceiveVO> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
Aggregations