Browse Source

处置记录

develop
lau572 4 months ago
parent
commit
626eeb3f08
  1. 2
      zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java
  2. 6
      zc-business/src/main/java/com/zc/business/enums/ValueConverter.java
  3. 66
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

2
zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java

@ -1998,7 +1998,7 @@ public enum UniversalEnum {
DC_EVENT_TRAFFIC_CONGESTION_CONGESTION_CAUSE(0, "dcEventTrafficCongestion.congestionCause"),
//dcEventTrafficCongestion.location
DC_EVENT_TRAFFIC_CONGESTION_LOCATION(0, "dcEventTrafficCongestion.congestionCause"),
DC_EVENT_TRAFFIC_CONGESTION_LOCATION(0, "dcEventTrafficCongestion.location"),
//dcEventTrafficCongestion.weatherCondition
DC_EVENT_TRAFFIC_CONGESTION_WEATHER_CONDITION(0, "dcEventTrafficCongestion.weatherCondition"),

6
zc-business/src/main/java/com/zc/business/enums/ValueConverter.java

@ -268,7 +268,7 @@ public class ValueConverter {
eventLabel.put("dcEventTrafficCongestion.maxCongestionMileage","最大拥堵里程(公里)");
eventLabel.put("dcEventTrafficCongestion.congestionCause","拥堵原因");
eventLabel.put("dcEventTrafficCongestion.facilityId","设施");
// eventLabel.put("dcEventTrafficCongestion.rampId","匝道");
eventLabel.put("dcEventTrafficCongestion.rampId","匝道");
eventLabel.put("dcEventTrafficCongestion.location","地点");
eventLabel.put("dcEventTrafficCongestion.detailedReasons","详细原因");
eventLabel.put("dcEventTrafficCongestion.locationType","地点类型");
@ -291,13 +291,13 @@ public class ValueConverter {
eventLabel.put("dcEventVehicleAccident.fatalities","死亡(人)");
eventLabel.put("dcEventVehicleAccident.isPrivate","私密事件");
eventLabel.put("dcEventVehicleAccident.facilityId","设施");
// eventLabel.put("dcEventVehicleAccident.rampId","匝道");
eventLabel.put("dcEventVehicleAccident.rampId","匝道");
eventLabel.put("dcEventVehicleAccident.location","地点");
eventLabel.put("dcEventTrafficControl.controlType","管制分类");
eventLabel.put("dcEventTrafficControl.controlCause","管制原因");
eventLabel.put("dcEventTrafficControl.exitsInlets","出入口");
eventLabel.put("dcEventTrafficControl.facilityId","设施");
// eventLabel.put("dcEventTrafficControl.rampId","匝道");
eventLabel.put("dcEventTrafficControl.rampId","匝道");
eventLabel.put("dcEventTrafficControl.causeType","原因类型");
eventLabel.put("dcEventTrafficControl.measure","措施");
eventLabel.put("dcEventTrafficControl.classify","分类");

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

@ -1635,31 +1635,37 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
} else if (UniversalEnum.TWO.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.TRAFFIC_ACCIDENT.getValue());
} else if (UniversalEnum.THREE.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.INCLEMENT_WEATHER.getValue());
result.setRight("交通管制");
} else if (UniversalEnum.FOUR.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.BE_UNDER_CONSTRUCTION.getValue());
result.setRight(UniversalEnum.INCLEMENT_WEATHER.getValue());
} else if (UniversalEnum.FIVE.getValue().equals(result.getRight())) {
result.setRight("集团所辖路段施工");
} else if (UniversalEnum.SIX.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.OTHER.getValue());
}
} else if (UniversalEnum.DC_EVENT_TRAFFIC_CONGESTION_LOCATION.getValue().equals(result.getRightPath())) {
if (UniversalEnum.ONE.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.ENTRANCE.getValue());
result.setRight("入口车道");
} else if (UniversalEnum.TWO.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.EXIT.getValue());
result.setRight("入口匝道");
} else if (UniversalEnum.THREE.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.ENTRANCE_SQUARE.getValue());
result.setRight("入口");
} else if (UniversalEnum.FOUR.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.INNER_EXIT_PLAZA.getValue());
result.setRight("入口内广场");
} else if (UniversalEnum.FIVE.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.OUTER_SQUARE.getValue());
result.setRight("出口车道");
} else if (UniversalEnum.SIX.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.ENTRANCE_LANE.getValue());
result.setRight("出口匝道");
} else if (UniversalEnum.SEVEN.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.EXIT_LANE.getValue());
result.setRight("外广场");
} else if (UniversalEnum.EIGHT.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.ON_RAMP.getValue());
result.setRight("出口");
} else if (UniversalEnum.NINE.getValue().equals(result.getRight())) {
result.setRight(UniversalEnum.EXIT_RAMP.getValue());
result.setRight("(站外)入口匝道");
} else if (UniversalEnum.TEN.getValue().equals(result.getRight())) {
result.setRight("(站外)出口匝道");
} else if (UniversalEnum.ELEVEN.getValue().equals(result.getRight())) {
result.setRight("出口内广场");
}
} else if (UniversalEnum.DC_EVENT_TRAFFIC_CONGESTION_WEATHER_CONDITION.getValue().equals(result.getRightPath())) {
if (UniversalEnum.ONE.getValue().equals(result.getRight())) {
@ -1873,11 +1879,47 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
} else if (UniversalEnum.FIVE.getValue().equals(result.getRight())) {
result.setRight("充电桩");
}
} else if ("dcEventConstruction.rampId".equals(result.getRightPath())){
} else if ("dcEventConstruction.rampId".equals(result.getRightPath())
|| "dcEventVehicleAccident.rampId".equals(result.getRightPath())
|| "dcEventTrafficCongestion.rampId".equals(result.getRightPath())){
DcRamp dcRamp = dcRampMapper.selectDcRampById(Long.valueOf(result.getRight().toString()));
if (dcRamp != null){
result.setRight(dcRamp.getRampName());
}
} else if ("dcEventTrafficControl.rampId".equals(result.getRightPath())){
List<String> rampName = new ArrayList<>();
String[] rampArr = result.getRight().toString().split(",");
for (int i = 0; i < rampArr.length; i++) {
DcRamp dcRamp = dcRampMapper.selectDcRampById(Long.valueOf(rampArr[i]));
if (dcRamp != null){
rampName.add(dcRamp.getRampName());
}
}
if (rampName.size() > 0){
result.setRight(String.join("、", rampName));
}
} else if ("dcEventTrafficCongestion.detailedReasons".equals(result.getRightPath())){
if (UniversalEnum.ONE.getValue().equals(result.getRight())){
result.setRight("主线车流量大");
} else if (UniversalEnum.TWO.getValue().equals(result.getRight())){
result.setRight("收费站出口车流量大导致主线压车");
} else if (UniversalEnum.THREE.getValue().equals(result.getRight())){
result.setRight("收费站广场拥堵导致出口压车");
} else if (UniversalEnum.FOUR.getValue().equals(result.getRight())){
result.setRight("收费站设备故障");
} else if (UniversalEnum.FIVE.getValue().equals(result.getRight())){
result.setRight("地方道路原因");
} else if (UniversalEnum.SIX.getValue().equals(result.getRight())){
result.setRight("省内非集团所辖高速原因");
} else if (UniversalEnum.SEVEN.getValue().equals(result.getRight())){
result.setRight("集团所辖道路拥堵");
} else if (UniversalEnum.EIGHT.getValue().equals(result.getRight())){
result.setRight("集团所辖枢纽立交异常导致主线压车");
} else if (UniversalEnum.NINE.getValue().equals(result.getRight())){
result.setRight("路侧起火");
} else if (UniversalEnum.TEN.getValue().equals(result.getRight())){
result.setRight("备注项添加");
}
}
String label = ValueConverter.eventLabel(result.getRightPath());
if (StringUtils.isNotEmpty(label)) {

Loading…
Cancel
Save