use of com.github.pagehelper.PageInfo in project production_ssm by megagao.
the class ProductServiceImpl method searchProductByProductType.
@Override
public EUDataGridResult searchProductByProductType(int page, int rows, String productType) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<Product> list = productMapper.searchProductByProductType(productType);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<Product> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.github.pagehelper.PageInfo in project production_ssm by megagao.
the class TechnologyPlanServiceImpl method searchTechnologyPlanByTechnologyPlanId.
@Override
public EUDataGridResult searchTechnologyPlanByTechnologyPlanId(Integer page, Integer rows, String technologyPlanId) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<TechnologyPlan> list = technologyPlanMapper.searchTechnologyPlanByTechnologyPlanId(technologyPlanId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<TechnologyPlan> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.github.pagehelper.PageInfo in project production_ssm by megagao.
the class DepartmentServiceImpl method searchDepartmentByDepartmentId.
@Override
public EUDataGridResult searchDepartmentByDepartmentId(Integer page, Integer rows, String departmentId) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<Department> list = departmentMapper.searchDepartmentByDepartmentId(departmentId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<Department> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.github.pagehelper.PageInfo in project production_ssm by megagao.
the class DepartmentServiceImpl method searchDepartmentByDepartmentName.
@Override
public EUDataGridResult searchDepartmentByDepartmentName(Integer page, Integer rows, String departmentName) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<Department> list = departmentMapper.searchDepartmentByDepartmentName(departmentName);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<Department> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
use of com.github.pagehelper.PageInfo 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;
}
Aggregations