Search in sources :

Example 1 with DeviceType

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

the class DeviceTypeServiceImpl method searchDeviceTypeByDeviceTypeId.

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

Example 2 with DeviceType

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

the class DeviceTypeServiceImpl method getList.

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

Example 3 with DeviceType

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

the class DeviceTypeServiceImpl method searchDeviceTypeByDeviceTypeName.

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

Aggregations

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