From fd39fdd09509b8c7d975a966add3669518098cb7 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期五, 24 七月 2026 18:21:31 +0800
Subject: [PATCH] feat(quality): 添加质量检测默认单位设置

---
 src/main/java/com/ruoyi/device/controller/DeviceLedgerController.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/device/controller/DeviceLedgerController.java b/src/main/java/com/ruoyi/device/controller/DeviceLedgerController.java
index 298980e..4992cd4 100644
--- a/src/main/java/com/ruoyi/device/controller/DeviceLedgerController.java
+++ b/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璁惧鍒楄〃锛坕s_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)));
+    }
 }

--
Gitblit v1.9.3