Browse Source

新增枚举类

develop
zhaoxianglong 5 months ago
parent
commit
fe975fc8d4
  1. 64
      zc-business/src/main/java/com/zc/business/enums/CauseTypeEnum.java
  2. 191
      zc-business/src/main/java/com/zc/business/enums/EventTypesEnum.java
  3. 2529
      zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java
  4. 77
      zc-business/src/main/java/com/zc/business/enums/WeatherEventEnum.java

64
zc-business/src/main/java/com/zc/business/enums/CauseTypeEnum.java

@ -0,0 +1,64 @@
package com.zc.business.enums;
/**
* 情报板车道图标枚举
*
* @author
*/
public enum CauseTypeEnum {
//雨
THE_RAIN(3, "3-1", "雨"),
//雪
SNOW(3, "3-2", "雪"),
//雾
THE_FOG(3, "3-3", "雾"),
//道路积水
ROAD_WATER(3, "3-4", "道路积水"),
//道路湿滑
SLIPPERY_ROAD(3, "3-5", "道路湿滑"),
//道路结冰
ICY_ROADS(3, "3-6", "道路结冰"),
//沙尘暴
SANDSTORM(3, "3-7", "沙尘暴"),
// 专项工程施工
SPECIAL_PROJECT_CONSTRUCTION(4, "4-1", "专项工程施工"),
// 改扩建工程施工
RECONSTRUCTION_AND_EXPANSION_PROJECT_CONSTRUCTION(4, "4-2", "改扩建工程施工"),
// 其他施工
OTHER_CONSTRUCTION(4, "4-3", "其他施工");
private final int type;
private final String subtype;
private final String subtypeName;
CauseTypeEnum(int type, String subtype, String subtypeName) {
this.type = type;
this.subtype = subtype;
this.subtypeName = subtypeName;
}
public int getType() {
return type;
}
public String getSubtype() {
return subtype;
}
public String getSubtypeName() {
return subtypeName;
}
}

191
zc-business/src/main/java/com/zc/business/enums/EventTypesEnum.java

