use of com.megagao.production.ssm.domain.customize.EUDataGridResult 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.megagao.production.ssm.domain.customize.EUDataGridResult 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.megagao.production.ssm.domain.customize.EUDataGridResult 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.megagao.production.ssm.domain.customize.EUDataGridResult 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.customize.EUDataGridResult in project production_ssm by megagao.
the class DeviceFaultServiceImpl method getList.
@Override
public EUDataGridResult getList(int page, int rows, DeviceFault deviceFault) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<DeviceFaultVO> list = deviceFaultMapper.find(deviceFault);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<DeviceFaultVO> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
Aggregations