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/test/kotlin/cn/flightfeather/supervision/business/crosstimechange/CrossTimeChangeManagerTest.kt |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/src/test/kotlin/cn/flightfeather/supervision/business/crosstimechange/CrossTimeChangeManagerTest.kt b/src/test/kotlin/cn/flightfeather/supervision/business/crosstimechange/CrossTimeChangeManagerTest.kt
new file mode 100644
index 0000000..c5faa2c
--- /dev/null
+++ b/src/test/kotlin/cn/flightfeather/supervision/business/crosstimechange/CrossTimeChangeManagerTest.kt
@@ -0,0 +1,43 @@
+package cn.flightfeather.supervision.business.crosstimechange
+
+import cn.flightfeather.supervision.common.utils.Constant
+import cn.flightfeather.supervision.lightshare.vo.AreaVo
+import org.junit.Test
+import org.junit.jupiter.api.Assertions.*
+import org.junit.jupiter.api.extension.ExtendWith
+import org.junit.runner.RunWith
+import org.springframework.beans.factory.annotation.Autowired
+import org.springframework.boot.test.context.SpringBootTest
+import org.springframework.test.context.junit.jupiter.SpringExtension
+import org.springframework.test.context.junit4.SpringRunner
+import java.time.LocalDateTime
+
+@RunWith(SpringRunner::class)
+@ExtendWith(SpringExtension::class)
+@SpringBootTest
+class CrossTimeChangeManagerTest {
+
+    @Autowired
+    lateinit var crossTimeChangeManager: CrossTimeChangeManager
+
+    @Test
+    fun execute() {
+//        crossTimeChangeManager.execute(AreaVo().apply {
+//            provincecode = "31"
+//            citycode = "3100"
+//            districtcode = "310104"
+//            starttime = LocalDateTime.of(2024, 3, 1, 0, 0, 0, 0)
+//            endtime = LocalDateTime.of(2024, 6, 30, 23, 59, 59, 999)
+//            scensetypeid = Constant.SceneType.TYPE5.value
+//        }, "寰愭眹椁愰ギ鍘嗗彶闂鍙暣鏀圭粺璁�-3鑷�6鏈�.xlsx")
+
+        crossTimeChangeManager.execute(AreaVo().apply {
+            provincecode = "31"
+            citycode = "3100"
+            districtcode = "310104"
+            starttime = LocalDateTime.of(2024, 7, 1, 0, 0, 0, 0)
+            endtime = LocalDateTime.of(2024, 10, 31, 23, 59, 59, 999)
+            scensetypeid = Constant.SceneType.TYPE5.value
+        }, "寰愭眹椁愰ギ鍘嗗彶闂鍙暣鏀圭粺璁�-7鑷�10鏈�.xlsx")
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.3