|
@@ -43,29 +43,29 @@ public class TdRawDeviceController extends BaseController {
|
43
|
43
|
// return ResponseBean.success(tdRawDeviceService.getById(id));
|
44
|
44
|
// }
|
45
|
45
|
|
46
|
|
- /**
|
47
|
|
- * 分页查询
|
48
|
|
- *
|
49
|
|
- * @param pageNum 当前页码
|
50
|
|
- * @param pageSize 每页条数
|
51
|
|
- * @return 查询结果
|
52
|
|
- */
|
53
|
|
- @ApiOperation("分页查询")
|
54
|
|
- @GetMapping("/admin/raw-device")
|
55
|
|
- public ResponseBean list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
56
|
|
- @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
|
57
|
|
- @ApiParam("设备分类") @RequestParam(value = "deviceKind", required = false) String deviceKind,
|
58
|
|
- @ApiParam("设备状态") @RequestParam(value = "deviceStatus", required = false) Integer deviceStatus) throws Exception {
|
59
|
|
-
|
60
|
|
- IPage<TdRawDevice> pg = new Page<>(pageNum, pageSize);
|
61
|
|
- QueryWrapper<TdRawDevice> queryWrapper = new QueryWrapper<>();
|
62
|
|
- queryWrapper.eq(!StringUtils.isEmpty(deviceKind), "device_kind", deviceKind);
|
63
|
|
- queryWrapper.eq(null != deviceStatus, "device_status", deviceStatus);
|
64
|
|
- queryWrapper.orderByDesc("create_date");
|
65
|
|
- IPage<TdRawDevice> result = tdRawDeviceService.page(pg);
|
66
|
|
-
|
67
|
|
- return ResponseBean.success(result);
|
68
|
|
- }
|
|
46
|
+// /**
|
|
47
|
+// * 分页查询
|
|
48
|
+// *
|
|
49
|
+// * @param pageNum 当前页码
|
|
50
|
+// * @param pageSize 每页条数
|
|
51
|
+// * @return 查询结果
|
|
52
|
+// */
|
|
53
|
+// @ApiOperation("分页查询")
|
|
54
|
+// @GetMapping("/admin/raw-device")
|
|
55
|
+// public ResponseBean list(@ApiParam("页码") @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
56
|
+// @ApiParam("单页数据量") @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
|
|
57
|
+// @ApiParam("设备分类") @RequestParam(value = "deviceKind", required = false) String deviceKind,
|
|
58
|
+// @ApiParam("设备状态") @RequestParam(value = "deviceStatus", required = false) Integer deviceStatus) throws Exception {
|
|
59
|
+//
|
|
60
|
+// IPage<TdRawDevice> pg = new Page<>(pageNum, pageSize);
|
|
61
|
+// QueryWrapper<TdRawDevice> queryWrapper = new QueryWrapper<>();
|
|
62
|
+// queryWrapper.eq(!StringUtils.isEmpty(deviceKind), "device_kind", deviceKind);
|
|
63
|
+// queryWrapper.eq(null != deviceStatus, "device_status", deviceStatus);
|
|
64
|
+// queryWrapper.orderByDesc("create_date");
|
|
65
|
+// IPage<TdRawDevice> result = tdRawDeviceService.page(pg);
|
|
66
|
+//
|
|
67
|
+// return ResponseBean.success(result);
|
|
68
|
+// }
|
69
|
69
|
|
70
|
70
|
// /**
|
71
|
71
|
// * 新增数据
|