From 00ec64bdf38a52b979f709de2e82e9994ed17749 Mon Sep 17 00:00:00 2001 From: Riku <risaku@163.com> Date: 星期日, 07 七月 2024 21:40:17 +0800 Subject: [PATCH] 1. 新增走航报告异常数据所经路段查询功能 --- src/test/kotlin/com/flightfeather/uav/Test.kt | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt index 85e68a9..64a939e 100644 --- a/src/test/kotlin/com/flightfeather/uav/Test.kt +++ b/src/test/kotlin/com/flightfeather/uav/Test.kt @@ -1,5 +1,6 @@ package com.flightfeather.uav +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.domain.entity.Company @@ -118,11 +119,17 @@ @Test fun foo16() { - val l = mutableListOf<BigDecimal>().apply { - add(BigDecimal.valueOf(6.23)) - add(BigDecimal("6.23")) - add(BigDecimal(6.23)) + val d = "2023-06-13 00:01:50.0\t".trim().split(".")[0] + val t = DateUtil.instance.StringToDate(d, DateUtil.DateStyle.YYYY_MM_DD_HH_MM_SS) + println(d) + println(t) + } + + @Test + fun foo17() { + repeat(8) { + if (it == 5) return@repeat + println(it) } - l.forEach { println(it) } } } \ No newline at end of file -- Gitblit v1.9.3