|
@@ -174,6 +174,7 @@ public class IotDeviceController {
|
|
@Operation(summary = "获得设备台账分页")
|
|
@Operation(summary = "获得设备台账分页")
|
|
@PreAuthorize("@ss.hasPermission('rq:iot-device:query')")
|
|
@PreAuthorize("@ss.hasPermission('rq:iot-device:query')")
|
|
public CommonResult<PageResult<IotDeviceRespVO>> getIotDevicePage(@Valid IotDevicePageReqVO pageReqVO, @Valid SortablePageParam pageParam) {
|
|
public CommonResult<PageResult<IotDeviceRespVO>> getIotDevicePage(@Valid IotDevicePageReqVO pageReqVO, @Valid SortablePageParam pageParam) {
|
|
|
|
+ pageParam.getSortingFields().get(0).setField("sortColumn");
|
|
PageResult<IotDeviceDO> pageResult = iotDeviceService.getIotDevicePage(pageReqVO, pageParam);
|
|
PageResult<IotDeviceDO> pageResult = iotDeviceService.getIotDevicePage(pageReqVO, pageParam);
|
|
if (CollUtil.isEmpty(pageResult.getList())) {
|
|
if (CollUtil.isEmpty(pageResult.getList())) {
|
|
return success(new PageResult<>(pageResult.getTotal()));
|
|
return success(new PageResult<>(pageResult.getTotal()));
|