From 538ba7a3bbc682f4537f1dd34f93feb2cf56b08e Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 14 十月 2025 17:32:04 +0800
Subject: [PATCH] 2025.10.14 1. 新增数据统计颗粒度选项,可选秒级数据、分钟数据进行数据统计 2. 典型隐患区域统计新增按照污染溯源区域进行分类统计的功能
---
src/test/kotlin/com/flightfeather/uav/lightshare/service/impl/RealTimeDataServiceImplTest.kt | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
diff --git a/src/test/kotlin/com/flightfeather/uav/lightshare/service/impl/RealTimeDataServiceImplTest.kt b/src/test/kotlin/com/flightfeather/uav/lightshare/service/impl/RealTimeDataServiceImplTest.kt
index d8b7e78..2865f6c 100644
--- a/src/test/kotlin/com/flightfeather/uav/lightshare/service/impl/RealTimeDataServiceImplTest.kt
+++ b/src/test/kotlin/com/flightfeather/uav/lightshare/service/impl/RealTimeDataServiceImplTest.kt
@@ -1,32 +1,17 @@
package com.flightfeather.uav.lightshare.service.impl
-import com.flightfeather.uav.common.utils.DateUtil
-import com.flightfeather.uav.common.utils.ExcelUtil
-import com.flightfeather.uav.dataprocess.DataProcess
-import com.flightfeather.uav.domain.entity.RealTimeData
import com.flightfeather.uav.domain.entity.RealTimeDataVehicle
import com.flightfeather.uav.domain.mapper.RealTimeDataVehicleMapper
import com.flightfeather.uav.lightshare.service.RealTimeDataService
-import com.flightfeather.uav.model.epw.EPWDataPrep
-import com.flightfeather.uav.repository.AirDataRepository
-import com.flightfeather.uav.repository.impl.AirDataRepositoryImpl
-import com.flightfeather.uav.socket.eunm.UWDeviceType
-import com.github.pagehelper.PageHelper
-import org.apache.poi.xssf.streaming.SXSSFWorkbook
+import com.flightfeather.uav.domain.repository.impl.AirDataRepImpl
import org.junit.Test
-import org.junit.Assert.*
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner
-import tk.mybatis.mapper.entity.Example
import java.io.File
import java.io.FileOutputStream
-import java.util.*
-import kotlin.math.atan
-import kotlin.math.cos
-import kotlin.math.sin
@RunWith(SpringRunner::class)
@SpringBootTest
@@ -38,8 +23,6 @@
@Autowired
lateinit var realTimeDataVehicleMapper: RealTimeDataVehicleMapper
- @Autowired
- lateinit var airDataRepository: AirDataRepositoryImpl
@Test
fun outToExcel() {
@@ -168,8 +151,7 @@
}
println("褰撳墠椤垫暟锛�$page")
res.data?.forEach {vo ->
- val d = RealTimeDataVehicle()
- airDataRepository.dataTransform(vo, d)
+ val d = vo.toBaseRealTimeData(RealTimeDataVehicle::class.java)
realTimeDataVehicleMapper.insert(d)
count++
}
--
Gitblit v1.9.3