|
|
@ -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)) { |
|
|
|