@ -0,0 +1,191 @@
package com.zc.business.enums;
/**
* 情报板车道图标枚举
*
* @author
*/
public enum EventTypesEnum {
// 追尾
REAR_END(1, "1-1", "追尾"),
// 侧翻
TURN_ON_ONE_S_SIDE(1, "1-2", "侧翻"),
// 撞护栏
CRASH_INTO_THE_BARRIER(1, "1-3", "撞护栏"),
// 自燃
SPONTANEOUS_COMBUSTION(1, "1-4", "自燃"),
// 其他事故
OTHER_ACCIDENTS(1, "1-5", "其他事故"),
// 车辆故障
VEHICLE_FAULT(2, "2-1", "车辆故障"),
//主线封闭和限行
THE_MAIN_LINE_IS_CLOSED_AND_RESTRICTED(3, "3-1", "主线封闭和限行"),
//收费站封闭和限行
TOLL_BOOTHS_ARE_CLOSED_AND_RESTRICTED(3, "3-2", "收费站封闭和限行"),
//立交封闭和限行
THE_INTERCHANGE_IS_CLOSED_AND_RESTRICTED(3, "3-3", "立交封闭和限行"),
//服务区封闭和限行
THE_SERVICE_AREA_IS_CLOSED_AND_RESTRICTED(3, "3-4", "服务区封闭和限行"),
// 道路拥堵
ROAD_CONGESTION(4, "4-1", "道路拥堵"),
// 立交拥堵
INTERCHANGE_CONGESTION(4, "4-2", "立交拥堵"),
// 收费站拥堵
TOLL_BOOTHS_ARE_CONGESTED(4, "4-3", "收费站拥堵"),
// 服务区拥堵
SERVICE_AREA_CONGESTION(4, "4-4", "服务区拥堵"),
// 行人
PEDESTRIAN(5, "5-1", "行人"),
// 非机动车
NON_MOTOR_VEHICLE(5, "5-2", "非机动车"),
// 摩托车
MOTORCYCLE(5, "5-3", "摩托车"),
// 其他
OTHER_FIVE_FOUR(5, "5-4", "其他"),
// 烟雾
SMOKE(6, "6-1", "烟雾"),
// 倒伏树木
FALLEN_TREE(6, "6-2", "倒伏树木"),
// 撒落物
OUTFALL(6, "6-3", "撒落物"),
// 动物
ZOON(6, "6-4", "动物"),
// 其他
OTHER_SIX_FIVE(6, "6-5", "其他"),
// 道路养护施工
ROAD_MAINTENANCE_CONSTRUCTION(7, "7-1", "道路养护施工"),
// 收费站养护施工
TOLL_STATION_MAINTENANCE_AND_CONSTRUCTION(7, "7-2", "收费站养护施工"),
// 服务区养护施工
MAINTENANCE_CONSTRUCTION_OF_SERVICE_AREA(7, "7-3", "服务区养护施工"),
// 枢纽立交匝道养护施工
MAINTENANCE_AND_CONSTRUCTION_OF_INTERCHANGE_RAMP(7, "7-4", "枢纽立交匝道养护施工"),
// 地方道路养护施工
LOCAL_ROAD_MAINTENANCE_CONSTRUCTION(7, "7-5", "地方道路养护施工"),
// 道路工程建设施工
ROAD_ENGINEERING_CONSTRUCTION(7, "7-6", "道路工程建设施工"),
// 收费站工程建设施工
TOLL_STATION_CONSTRUCTION(7, "7-7", "收费站工程建设施工"),
// 服务区工程建设施工
SERVICE_AREA_PROJECT_CONSTRUCTION(7, "7-8", "服务区工程建设施工"),
// 枢纽立交匝道工程建设施工
JUNCTION_INTERCHANGE_RAMP_PROJECT_CONSTRUCTION(7, "7-9", "枢纽立交匝道工程建设施工"),
// 地方道路工程建设施工
LOCAL_ROAD_ENGINEERING_CONSTRUCTION(7, "7-10", "地方道路工程建设施工"),
// 封闭
CLOSE(8, "8-1", "封闭、暂停营业"),
// 重要设施停用
SHUTDOWN_OF_CRITICAL_FACILITIES(8, "8-2", "重要设施停用"),
// 服务区其他异常
OTHERS_IN_THE_SERVICE_AREA_ARE_ABNORMAL(8, "8-3", "服务区其他异常"),
// 摄像机
CAMERA(9, "9-1", "摄像机"),
// 护栏
GUARDRAIL(9, "9-2", "护栏"),
// 隔离栅
ISOLATING_GRID(9, "9-3", "隔离栅"),
// 情报板
INTEL_BOARD(9, "9-4", "情报板"),
// 防炫板
ANTI_GLARE_PLATE(9, "9-5", "防炫板"),
// 其他
OTHER_NINE_SIX(9, "9-6", "其他"),
// 雨
THE_RAIN(1, "10-1", "雨"),
// 雪
SNOW(1, "10-2", "雪"),
// 雾
THE_FOG(1, "10-3", "雾"),
// 大风
GALE(1, "10-4", "大风"),
// 低温寒潮
LOW_TEMPERATURE_COLD_WAVE(1, "10-5", "低温寒潮"),
// 路面积雪
SNOW_ON_PAVEMENT(1, "10-6", "路面积雪"),
// 路面结冰
ICY_ROAD(1, "10-7", "路面结冰"),
// 路面积水
ROAD_WATER(1, "10-8", "路面积水"),
// 其他
OTHER_TEN_TO_NINE(10, "10-9", "其他"),
// 其他事件
OTHER_EVENTS(11, "11-1", "其他事件");
private final int type;
private final String subtype;
private final String subtypeName;
EventTypesEnum(int type, String subtype, String subtypeName) {
this.type = type;
this.subtype = subtype;
this.subtypeName = subtypeName;
}
public int getType() {
return type;
}
public String getSubtype() {
return subtype;
}
public String getSubtypeName() {
return subtypeName;
}
}

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

File diff suppressed because it is too large

77
zc-business/src/main/java/com/zc/business/enums/WeatherEventEnum.java

@ -0,0 +1,77 @@
package com.zc.business.enums;
/**
* 情报板车道图标枚举
* @author
*/
public enum WeatherEventEnum {
//雨雾
RAIN_AND_FOG("1-1","雨雾"),
//雨雪
RAIN_AND_SNOW("1-2","雨雪"),
//中雨
MODERATE_RAIN("1-3","中雨"),
//小雨
SPIT("1-4","小雨"),
//大雨
HEAVY_RAIN("1-5","大雨"),
//暴雨
RAINSTORM("1-6","暴雨"),
//小雪
LIGHT_SNOW("2-1","小雪"),
//中雪
MODERATE_SNOW("2-2","中雪"),
//大雪
HEAVY_SNOW("2-3","大雪"),
//暴雪
BLIZZARD_TWO_FOUR("2-4","暴雪"),
//大暴雪
BLIZZARD_TWO_FIVE("2-5","大暴雪"),
//特大暴雪
HEAVY_SNOWSTORM("2-6","特大暴雪"),
//轻雾
MIST("3-1","轻雾"),
//大雾
HEAVY_FOG_THREE_TWO("3-2","大雾"),
//浓雾
FOG("3-3","浓雾"),
//强浓雾
HEAVY_FOG_THREE_FOUR("3-4","强浓雾"),
//团雾
AGGLOMERATE_FOG("3-5","团雾");
private final String code;
private final String value;
WeatherEventEnum(String value, String broadcastLogUrl) {
this.code = value;
this.value = broadcastLogUrl;
}
public String getCode() {
return this.code;
}
public String getValue() {
return value;
}
}
Loading…
Cancel
Save