feiyu02
2025-09-30 94fee0b511279679b43e210878d3d36e5a14384b
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++
            }