| | |
| | | package com.flightfeather.uav.lightshare.service.impl |
| | | |
| | | import com.flightfeather.uav.domain.entity.RealTimeData |
| | | import com.flightfeather.uav.lightshare.bean.VehicleInfoVo |
| | | import com.flightfeather.uav.lightshare.service.VehicleService |
| | | import com.flightfeather.uav.repository.VehicleRepository |
| | |
| | | * Date: 2019/10/25 |
| | | */ |
| | | @Service |
| | | class VehicleServiceImpl(val vehicleRepository: VehicleRepository) : VehicleService { |
| | | class VehicleServiceImpl() : VehicleService { |
| | | override fun getVehicleInfo(pageNum: Int?, pageSize: Int?): List<VehicleInfoVo> { |
| | | val dbResult = vehicleRepository.getVehicleInfo(pageNum, pageSize) |
| | | |
| | | val resultList = mutableListOf<VehicleInfoVo>() |
| | | |
| | | dbResult.forEach { |
| | | val vo = VehicleInfoVo() |
| | | BeanUtils.copyProperties(it, vo) |
| | | resultList.add(vo) |
| | | } |
| | | |
| | | return resultList |
| | | return emptyList() |
| | | } |
| | | } |