use of com.megagao.production.ssm.domain.vo.COrderVO in project production_ssm by megagao.
the class OrderServiceImpl method searchOrderByProductName.
@Override
public EUDataGridResult searchOrderByProductName(int page, int rows, String productName) throws Exception {
// 分页处理
PageHelper.startPage(page, rows);
List<COrderVO> list = cOrderMapper.searchOrderByProductName(productName);
// 创建一个返回值对象
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.vo.COrderVO 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.vo.COrderVO 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.vo.COrderVO 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;
}
Aggregations