|
|
@ -647,11 +647,51 @@ public class MdEvent |
|
|
|
// 10-异常天气
|
|
|
|
// 11-其他事件
|
|
|
|
String eventType = dcEvent.getEventType().toString(); |
|
|
|
/*if ("1".equals(eventType)){ |
|
|
|
if ("1".equals(eventType)){ |
|
|
|
DcEventAccident dcEventAccident = dcEvent.getDcEventAccident(); |
|
|
|
//事故天气情况
|
|
|
|
this.accidentWeather = dcEventAccident.getWeatherCondition(); |
|
|
|
this.accidentQueue = dcEventAccident.getTrafficJam(); |
|
|
|
}*/ |
|
|
|
//事故压车(公里)
|
|
|
|
this.accidentQueue = new BigDecimal(Float.toString(dcEventAccident.getTrafficJam())); |
|
|
|
} else if ("2".equals(eventType)){ |
|
|
|
DcEventVehicleAccident dcEventVehicleAccident = dcEvent.getDcEventVehicleAccident(); |
|
|
|
//事故天气情况
|
|
|
|
this.accidentWeather = dcEventVehicleAccident.getWeatherCondition(); |
|
|
|
//事故压车(公里)
|
|
|
|
this.accidentQueue = new BigDecimal(Float.toString(dcEventVehicleAccident.getTrafficJam())); |
|
|
|
} else if ("3".equals(eventType)){ |
|
|
|
DcEventTrafficControl dcEventTrafficControl = dcEvent.getDcEventTrafficControl(); |
|
|
|
//管制分类
|
|
|
|
this.controlCategory = dcEventTrafficControl.getControlType(); |
|
|
|
//管制原因类型
|
|
|
|
this.controlReasonType = dcEventTrafficControl.getControlCause().toString(); |
|
|
|
//管制出入口
|
|
|
|
this.controlStation = dcEventTrafficControl.getFacilityId(); |
|
|
|
//管制措施
|
|
|
|
this.controlStrategy = dcEventTrafficControl.getMeasure(); |
|
|
|
//管制限制类型
|
|
|
|
this.controlType = dcEventTrafficControl.getLimitedType(); |
|
|
|
//管制车辆类型
|
|
|
|
this.controlVehicleType = dcEventTrafficControl.getVehicleType(); |
|
|
|
} else if ("4".equals(eventType)){ |
|
|
|
DcEventTrafficCongestion dcEventTrafficCongestion = dcEvent.getDcEventTrafficCongestion(); |
|
|
|
//拥堵里程(公里)
|
|
|
|
this.congestionPile = dcEventTrafficCongestion.getCongestionMileage().longValue(); |
|
|
|
//拥堵原因
|
|
|
|
this.congestionReason = dcEventTrafficCongestion.getCongestionCause(); |
|
|
|
} else if ("7".equals(eventType)){ |
|
|
|
DcEventConstruction dcEventConstruction = dcEvent.getDcEventConstruction(); |
|
|
|
//管制分类
|
|
|
|
this.controlCategory = dcEventConstruction.getControlMode(); |
|
|
|
} else if ("8".equals(eventType)){ |
|
|
|
DcEventServiceArea dcEventServiceArea = dcEvent.getDcEventServiceArea(); |
|
|
|
//管制出入口
|
|
|
|
this.controlStation = dcEventServiceArea.getFacilityId(); |
|
|
|
} else if ("10".equals(eventType)){ |
|
|
|
DcEventAbnormalWeather dcEventAbnormalWeather = dcEvent.getDcEventAbnormalWeather(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|