From df4c8aa44fbb1ce34e67f05ff6ce707d6d4ee639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Tue, 18 Jun 2024 09:24:19 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B0=94=E8=B1=A1?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E5=99=A8=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DcTrafficStatisticsController.java | 12 +++++ .../zc/business/domain/DcTrafficPolice.java | 6 +-- .../device/handler/DeviceMessageHandler.java | 49 +++++++++++++++++-- .../service/IDcTrafficStatisticsService.java | 1 + .../service/impl/DcEventServiceImpl.java | 2 +- .../impl/DcTrafficStatisticsServiceImpl.java | 6 +-- 6 files changed, 65 insertions(+), 11 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java b/zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java index 38c7f610..b5c6e7d0 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcTrafficStatisticsController.java @@ -399,5 +399,17 @@ public AjaxResult trafficFlowAtTollStationEntrance(String startDate, String endD // 将查询结果封装为成功响应并返回 return AjaxResult.success(mapList); } + /** + * 全路段双向实时车流量 + * @param startDate 时间 + * @param direction 方向 + */ + @ApiOperation("集团双向实时车流量") + @GetMapping("/history/realTimeTrafficFlowHour2") + public AjaxResult realTimeTrafficFlowHour2(String startDate,Long direction) throws HttpException, IOException{ + JSONArray mapList = dcTrafficStatisticsService.realTimeTrafficFlowHour2(startDate,direction); + // 将查询结果封装为成功响应并返回 + return AjaxResult.success(mapList); + } } \ No newline at end of file diff --git a/zc-business/src/main/java/com/zc/business/domain/DcTrafficPolice.java b/zc-business/src/main/java/com/zc/business/domain/DcTrafficPolice.java index 7ddef15d..9780e3b8 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcTrafficPolice.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcTrafficPolice.java @@ -24,7 +24,7 @@ public class DcTrafficPolice extends BaseEntity /** $column.columnComment */ @ApiModelProperty("名称") - @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + @Excel(name = "名称") private String name; @ApiModelProperty("电话") /** 电话 */ @@ -32,12 +32,12 @@ public class DcTrafficPolice extends BaseEntity private String phone; @ApiModelProperty("开始桩号") /** $column.columnComment */ - @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + @Excel(name = "起始桩号") private String stakeMake; /** $column.columnComment */ @ApiModelProperty("结束桩号") - @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") + @Excel(name = "结束桩号") private String endMake; public void setId(Long id) diff --git a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java index 74913066..c8a93042 100644 --- a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java +++ b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java @@ -588,6 +588,7 @@ public class DeviceMessageHandler { String stakeMark = strings[1]; String direction = strings[2]; + //设备名称 meteorologicalDetectorData.setDeviceName(deviceName); //位置 @@ -595,25 +596,60 @@ public class DeviceMessageHandler { //方向 meteorologicalDetectorData.setDirection(direction); - //todo 首页推送事件消息 3气象检测器 + //todo 首页推送事件消息 气象检测器 if (!meteorologicalDetectorData.getPrecipitationType().equals("0")) {//降水类型 0=无降;1=雨;2=雪;3=毛毛雨;4=雨夹雪; - WebSocketService.broadcast(WebSocketEvent.WARNING, meteorologicalDetectorData); + String precipitationType =""; +if (meteorologicalDetectorData.getPrecipitationType().equals("1")){ + precipitationType="发生降雨异常天气事件"; +}if (meteorologicalDetectorData.getPrecipitationType().equals("2")){ + precipitationType="发生降雪异常天气事件"; +}if (meteorologicalDetectorData.getPrecipitationType().equals("3")){ + precipitationType="发生毛毛雨异常天气事件"; +}if (meteorologicalDetectorData.getPrecipitationType().equals("4")){ + precipitationType="发生雨夹雪异常天气事件"; +} + String content= direction+ stakeMark+precipitationType; + + Map contentMap = new HashMap<>(); + contentMap.put("content",content); + contentMap.put("event",meteorologicalDetectorData); + WebSocketService.broadcast(WebSocketEvent.WARNING, contentMap); JSONObject object = new JSONObject(); object.put("meteorologicalDetectorData", meteorologicalDetectorData); String string = object.toString(); + DcWarning dcWarning = new DcWarning(); dcWarning.setStakeMark(meteorologicalDetectorData.getStakeMark()); dcWarning.setWarningSource(7);//气象检测器 dcWarning.setOtherConfig(string); dcWarning.setWarningTitle("气象预警"); + if (direction.equals("菏泽方向")){ + dcWarning.setDirection("1"); + } + if (direction.equals("济南方向")){ + dcWarning.setDirection("3"); + } dcWarningService.insertDcWarning(dcWarning); //待确认数量 dcEventService.getCountNum(); } if (!meteorologicalDetectorData.getVisibilityType().equals("4")) {// 能见度类型,4 表示能见度良好3表示阴霾 2表示雾 1表示浓雾; - WebSocketService.broadcast(WebSocketEvent.WARNING, meteorologicalDetectorData); + String precipitationType =""; + if (meteorologicalDetectorData.getVisibilityType().equals("3")){ + precipitationType="发生阴霾异常天气事件"; + }if (meteorologicalDetectorData.getVisibilityType().equals("2")){ + precipitationType="发生雾异常天气事件"; + }if (meteorologicalDetectorData.getVisibilityType().equals("1")){ + precipitationType="发生浓雾异常天气事件"; + } + String content= direction+ stakeMark+precipitationType; + + Map contentMap = new HashMap<>(); + contentMap.put("content",content); + contentMap.put("event",meteorologicalDetectorData); + WebSocketService.broadcast(WebSocketEvent.WARNING, contentMap); JSONObject object = new JSONObject(); object.put("meteorologicalDetectorData", meteorologicalDetectorData); String string = object.toString(); @@ -622,7 +658,12 @@ public class DeviceMessageHandler { dcWarning.setWarningSource(7);//气象检测器 dcWarning.setOtherConfig(string); dcWarning.setWarningTitle("气象预警"); - + if (direction.equals("菏泽方向")){ + dcWarning.setDirection("1"); + } + if (direction.equals("济南方向")){ + dcWarning.setDirection("3"); + } dcWarningService.insertDcWarning(dcWarning); //待确认数量 diff --git a/zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java b/zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java index da1071d2..d9060922 100644 --- a/zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java +++ b/zc-business/src/main/java/com/zc/business/service/IDcTrafficStatisticsService.java @@ -53,5 +53,6 @@ public interface IDcTrafficStatisticsService { List> realTimeTrafficFlowHour(String startDate,Long direction) throws HttpException, IOException; + JSONArray realTimeTrafficFlowHour2(String startDate,Long direction) throws HttpException, IOException; } diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index c9b95312..d2c50612 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -573,7 +573,7 @@ public class DcEventServiceImpl extends ServiceImpl impl contentMap.put("content", content); contentMap.put("event", dcEvent); - WebSocketService.broadcast(WebSocketEvent.EVENT, contentMap); //推送事件消息 0不是感知事件 + WebSocketService.broadcast(WebSocketEvent.EVENT, contentMap); //推送事件消息 0 不是感知事件 getCountNum(); diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java index 08f3c11d..04e6723d 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcTrafficStatisticsServiceImpl.java @@ -800,7 +800,7 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi } return ""; } - public List> realTimeTrafficFlowHour2(String startDate,Long direction) throws HttpException, IOException { + public JSONArray realTimeTrafficFlowHour2(String startDate,Long direction) throws HttpException, IOException { OkHttp okHttp = new OkHttp(); RequestParams requestParams = new RequestParams(); @@ -859,10 +859,10 @@ public class DcTrafficStatisticsServiceImpl implements IDcTrafficStatisticsServi // 输出结果 - return list; + return jsonArray; } - return new ArrayList(); + return null; } } From 7ec38044059d79078825012f216666943758566d Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Tue, 18 Jun 2024 10:46:19 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1api?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/common/core/redis/RedisCache.java | 2 +- .../src/main/java/com/zc/business/utils/QYWXUtil.java | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java index 2f468cb8..1cc5efeb 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/redis/RedisCache.java @@ -75,7 +75,7 @@ public class RedisCache */ public Long getExpire(final String key) { - return redisTemplate.getExpire(key); + return redisTemplate.getExpire(key,TimeUnit.SECONDS); } /** diff --git a/zc-business/src/main/java/com/zc/business/utils/QYWXUtil.java b/zc-business/src/main/java/com/zc/business/utils/QYWXUtil.java index 879fb0db..28135beb 100644 --- a/zc-business/src/main/java/com/zc/business/utils/QYWXUtil.java +++ b/zc-business/src/main/java/com/zc/business/utils/QYWXUtil.java @@ -95,8 +95,9 @@ public class QYWXUtil { int iErrorCode = objJsonObject.getIntValue("errcode"); if (iErrorCode == 0) { String strAccessToken = objJsonObject.getString("access_token"); + Integer expiresIn = objJsonObject.getInteger("expires_in"); // 设置到redis里,目前的存活时间为120分钟(7200秒) - redisCache.setCacheObject(RedisKeyConstants.QYWX_ACCESS_TOKEN,strAccessToken,7200, TimeUnit.SECONDS); + redisCache.setCacheObject(RedisKeyConstants.QYWX_ACCESS_TOKEN,strAccessToken,expiresIn, TimeUnit.SECONDS); return strAccessToken; } } @@ -137,11 +138,11 @@ public class QYWXUtil { if (iErrorCode == 0) { //返回用户id return objJsonObject.getString("userid"); - } else if (iErrorCode == 42001){ + } else if (iErrorCode == 42001 || iErrorCode == 40014){ //access_token过期,重新获取 getAccessTokenByHttp(); //重新获取userId - getUserIdByMobile(mobile); + return getUserIdByMobile(mobile); } System.out.println("通过手机号获取userId失败! 错误码:" + iErrorCode + ", 错误信息:" + objJsonObject.getString("errmsg")); } @@ -209,11 +210,11 @@ public class QYWXUtil { result.put("code","1"); result.put("msg","发送企业微信消息成功!"); result.put("data",msgId); - } else if (iErrorCode == 42001){ + } else if (iErrorCode == 42001 || iErrorCode == 40014){ //access_token过期,重新获取 getAccessTokenByHttp(); //重新发送文本消息 - sendMessageByWxUserId(userId,content); + return sendMessageByWxUserId(userId,content); } else { result.put("code","0"); result.put("msg","发送企业微信消息失败!错误码:" + iErrorCode + ", 错误信息:" + objJsonObject.getString("errmsg")); From 7d641d7452d5ab69bc24aca535df90ca6dcc56a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Tue, 18 Jun 2024 11:41:10 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=A4=E9=80=9A?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/service/impl/DcEventServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index d2c50612..f0b72f28 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -232,9 +232,10 @@ public class DcEventServiceImpl extends ServiceImpl impl case 1: if (dcEvent.getDcEventAccident() != null) { dcEvent.getDcEventAccident().setId(uuid); - int i1 = dcEventAccidentMapper.insertDcEventAccident(dcEvent.getDcEventAccident()); - + if (dcEvent.getEventState() == 1) { + updateDcEventState(uuid,1);//直接确认 + } } break; //车辆事故 @@ -242,6 +243,9 @@ public class DcEventServiceImpl extends ServiceImpl impl if (dcEvent.getDcEventVehicleAccident() != null) { dcEvent.getDcEventVehicleAccident().setId(uuid); int i5 = dcEventVehicleAccidentMapper.insertDcEventVehicleAccident(dcEvent.getDcEventVehicleAccident()); + if (dcEvent.getEventState() ==1) { + updateDcEventState(uuid,1);//直接确认 + } } break; //交通管制 From ce69c689c859f21fb9f11d9b434bd168c46a0f04 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Tue, 18 Jun 2024 11:44:24 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83group1?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83group2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zc/business/constant/RedisStreamConstants.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/constant/RedisStreamConstants.java b/zc-business/src/main/java/com/zc/business/constant/RedisStreamConstants.java index c1a102da..164aa588 100644 --- a/zc-business/src/main/java/com/zc/business/constant/RedisStreamConstants.java +++ b/zc-business/src/main/java/com/zc/business/constant/RedisStreamConstants.java @@ -10,7 +10,7 @@ public class RedisStreamConstants { */ public static class DeviceOnline { public final static String KEY = "device:online"; - public final static String GROUP = "group1"; + public final static String GROUP = "group2"; public final static String CONSUMER = "consumer1"; } @@ -19,7 +19,7 @@ public class RedisStreamConstants { */ public static class DeviceOffline { public final static String KEY = "device:offline"; - public final static String GROUP = "group1"; + public final static String GROUP = "group2"; public final static String CONSUMER = "consumer1"; } @@ -28,7 +28,7 @@ public class RedisStreamConstants { */ public static class DeviceEvent { public final static String KEY = "device:event"; - public final static String GROUP = "group1"; + public final static String GROUP = "group2"; public final static String CONSUMER = "consumer1"; } @@ -37,7 +37,7 @@ public class RedisStreamConstants { */ public static class DevicePropertyReport { public final static String KEY = "device:property:report"; - public final static String GROUP = "group1"; + public final static String GROUP = "group2"; public final static String CONSUMER = "consumer1"; } @@ -46,7 +46,7 @@ public class RedisStreamConstants { */ public static class DevicePropertyReadReply { public final static String KEY = "device:property:read:reply"; - public final static String GROUP = "group1"; + public final static String GROUP = "group2"; public final static String CONSUMER = "consumer1"; } @@ -56,7 +56,7 @@ public class RedisStreamConstants { */ public static class DevicePropertyWriteReply { public final static String KEY = "device:property:write:reply"; - public final static String GROUP = "group1"; + public final static String GROUP = "group2"; public final static String CONSUMER = "consumer1"; } @@ -65,7 +65,7 @@ public class RedisStreamConstants { */ public static class DeviceFunctionReply { public final static String KEY = "device:function:reply"; - public final static String GROUP = "group1"; + public final static String GROUP = "group2"; public final static String CONSUMER = "consumer1"; } From fe975fc8d48e989c7ceca49173d6be0667c5bc3f Mon Sep 17 00:00:00 2001 From: zhaoxianglong Date: Tue, 18 Jun 2024 14:32:13 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=9E=9A=E4=B8=BE?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/enums/CauseTypeEnum.java | 64 + .../com/zc/business/enums/EventTypesEnum.java | 191 ++ .../com/zc/business/enums/UniversalEnum.java | 2529 +++++++++++++++++ .../zc/business/enums/WeatherEventEnum.java | 77 + 4 files changed, 2861 insertions(+) create mode 100644 zc-business/src/main/java/com/zc/business/enums/CauseTypeEnum.java create mode 100644 zc-business/src/main/java/com/zc/business/enums/EventTypesEnum.java create mode 100644 zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java create mode 100644 zc-business/src/main/java/com/zc/business/enums/WeatherEventEnum.java diff --git a/zc-business/src/main/java/com/zc/business/enums/CauseTypeEnum.java b/zc-business/src/main/java/com/zc/business/enums/CauseTypeEnum.java new file mode 100644 index 00000000..b282b88b --- /dev/null +++ b/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; + } +} diff --git a/zc-business/src/main/java/com/zc/business/enums/EventTypesEnum.java b/zc-business/src/main/java/com/zc/business/enums/EventTypesEnum.java new file mode 100644 index 00000000..bfc4e406 --- /dev/null +++ b/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; + } +} diff --git a/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java b/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java new file mode 100644 index 00000000..57517a85 --- /dev/null +++ b/zc-business/src/main/java/com/zc/business/enums/UniversalEnum.java @@ -0,0 +1,2529 @@ +package com.zc.business.enums; + +/** + * 情报板车道图标枚举 + * + * @author + */ +public enum UniversalEnum { + + // 齐鲁高速股份有限公司 + QILU_HIGH_SPEED_CO_LTD(0, "齐鲁高速股份有限公司"), + + // IP + IP(0, "10.0.111.11"), + + // mysql端口 + MYSQL_PORT(0, "3306"), + + // 数据库用户名 + MYSQL_USER_NAME(0, "root"), + + // 数据库密码 + MYSQL_PASSWORD(0, "mysql123!@#"), + + // sdgs_it_hs_jihe + SYS_ID(0, "sdgs_it_hs_jihe"), + + // Windows + WINDOWS(0, "Windows"), + + // weixintuisontoken + WEIXINTUISONTOKEN(0, "weixintuisontoken"), + + // LTAI5tENd3j1tP5t2fF4fxaX + ALIYUNACCESSKEYID(0, "LTAI5tENd3j1tP5t2fF4fxaX"), + + // i86Yenj13XRd2aeZMtybpKxsqI1VRU + ALIYUNAECRET(0, "i86Yenj13XRd2aeZMtybpKxsqI1VRU"), + + // SMS_154950909 + ALIYUNTEMPLATE(0, "SMS_154950909"), + + // wx9ee0e3babfd8d2af + WEIXINAPPID(0, "wx9ee0e3babfd8d2af"), + + // de2ecb80b30d63135918ba3ae6ffb711 + WEIXINAPPSECRET(0, "de2ecb80b30d63135918ba3ae6ffb711"), + + // D_yBiN7aDl2pw3bhSqU_Fbi0D8BHXL0qeBjhusWVO68 + WEIXINTEMPLATE(0, "D_yBiN7aDl2pw3bhSqU_Fbi0D8BHXL0qeBjhusWVO68"), + + // G35济菏高速 + G_35_DUTCH_HIGHWAY(0, "G35济菏高速"), + + // 高速主线 + HIGH_SPEED_MAIN_LINE(0, "高速主线"), + + // 服务区 + SERVICE_AREA(0, "服务区"), + + // 立交桥 + OVERPASS(0, "立交桥"), + + // 收费站 + TOLL_STATION(0, "收费站"), + + // 道路标识 + ROAD_ID(0, "G003537"), + + // 桩号列表 + STAKE_NUM(0, "K60+000|K105+000|K145+000|K165+000|K175+000|K190+000|K200+000|K205+000"), + + // K60+000 + STAKE_NUM_K60(0, "K60+000"), + + // K60+000 + STAKE_NUM_K105(0, "K105+000"), + + // K60+000 + STAKE_NUM_K145(0, "K145+000"), + + // K60+000 + STAKE_NUM_K165(0, "K165+000"), + + // K60+000 + STAKE_NUM_K175(0, "K175+000"), + + // K60+000 + STAKE_NUM_K190(0, "K190+000"), + + // K60+000 + STAKE_NUM_K200(0, "K200+000"), + + // K60+000 + STAKE_NUM_K205(0, "K205+000"), + + // 预估时间 + FORECAST_HOUR(0, "24"), + + // 图模板 + DRAWING_TEMPLATE(0, "wordTemplate/chartTemplate.docx"), + + // 图模板2 + DRAWING_TEMPLATE_2(0, "wordTemplate/chartTemplate2.docx"), + + // 总体情况 + GENERAL_SITUATION(0, "总体情况"), + + // 收费站运行情况 + TOLL_STATION_OPERATION(0, "收费站运行情况"), + + // 交通事故情况 + TRAFFIC_ACCIDENT_SITUATION(0, "交通事故情况"), + + // 拥堵情况 + CONGESTION_CONDITION(0, "拥堵情况"), + + // 交通管制情况 + TRAFFIC_CONTROL_SITUATION(0, "交通管制情况"), + + // 封闭 + CLOSE(0, "封闭"), + + // 不封闭 + NON_SEALING(0, "不封闭"), + + // 限行 + TRAFFIC_RESTRICTION(0, "限行"), + + // 间隔放行 + INTERVAL_RELEASE(0, "间隔放行"), + + // 交通事故 + TRAFFIC_ACCIDENT(0, "交通事故"), + + // 事故数量 + NUMBER_OF_ACCIDENTS(0, "事故数量"), + + // 数量 + QUANTITY(0, "数量"), + + // 出入口车流量 + TRAFFIC_FLOW_AT_ENTRANCES_AND_EXITS(0, "出入口车流量"), + + // 入口 + ENTRANCE(0, "入口"), + + // 出口 + EXIT(0, "出口"), + + // 入口内广场 + ENTRANCE_SQUARE(0, "入口内广场"), + + // 出口内广场 + INNER_EXIT_PLAZA(0, "出口内广场"), + + // 外广场 + OUTER_SQUARE(0, "外广场"), + + // 入口车道 + ENTRANCE_LANE(0, "入口车道"), + + // 出口车道 + EXIT_LANE(0, "出口车道"), + + // 入口匝道 + ON_RAMP(0, "入口匝道"), + + // 出口匝道 + EXIT_RAMP(0, "出口匝道"), + + // (站外)入口匝道 + OUTSIDE_THE_STATION_ON_RAMP(0, "(站外)入口匝道"), + + // (站外)出口匝道 + OUTSIDE_THE_STATION_EXIT_RAMP(0, "(站外)出口匝道"), + + // 合计 + TOTAL(0, "合计"), + + // 封闭原因统计 + CLOSED_CAUSE_STATISTICS(0, "封闭原因统计"), + + // 封闭数量统计 + CLOSED_QUANTITY_STATISTICS(0, "封闭数量统计"), + + // 时间 + TIME(0, "时间"), + + // 事故类型统计 + ACCIDENT_TYPE_STATISTICS(0, "事故类型统计"), + + // 交管数据 + TRAFFIC_CONTROL_DATA(0, "交管数据"), + + // 事件信息数据 + EVENT_INFORMATION_DATA(0, "事件信息数据"), + + // 值班数据 + DUTY_DATA(0, "值班数据"), + + // 事故类型 + ACCIDENT_TYPE(0, "事故类型"), + + // 事故时间统计 + ACCIDENT_TIME_STATISTICS(0, "事故时间统计"), + + // 拥堵地点 + CONGESTION_SITE(0, "拥堵地点"), + + // 拥堵时长 + CONGESTION_DURATION(0, "拥堵时长"), + + // 拥堵长度 + CONGESTION_LENGTH(0, "拥堵长度"), + + // 长清区 + CHANG_QING_DISTRICT(0, "长清区"), + + // 平阴县 + PING_YIN_COUNTY(0, "平阴县"), + + // 东平县 + DONG_PING_COUNTY(0, "东平县"), + + // 汶上县 + WEN_SHANG_COUNTY(0, "汶上县"), + + // 梁山县 + LIANG_SHAN_COUNTY(0, "梁山县"), + + // 嘉祥县 + JIA_XIANG_COUNTY(0, "嘉祥县"), + + // 巨野县 + JUYE_COUNTY(0, "巨野县"), + + // 郓城县 + YUN_CHENG_COUNTY(0, "郓城县"), + + // 大学城 + COLLEGE_STATION(0, "大学城"), + + // 大学城桩号 + COLLEGE_STATION_STAKE_MARK(0, "K059+289"), + + // 长清 + CHANGQING_COUNTY(0, "长清"), + + // 长清桩号 + CHANGQING_COUNTY_STAKE_MARK(0, "K072+847"), + + // 孝里 + HYORI(0, "孝里"), + + // 孝里桩号 + HYORI_STAKE_MARK(0, "K086+499"), + + // 平阴北 + PING_YIN_NORTH(0, "平阴北"), + + // 平阴北桩号 + PING_YIN_NORTH_STAKE_MARK(0, "K099+750"), + + // 平阴南 + PING_YIN_NAN(0, "平阴南"), + + // 平阴南桩号 + PING_YIN_NAN_STAKE_MARK(0, "K126+223"), + + // 平阴 + PING_YIN(0, "平阴"), + + // 平阴桩号 + PING_YIN_STAKE_MARK(0, "K105+904"), + + // 东平 + DONG_PING(0, "东平"), + + // 东平桩号 + DONG_PING_STAKE_MARK(0, "K145+933"), + + // 梁山东 + LIANG_SHAN_DONG(0, "梁山东"), + + // 梁山东桩号 + LIANG_SHAN_DONG_STAKE_MARK(0, "K173+950"), + + // 汶上 + MONKAMI(0, "汶上"), + + // 梁山 + LIANG_SHAN(0, "梁山"), + + // 梁山桩号 + LIANG_SHAN_STAKE_MARK(0, "K179+396"), + + // 嘉祥 + JIA_XIANG(0, "嘉祥"), + + // 嘉祥桩号 + JIA_XIANG_STAKE_MARK(0, "K190+495"), + + // 巨野 + JU_YE(0, "巨野"), + + // 郓城 + YUNCHENG_A_COUNTY_IN_SHANDONG_PROVINCE(0, "郓城"), + + // all + ALL(0, "all"), + + // UTF-8 + UTF_8(0, "UTF-8"), + + // UTF-8 + LOWERCASE_UTF_8(0, "utf-8"), + + // AES + AES(0, "AES"), + + // OK + OK(0, "OK"), + + // GET + GET(0, "GET"), + + // 菏泽方向 + DIRECTION_OF_HEZE(0, "菏泽方向"), + + // 济南方向 + DIRECTION_OF_JINAN(0, "济南方向"), + + // 上行 + Up(0, "上行"), + + // 中 + IN_THE(0, "中"), + + // 下行 + GO_DOWN(0, "下行"), + + //全部设备 + ALL_EQUIPMENT(0, "全部设备"), + + //高清网络枪型固定摄像机 + HD_NETWORK_GUN_TYPE_FIXED_CAMERA(0, "高清网络枪型固定摄像机"), + + //高清网络球形摄像机 + HD_NETWORK_SPHERICAL_CAMERA(0, "高清网络球形摄像机"), + + //桥下高清网络球形摄像机 + UNDER_THE_BRIDGE_HD_NETWORK_SPHERICAL_CAMERA(0, "桥下高清网络球形摄像机"), + + //360°全景摄像机 + THREE_HUNDRED_SIXTY_PANORAMIC_CAMERA(0, "360°全景摄像机"), + + //180°全景摄像机 + ONE_HUNDRED_EIGHTY_PANORAMIC_CAMERA(0, "180°全景摄像机"), + + //门架式可变信息标志 + GANTRY_TYPE_VARIABLE_MESSAGE_SIGN(0, "门架式可变信息标志"), + + //雨棚可变信息标志 + AWNING_VARIABLE_INFORMATION_SIGN(0, "雨棚可变信息标志"), + + //站前悬臂式可变信息标志 + CANTILEVER_VARIABLE_INFORMATION_SIGN_IN_FRONT_OF_STATION(0, "站前悬臂式可变信息标志"), + + //气象检测器 + METEOROLOGICAL_DETECTOR(0, "气象检测器"), + + //路段语音广播系统 + SECTION_VOICE_BROADCAST_SYSTEM(0, "路段语音广播系统"), + + //护栏碰撞预警系统 + GUARDRAIL_COLLISION_WARNING_SYSTEM(0, "护栏碰撞预警系统"), + + //毫米波雷达 + MILLIMETER_WAVE_RADAR(0, "毫米波雷达"), + + //合流区预警系统 + CONFLUENCE_AREA_EARLY_WARNING_SYSTEM(0, "合流区预警系统"), + + //激光疲劳唤醒 + LASER_FATIGUE_AWAKENING(0, "激光疲劳唤醒"), + + //一类交通量调查站 + CLASS_I_TRAFFIC_SURVEY_STATION(0, "一类交通量调查站"), + + //智能行车诱导系统 + INTELLIGENT_DRIVING_GUIDANCE_SYSTEM(0, "智能行车诱导系统"), + + //智能设备箱 + SMART_DEVICE_BOX(0, "智能设备箱"), + + //设备名称 + DEVICE_NAME(0, "设备名称"), + + //设备IP + DEVICE_IP(0, "设备IP"), + + //设备桩号 + EQUIPMENT_PEG_NUMBER(0, "设备桩号"), + + //设备方向 + EQUIPMENT_DIRECTION(0, "设备方向"), + + //设备厂家 + EQUIPMENT_MANUFACTURER(0, "设备厂家"), + + //设备型号 + EQUIPMENT_TYPE(0, "设备型号"), + + //备注 + REMARK(0, "备注"), + + //设备分类 + EQUIPMENT_CLASSIFICATION(0, "设备分类"), + + // 路管人员 + ROAD_CONTROL_PERSONNEL(0, "路管人员"), + + // 救援车辆 + RESCUE_VEHICLE(0, "救援车辆"), + + // 参与事件救援 + PARTICIPATE_IN_INCIDENT_RESCUE(0, "参与事件救援"), + + // 情报板内容发布日志数据 + INFORMATION_BOARD_CONTENT_PUBLISHES_LOG_DATA(0, "情报板内容发布日志数据"), + + // 设备数据 + EQUIPMENT_DATA(0, "设备数据"), + + // 调度信息记录数据 + SCHEDULING_INFORMATION_RECORDS_DATA(0, "调度信息记录数据"), + + // 值班人员信息数据 + DUTY_PERSONNEL_INFORMATION_DATA(0, "值班人员信息数据"), + + // 设备设施隐患事件 异常天气 + HIDDEN_DANGERS_OF_EQUIPMENT_AND_FACILITIES_ABNORMAL_WEATHER(0, "设备设施隐患事件 异常天气"), + + // 交通事故事件数据 + TRAFFIC_ACCIDENT_DATA(0, "交通事故事件数据"), + + // 施工建设事件施工分类 + CONSTRUCTION_CONSTRUCTION_EVENT_CONSTRUCTION_CLASSIFICATION(0, "施工建设事件施工分类"), + + // 事件历史信息数据 + EVENT_HISTORY_INFORMATION_DATA(0, "事件历史信息数据"), + + // 事件侧重要素数据 + EVENTS_FOCUS_ON_FACTOR_DATA(0, "事件侧重要素数据"), + + // 重要事件文件内容数据 + IMPORTANT_EVENT_FILE_CONTENT_DATA(0, "重要事件文件内容数据"), + + // 事件处理流程数据 + EVENT_PROCESSING_FLOW_DATA(0, "事件处理流程数据"), + + // 事件已结束,无法进行操作 + THE_EVENT_ENDED_NO_OPERATION_CAN_BE_PERFORMED(0, "事件已结束,无法进行操作"), + + // 前置节点未点亮 + THE_FRONT_NODE_IS_NOT_LIT(0, "前置节点未点亮"), + + // 服务区异常事件 + SERVICE_AREA_EXCEPTION_EVENT(0, "服务区异常事件"), + + // 交通拥堵事件 + TRAFFIC_JAM_EVENT(0, "交通拥堵事件"), + + // 交通管制事件 + TRAFFIC_CONTROL_INCIDENT(0, "交通管制事件"), + + // 事件类型配置数据 + EVENT_TYPE_CONFIGURATION_DATA(0, "事件类型配置数据"), + + // 车辆事故事件数据 + VEHICLE_ACCIDENT_EVENT_DATA(0, "车辆事故事件数据"), + + // 情报板敏感字管理数据 + INFORMATION_BOARD_SENSITIVE_WORD_MANAGEMENT_DATA(0, "情报板敏感字管理数据"), + + // 机构管理数据 + ORGANIZATION_MANAGEMENT_DATA(0, "机构管理数据"), + + // 事件流程配置数据 + EVENT_FLOW_CONFIGURATION_DATA(0, "事件流程配置数据"), + + // 信息发布记录数据 + INFORMATION_RELEASE_RECORD_DATA(0, "信息发布记录数据"), + + // 发布渠道数据 + RELEASE_CHANNEL_DATA(0, "发布渠道数据"), + + // 信息发布管理记录数据 + INFORMATION_RELEASE_MANAGEMENT_RECORD_DATA(0, "信息发布管理记录数据"), + + // 匝道信息数据 + RAMP_INFORMATION_DATA(0, "匝道信息数据"), + + // 设备故障率分时统计页 + DEVICE_FAILURE_RATE_TIME_SHARING_STATISTICS_PAGE(0, "设备故障率分时统计页"), + + // 辖区路段数据 + DISTRICT_ROAD_DATA(0, "辖区路段数据"), + + // 车辆信息数据 + VEHICLE_INFORMATION_DATA(0, "车辆信息数据"), + + // 语音广播预发布数据 + VOICE_BROADCAST_PRE_RELEASE_DATA(0, "语音广播预发布数据"), + + // 预警信息数据 + EARLY_WARNING_INFORMATION_DATA(0, "预警信息数据"), + + // 设备状态数据 + DEVICE_STATUS_DATA(0, "设备状态数据"), + + // 文件管理数据 + FILE_MANAGEMENT_DATA(0, "文件管理数据"), + + // 设备状态列表 + DEVICE_STATUS_LIST(0, "设备状态列表"), + + // 天气情况统计 + WEATHER_STATISTICS(0, "天气情况统计"), + + // 路段感知统计 + SECTION_PERCEPTION_STATISTICS(0, "路段感知统计"), + + // 路网管控统计 + NETWORK_CONTROL_STATISTICS(0, "路网管控统计"), + + // 养护运营统计 + MAINTENANCE_OPERATION_STATISTICS(0, "养护运营统计"), + + // 公众服务统计 + PUBLIC_SERVICE_STATISTICS(0, "公众服务统计"), + + // 扫码报警统计 + SCAN_CODE_ALARM_STATISTICS(0, "扫码报警统计"), + + // 非机预警统计 + NON_MACHINE_WARNING_STATISTICS(0, "非机预警统计"), + + // GIS+BIM统计 + GIS_BIM_STATISTICS(0, "GIS+BIM统计"), + + // 数字收费站统计 + DIGITAL_TOLL_STATION_STATISTICS(0, "数字收费站统计"), + + // 设备故障率汇总页 + DEVICE_FAILURE_RATE_SUMMARY_PAGE(0, "设备故障率汇总页"), + + // 设备故障率分时汇总页 + EQUIPMENT_FAILURE_RATE_TIME_SHARING_SUMMARY_PAGE(0, "设备故障率分时汇总页"), + + // 还原上次 + RESTORE_LAST_TIME(0, "还原上次"), + + // 未匹配到对应的模板内容 + THE_CORRESPONDING_TEMPLATE_CONTENT_IS_NOT_MATCHED(0, "未匹配到对应的模板内容"), + + // 未匹配到对应的广播内容 + NO_BROADCAST_CONTENT_IS_MATCHED_PROCEDURE(0, "未匹配到对应的广播内容"), + + // 山东高速欢迎您 + WELCOME_TO_SHANDONG_EXPRESSWAY(0, "山东高速欢迎您"), + + // 智能发布 + INTELLIGENT_PUBLISHING(0, "智能发布"), + + // 请选择入屏方式 + PLEASE_SELECT_THE_SCREEN_ENTRY_MODE(0, "请选择入屏方式"), + + // 请输入停留时长 + PLEASE_ENTER_THE_LENGTH_OF_STAY(0, "请输入停留时长"), + + // 请输入停留时长 + PLEASE_SELECT_A_FONT_COLOR(0, "请选择字体颜色"), + + // 请输入内容 + PLEASE_ENTER_CONTENT(0, "请输入内容"), + + // 请选择字体类型 + PLEASE_SELECT_A_FONT_TYPE(0, "请选择字体类型"), + + // 请选择字体大小 + PLEASE_SELECT_A_FONT_SIZE(0, "请选择字体大小"), + + // 请选择对齐方式 + PLEASE_SELECT_AN_ALIGNMENT(0, "请选择对齐方式"), + + // 请选择屏幕尺寸 + PLEASE_SELECT_A_SCREEN_SIZE(0, "请选择屏幕尺寸"), + + // 只允许 + ONLY_ALLOW(0, "只允许"), + + // 禁止 + PROHIBIT(0, "禁止"), + + // 设备管控 + EQUIPMENT_CONTROL(0, "设备管控"), + + // 文件名称 + TRAFFIC_ACCIDENT_EVENT(0, "交通事故事件"), + + // 车辆故障事件 + VEHICLE_BREAKDOWN_EVENT(0, "车辆故障事件"), + + // 重要事件 + IMPORTANT_EVENT(0, "重要事件"), + + // 重要事件初报 + A_PREVIEW_OF_IMPORTANT_EVENTS(0, "重要事件初报"), + + // 重要事件续报 + IMPORTANT_EVENTS_CONTINUE(0, "重要事件续报"), + + // 重要事件终报 + IMPORTANT_EVENTS_ARE_FINALLY_REPORTED(0, "重要事件终报"), + + // 专项工程施工 + SPECIAL_PROJECT_CONSTRUCTION(0, "专项工程施工"), + + // 改扩建专项工程施工 + CONSTRUCTION_OF_SPECIAL_RECONSTRUCTION_AND_EXPANSION_PROJECTS(0, "改扩建专项工程施工"), + + // 桥梁专项工程施工 + BRIDGE_SPECIAL_PROJECT_CONSTRUCTION(0, "桥梁专项工程施工"), + + // 其他专项工程施工 + OTHER_SPECIAL_PROJECT_CONSTRUCTION(0, "其他专项工程施工"), + + // 待确认 + TO_BE_CONFIRMED(0, "待确认"), + + // 处理中 + IN_PROCESS(0, "处理中"), + + // 已完成 + COMPLETED(0, "已完成"), + + // 主线关闭 + MAIN_LINE_OFF(0, "主线关闭"), + + // 主线限行 + MAIN_LINE_TRAFFIC_RESTRICTION(0, "主线限行"), + + // 主线间隔放行 + MAINLINE_INTERVAL_RELEASE(0, "主线间隔放行"), + + // 主线并道 + MAIN_LINE_PARALLEL(0, "主线并道"), + + // 主线限速 + MAIN_LINE_SPEED_LIMIT(0, "主线限速"), + + // 收费站关闭 + TOLL_BOOTH_CLOSED(0, "收费站关闭"), + + // 收费站限行 + TOLL_BOOTHS_ARE_RESTRICTED(0, "收费站限行"), + + // 收费站分流 + TOLL_STATION_DIVERSION(0, "收费站分流"), + + // 收费站间隔放行 + TOLL_BOOTH_CLEARANCE_INTERVALS(0, "收费站间隔放行"), + + // 立交匝道关闭 + THE_INTERCHANGE_RAMP_IS_CLOSED(0, "立交匝道关闭"), + + // 立交限行 + TRAFFIC_AT_THE_INTERCHANGE_WILL_BE_RESTRICTED(0, "立交限行"), + + // 立交匝道限行 + THE_INTERCHANGE_RAMP_IS_RESTRICTED_TO_TRAFFIC(0, "立交匝道限行"), + + // 立交分流 + INTERCHANGE_DIVERSION(0, "立交分流"), + + // 服务区关闭 + SERVICE_AREA_CLOSED(0, "服务区关闭"), + + // 临时关闭 + TEMPORARILY_CLOSED(0, "临时关闭"), + + // 限行车辆 + RESTRICTED_VEHICLE(0, "限行车辆"), + + // 限行车道 + RESTRICTED_LANE(0, "限行车道"), + + // 限行车道且限行车辆 + TRAFFIC_LANES_AND_VEHICLES_ARE_RESTRICTED(0, "限行车道且限行车辆"), + + // 限速 + RATE_LIMITING(0, "限速"), + + // 清障结束 + END_OF_CLEARANCE(0, "清障结束"), + + // 选择无需清障 + SELECTION_WITHOUT_BARRIER_CLEARANCE(0, "选择无需清障"), + + // 内容 + CONTENT(0, "内容"), + + // 一般 + NORMAL(0, "一般"), + + // 紧急 + EXIGENCY(0, "紧急"), + + // 蓝色预警 + BLUE_ALERT(0, "蓝色预警"), + + // 黄色预警 + YELLOW_ALERT(0, "黄色预警"), + + // 橙色预警 + ORANGE_ALERT(0, "橙色预警"), + + // 红色预警 + RED_ALERT(0, "红色预警"), + + // 视频AI + VIDEO_AI(0, "视频AI"), + + // 晴 + SUNNY(0, "晴"), + + // 雨 + THE_RAIN(0, "雨"), + + // 雪 + SNOW(0, "雪"), + + // 雾 + THE_FOG(0, "雾"), + + // 天 + DAY(0, "天"), + + // 小时 + HOUR_S(0, "小时"), + + // 时 + HOUR(0, "时"), + + // 分钟 + MINUTES(0, "分钟"), + + // 秒 + SECONDS(0, "秒"), + + // 总统计数 + PRESIDENTIAL_COUNT(0, "总统计数"), + + // 在线统计数 + ONLINE_STATISTICS(0, "在线统计数"), + + // 在线率 + ONLINE_RATE(0, "在线率"), + + // 丢包率 + PACKET_LOSS_RATE(0, "丢包率"), + + // smallCar + SMALL_CAR(0, "smallCar"), + + // 小型车 + COMPACT_CAR(0, "小型车"), + + // trucks + TRUCKS(0, "trucks"), + + // 货车 + TRUCK(0, "货车"), + + // buses + BUSES(0, "buses"), + + // 客车 + PASSENGER_CAR(0, "客车"), + + // tankers + TANKERS(0, "tankers"), + + // 罐车 + TANK_CAR(0, "罐车"), + + // 道路积水 + ROAD_WATER(0, "道路积水"), + + // 道路湿滑 + SLIPPERY_ROAD(0, "道路湿滑"), + + // 道路结冰 + ICY_ROADS(0, "道路结冰"), + + // 台风 + TYPHOON(0, "台风"), + + // 暴雨 + RAINSTORM(0, "暴雨"), + + // 暴雪 + BLIZZARD(0, "暴雪"), + + // 寒潮 + COLD_WAVE(0, "寒潮"), + + // 大风 + GALE(0, "大风"), + + // 沙尘暴 + SANDSTORM(0, "沙尘暴"), + + // 高温 + HYPERTHERMIA(0, "高温"), + + // 干旱 + ARIDITY(0, "干旱"), + + // 雷电 + AEGIS(0, "雷电"), + + // 冰雹 + HAILSTONE(0, "冰雹"), + + // 霜冻 + FROST(0, "霜冻"), + + // 大雾 + HEAVY_FOG(0, "大雾"), + + // 霾 + HAZE(0, "霾"), + + // 单点 + SINGLE_POINT(0, "单点"), + + // 多点 + MULTIPOINT(0, "多点"), + + // 否 + NO(0, "否"), + + // 是 + IS(0, "是"), + + // 发生 + TAKE_PLACE(0, "发生"), + + // 事件 + INCIDENT(0, "事件"), + + // 白班 + DAY_SHIFT(0, "白班"), + + // 夜班 + NIGHT_SHIFT(0, "夜班"), + + // 车道 + LANE(0, "车道"), + + // 调用 + INVOKE(0, "调用"), + + // 功能 + FEATURE(0, "功能"), + + // 无 + THERE_IS_NO(0, "无"), + + // 自动存储 + AUTOMATIC_STORAGE(0, "自动存储"), + + // 服务器 + SERVER(0, "服务器"), + + // 系统定时调用 + SYSTEM_TIMING_CALL(0, "系统定时调用"), + + // 并道行驶 + PARALLEL_RUNNING(0, "并道行驶"), + + // 临时保通 + TEMPORARY_GUARANTEE(0, "临时保通"), + + // 借路侧服务区通行 + PASS_THROUGH_THE_SERVICE_AREA_ON_THE_BORROWING_SIDE(0, "借路侧服务区通行"), + + // 危化品泄漏 + A_HAZARDOUS_CHEMICAL_LEAK(0, "危化品泄漏"), + + // 整车自燃 + VEHICLE_SPONTANEOUS_COMBUSTION(0, "整车自燃"), + + // 车辆复燃 + VEHICLE_REIGNITION(0, "车辆复燃"), + + // 散装人工倒货 + MANUAL_DUMPING_IN_BULK(0, "散装人工倒货"), + + // 通行受限 + RESTRICTED_ACCESS(0, "通行受限"), + + // 车辆谨慎慢行 + THE_VEHICLE_MOVED_CAUTIOUSLY_AND_SLOWLY(0, "车辆谨慎慢行"), + + // 车辆正常通行 + NORMAL_TRAFFIC(0, "车辆正常通行"), + + // 未知方法 + UNKNOWN_METHOD(0, "未知方法"), + + // 文件名发送 + FILE_NAME_SENDING(0, "文件名发送"), + + // 文件发送 + FILE_SENDING(0, "文件发送"), + + // 指定当前需要播放的清单 + SPECIFIES_THE_LIST_THAT_CURRENTLY_NEEDS_TO_BE_PLAYED(0, "指定当前需要播放的清单"), + + // 气象预警 + METEOROLOGICAL_EARLY_WARNING(0, "气象预警"), + + // 发布语音广播 + RELEASE_VOICE_BROADCAST(0, "发布语音广播"), + + // 通信连接检查 + COMMUNICATION_CONNECTION_CHECK(0, "通信连接检查"), + + // 配置装置参数 + CONFIGURATION_DEVICE_PARAMETER(0, "配置装置参数"), + + + // 读取装置参数 + READ_DEVICE_PARAMETER(0, "读取装置参数"), + + + // 读取装置状态数据 + READ_DEVICE_STATUS_DATA(0, "读取装置状态数据"), + + + // 模式设定命令 + MODE_SETTING_COMMAND(0, "模式设定命令"), + + + // 模式查询命令 + PATTERN_QUERY_COMMAND(0, "模式查询命令"), + + + // 工作时间设定命令 + WORK_TIME_SETTING_COMMAND(0, "工作时间设定命令"), + + + // 工作时间查询命令 + THIS_COMMAND_IS_USED_TO_QUERY_WORKING_HOURS(0, "工作时间查询命令"), + + + // 自定义模式设置 + CUSTOMIZE_MODE_SETTINGS(0, "自定义模式设置"), + + + // 自定义模式查询命令 + USER_DEFINED_MODE_QUERY_COMMAND(0, "自定义模式查询命令"), + + + // 设备控制模式 + DEVICE_CONTROL_MODE(0, "设备控制模式"), + + + // 读取设备控制模式 + READ_THE_DEVICE_CONTROL_MODE(0, "读取设备控制模式"), + + + // 设置自动控制模式工作状态 + SET_THE_WORKING_STATE_OF_AUTOMATIC_CONTROL_MODE(0, "设置自动控制模式工作状态"), + + + // 读取自动控制模式工作状态 + READ_THE_WORKING_STATUS_OF_AUTOMATIC_CONTROL_MODE(0, "读取自动控制模式工作状态"), + + + // 读取当前设备工作状态 + READ_THE_CURRENT_DEVICE_STATUS(0, "读取当前设备工作状态"), + + + // 查询数据 + QUERY_DATA(0, "查询数据"), + + // 左侧护栏 + LEFT_GUARDRAIL(0, "左侧护栏"), + + // 右侧护栏 + RIGHT_SIDE_FENCE(0, "右侧护栏"), + + // 卫生间 + REST_ROOM(0, "卫生间"), + + // 餐厅 + DINING_ROOM(0, "餐厅"), + + // 停车场 + PARKING_LOT(0, "停车场"), + + // 加油站 + GAS_STATION(0, "加油站"), + + // 充电桩 + CHARGING_PILE(0, "充电桩"), + + // 车流量大 + HEAVY_TRAFFIC(0, "车流量大"), + + // 恶劣天气 + INCLEMENT_WEATHER(0, "恶劣天气"), + + // 警备任务 + GUARD_DUTY(0, "警备任务"), + + // 施工 + BE_UNDER_CONSTRUCTION(0, "施工"), + + // 仿宋 + IMITATION_SONG_DYNASTY(0, "仿宋"), + + // 发生降雨异常天气事件 + ABNORMAL_RAINFALL_WEATHER_EVENTS_OCCURRED(0, "发生降雨异常天气事件"), + + // 发生降雪异常天气事件 + AN_UNUSUAL_SNOWFALL_WEATHER_EVENT_OCCURRED(0, "发生降雪异常天气事件"), + + // 发生毛毛雨异常天气事件 + A_DRIZZLE_ABNORMAL_WEATHER_EVENT_OCCURRED(0, "发生毛毛雨异常天气事件"), + + // 发生雨夹雪异常天气事件 + AN_UNUSUAL_WEATHER_EVENT_OF_SLEET_OCCURRED(0, "发生雨夹雪异常天气事件"), + + // 发生阴霾异常天气事件 + HAZE_ABNORMAL_WEATHER_EVENT_OCCURRED(0, "发生阴霾异常天气事件"), + + // 发生雾异常天气事件 + ABNORMAL_FOG_WEATHER_EVENT_OCCURRED(0, "发生雾异常天气事件"), + + // 发生浓雾异常天气事件 + AN_ABNORMAL_WEATHER_EVENT_OF_DENSE_FOG_OCCURRED(0, "发生浓雾异常天气事件"), + + // SETMD + SETMD(0, "SETMD"), + + // ASKMD + ASKMD(0, "ASKMD"), + + // SETTM + SETTM(0, "SETTM"), + + // ASKTM + ASKTM(0, "ASKTM"), + + // SETDF + SETDF(0, "SETDF"), + + // ASKDF + ASKDF(0, "ASKDF"), + + // start Pa Tts + START_PA_TTS(0, "startPaTts"), + + // 完整时间格式 + TIME_FORMAT_ALL(0, "yyyy-MM-dd HH:mm:ss"), + + // 数据库导出文件时间格式 + ARCHIVE_TIME_FORMAT_ALL(0, "yyyy-MM-dd_HH-mm-ss"), + + // 汉字时间格式 + CHINESE_CHARACTER_TIME_FORMAT(0, "yyyy年MM月dd日 HH:mm:ss"), + + // 纯汉字时间格式 年月日时分 + PURE_CHINESE_CHARACTER_TIME_FORMAT(0, "yyyy年MM月dd日 HH时mm分"), + + // 纯汉字时间格式 年月日时分 + PURE_CHINESE_CHARACTER_TIME_FORMATS(0, "yy年MM月dd日 HH时mm分"), + + // 纯汉字时间格式 时分 + PURE_CHINESE_CHARACTER_TIME_FORMAT_TIME_DIVISION(0, "HH时mm分"), + + // 时间格式 + TIME_FORMAT_YEARS_MONTH_DAY(0, "yyyy-MM-dd"), + + // 时间格式 年月 + TIME_FORMAT_YEARS_MONTH_ONE(0, "yyyy-MM-01"), + + // 时间格式 年月 + TIME_FORMAT_YEARS_ONE_ONE(0, "yyyy-01-01"), + + // 时间格式 时分秒 + TIME_FORMAT_MINUTES_SECOND(0, "HH:mm:ss"), + + // 天气预警级别 + EARLY_WORNING_LEVEL(0, "1|2|3"), + + // 正则表达式的中国 + REGEX_CHINESE(0, "[\u4e00-\u9fa5]"), + + // 天气经理Id + MANAGER_ID(0, "YG10201"), + + // -1 + MINUS_ONE(-1, "-1"), + + // -2 + MINUS_TWO(-2, "-2"), + + // 0 + ZERO(0, "0"), + + // 1 + ONE(1, "1"), + + // 2 + TWO(2, "2"), + + // 3 + THREE(3, "3"), + + // 4 + FOUR(4, "4"), + + // 5 + FIVE(5, "5"), + + // 6 + SIX(6, "6"), + + // 7 + SEVEN(7, "7"), + + // 8 + EIGHT(8, "8"), + + // 9 + NINE(9, "9"), + + // 10 + TEN(10, "10"), + + // 11 + ELEVEN(11, "11"), + + // 12 + TWELVE(12, "12"), + + // 13 + THIRTEEN(13, "13"), + + // 14 + FOURTEEN(14, "14"), + + // 15 + FIFTEEN(15, "15"), + + // 16 + SIXTEEN(16, "16"), + + // 17 + SEVENTEEN(17, "17"), + + // 18 + EIGHTEEN(18, "18"), + + // 20 + TWENTY(20, "20"), + + // 21 + TWENTY_ONE(21, "21"), + + // 22 + TWENTY_TWO(22, "22"), + + // 23 + TWENTY_THREE(23, "23"), + + // 24 + TWENTY_FOUR(24, "24"), + + // 25 + TWENTY_FIVE(25, "25"), + + // 26 + TWENTY_SIX(26, "26"), + + // 28 + TWENTY_EIGHT(28, "28"), + + // 30 + THIRTY(30, "30"), + + // 31 + THIRTY_ONE(31, "31"), + + // 33 + THIRTY_THREE(33, "33"), + + // 34 + THIRTY_FOUR(34, "34"), + + // 35 + THIRTY_FIVE(35, "35"), + + // 36 + THIRTY_SIX(36, "36"), + + // 40 + FORTY(40, "40"), + + // 47 + FORTY_SEVEN(47, "47"), + + // 50 + FIFTY(50, "50"), + + // 51 + FIFTY_ONE(51, "51"), + + // 52 + FIFTY_TWO(52, "52"), + + // 55 + FIFTY_FIVE(55, "55"), + + // 56 + FIFTY_SIX(56, "56"), + + // 59 + FIFTY_NINE(59, "59"), + + // 60 + SIXTY(60, "60"), + + // 64 + SIXTY_FOUR(64, "64"), + + // 70 + SEVENTY(70, "70"), + + // 91 + NINETY_ONE(91, "91"), + + // 99 + NINETYNINE(99, "99"), + + // 100 + ONE_HUNDRED(100, "100"), + + // 105 + ONE_HUNDRED_AND_FIVE(105, "105"), + + // 150 + ONE_HUNDRED_AND_FIFTY(150, "150"), + + // 152 + ONE_HUNDRED_AND_FIFTY_TWO(152, "152"), + + // 154 + ONE_HUNDRED_AND_FIFTY_FOUR(154, "154"), + + // 154.585 + ONE_HUNDRED_AND_FIFTY_FOUR_FIFTY_FIVE(154, "154.585"), + + // 180 + ONE_HUNDRED_AND_EIGHT(180, "180"), + + // 200 + TWO_HUNDRED(200, "200"), + + // 204 + TWO_HUNDRED_AND_FORTY(204, "204"), + + // 206 + TWO_HUNDRED_AND_SIX(206, "206"), + + // 208 + TWO_HUNDRED_AND_EIGHT(208, "208"), + + // 255 + TWO_HUNDRED_AND_FIFTY_FIVE(255, "255"), + + // 296 + TWO_HUNDRED_AND_NINETY_SIX(296, "296"), + + // 300 + THREE_HUNDRED(300, "300"), + + // 306 + THREE_HUNDRED_AND_SIX(306, "306"), + + // 334 + THREE_HUNDRED_AND_THIRTY_FOUR(334, "334"), + + // 360 + THREE_HUNDRED_AND_SIXTY(360, "360"), + + // 365 + THREE_HUNDRED_AND_SIXTY_FIVE(365, "365"), + + // 366 + THREE_HUNDRED_AND_SIXTY_SIX(366, "366"), + + // 379 + THREE_HUNDRED_SEVENTY_NINE(379, "379"), + + // 384 + THREE_HUNDRED_EIGHTY_FOUR(384, "384"), + + // 400 + FOUR_HUNDRED(400, "400"), + + // 401 + FOUR_HUNDRED_AND_ONE(401, "401"), + + // 402 + FOUR_HUNDRED_AND_TWO(402, "402"), + + // 403 + FOUR_HUNDRED_AND_THREE(403, "403"), + + // 404 + FOUR_HUNDRED_AND_FOUR(404, "404"), + + // 412 + FOUR_HUNDRED_TWELVE(412, "412"), + + // 429 + FOUR_HUNDRED_TWENTY_NINE(429, "429"), + + // 447 + FOUR_HUNDRED_FORTY_SEVEN(447, "447"), + + // 460 + FOUR_HUNDRED_SIX(460, "460"), + + // 484 + FOUR_HUNDRED_EIGHTY_FOUR(484, "484"), + + // 485 + FOUR_HUNDRED_EIGHTY_FIVE(485, "485"), + + // 500 + FIVE_HUNDRED(500, "500"), + + // 514 + FIVE_HUNDRED_FOURTEEN(514, "514"), + + // 534 + FIVE_HUNDRED_AND_THIRTY_FOUR(534, "534"), + + // 544 + FIVE_HUNDRED_AND_FORTY_FOUR(544, "544"), + + // 600 + SIX_HUNDRED(600, "600"), + + // 614 + SIX_HUNDRED_FOURTEEN(614, "614"), + + // 668 + SIX_HUNDRED_SIXTY_EIGHT(668, "668"), + + // 700 + SEVEN_HUNDRED(700, "700"), + + // 768 + SEVEN_HUNDRED_SIXTY_EIGHT(768, "768"), + + // 999 + NINE_HUNDRED_AND_NINETY_NINE(999, "999"), + + // 1000 + THOUSAND(1000, "1000"), + + // 1001 + ONE_THOUSAND_ONE(1001, "1001"), + + // 2000 + TWO_THOUSAND(2000, "2000"), + + // 3600 + THREE_THOUSAND_SIX_HUNDRED(3600, "3600"), + + // 5000 + FIVE_THOUSAND(5000, "5000"), + + // 7200 + SEVEN_THOUSAND_TWO_HUNDRED(7200, "7200"), + + // 9072 + NINE_THOUSAND_AND_SEVENTY_TWO(9072, "9072"), + + // 一万 + TEN_THOUSAND(10000, "10000"), + + // 42001 + FORTY_TWO_THOUSAND_ONE(42001, "42001"), + + // 40014 + FORTY_THOUSAND_AND_FOURTEEN(40014, "40014"), + + // 96659 + NINETY_SIX_THOUSAND_SIX_HUNDRED_FIFTY_NINE(96659, "96659"), + + // 65535 + SIXTY_FIVE_THOUSAND_FIVE_HUNDRED_THIRTY_FIVE(65535, "65535"), + + // 3076575 + THREE_HUNDRED_SEVENTY_SIX_THOUSAND_FIVE_HUNDRED_SEVENTY_FIVE(3076575, "3076575"), + + // 5774310 + FIVE_HUNDRED_SEVENTY_FOUR_THOUSAND_THREE_HUNDRED_AND_TEN(5774310, "5774310"), + + // 999999999 + NINE_HUNDRED_AND_NINETY_NINE_HUNDRED_AND_NINETY_NINE_HUNDRED_AND_NINETY_NINE(999999999, "999999999"), + + // 百分之百 + ONE_HUNDRED_PERCENT(0, "100.00%"), + + // 百分之零 + ZERO_PERCENT(0, "0.00%"), + + // 百分之负一 + MINUS_ONE_PERCENT(0, "-1.00%"), + + // 天气服务200 + WEATHER_FORECAST_TWO_HUNDRED(200, "请求成功"), + + // 天气服务204 + WEATHER_FORECAST_TWO_HUNDRED_AND_FORTY(204, "请求失败:请求成功,但你查询的地区暂时没有你需要的数据"), + + // 天气服务400 + WEATHER_FORECAST_FOUR_HUNDRED(400, "请求失败:请求错误,可能包含错误的请求参数或缺少必选的请求参数"), + + // 天气服务401 + WEATHER_FORECAST_FOUR_HUNDRED_AND_ONE(401, "请求失败:认证失败,可能使用了错误的KEY、数字签名错误、KEY的类型错误"), + + // 天气服务402 + WEATHER_FORECAST_FOUR_HUNDRED_AND_TWO(402, "请求失败:超过访问次数或余额不足以支持继续访问服务"), + + // 天气服务403 + WEATHER_FORECAST_FOUR_HUNDRED_AND_THREE(403, "请求失败:无访问权限,可能是绑定的PackageName、BundleID、域名IP地址不一致"), + + // 天气服务404 + WEATHER_FORECAST_FOUR_HUNDRED_AND_FOUR(404, "请求失败:查询的地区或者数据不存在"), + + // 天气服务429 + WEATHER_FORECAST_FOUR_HUNDRED_TWENTY_NINE(429, "请求失败:每分钟访问次数过多,请稍后重试"), + + // 天气服务500 + WEATHER_FORECAST_FIVE_HUNDRED(500, "请求失败:无响应或超时"), + + // 数据中心流量统计IP端口 + DATA_CENTER_TRAFFIC_STATISTICS_IP_PORT(0, "http://10.166.139.16:8080"), + + // 数据中心流量统计获取令牌URI + DATA_CENTER_TRAFFIC_STATISTICS_OBTAIN_THE_TOKEN_URI(0, "/auth/client/token?appId=sdgs_it_hs_jihe&clientSecret=sdgs_it_hs_jihe"), + + // 获取在途车辆流量URI + GETS_THE_VEHICLE_TRAFFIC_URI_IN_TRANSIT(0, "/api/dc/query/rd_jihe_d_vehtypeonwayflow"), + + // 在途车路段门架平均车速URI + AVERAGE_SPEED_URI_OF_GANTRY_IN_TRANSIT(0, "/api/dc/query/rd_jihe_d_ganonwayavgspeed"), + + // 获取当前拥堵事件信息URI + GETS_THE_URI_OF_THE_CURRENT_CONGESTION_EVENT(0, "/api/dc/query/rd_tr_congestion_jh"), + + // 获取车道占有率信息URI + GETS_THE_LANE_OCCUPANCY_URI(0, "/api/dc/query/rd_jihe_d_gantryoccupationbyhour"), + + // 语音广播登录URL + BROADCAST_LOG_URL(0, "http://10.166.133.9:38999/api/weather_service/get_earlyworning_info"), + + // 语音广播连接错误 + BROADCAST_FOUR_HUNDRED(400, "语音广播连接错误"), + + // 指标数据默认请求URL + DC_METRICS_DEVICE_GATEWAY_URI(0, "/api/iot/metrics/device-gateway/message/count"), + + // 指标数据如果请求中包含产品ID,则修改请求URL + DC_METRICS_DEVICE_URI(0, "/api/iot/metrics/device/message/count"), + + // 指标数据物联系统监控url + IOT_SYSTEMS_MONITOR_URL(0, "/monitor/server"), + + // DcMYSQLJob athena 数据库 + ATHENA(0, "jdbc:mysql://10.0.111.11:3306/athena?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true"), + + // DcMYSQLJob dc 数据库 + JIHE_DC(0, "jdbc:mysql://10.0.111.11:3306/jihe-dc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true"), + + // DcMYSQLJob dc pro 数据库 + JIHE_DC_PRO(0, "jdbc:mysql://10.0.111.11:3306/jihe-dc-pro?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true"), + + // 根据物联产品id获取设备数据 /api/iot/device/cache/ + GET_DEVICE_DATA_BASED_ON_IOT_PRODUCT_ID(0, "/api/iot/device/cache/"), + + // 获取设备最新属性数据 /api/iot/device/properties/latest/ + OBTAIN_THE_LATEST_DEVICE_PROPERTY_DATA(0, "/api/iot/device/properties/latest/"), + + // 获取设备历史属性列表 /api/iot/device/properties/history/ + OBTAIN_THE_DEVICE_HISTORY_ATTRIBUTE_LIST(0, "/api/iot/device/properties/history/"), + + // 获取设备指定属性最新数据 /api/iot/device/properties/latest/ + GETS_THE_LATEST_DATA_ABOUT_THE_SPECIFIED_ATTRIBUTES_OF_A_DEVICE(0, "/api/iot/device/properties/latest/"), + + // 获取设备指定属性实时数据 /api/iot/device/properties/realtime/ + GET_REAL_TIME_DATA_ABOUT_THE_SPECIFIED_PROPERTIES_OF_THE_DEVICE(0, "/api/iot/device/properties/realtime/"), + + // 设置设备属性值 /api/iot/device/properties/setting/ + SET_DEVICE_PROPERTY_VALUES(0, "/api/iot/device/properties/setting/"), + + // 设备功能调用 /api/iot/device/functions/ + DEVICE_FUNCTION_CALL(0, "/api/iot/device/functions/"), + + // 查询指定事件历史数据列表 /api/iot/device/events/history/ + EXAMPLE_QUERY_THE_HISTORICAL_DATA_LIST_OF_A_SPECIFIED_EVENT(0, "/api/iot/device/events/history/"), + + // 查询物联设备事件数据 /api/iot/device/logs/ + QUERY_EVENT_DATA_OF_IOT_DEVICES(0, "/api/iot/device/logs/"), + + // 获取物联设备物模型 /api/iot/device/logs/ + GET_A_PHYSICAL_MODEL_OF_AN_IOT_DEVICE(0, "/api/iot/device/metadata/"), + + // 获取视频流信息 /videoInfo/api/externalVideoStreaming + GET_VIDEO_STREAM_INFORMATION(0, "/videoInfo/api/externalVideoStreaming"), + + // 云平台控制 /videoInfo/api/PTZControl + CLOUD_PLATFORM_CONTROL(0, "/videoInfo/api/PTZControl"), + + // 查询附近相机 /videoInfo/api/nearCamListDistance + SEARCH_NEARBY_CAMERAS(0, "/videoInfo/api/nearCamListDistance"), + + // 物联设备查询 /api/iot/device/query + INTERNET_OF_THINGS_DEVICE_QUERY(0, "/api/iot/device/query"), + + // 查询同步相机数据 /system/dept/camTreeselect + EXAMPLE_QUERY_SYNC_CAMERA_DATA(0, "/system/dept/camTreeselect"), + + // 获得相机令牌 /apiLogin + GET_THE_CAMERA_TOKEN(0, "/apiLogin"), + + // 根据组织机构获取摄像机信息 /system/camera/camList + GET_CAMERA_INFORMATION_BY_ORGANIZATION(0, "/system/camera/camList"), + + // 导出通行情况快报 wordTemplate/wordTemplate.docx + EXPORT_TRAFFIC_REPORT(0, "wordTemplate/wordTemplate.docx"), + + // 获取微信token https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid= + GET_A_WECHAT_TOKEN(0, "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid="), + + // 执行微信推送 https://api.weixin.qq.com/cgi-bin/message/template/send?access_token= + IMPLEMENT_WECHAT_PUSH(0, "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token="), + + // 获取微信公众号全部关注人的openid https://api.weixin.qq.com/cgi-bin/user/get?access_token= + GET_THE_OPENID_OF_ALL_FOLLOWERS_OF_WECHAT_PUBLIC_ACCOUNT(0, "https://api.weixin.qq.com/cgi-bin/user/get?access_token="), + + // 获取门架指标数据 /api/dc/query/rd_jihe_d_evaluateindicator + OBTAIN_THE_SHELF_INDICATOR_DATA(0, "/api/dc/query/rd_jihe_d_evaluateindicator"), + + // 断面小时车流量分车型 /api/dc/query/rd_jihe_d_vehtypeflowbydatesection + SECTION_HOURLY_TRAFFIC_FLOW_BY_VEHICLE_TYPE(0, "/api/dc/query/rd_jihe_d_vehtypeflowbydatesection"), + + // 各收费站入口分车型小时车流量 /api/dc/query/ts_jihe_d_vehtypeflowbyhourstation + EACH_TOLL_STATION_ENTRANCE_BY_TYPE_OF_HOURLY_TRAFFIC_FLOW(0, "/api/dc/query/ts_jihe_d_vehtypeflowbyhourstation"), + + // 各收费站入口分车型车流量 /api/dc/query/ts_jihe_d_vehtypeflowbyhourstation + THE_ENTRANCE_OF_EACH_TOLL_STATION_IS_DIVIDED_INTO_VEHICLE_FLOW(0, "/api/dc/query/ts_jihe_d_vehtypeflowbyhourstation"), + + // 全路段双向实时车流量 /api/dc/query/gan_jihe_d_vehtypeflow + THE_WHOLE_SECTION_TWO_WAY_REAL_TIME_TRAFFIC_FLOW(0, "/api/dc/query/gan_jihe_d_vehtypeflow"), + + // 雷达数据 http://www.nmc.cn/publish/radar/chinaall.html + RADAR_DATA(0, "http://www.nmc.cn/publish/radar/chinaall.html"), + + // 通过手机号获取企业微信userId https://qyapi.weixin.qq.com/cgi-bin/user/getuserid?access_token= + OBTAIN_THE_ENTERPRISE_WECHAT_USER_ID_THROUGH_THE_MOBILE_PHONE_NUMBER(0, "https://qyapi.weixin.qq.com/cgi-bin/user/getuserid?access_token="), + + // 给企业微信用户发送文本消息 https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token= + SEND_TEXT_MESSAGES_TO_ENTERPRISE_WECHAT_USERS(0, "https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token="), + + // 非机预警图片地址前缀 + NON_MACHINE_WARNING_IMAGE_ADDRESS_PREFIX(0, "https://10.0.111.11/fjyj"), + + // currentWeatherAndForecastInformation + CURRENT_WEATHER_AND_FORECAST_INFORMATION(0, "currentWeatherAndForecastInformation"), + + // dc_device_type + DC_DEVICE_TYPE(0, "dc_device_type"), + + // RADAR_TOPIC + RADAR_TOPIC(0, "RADAR_TOPIC"), + + // trafficAnalysis + TRAFFIC_ANALYSIS(0, "trafficAnalysis"), + + // timeRange + TIME_RANGE(0, "timeRange"), + + // realTime + REAL_TIME(0, "realTime"), + + // constructionEnd + CONSTRUCTION_END(0, "constructionEnd"), + + // received_message + RECEIVED_MESSAGE(0, "received_message"), + + // congestionEnd + CONGESTION_END(0, "congestionEnd"), + + // illegalParkingEnd + ILLEGAL_PARKING_END(0, "illegalParkingEnd"), + + // lowVisibilityEnd + LOW_VISIBILITY_END(0, "lowVisibilityEnd"), + + // singleVehicleBreakdownEnd + SINGLE_VEHICLE_BREAKDOWN_END(0, "singleVehicleBreakdownEnd"), + + // pedestrianEnd + PEDESTRIAN_END(0, "pedestrianEnd"), + + // trafficAccidentEnd + TRAFFIC_ACCIDENT_END(0, "trafficAccidentEnd"), + + // abandonedObjectEnd + ABANDONED_OBJECT_END(0, "abandonedObjectEnd"), + + // startTime + START_TIME(0, "startTime"), + + // endTime + END_TIME(0, "endTime"), + + // estimatedEndTime + ESTIMATED_END_TIME(0, "estimatedEndTime"), + + // occurrenceTime + OCCURRENCE_TIME(0, "occurrenceTime"), + + // direction + DIRECTION(0, "direction"), + + // eventSubclass + EVENT_SUBCLASS(0, "eventSubclass"), + + // eventState + EVENT_STATE(0, "eventState"), + + // eventSource + EVENT_SOURCE(0, "eventSource"), + + // sbx-fun-kl + SBX_FUN_KL(0, "sbx-fun-kl"), + + // POST + POST(0, "POST"), + + // lang + LANG(0, "lang"), + + // dcEventAbnormalWeather.weatherSituation + DC_EVENT_ABNORMAL_WEATHER_WEATHER_SITUATION(0, "dcEventAbnormalWeather.weatherSituation"), + + // dcEventAbnormalWeather.emergencyLevel + DC_EVENT_ABNORMAL_WEATHER_EMERGENCY_LEVEL(0, "dcEventAbnormalWeather.emergencyLevel"), + + // dcEventAccident.locationType + dc_Event_Accident_location_Type(0, "dcEventAccident.locationType"), + + // dcEventTrafficCongestion.locationType + DC_EVENT_TRAFFIC_CONGESTION_LOCATION_TYPE(0, "dcEventTrafficCongestion.locationType"), + + // dcEventVehicleAccident.locationType + DC_EVENT_VEHICLE_ACCIDENT_LOCATION_TYPE(0, "dcEventVehicleAccident.locationType"), + + // dcEventAccident.weatherCondition + DC_EVENT_ACCIDENT_WEATHER_CONDITION(0, "dcEventAccident.weatherCondition"), + + // dcEventVehicleAccident.weatherCondition + DC_EVENT_VEHICLE_ACCIDENT_WEATHER_CONDITION(0, "dcEventVehicleAccident.weatherCondition"), + + // dcEventAccident.impactLevel + DC_EVENT_ACCIDENT_IMPACT_LEVEL(0, "dcEventAccident.impactLevel"), + + // dcEventAccident.isReverseCargo + DC_EVENT_ACCIDENT_IS_REVERSE_CARGO(0, "dcEventAccident.isReverseCargo"), + + // dcEventAccident.isMaintenance + DC_EVENT_ACCIDENT_IS_MAINTENANCE(0, "dcEventAccident.isMaintenance"), + + // dcEventAccident.congestionAhead + DC_EVENT_ACCIDENT_CONGESTION_AHEAD(0, "dcEventAccident.congestionAhead"), + + // dcEventAccident.atIntersection + DC_EVENT_ACCIDENT_AT_INTERSECTION(0, "dcEventAccident.atIntersection"), + + // dcEventAccident.onCurve + DC_EVENT_ACCIDENT_ON_CURVE(0, "dcEventAccident.onCurve"), + + // dcEventAccident.isPrivate + DC_EVENT_ACCIDENT_IS_PRIVATE(0, "dcEventAccident.isPrivate"), + + // dcEventVehicleAccident.congestionAhead + DC_EVENT_VEHICLE_ACCIDENT_CONGESTION_AHEAD(0, "dcEventVehicleAccident.congestionAhead"), + + // dcEventVehicleAccident.atIntersection + DC_EVENT_VEHICLE_ACCIDENT_AT_INTERSECTION(0, "dcEventVehicleAccident.atIntersection"), + + // dcEventVehicleAccident.onCurve + DC_EVENT_VEHICLE_ACCIDENT_ON_CURVE(0, "dcEventVehicleAccident.onCurve"), + + // dcEventVehicleAccident.isPrivate + DC_EVENT_VEHICLE_ACCIDENT_IS_PRIVATE(0, "dcEventVehicleAccident.isPrivate"), + + // inTunnel + IN_TUNNEL(0, "inTunnel"), + + // dcEventConstruction.controlMode + DC_EVENT_CONSTRUCTION_CONTROL_MODE(0, "dcEventConstruction.controlMode"), + + // dcEventConstruction.locationType + DC_EVENT_CONSTRUCTION_LOCATION_TYPE(0, "dcEventConstruction.locationType"), + + // dcEventConstruction.specialConstruction + DC_EVENT_CONSTRUCTION_SPECIAL_CONSTRUCTION(0, "dcEventConstruction.specialConstruction"), + + // dcEventConstruction.constructionMeasurement + DC_EVENT_CONSTRUCTION_CONSTRUCTION_MEASUREMENT(0, "dcEventConstruction.constructionMeasurement"), + + //dcEventConstruction.exitsInlets + DC_EVENT_CONSTRUCTION_EXITS_IN_LETS(0, "dcEventConstruction.exitsInlets"), + + //dcEventServiceArea.exitsInlets + DC_EVENT_SERVICE_AREA_EXITS_IN_LETS(0, "dcEventServiceArea.exitsInlets"), + + //dcEventTrafficControl.exitsInlets + DC_EVENT_TRAFFIC_CONTROL_EXITS_IN_LETS(0, "dcEventTrafficControl.exitsInlets"), + + //dcEventConstruction.trafficCondition + DC_EVENT_CONSTRUCTION_TRAFFIC_CONDITION(0, "dcEventConstruction.trafficCondition"), + + //dcEventConstruction.constructionMethod + DC_EVENT_CONSTRUCTION_CONSTRUCTION_METHOD(0, "dcEventConstruction.constructionMethod"), + + //dcEventServiceArea.disableFacility + DC_EVENT_SERVICE_AREA_DISABLE_FACILITY(0, "dcEventConstruction.constructionMethod"), + + //dcEventTrafficCongestion.congestionCause + DC_EVENT_TRAFFIC_CONGESTION_CONGESTION_CAUSE(0, "dcEventTrafficCongestion.congestionCause"), + + //dcEventTrafficCongestion.location + DC_EVENT_TRAFFIC_CONGESTION_LOCATION(0, "dcEventTrafficCongestion.congestionCause"), + + //dcEventTrafficCongestion.weatherCondition + DC_EVENT_TRAFFIC_CONGESTION_WEATHER_CONDITION(0, "dcEventTrafficCongestion.weatherCondition"), + + //dcEventTrafficControl.controlType + DC_EVENT_TRAFFIC_CONTROL_CONTROL_TYPE(0, "dcEventTrafficControl.controlType"), + + //dcEventTrafficControl.controlCause + DC_EVENT_TRAFFIC_CONTROL_CONTROL_CAUSE(0, "dcEventTrafficControl.controlCause"), + + //dcEventTrafficControl.causeType + DC_EVENT_TRAFFIC_CONTROL_CAUSE_TYPE(0, "dcEventTrafficControl.causeType"), + + //dcEventTrafficControl.measure + DC_EVENT_TRAFFIC_CONTROL_MEASURE(0, "dcEventTrafficControl.measure"), + + //dcEventTrafficControl.classify + DC_EVENT_TRAFFIC_CONTROL_CLASSIFY(0, "dcEventTrafficControl.classify"), + + //dcEventTrafficControl.limitedType + DC_EVENT_TRAFFIC_CONTROL_LIMITED_TYPE(0, "dcEventTrafficControl.limitedType"), + + //dcEventAccident.facilityId + DC_EVENT_ACCIDENT_FACILITY_ID(0, "dcEventAccident.facilityId"), + + //dcEventConstruction.facilityId + DC_EVENT_CONSTRUCTION_FACILITY_ID(0, "dcEventConstruction.facilityId"), + + //dcEventServiceArea.facilityId + DC_EVENT_SERVICE_AREA_FACILITY_ID(0, "dcEventServiceArea.facilityId"), + + //dcEventTrafficCongestion.facilityId + DC_EVENT_TRAFFIC_CONGESTION_FACILITY_ID(0, "dcEventTrafficCongestion.facilityId"), + + //dcEventVehicleAccident.facilityId + DC_EVENT_VEHICLE_ACCIDENT_FACILITY_ID(0, "dcEventVehicleAccident.facilityId"), + + //dcEventTrafficControl.facilityId + DC_EVENT_TRAFFIC_CONTROL_FACILITY_ID(0, "dcEventTrafficControl.facilityId"), + + //dcEventAccident.location + DC_EVENT_ACCIDENT_LOCATION(0, "dcEventAccident.location"), + + // warningStrategy + WARNING_STRATEGY(0, "warningStrategy"), + + // warningData: + WARNING_DATA(0, "warningData:"), + + // application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + EXPORT_THE_TEMPLATE_CONTENT_TYPE(0, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:"), + + // 小写day: + LOWERCASE_DAY(0, "day"), + + // 小写month: + LOWERCASE_MONTH(0, "month"), + + // 小写year: + LOWERCASE_YEAR(0, "year"), + + // 小写quarter: + LOWERCASE_QUARTER(0, "quarter"), + + // ADD + ADD(0, "ADD"), + + // UP + UP(0, "UP"), + + // ETC + ETC(0, "ETC"), + + // Default + DEFAULT(0, "Default"), + + // MODIFY + MODIFY(0, "MODIFY"), + + // Add + Add(0, "Add"), + + // EDIT + EDIT(0, "EDIT"), + + // DELETE + DELETE(0, "DELETE"), + + // 大写K + CAPITAL_K(0, "K"), + + // 小写K + LOWER_CASE_K(0, "k"), + + // N/A + N_PERHAPS_A(0, "N/A"), + + // 情报板默认字体颜色 + INFORMATION_BOARD_DEFAULT_FONT_COLOR(0, "ffff00"), + + // 行车诱导功能码 01 + ZERO_ONE(0, "01"), + + // 行车诱导功能码 0b + ZERO_B(0, "0b"), + + // 行车诱导功能码 0d + ZERO_D(0, "0d"), + + // 行车诱导功能码 0f + ZERO_F(0, "0f"), + + // 行车诱导功能码 00 + ZERO_ZERO(0, "00"), + + // 行车诱导功能码 3C + THREE_C(0, "3C"), + + // 太阳能板功能码 A1 + A_ONE(0, "A1"), + + // 太阳能板功能码 A2 + A_TWO(0, "A2"), + + // 太阳能板功能码 A3 + A_THREE(0, "A3"), + + // 太阳能板功能码 A4 + A_FOUR(0, "A4"), + + // 太阳能板功能码 A5 + A_FIVE(0, "A5"), + + // 太阳能板功能码 A6 + A_SIX(0, "A6"), + + // 行车诱导功能码 3D + THREE_D(0, "3D"), + + // null + NULL(0, "null"), + + // 百分号 + PER_CENT(0, "%"), + + // 空字符串 + EMPTY_STRING(0, ""), + + // 空格 + BLANK_SPACE(0, " "), + + // 金钱符 + MONEY_SIGN(0, "$"), + + // 加号 + PLUS_SIGN(0, "+"), + + // 短横杠 + SHORT_BAR(0, "-"), + + // 大于号 + GREATER_THAN_SIGN(0, ">"), + + // 小于号 + LESS_THAN_SIGN(0, "<"), + + // 下划线 + UNDERLINE(0, "_"), + + // 逗号 + COMMA(0, ","), + + // 中文逗号 + CHINESE_COMMA(0, ","), + + // 分号 + SEMICOLON(0, "、"), + + // 冒号 + COLON(0, ";"), + + // 点号 + DOT_MARK(0, "."), + + // 中冒号 + IN_THE_COLON(0, ":"), + + // 左中括号 + LEFT_CENTER_BRACKET(0, "["), + + // 右中括号 + CLOSE_CENTER_BRACKET(0, "]"), + + // 左大括号 + OPEN_BRACE(0, "{"), + + // 右大括号 + CLOSING_BRACE(0, "}"), + + // 竖线 + VERTICAL_LINE(0, "|"), + + // 斜杠 + SLASH(0, "/"), + + // 双斜杠 + DOUBLE_SLASH(0, "//"), + + // 杠杠加 + BARRE_PLUS(0, "\\+"), + + // 杠杠星 + BARRE_STAR(0, "\\*"), + + // 星号 + ASTERISK_ASTERISK(0, "*"), + + // 问号 + QUESTION_MARK(0, "?"), + + // 米 + METER(0, "米"), + + // 公里 + KILOMETRE(0, "公里"), + + // 上行 + UPSTREAM(1, "上行"), + + // 1-1 + ONE_ONE(1, "1-1"), + + // 1-2 + ONE_TWO(1, "1-2"), + + // 1-3 + ONE_THREE(1, "1-3"), + + // 1-4 + ONE_FOUR(1, "1-4"), + + // 1-5 + ONE_FIVE(1, "1-5"), + + // 2-1 + TWO_ONE(2, "2-1"), + + // 2-3 + TWO_THREE(2, "2-3"), + + // 2-4 + TWO_FOUR(2, "2-4"), + + // 行人 + PEDESTRIAN(2, "行人"), + + //3-1 + THREE_ONE(3, "3-1"), + + //3-2 + THREE_TWO(3, "3-2"), + + //3-3 + THREE_THREE(3, "3-3"), + + //3-4 + THREE_FOUR(3, "3-4"), + + //3-5 + THREE_FIVE(3, "3-5"), + + //3-6 + THREE_SIX(3, "3-6"), + + //3-7 + THREE_SEVEN(3, "3-7"), + + // 4-1 + FOUR_ONE(4, "4-1"), + + // 4-2 + FOUR_TWO(4, "4-2"), + + // 4-3 + FOUR_THREE(4, "4-3"), + + // 4-4 + FOUR_FOUR(4, "4-4"), + + // 4-7 + FOUR_SEVEN(4, "4-7"), + + // 4-8 + FOUR_EIGHT(4, "4-8"), + + // 4-10 + FOUR_TEN(4, "4-10"), + + // 5-1 + FIVE_ONE(5, "5-1"), + + // 5-2 + FIVE_TWO(5, "5-2"), + + // 5-3 + FIVE_THREE(0, "5-3"), + + // 5-5 + FIVE_FIVE(5, "5-5"), + + // 5-6 + FIVE_SIX(5, "5-6"), + + // 5-7 + FIVE_SEVEN(5, "5-7"), + + // 6-3 + SIX_THREE(6, "6-3"), + + // 6-4 + SIX_FOUR(6, "6-4"), + + // 7-1 + SEVEN_ONE(7, "7-1"), + + // 8-1 + EIGHT_ONE(8, "8-1"), + + // 8-3 + EIGHT_THREE(8, "8-3"), + + // 9-1 + NINE_ONE(9, "9-1"), + + // 9-2 + NINE_TWO(9, "9-2"), + + // 9-3 + NINE_THREE(9, "9-3"), + + // 10 + TEN_TWO(10, "10-2"), + + // 10 + TEN_THREE(10, "10-3"), + + // 11 + ELEVEN_ONE(11, "11-1"), + + // 11 + ELEVEN_TWO(11, "11-2"), + + // 11 + ELEVEN_THREE(11, "11-3"), + + // 99-1 + NINETYNINE_ONE(99, "99-1"), + + // 追尾 + REAR_END(1, "追尾"), + + // 侧翻 + TURN_ON_ONE_S_SIDE(1, "侧翻"), + + // 拥堵 + JAM(0, "拥堵"), + + // 拥堵 + CONGESTION(0, "congestion"), + + // 撞护栏 + CRASH_INTO_THE_BARRIER(1, "撞护栏"), + + // 自燃 + SPONTANEOUS_COMBUSTION(1, "自燃"), + + // 其他事故 + OTHER_ACCIDENTS(1, "其他事故"), + + // 车辆故障 + VEHICLE_FAULT(2, "车辆故障"), + + // 服务区拥堵 + SERVICE_AREA_CONGESTION(4, "服务区拥堵"), + + // 道路拥堵 + ROAD_CONGESTION(4, "道路拥堵"), + + // 立交拥堵 + INTERCHANGE_CONGESTION(4, "立交拥堵"), + + // 收费站拥堵 + TOLL_BOOTHS_ARE_CONGESTED(4, "收费站拥堵"), + + // 停车 + PULL_UP(4, "停车"), + + // illegalParking + ILLEGAL_PARKING(4, "illegalParking"), + + // 逆行 + RETROGRADE_MOTION(5, "逆行"), + + // wrongDirection + WRONG_DIRECTION(5, "wrongDirection"), + + // 压线 + WIRE_COMPRESSION(0, "压线"), + + // 掉头 + TURN_ROUND(0, "掉头"), + + // 变道 + CHANGE_LANES(0, "变道"), + + // 路障 + PALISADE(0, "路障"), + + // 抛洒物 + SPILL(0, "抛洒物"), + + // 施工 + BEUNDER_CONSTRUCTION(0, "施工"), + + // 违规变道 + ILLEGAL_LANE_CHANGE(0, "违规变道"), + + // laneChange + LANE_CHANGE(0, "laneChange"), + + // 机动车低速行驶 + MOTOR_VEHICLE_RUNNING_AT_LOW_SPEED(0, "机动车低速行驶"), + + // lowSpeed + LOW_SPEED(0, "lowSpeed"), + + // 未保持安全车距 + FAILURE_TO_MAINTAIN_SAFE_DISTANCE(0, "未保持安全车距"), + + // notKeepDistance + NOT_KEEP_DISTANCE(0, "notKeepDistance"), + + // 碰撞 + COLLISION(0, "碰撞"), + + // 只倾斜无碰撞 + ONLY_TILT_WITHOUT_COLLISION(0, "只倾斜无碰撞"), + + // 碰撞后倾斜 + POST_COLLISION_TILT(0, "碰撞后倾斜"), + + // 应急车道被占 + EMERGENCY_LANE_OCCUPIED(0, "应急车道被占"), + + // 车离开应急车道 + CAR_OUT_OF_THE_EMERGENCY_LANE(0, "车离开应急车道"), + + // 其他 + OTHER(99, "其他"), + + // 文件名 9 + FILE_NAME_NINE(0, "play009.lst"), + + // 文件名 10 + FILE_NAME_TEN(0, "play010.lst"), + + // 文件名 11 + FILE_NAME_ELEVEN(0, "play011.lst"), + + // 1B + ONE_B(0, "1B"), + + // 3A + THREE_A(0, "3A"), + + // 缓存物联系统监控数据失败 + FAILED_TO_CACHE_IOT_SYSTEM_MONITORING_DATA(0, "缓存物联系统监控数据失败"), + + // 产品ID不能为空 + THE_PRODUCT_ID_CANNOT_BE_EMPTY(0, "产品ID不能为空"), + + // 事件id不能为空 + THE_EVENT_ID_CANNOT_BE_EMPTY(0, "事件id不能为空"), + + // 感知事件不能为空 + PERCEPTUAL_EVENTS_CANNOT_BE_EMPTY(0, "感知事件不能为空"), + + // 事件类型不能为空 + THE_EVENT_TYPE_CANNOT_BE_EMPTY(0, "事件类型不能为空"), + + // 当前路径不能为空 + THE_CURRENT_PATH_CANNOT_BE_EMPTY(0, "当前路径不能为空"), + + // 操作类型不能为空 + THE_OPERATION_TYPE_CANNOT_BE_EMPTY(0, "操作类型不能为空"), + + // 开始时间或结束时间不能为空 + THE_START_TIME_OR_END_TIME_CANNOT_BE_EMPTY(0, "开始时间或结束时间不能为空"), + + // 时段类型不能为空 + THE_PERIOD_TYPE_CANNOT_BE_EMPTY(0, "时段类型不能为空"), + + // 收费站站点编号不能为空 + THE_TOLL_STATION_NUMBER_CANNOT_BE_EMPTY(0, "收费站站点编号不能为空"), + + // 门架标识不能为空 + THE_DOOR_FRAME_IDENTIFIER_CANNOT_BE_EMPTY(0, "门架标识不能为空"), + + // 输入列表不能为空 + THE_INPUT_LIST_CANNOT_BE_EMPTY(0, "输入列表不能为空"), + + // 消息内容不能为空 + THE_MESSAGE_CONTENT_CANNOT_BE_EMPTY(0, "消息内容不能为空"), + + // 接收人不能为空,并且最多支持1000个 + THE_NUMBER_OF_RECIPIENTS_CANNOT_BE_EMPTY_AND_A_MAXIMUM_OF_1000_ARE_SUPPORTED(0, "接收人不能为空,并且最多支持1000个"), + + // 该关键词已存在 + THE_KEYWORD_ALREADY_EXISTS(0, "该关键词已存在"), + + // 内容长度超长 + THE_CONTENT_IS_TOO_LONG(0, "内容长度超长"), + + // 设备未接入 + DEVICE_NOT_CONNECTED(0, "设备未接入"), + + // 情报板内容为空 + THE_INFORMATION_BOARD_IS_EMPTY(0, "情报板内容为空"), + + // 设备不存在 + DEVICE_DOES_NOT_EXIST(0, "设备不存在"), + + // 路段ID不存在 + THE_LINK_ID_DOES_NOT_EXIST(0, "路段ID不存在"), + + // 设备ID已存在 + THE_DEVICE_ID_ALREADY_EXISTS(0, "设备ID已存在"), + + // 物联设备ID已存在 + THE_IOT_DEVICE_ID_ALREADY_EXISTS(0, "物联设备ID已存在"), + + // 所属产品不存在 + THE_OWNING_PRODUCT_DOES_NOT_EXIST(0, "所属产品不存在"), + + // 设备正在使用 + EQUIPMENT_IN_USE(0, "设备正在使用"), + + // 该事件类型无需清障 + THIS_EVENT_TYPE_DOES_NOT_REQUIRE_CLEARING(0, "该事件类型无需清障"), + + // 事件已解除,无法进行操作 + THE_EVENT_HAS_BEEN_CLEARED_AND_CANNOT_BE_OPERATED(0, "事件已解除,无法进行操作"), + + // 事件已结束,无法进行操作 + THE_EVENT_HAS_ENDED_AND_NO_OPERATION_CAN_BE_PERFORMED(0, "事件已结束,无法进行操作"), + + // 该事件已清障结束,无法进行操作 + THIS_EVENT_HAS_BEEN_CLEARED_AND_CANNOT_BE_OPERATED(0, "该事件已清障结束,无法进行操作"), + + // id为存在下级不可删除 + THE_ID_INDICATES_THAT_A_CHILD_EXISTS_AND_CANNOT_BE_DELETED(0, "id为存在下级不可删除"), + + // 存在关联人员信息数据不可删除 + DATA_WITH_ASSOCIATED_PERSONNEL_INFORMATION_CANNOT_BE_DELETED(0, "存在关联人员信息数据不可删除"), + + // 存在关联车辆信息数据不可删除 + THE_ASSOCIATED_VEHICLE_INFORMATION_CANNOT_BE_DELETED(0, "存在关联车辆信息数据不可删除"), + + // 存在关联调度记录信息数据不可删除 + ASSOCIATED_SCHEDULING_EXIST_DATA_CANNOT_BE_DELETED(0, "存在关联调度记录信息数据不可删除"), + + // 暂无数据 + NO_DATA_AVAILABLE(0, "暂无数据"), + + // 没有需要同步的设备 + NO_DEVICES_NEED_TO_BE_SYNCHRONIZED(0, "没有需要同步的设备"), + + // 根据组织机构获取摄像机信息失败 + FAILED_TO_OBTAIN_CAMERA_INFORMATION_BASED_ON_THE_ORGANIZATION(0, "根据组织机构获取摄像机信息失败"), + + // 同步物联ID成功 + SYNCHRONIZING_THE_IOT_ID_SUCCEEDED(0, "同步物联ID成功"), + + // 同步物联ID失败 + DESCRIPTION_FAILED_TO_SYNCHRONIZE_THE_IOT_ID(0, "同步物联ID失败"), + + // 获取摄像头信息失败 + FAILED_TO_OBTAIN_CAMERA_INFORMATION_PROCEDURE(0, "获取摄像头信息失败"), + + // 事件类型已存在 + THE_EVENT_TYPE_ALREADY_EXISTS(0, "事件类型已存在"), + + // 内容为空 + CONTENT_IS_EMPTY(0, "内容为空"), + + // 手机号为空 + THE_PHONE_NUMBER_IS_EMPTY(0, "手机号为空"), + + // 排版信息为空 + THE_LAYOUT_INFORMATION_IS_EMPTY(0, "排版信息为空"), + + // 排版格式不正确 + THE_FORMATTING_IS_INCORRECT(0, "排版格式不正确,请重新输入"), + + // 事件id为空 + THE_EVENT_ID_IS_NULL(0, "事件id为空"), + + // 设备id为空 + THE_DEVICE_ID_IS_EMPTY(0, "设备id为空"), + + // 设备id列表为空 + THE_DEVICE_ID_LIST_IS_EMPTY(0, "设备id列表为空"), + + // 获取当前交通特征指数失败 + FAILED_TO_OBTAIN_THE_CURRENT_TRAFFIC_FEATURE_INDEX(0, "获取当前交通特征指数失败"), + + // 参数错误 + PARAMETER_ERROR(0, "参数错误"), + + // 参数数据异常 + PARAMETER_DATA_EXCEPTION(0, "参数数据异常"), + + // 已经存在记录 + EXISTING_RECORD(0, "已经存在记录"), + + // 桩号格式错误 + THE_STAKE_NUMBER_FORMAT_IS_INCORRECT(0, "桩号格式错误"), + + // 类型异常 + TYPE_EXCEPTION(0, "类型异常"), + + // 请注意前方危险 + PLEASE_BE_AWARE_OF_DANGER_AHEAD(0, "请注意前方危险"), + + // 前方*高速主线发生车辆故障 + VEHICLE_MALFUNCTION_ON_MAIN_LINE_AHEAD_ASTERISK_ASTERISK_HIGH_SPEED(0, "前方*高速主线发生车辆故障"), + + // 前方*存在限行或关闭 + TRAFFIC_RESTRICTED_OR_CLOSED_AHEAD(0, "前方*存在限行或关闭"), + + // 前方*施工请注意驾驶 + AHEAD_ASTERISK_ASTERISK_CONSTRUCTION_PLEASE_PAY_ATTENTION_TO_DRIVING(0, "前方*施工请注意驾驶"), + + // 人员调度异常 + PERSONNEL_SCHEDULING_EXCEPTION(0, "人员调度异常"), + + // 车辆调度异常 + VEHICLE_SCHEDULING_EXCEPTION(0, "车辆调度异常"), + + // 文件类型错误 + FILE_TYPE_ERROR(0, "文件类型错误"), + + // 插入资源失败 + FAILED_TO_INSERT_RESOURCE(0, "插入资源失败"), + + // 获取过去一小时的门架指标数据失败 + FAILED_TO_OBTAIN_THE_SHELF_INDICATOR_DATA_OF_THE_PAST_HOUR(0, "获取过去一小时的门架指标数据失败"), + + // 获取当月门架指标数据失败 + FAILED_TO_OBTAIN_THE_PORTAL_COUNTER_DATA_OF_THE_CURRENT_MONTH_PROCEDURE(0, "获取当月门架指标数据失败"), + + // 事件信息有误 + INCORRECT_EVENT_INFORMATION(0, "事件信息有误"), + + // 类型错误 + TYPE_ERROR(0, "类型错误"), + + // 数组索引号入参为空或者为负。 入参: + THE_ARRAY_INDEX_IS_NULL_OR_NEGATIVE(0, "数组索引号入参为空或者为负。 入参:"), + + // 未查到企业微信用户 + NO_ENTERPRISE_WECHAT_USER_WAS_FOUND(0, "未查到企业微信用户"), + + // 发送企业微信消息成功 + SENDING_AN_ENTERPRISE_WECHAT_MESSAGE_SUCCEEDED_PROCEDURE(0, "发送企业微信消息成功"), + + // 发布失败 + PUBLISHING_FAILURE(0, "发布失败"), + + // 请求失败 + REQUEST_FAILED(0, "请求失败"), + + // 请求成功 + REQUEST_SUCCESSFUL(0, "请求成功"), + + // 操作失败 + OPERATION_FAILURE(0, "操作失败"), + + // 操作成功 + SUCCESSFUL_OPERATION(0, "操作成功"), + + // 验证通过 + PASS_THE_VERIFICATION(0, "验证通过"), + + // 新增成功 + NEW_SUCCESS(0, "新增成功"), + + // 新增失败 + ADD_FAILURE(0, "新增失败"), + + // 删除成功 + SUCCESSFULLY_DELETED(0, "删除成功"), + + // 删除失败 + DELETION_FAILURE(0, "删除失败"), + + // 查询成功 + QUERY_SUCCESS(0, "查询成功"), + + // 查询失败 + QUERY_FAILURE(0, "查询失败"), + + // 修改成功 + MODIFIED_SUCCESSFULLY(0, "修改成功"), + + // 修改失败 + MODIFICATION_FAILURE(0, "修改失败"), + + // 出行信息发布 + TRAVEL_INFORMATION_RELEASE(0, "出行信息发布"), + + // 微信推送成功 + WECHAT_PUSH_SUCCEEDED(0, "微信推送成功"), + + // 微信推送失败 + WECHAT_PUSH_FAILED(0, "微信推送失败"), + + // 短信推送成功 + SMS_PUSH_SUCCESSFUL(0, "短信推送成功"), + + // 短信推送失败 + SMS_PUSH_FAILURE(0, "短信推送失败"), + + // 成功 + SUCCESSFUL(0, "成功"), + + // 失败 + LOSE(0, "失败"); + + + private final int number; + + private final String value; + + + UniversalEnum(int value, String broadcastLogUrl) { + this.number = value; + this.value = broadcastLogUrl; + } + + public int getNumber() { + return this.number; + } + + public String getValue() { + return value; + } +} diff --git a/zc-business/src/main/java/com/zc/business/enums/WeatherEventEnum.java b/zc-business/src/main/java/com/zc/business/enums/WeatherEventEnum.java new file mode 100644 index 00000000..31333b31 --- /dev/null +++ b/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; + } +} From 83992498bec02aaf0175752abefff3281c31750b Mon Sep 17 00:00:00 2001 From: zhaoxianglong Date: Tue, 18 Jun 2024 15:24:19 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/DcNoStakeWarningTable.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 zc-business/src/main/java/com/zc/business/domain/DcNoStakeWarningTable.java diff --git a/zc-business/src/main/java/com/zc/business/domain/DcNoStakeWarningTable.java b/zc-business/src/main/java/com/zc/business/domain/DcNoStakeWarningTable.java new file mode 100644 index 00000000..f2a28e6b --- /dev/null +++ b/zc-business/src/main/java/com/zc/business/domain/DcNoStakeWarningTable.java @@ -0,0 +1,32 @@ +package com.zc.business.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.ruoyi.common.annotation.Excel; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.Date; + +@Data +@ApiModel(value = "DcNoStakeWarningTable", description = "无桩号预警实体") +public class DcNoStakeWarningTable { + @ApiModelProperty("ID") + @Excel(name = "ID") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + @ApiModelProperty("预警描述") + @Excel(name = "预警描述") + private Long warningDescription; + @ApiModelProperty("预警类型") + @Excel(name = "预警类型", readConverterExp = "1=交通流预警,2=气象预警") + private String warningType; + @ApiModelProperty("创建时间") + @Excel(name = "创建时间") + private Date createTime; + @ApiModelProperty("预警时间") + @Excel(name = "预警时间") + private Date warningTime; + +} From 4c30ca6f40b0b84a8f812001771d3a962335ccb0 Mon Sep 17 00:00:00 2001 From: zhaoxianglong Date: Tue, 18 Jun 2024 15:39:08 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=A0=E6=A1=A9?= =?UTF-8?q?=E5=8F=B7=E9=A2=84=E8=AD=A6CRUD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DcNoStakeWarningTableController.java | 117 +++++++++++++++++ .../mapper/DcNoStakeWarningTableMapper.java | 14 ++ .../IDcNoStakeWarningTableService.java | 63 +++++++++ .../DcNoStakeWarningTableServiceImpl.java | 123 ++++++++++++++++++ 4 files changed, 317 insertions(+) create mode 100644 zc-business/src/main/java/com/zc/business/controller/DcNoStakeWarningTableController.java create mode 100644 zc-business/src/main/java/com/zc/business/mapper/DcNoStakeWarningTableMapper.java create mode 100644 zc-business/src/main/java/com/zc/business/service/IDcNoStakeWarningTableService.java create mode 100644 zc-business/src/main/java/com/zc/business/service/impl/DcNoStakeWarningTableServiceImpl.java diff --git a/zc-business/src/main/java/com/zc/business/controller/DcNoStakeWarningTableController.java b/zc-business/src/main/java/com/zc/business/controller/DcNoStakeWarningTableController.java new file mode 100644 index 00000000..278b1b08 --- /dev/null +++ b/zc-business/src/main/java/com/zc/business/controller/DcNoStakeWarningTableController.java @@ -0,0 +1,117 @@ +package com.zc.business.controller; + +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.core.page.TableDataInfo; +import com.ruoyi.common.enums.BusinessType; +import com.zc.business.domain.DcFacility; +import com.zc.business.domain.DcNoStakeWarningTable; +import com.zc.business.service.IDcFacilityService; +import com.zc.business.service.IDcNoStakeWarningTableService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.validation.Valid; +import java.util.List; + +/** + * 无桩号预警Controller + * + * @author zhaoxianglong + */ +@Api(tags = {"无桩号预警"}) +@RestController +@RequestMapping("/business/facility") +public class DcNoStakeWarningTableController extends BaseController { + @Resource + private IDcNoStakeWarningTableService dcNoStakeWarningTableService; + + //*********************************路网设施增删改查****************************************** + + /** + * 分页查询无桩号预警列表 + * + * @param dcNoStakeWarningTable 请求参数 + * @return 分页查询结果 + */ + @ApiOperation("分页查询路网设施列表") + @PreAuthorize("@ss.hasPermi('iot:facility:list')") + @GetMapping("list") + public TableDataInfo listFacility(DcNoStakeWarningTable dcNoStakeWarningTable) { + return getDataTable(dcNoStakeWarningTableService.pageDcNoStakeWarningTable(dcNoStakeWarningTable)); + } + + /** + * 无分页查询无桩号预警列表 + * + * @param dcNoStakeWarningTable 请求参数 + * @return 查询结果 + */ + @ApiOperation("无分页查询路网设施列表") + @PreAuthorize("@ss.hasPermi('iot:facility:query')") + @GetMapping("query") + public AjaxResult queryFacility(DcNoStakeWarningTable dcNoStakeWarningTable) { + return AjaxResult.success(dcNoStakeWarningTableService.listDcNoStakeWarningTable(dcNoStakeWarningTable)); + } + + /** + * 根据id查询无桩号预警信息 + * + * @param id id + * @return 查询结果 + */ + @ApiOperation("根据id查询路网设施信息") + @PreAuthorize("@ss.hasPermi('iot:facility:query')") + @GetMapping("{id}") + public AjaxResult getFacility(@PathVariable String id) { + return AjaxResult.success(dcNoStakeWarningTableService.getDcNoStakeWarningTable(id)); + } + + + /** + * 新增 + * + * @param dcNoStakeWarningTable 新增参数 + * @return 新增操作结果 + */ + @ApiOperation("新增") + @PreAuthorize("@ss.hasPermi('iot:facility:add')") + @Log(title = "新增路网设施", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult addFacility(@Valid @RequestBody DcNoStakeWarningTable dcNoStakeWarningTable) { + return toAjax(dcNoStakeWarningTableService.addDcNoStakeWarningTable(dcNoStakeWarningTable)); + } + + /** + * 修改 + * + * @param dcNoStakeWarningTable 修改参数 + * @return 修改操作结果 + */ + @ApiOperation("修改") + @PreAuthorize("@ss.hasPermi('iot:facility:edit')") + @Log(title = "修改路网设施", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult editFacility(@Valid @RequestBody DcNoStakeWarningTable dcNoStakeWarningTable) { + return toAjax(dcNoStakeWarningTableService.editDcNoStakeWarningTable(dcNoStakeWarningTable)); + } + + /** + * 删除 + * + * @param ids id集 + * @return 删除操作结果 + */ + @ApiOperation("删除") + @PreAuthorize("@ss.hasPermi('iot:facility:remove')") + @Log(title = "删除", businessType = BusinessType.DELETE) + @DeleteMapping("{ids}") + public AjaxResult removeFacility(@PathVariable List ids) { + return toAjax(dcNoStakeWarningTableService.removeDcNoStakeWarningTable(ids)); + } + +} diff --git a/zc-business/src/main/java/com/zc/business/mapper/DcNoStakeWarningTableMapper.java b/zc-business/src/main/java/com/zc/business/mapper/DcNoStakeWarningTableMapper.java new file mode 100644 index 00000000..a892dd5b --- /dev/null +++ b/zc-business/src/main/java/com/zc/business/mapper/DcNoStakeWarningTableMapper.java @@ -0,0 +1,14 @@ +package com.zc.business.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.zc.business.domain.DcNoStakeWarningTable; +import org.apache.ibatis.annotations.Mapper; + +/** + * 无桩号预警Mapper接口 + * + * @author zhaoxianglong + */ +@Mapper +public interface DcNoStakeWarningTableMapper extends BaseMapper { +} diff --git a/zc-business/src/main/java/com/zc/business/service/IDcNoStakeWarningTableService.java b/zc-business/src/main/java/com/zc/business/service/IDcNoStakeWarningTableService.java new file mode 100644 index 00000000..cfe197f2 --- /dev/null +++ b/zc-business/src/main/java/com/zc/business/service/IDcNoStakeWarningTableService.java @@ -0,0 +1,63 @@ +package com.zc.business.service; + + +import com.baomidou.mybatisplus.extension.service.IService; +import com.zc.business.domain.DcNoStakeWarningTable; + +import java.util.List; + +/** + * 无桩号预警Service接口 + * + * @author zhaoxianglong + */ +public interface IDcNoStakeWarningTableService extends IService { + /** + * 添加无桩号预警 + * + * @param dcNoStakeWarningTable 设备信息 + * @return 操作结果 + */ + boolean addDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable); + + /** + * 修改无桩号预警 + * + * @param dcNoStakeWarningTable 设备信息 + * @return 操作结果 + */ + boolean editDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable); + + /** + * 删除无桩号预警 + * + * @param ids 设备ID + * @return 操作结果 + */ + boolean removeDcNoStakeWarningTable(List ids); + + /** + * 获取无桩号预警列表 + * + * @param dcNoStakeWarningTable 参数 + * @return 结果 + */ + List pageDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable); + + /** + * 获取无桩号预警列表 + * + * @param dcNoStakeWarningTable 参数 + * @return 结果 + */ + List listDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable); + + + /** + * 根据id查询设备信息 + * + * @param id 设备ID + * @return 设备信息 + */ + DcNoStakeWarningTable getDcNoStakeWarningTable(String id); +} diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcNoStakeWarningTableServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcNoStakeWarningTableServiceImpl.java new file mode 100644 index 00000000..71032c97 --- /dev/null +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcNoStakeWarningTableServiceImpl.java @@ -0,0 +1,123 @@ +package com.zc.business.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.common.constant.HttpStatus; +import com.ruoyi.common.exception.ServiceException; +import com.ruoyi.common.utils.PageUtils; +import com.zc.business.domain.DcFacility; +import com.zc.business.domain.DcNoStakeWarningTable; +import com.zc.business.mapper.DcFacilityMapper; +import com.zc.business.mapper.DcNoStakeWarningTableMapper; +import com.zc.business.service.IDcFacilityService; +import com.zc.business.service.IDcNoStakeWarningTableService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; + +import java.util.Date; +import java.util.List; +import java.util.Objects; + +/** + * 无桩号预警Service业务层处理 + * + * @author zhaoxianglong + */ +@Service +public class DcNoStakeWarningTableServiceImpl extends ServiceImpl implements IDcNoStakeWarningTableService { + + public LambdaQueryWrapper noStakeWarningTableQueryWrapper(DcNoStakeWarningTable dcNoStakeWarningTable) { + + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + + // 设备ID + if (Objects.nonNull(dcNoStakeWarningTable.getId())) { + queryWrapper.eq(DcNoStakeWarningTable::getId, dcNoStakeWarningTable.getId()); + } + + // 设备ID + if (Objects.nonNull(dcNoStakeWarningTable.getWarningDescription())) { + queryWrapper.eq(DcNoStakeWarningTable::getWarningDescription, dcNoStakeWarningTable.getWarningDescription()); + } + + // 设备ID + if (Objects.nonNull(dcNoStakeWarningTable.getWarningTime())) { + queryWrapper.eq(DcNoStakeWarningTable::getWarningTime, dcNoStakeWarningTable.getWarningTime()); + } + + // 设备ID + if (Objects.nonNull(dcNoStakeWarningTable.getWarningType())) { + queryWrapper.eq(DcNoStakeWarningTable::getWarningType, dcNoStakeWarningTable.getWarningType()); + } + + // 设备ID + if (Objects.nonNull(dcNoStakeWarningTable.getCreateTime())) { + queryWrapper.eq(DcNoStakeWarningTable::getCreateTime, dcNoStakeWarningTable.getCreateTime()); + } + + // 木桩 + return queryWrapper; + } + + @Override + public boolean addDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable) { + + Long id = dcNoStakeWarningTable.getId(); + if (Objects.nonNull(id)) { + DcNoStakeWarningTable noStakeWarningTable = getById(id); + if (noStakeWarningTable != null) { + throw new ServiceException("预警ID[" + id + "]已存在", HttpStatus.BAD_REQUEST); + } + } + + dcNoStakeWarningTable.setCreateTime(new Date()); + return save(dcNoStakeWarningTable); + } + + @Override + public boolean editDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable) { + + Long id = dcNoStakeWarningTable.getId(); + + // 检查设备id是否重复 + DcNoStakeWarningTable noStakeWarningTable = getById(id); + + if (Objects.isNull(noStakeWarningTable)) { + throw new ServiceException("预警ID[" + id + "]不存在", HttpStatus.BAD_REQUEST); + } + + return updateById(dcNoStakeWarningTable); + } + + @Override + public boolean removeDcNoStakeWarningTable(List ids) { + return removeByIds(ids); + } + + @Override + public List pageDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable) { + // 分页 + PageUtils.startPage(); + return list(noStakeWarningTableQueryWrapper(dcNoStakeWarningTable)); + } + + @Override + public List listDcNoStakeWarningTable(DcNoStakeWarningTable dcNoStakeWarningTable) { + return list(noStakeWarningTableQueryWrapper(dcNoStakeWarningTable)); + } + + @Override + public DcNoStakeWarningTable getDcNoStakeWarningTable(String id) { + // 检查设备id是否重复 + DcNoStakeWarningTable dcNoStakeWarningTable = getById(id); + + if (Objects.isNull(dcNoStakeWarningTable)) { + throw new ServiceException("预警ID[" + id + "]不存在", HttpStatus.BAD_REQUEST); + } + + return getById(id); + } + +} +