From 7d74f3fd087d4a8192ed556a6c2e3a2ea3c81cff Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 28 三月 2025 17:43:48 +0800
Subject: [PATCH] 1. 新增扬尘监测数据上传功能

---
 src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt
index dd7f6fa..b819f36 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/business/autooutput/datasource/AopSceneTypeCheck.kt
@@ -17,12 +17,12 @@
      * 鍦烘櫙绫诲瀷鍒ゅ畾
      * @return 鍒ゆ柇缁撴灉锛岋紙鏄惁浣跨敤鏈郴缁熷畾涔夛紝绫诲瀷鍊硷級
      */
-    fun checkSceneType(sceneType: Int): Pair<Boolean, Int> {
+    fun checkSceneType(sceneType: Int?): Pair<Boolean, Int?> {
         // TODO: 2023/9/7 閫氳繃鏁版嵁搴撻厤缃〃鍐冲畾褰撳墠绫诲瀷鐨勬渶缁堢被鍨嬪畾涔�
 
         // FIXME: 2023/9/7 鏆傛椂鍐欐鐩稿叧閰嶇疆
-        return if (sceneType.toString() == Constant.ScenseType.TYPE6.value) {
-            Pair(false, Constant.ScenseType.typeMap(sceneType.toByte())!!.toInt())
+        return if (sceneType.toString() == Constant.SceneType.TYPE6.value) {
+            Pair(false, Constant.SceneType.typeMap(sceneType?.toByte())!!.toInt())
         } else {
             Pair(true, sceneType)
         }

--
Gitblit v1.9.3