use of com.megagao.production.ssm.domain.customize.EUDataGridResult in project production_ssm by megagao.
the class MaterialServiceImpl method searchMaterialByMaterialId.
@Override
public EUDataGridResult searchMaterialByMaterialId(int page, int rows, String materialId) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<Material> list = materialMapper.searchMaterialByMaterialId(materialId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<Material> 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 OrderServiceImpl method searchOrderByOrderId.
@Override
public EUDataGridResult searchOrderByOrderId(int page, int rows, String orderId) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<COrderVO> list = cOrderMapper.searchOrderByOrderId(orderId);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<COrderVO> 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 OrderServiceImpl method getList.
@Override
public EUDataGridResult getList(int page, int rows, COrderVO cOrder) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<COrderVO> list = cOrderMapper.find(cOrder);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<COrderVO> 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 OrderServiceImpl method searchOrderByCustomName.
@Override
public EUDataGridResult searchOrderByCustomName(int page, int rows, String custonName) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<COrderVO> list = cOrderMapper.searchOrderByCustomName(custonName);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<COrderVO> 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 RoleServiceImpl method getList.
@Override
public EUDataGridResult getList(int page, int rows, RoleVO sysRole) throws Exception {
// 查询列表
SysRoleExample example = new SysRoleExample();
// 分页处理
PageHelper.startPage(page, rows);
List<RoleVO> list = sysRoleMapper.selectByExample(example);
// 创建一个返回值对象
EUDataGridResult result = new EUDataGridResult();
result.setRows(list);
// 取记录总条数
PageInfo<RoleVO> pageInfo = new PageInfo<>(list);
result.setTotal(pageInfo.getTotal());
return result;
}
Aggregations