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