Browse Source

边坡监测事件接入

develop
lau572 1 month ago
parent
commit
96f920d000
  1. 4
      zc-business/src/main/java/com/zc/business/domain/DcWarning.java
  2. 2
      zc-business/src/main/java/com/zc/business/enums/ValueConverter.java
  3. 4
      zc-business/src/main/java/com/zc/business/enums/WarningSourceEnum.java

4
zc-business/src/main/java/com/zc/business/domain/DcWarning.java

@ -44,8 +44,8 @@ public class DcWarning extends BaseEntity
/** 处理人员 */
private Long userId;
/** 信息来源:1-视频AI2-雷达识别3-锥桶4-护栏碰撞5-扫码报警6-非机预警 */
@Excel(name = "信息来源", readConverterExp = "1=视频AI,2=雷达识别,3=锥桶,4=护栏碰撞,5=扫码报警,6=非机预警")
/** 信息来源:1-视频AI2-雷达识别3-锥桶4-护栏碰撞5-扫码报警6-非机预警,7-气象监测器,8-边坡监测 */
@Excel(name = "信息来源", readConverterExp = "1=视频AI,2=雷达识别,3=锥桶,4=护栏碰撞,5=扫码报警,6=非机预警,7=气象监测器,8=边坡监测")
private Integer warningSource;
/** 预警级别 */

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

@ -41,6 +41,7 @@ public class ValueConverter {
valueMappingSource.put(3,9);
valueMappingSource.put(5,11);
valueMappingSource.put(6,12);
valueMappingSource.put(8,14);
valueMappingHost.put(1, 4);
valueMappingHost.put(2, 5);
valueMappingHost.put(3, 5);
@ -125,6 +126,7 @@ public class ValueConverter {
eventSourceName.put("11","扫码报警");
eventSourceName.put("12","非机预警");
eventSourceName.put("13","气象检测器");
eventSourceName.put("14","边坡监测");
eventTypeName.put("1","交通事故");
eventTypeName.put("2","车辆故障");

4
zc-business/src/main/java/com/zc/business/enums/WarningSourceEnum.java

@ -10,7 +10,9 @@ public enum WarningSourceEnum {
CONE_DETECTION(3,"锥桶感应"),
GUARDRAIL_COLLISION(4,"护栏碰撞"),
QR_CODE_ALERT(5,"扫码报警"),
NON_MOTOR_VEHICLE_WARNING(6,"非机动车预警");
NON_MOTOR_VEHICLE_WARNING(6,"非机动车预警"),
WEATHER_WARNING(7,"气象检测器"),
SIDE_SLOPE_WARNING(8,"边坡监测");
private final Integer code;
private final String description;

Loading…
Cancel
Save