Browse Source

Merge remote-tracking branch 'origin/develop' into develop

develop
wangsixiang 9 months ago
parent
commit
b9e2c953c4
  1. 71
      zc-business/src/main/java/com/zc/business/domain/MdEvent.java
  2. 8
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

71
zc-business/src/main/java/com/zc/business/domain/MdEvent.java

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

8
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -129,8 +129,8 @@ public class DcEventServiceImpl implements IDcEventService {
if (i7 > 0) { if (i7 > 0) {
//中间库 //中间库
// MdEvent mdEvent = new MdEvent(dcEvent); MdEvent mdEvent = new MdEvent(dcEvent);
// middleDatabaseService.insertMiddleDatabaseEvent(mdEvent); middleDatabaseService.insertMiddleDatabaseEvent(mdEvent);
//获取事件类型 //获取事件类型
int eventType = Math.toIntExact(dcEvent.getEventType()); int eventType = Math.toIntExact(dcEvent.getEventType());
@ -224,8 +224,8 @@ public class DcEventServiceImpl implements IDcEventService {
if (i7 > 0) { if (i7 > 0) {
//中间库 //中间库
// MdEvent mdEvent = new MdEvent(dcEvent); MdEvent mdEvent = new MdEvent(dcEvent);
// middleDatabaseService.updateMiddleDatabaseEvent(mdEvent); middleDatabaseService.updateMiddleDatabaseEvent(mdEvent);
int eventType = Math.toIntExact(dcEvent.getEventType()); int eventType = Math.toIntExact(dcEvent.getEventType());
switch (eventType) { switch (eventType) {

Loading…
Cancel
Save