From 3bb4fb15c664d29d179083698fdad35a661b1d7f Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 28 八月 2025 14:57:40 +0800
Subject: [PATCH] 2025.8.28 1. 添加走航季度报告相关统计功能(待完成)

---
 src/test/kotlin/com/flightfeather/uav/Test.kt |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt
index ead18b4..11a50e1 100644
--- a/src/test/kotlin/com/flightfeather/uav/Test.kt
+++ b/src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -3,6 +3,7 @@
 import com.flightfeather.uav.common.utils.DateUtil
 import com.flightfeather.uav.common.utils.FileExchange
 import com.flightfeather.uav.common.utils.FileUtil
+import com.flightfeather.uav.common.utils.TimeUtil
 import com.flightfeather.uav.domain.entity.BaseRealTimeData
 import com.flightfeather.uav.domain.entity.Company
 import com.flightfeather.uav.domain.entity.GridDataDetail
@@ -152,4 +153,52 @@
 
         println(dataDetail)
     }
+
+    @Test
+    fun getDayTimeTag() {
+        val period = TimeUtil.getDayTimeTag(
+            Date(2024, 10, 10, 10, 25, 0),
+            Date(2024, 10, 10, 14, 40, 0)
+        )
+
+        println("${period?.first};${period?.second};${period?.third}")
+    }
+
+    @Test
+    fun foo18() {
+        println(-4.382398 in 4.0..Double.MAX_VALUE)
+    }
+
+    @Test
+    fun foo19() {
+        val timer = Timer(true)
+//        var running = true
+        val task = object : TimerTask() {
+            override fun run() {
+                println("task run")
+                println(Date())
+//                running = false
+            }
+        }
+        println(Date())
+        timer.schedule(task, 5000)
+        task.cancel()
+        timer.purge()
+
+        val task2 = object : TimerTask() {
+            override fun run() {
+                println("task2 run")
+                println(Date())
+//                running = false
+            }
+        }
+        timer.schedule(task2, 4000)
+//        while (running) {
+//
+//        }
+        val sc = Scanner(System.`in`)
+        while (sc.hasNext()) {
+            println(sc.nextLine())
+        }
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3