Search in sources :

Example 1 with DeviceFault

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

the class DeviceFaultServiceImpl method searchDeviceFaultByDeviceFaultId.

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

Example 2 with DeviceFault

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

the class DeviceFaultServiceImpl method searchDeviceFaultByDeviceName.

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

Aggregations

PageInfo (com.github.pagehelper.PageInfo)2 DeviceFault (com.megagao.production.ssm.domain.DeviceFault)2 EUDataGridResult (com.megagao.production.ssm.domain.customize.EUDataGridResult)2