From d3b43d50df28c4fe27c104dcd146d35b2bad4d20 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期三, 11 六月 2025 22:48:01 +0800
Subject: [PATCH] 1. 新增动态污染溯源新的判定逻辑(待完成)

---
 src/test/kotlin/com/flightfeather/uav/lightshare/service/impl/RealTimeDataServiceImplTest.kt |    7 ++-----
 1 files changed, 2 insertions(+), 5 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 3c28e3b..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
@@ -3,7 +3,7 @@
 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.repository.impl.AirDataRepositoryImpl
+import com.flightfeather.uav.domain.repository.impl.AirDataRepImpl
 import org.junit.Test
 
 import org.junit.runner.RunWith
@@ -23,8 +23,6 @@
     @Autowired
     lateinit var realTimeDataVehicleMapper: RealTimeDataVehicleMapper
 
-    @Autowired
-    lateinit var airDataRepository: AirDataRepositoryImpl
 
     @Test
     fun outToExcel() {
@@ -153,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