From f373bbf83d9d2a7e5f96118d7dcd658c9fea8bc8 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 14 八月 2025 17:27:44 +0800
Subject: [PATCH] 2025.8.14 1. 新增文件导入场景信息接口 2. 新增导出接口文档接口

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/DeviceMapVo.kt |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/DeviceMapVo.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/DeviceMapVo.kt
index 8d8c370..888981f 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/DeviceMapVo.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/DeviceMapVo.kt
@@ -37,6 +37,7 @@
                     svUserName = it.svUserName
                     tzUserId = it.tzUserId
                     tzUserName = it.tzUserName
+                    createTime = it.createTime
                 })
             }
             return res
@@ -53,6 +54,7 @@
                     svUserName = it.svUserName
                     tzUserId = it.tzUserId
                     tzUserName = it.tzUserName
+                    createTime = it.createTime
                 })
             }
             return res
@@ -69,9 +71,35 @@
                     svUserName = it.svUserName
                     tzUserId = it.tzUserId
                     tzUserName = it.tzUserName
+                    createTime = it.createTime
                 })
             }
             return res
         }
     }
+}
+
+/**
+ * 鏍规嵁璁惧mn缂栫爜鎵惧埌瀵瑰簲鍏崇郴
+ */
+fun List<DeviceMapVo>.findByDeviceCode(code: String?): DeviceMapVo? {
+    this.forEach {
+        if (it.deviceCode == code) {
+            return it
+        }
+    }
+    return null
+}
+
+/**
+ * 鏍规嵁椋炵窘鐩戠绯荤粺鐢ㄦ埛id鎵惧埌瀵瑰簲鍏崇郴
+ */
+fun List<DeviceMapVo>.findBySVUserId(svUserId: String?): List<DeviceMapVo> {
+    val res = mutableListOf<DeviceMapVo>()
+    this.forEach {
+        if (it.svUserId == svUserId) {
+            res.add(it)
+        }
+    }
+    return res
 }
\ No newline at end of file

--
Gitblit v1.9.3