From dac47617b37ccfb834cd73ce0ee725e1101de214 Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期四, 14 八月 2025 17:25:51 +0800 Subject: [PATCH] 2025.8.14 1. 动态溯源模块添加滑动平均异常计算(调试中) --- src/test/kotlin/com/flightfeather/uav/model/epw/EPWDataPrepTest.kt | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/test/kotlin/com/flightfeather/uav/model/epw/EPWDataPrepTest.kt b/src/test/kotlin/com/flightfeather/uav/model/epw/EPWDataPrepTest.kt index 5b8301e..7e0b6f7 100644 --- a/src/test/kotlin/com/flightfeather/uav/model/epw/EPWDataPrepTest.kt +++ b/src/test/kotlin/com/flightfeather/uav/model/epw/EPWDataPrepTest.kt @@ -70,12 +70,12 @@ var totalPage = -1 val dataList = mutableListOf<DataVo>() while (totalPage == -1 || page <= totalPage) { - realTimeDataService.getSecondData(deviceCode, it.first, it.second, page, 50000).apply { + realTimeDataService.getSecondData(null, deviceCode, it.first, it.second, 0, page, 50000).apply { if (totalPage == -1) { totalPage = head?.totalPage ?: 0 } - val list = data?: emptyList() + val list = data ?: emptyList() val prepList = prep.mDataPrep(list) @@ -128,7 +128,7 @@ val dateFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss") val s = sTime.format(dateFormatter) val e = eTime.format(dateFormatter) - val data = realTimeDataService.getSecondData(deviceCode, s, e, 1, 30000).data + val data = realTimeDataService.getSecondData(null, deviceCode, s, e, 0, 1, 30000).data data?.let { val dataList = ePWDataPrep.mDataPrep(it) @@ -173,4 +173,9 @@ eTime = eTime.plusDays(1) } } + + @Test + fun foo3() { + + } } \ No newline at end of file -- Gitblit v1.9.3