Search in sources :

Example 1 with DeviceCheck

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

the class DeviceCheckServiceImpl method getList.

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

Example 2 with DeviceCheck

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

the class DeviceCheckServiceImpl method searchDeviceCheckByDeviceCheckId.

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

Example 3 with DeviceCheck

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

the class DeviceCheckServiceImpl method searchDeviceCheckByDeviceName.

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

Aggregations

PageInfo (com.github.pagehelper.PageInfo)3 DeviceCheck (com.megagao.production.ssm.domain.DeviceCheck)3 EUDataGridResult (com.megagao.production.ssm.domain.customize.EUDataGridResult)3