From 72a384981ec78139dbe919597b54efedcc7f33aa Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 27 九月 2024 17:42:55 +0800
Subject: [PATCH] 1. 新增评估结果批量修改相关接口

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

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/ScenseVo.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/ScenseVo.kt
index 97a0a03..45e3a5b 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/ScenseVo.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/ScenseVo.kt
@@ -1,5 +1,6 @@
 package cn.flightfeather.supervision.lightshare.vo
 
+import cn.flightfeather.supervision.domain.ds1.entity.Scense
 import com.fasterxml.jackson.annotation.JsonInclude
 import java.math.BigDecimal
 import java.util.*
@@ -73,4 +74,16 @@
     var monitorNum: Int = 0
 
     var inspectedNum: Int = 0
+}
+
+/**
+ * 鏍规嵁鍦烘櫙id鎵惧埌鍦烘櫙
+ */
+fun List<Scense?>.findByGuid(guid: String?): Scense? {
+    this.forEach {
+        if (it?.guid == guid) {
+            return it
+        }
+    }
+    return null
 }
\ No newline at end of file

--
Gitblit v1.9.3