| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.DeviceMaintainDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.DeviceMaintainMapper; |
| | |
| | | public Response getPageByCondition(Integer pageNum, Integer pageSize, DeviceMaintainDTO maintainDTO) { |
| | | PageHelper.startPage(pageNum,pageSize); |
| | | List<DeviceMaintain> deviceMaintainList = mapper.getPageByCondition(maintainDTO); |
| | | return new Response().set(1,deviceMaintainList); |
| | | PageInfo<DeviceMaintain> deviceMaintainPageInfo = new PageInfo<>(deviceMaintainList); |
| | | return new Response().set(1,deviceMaintainPageInfo); |
| | | } |
| | | } |