车辆轨迹

develop
hanrenchun 9 months ago
parent ffe7447747
commit 78321b15c3

@ -99,12 +99,15 @@ public class TransitVehicleRecordController extends BaseController {
for (TransitVehicleRecord transitVehicleRecord1 : list){
TransitVehicleRecordVO transitVehicleRecordVO = new TransitVehicleRecordVO();
BeanUtils.copyProperties(transitVehicleRecord1,transitVehicleRecordVO);
DevopsDeviceInfo deviceInfo = devopsDeviceInfoService.lambdaQuery()
.eq(DevopsDeviceInfo::getGbsChannelNo, transitVehicleRecord1.getDoorwayCode()).list().get(0);
if (deviceInfo != null){
transitVehicleRecordVO.setLongitude(deviceInfo.getLongitude());
transitVehicleRecordVO.setLatitude(deviceInfo.getLatitude());
transitVehicleRecordVOS.add(transitVehicleRecordVO);
List<DevopsDeviceInfo> list1 = devopsDeviceInfoService.lambdaQuery()
.eq(DevopsDeviceInfo::getGbsChannelNo, transitVehicleRecord1.getDoorwayCode()).list();
if (list1.size() > 0){
DevopsDeviceInfo deviceInfo = list1.get(0);
if (deviceInfo != null){
transitVehicleRecordVO.setLongitude(deviceInfo.getLongitude());
transitVehicleRecordVO.setLatitude(deviceInfo.getLatitude());
transitVehicleRecordVOS.add(transitVehicleRecordVO);
}
}
}
List<TransitVehicleRecordVO> collect = transitVehicleRecordVOS.stream()

Loading…
Cancel
Save