From 9ed0b1847912221197697791d69e01ccae17f5b9 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期二, 27 八月 2024 17:36:11 +0800 Subject: [PATCH] 1. 新增NO监测因子 2. 新增第三方数据接口数据获取相关模块 --- src/test/kotlin/com/flightfeather/uav/Test.kt | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt index 7cd72a9..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,9 +119,16 @@ @Test fun foo16() { - val list = listOf(1, 2, 3, 4, 5, 6) - val iterator = list.iterator().also { it.next() } - iterator.forEach { + 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) } } -- Gitblit v1.9.3