Search in sources :

Example 1 with COrderVO

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;
}
Also used : COrderVO(com.megagao.production.ssm.domain.vo.COrderVO) PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult)

Example 2 with COrderVO

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;
}
Also used : COrderVO(com.megagao.production.ssm.domain.vo.COrderVO) PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult)

Example 3 with COrderVO

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;
}
Also used : COrderVO(com.megagao.production.ssm.domain.vo.COrderVO) PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult)

Example 4 with COrderVO

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;
}
Also used : COrderVO(com.megagao.production.ssm.domain.vo.COrderVO) PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult)

Aggregations

PageInfo (com.github.pagehelper.PageInfo)4 EUDataGridResult (com.megagao.production.ssm.domain.customize.EUDataGridResult)4 COrderVO (com.megagao.production.ssm.domain.vo.COrderVO)4