From 6c7f45871b93ef26d353a5a3596701ac2f39ed9c Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 10 九月 2024 17:48:27 +0800
Subject: [PATCH] 1. 新增问题更新接口

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

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/ProblemListVo.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/ProblemListVo.kt
new file mode 100644
index 0000000..db2bafa
--- /dev/null
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/vo/ProblemListVo.kt
@@ -0,0 +1,45 @@
+package cn.flightfeather.supervision.lightshare.vo
+
+import cn.flightfeather.supervision.common.utils.Constant
+import cn.flightfeather.supervision.common.utils.UUIDGenerator
+import cn.flightfeather.supervision.domain.ds1.entity.Inspection
+import cn.flightfeather.supervision.domain.ds1.entity.Problemlist
+import cn.flightfeather.supervision.domain.ds1.entity.Scense
+import com.fasterxml.jackson.annotation.JsonInclude
+import java.math.BigDecimal
+import java.util.*
+
+@JsonInclude(JsonInclude.Include.NON_NULL)
+class ProblemListVo : Problemlist() {
+
+    var mediafileList: List<MediaFileVo>? = null
+
+    var typeid: Byte? = null//闂绫诲瀷id
+
+    var typename: String? = null//闂绫诲瀷鍚嶇О
+
+    companion object {
+        /**
+         * 鐢熸垚涓�涓柊闂
+         */
+        fun newPro(inspection: Inspection, problemVo:ProblemVo, scene: Scense) = Problemlist().apply {
+            guid = UUIDGenerator.generate16ShortUUID()
+            iguid = inspection.guid
+            stguid = inspection.stguid
+            sguid = inspection.sguid
+            sensename = inspection.scensename
+            senseaddress = inspection.scenseaddress
+            ptguid = problemVo.ptGuid
+            problemname = problemVo.proName
+            longitude = problemVo.longitude ?: scene.longitude
+            latitude = problemVo.latitude ?: scene.latitude
+            locationid = problemVo.locationId
+            location = problemVo.location
+            time = Date()
+            isrechecked = false
+            ischanged = false
+            advise = problemVo.advice
+            extension3 = Constant.PROBLEM_UNCHECKED
+        }
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.3