13 小时以前 b22ebe8fad1691b35adcf321fe2e136795b3f81d
src/main/java/com/ruoyi/device/controller/DeviceLedgerController.java
@@ -113,4 +113,13 @@
        deviceLedger.setCreateTime(deviceLedger.getUpdateTime().plusMonths(1));//下次维护时间
        return AjaxResult.success(deviceLedger);
    }
    @GetMapping("iotDeviceList")
    @Operation(summary = "获取IoT设备列表(is_iot_device=1)")
    public AjaxResult iotDeviceList() {
        return AjaxResult.success(deviceLedgerMapper.selectList(
                new QueryWrapper<DeviceLedger>().lambda()
                        .eq(DeviceLedger::getIsIotDevice, 1)
                        .select(DeviceLedger::getId, DeviceLedger::getDeviceName, DeviceLedger::getStorageLocation)));
    }
}