| | |
| | | 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 |
| | |
| | | @Autowired |
| | | lateinit var realTimeDataVehicleMapper: RealTimeDataVehicleMapper |
| | | |
| | | @Autowired |
| | | lateinit var airDataRepository: AirDataRepositoryImpl |
| | | |
| | | @Test |
| | | fun outToExcel() { |
| | |
| | | } |
| | | println("当前页数:$page") |
| | | res.data?.forEach {vo -> |
| | | val d = RealTimeDataVehicle() |
| | | airDataRepository.dataTransform(vo, d) |
| | | val d = vo.toBaseRealTimeData(RealTimeDataVehicle::class.java) |
| | | realTimeDataVehicleMapper.insert(d) |
| | | count++ |
| | | } |