|
@@ -5,7 +5,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.xy.dto.DeviceRecordsDto;
|
|
|
import com.xy.entity.DeviceRecords;
|
|
|
-import com.xy.entity.DeviceTempRecords;
|
|
|
import com.xy.mapper.DeviceRecordsMapper;
|
|
|
import com.xy.utils.*;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -48,9 +47,10 @@ public class DeviceRecordsServiceImpl extends ServiceImpl<DeviceRecordsMapper, D
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
- @PostMapping("page")
|
|
|
+
|
|
|
@ApiOperation("分页查询")
|
|
|
- private R<PageBean<DeviceRecordsDto.Vo>> page(@RequestBody DeviceRecordsDto.Page page) {
|
|
|
+ @Override
|
|
|
+ public R<PageBean<DeviceRecordsDto.Vo>> page(DeviceRecordsDto.Page page) {
|
|
|
PageBean pageBean = page.getPage();
|
|
|
LambdaQueryWrapper<DeviceRecords> lambdaQueryWrapper = new MybatisPlusQuery().eqWrapper(page, DeviceRecords.class)
|
|
|
.ge(DeviceRecords::getCreateTime, page.getBeginCreateTime())
|