Search in sources :

Example 1 with ManufactureVO

use of com.megagao.production.ssm.domain.vo.ManufactureVO in project production_ssm by megagao.

the class ManufactureServiceImpl method getList.

@Override
public EUDataGridResult getList(int page, int rows) throws Exception {
    // 分页处理
    PageHelper.startPage(page, rows);
    List<ManufactureVO> list = manufactureMapper.find();
    // 创建一个返回值对象
    EUDataGridResult result = new EUDataGridResult();
    result.setRows(list);
    // 取记录总条数
    PageInfo<ManufactureVO> pageInfo = new PageInfo<>(list);
    result.setTotal(pageInfo.getTotal());
    return result;
}
Also used : PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult) ManufactureVO(com.megagao.production.ssm.domain.vo.ManufactureVO)

Example 2 with ManufactureVO

use of com.megagao.production.ssm.domain.vo.ManufactureVO in project production_ssm by megagao.

the class ManufactureServiceImpl method searchManufactureByManufactureTechnologyName.

@Override
public EUDataGridResult searchManufactureByManufactureTechnologyName(Integer page, Integer rows, String manufactureTechnologyName) throws Exception {
    // 分页处理
    PageHelper.startPage(page, rows);
    List<ManufactureVO> list = manufactureMapper.searchManufactureByManufactureTechnologyName(manufactureTechnologyName);
    // 创建一个返回值对象
    EUDataGridResult result = new EUDataGridResult();
    result.setRows(list);
    // 取记录总条数
    PageInfo<ManufactureVO> pageInfo = new PageInfo<>(list);
    result.setTotal(pageInfo.getTotal());
    return result;
}
Also used : PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult) ManufactureVO(com.megagao.production.ssm.domain.vo.ManufactureVO)

Example 3 with ManufactureVO

use of com.megagao.production.ssm.domain.vo.ManufactureVO in project production_ssm by megagao.

the class ManufactureServiceImpl method searchManufactureByManufactureSn.

@Override
public EUDataGridResult searchManufactureByManufactureSn(Integer page, Integer rows, String manufactureSn) throws Exception {
    // 分页处理
    PageHelper.startPage(page, rows);
    List<ManufactureVO> list = manufactureMapper.searchManufactureByManufactureSn(manufactureSn);
    // 创建一个返回值对象
    EUDataGridResult result = new EUDataGridResult();
    result.setRows(list);
    // 取记录总条数
    PageInfo<ManufactureVO> pageInfo = new PageInfo<>(list);
    result.setTotal(pageInfo.getTotal());
    return result;
}
Also used : PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult) ManufactureVO(com.megagao.production.ssm.domain.vo.ManufactureVO)

Example 4 with ManufactureVO

use of com.megagao.production.ssm.domain.vo.ManufactureVO in project production_ssm by megagao.

the class ManufactureServiceImpl method searchManufactureByManufactureOrderId.

@Override
public EUDataGridResult searchManufactureByManufactureOrderId(Integer page, Integer rows, String manufactureOrderId) throws Exception {
    // 分页处理
    PageHelper.startPage(page, rows);
    List<ManufactureVO> list = manufactureMapper.searchManufactureByManufactureOrderId(manufactureOrderId);
    // 创建一个返回值对象
    EUDataGridResult result = new EUDataGridResult();
    result.setRows(list);
    // 取记录总条数
    PageInfo<ManufactureVO> pageInfo = new PageInfo<>(list);
    result.setTotal(pageInfo.getTotal());
    return result;
}
Also used : PageInfo(com.github.pagehelper.PageInfo) EUDataGridResult(com.megagao.production.ssm.domain.customize.EUDataGridResult) ManufactureVO(com.megagao.production.ssm.domain.vo.ManufactureVO)

Aggregations

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