Browse Source

优化护栏碰撞事件上报描述

develop
zhaoxianglong 4 months ago
parent
commit
ff2f801aab
  1. 2
      zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

2
zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

@ -564,7 +564,7 @@ public class DeviceMessageHandler {
dcWarning.setWarningSource(UniversalEnum.FOUR.getNumber()); dcWarning.setWarningSource(UniversalEnum.FOUR.getNumber());
dcWarning.setWarningState(UniversalEnum.ONE.getNumber()); dcWarning.setWarningState(UniversalEnum.ONE.getNumber());
dcWarning.setCreateTime(new Date()); dcWarning.setCreateTime(new Date());
dcWarning.setRemark("护栏碰撞上报事件:" + "在20" + timeOfFireAlarming + direction + UniversalEnum.TAKE_PLACE.getValue() + eventType + UniversalEnum.INCIDENT.getValue()); dcWarning.setRemark(UniversalEnum.TWENTY.getValue() + timeOfFireAlarming + UniversalEnum.BLANK_SPACE.getValue() + direction + UniversalEnum.BLANK_SPACE.getValue() + UniversalEnum.TAKE_PLACE.getValue() + eventType + UniversalEnum.INCIDENT.getValue());
dcWarning.setWarningTitle("护栏碰撞在20" + timeOfFireAlarming + direction + UniversalEnum.TAKE_PLACE.getValue() + eventType + UniversalEnum.INCIDENT.getValue()); dcWarning.setWarningTitle("护栏碰撞在20" + timeOfFireAlarming + direction + UniversalEnum.TAKE_PLACE.getValue() + eventType + UniversalEnum.INCIDENT.getValue());
dcWarning.setOtherConfig(dataJsonObject.toJSONString()); dcWarning.setOtherConfig(dataJsonObject.toJSONString());
dcWarningService.insertDcWarning(dcWarning); dcWarningService.insertDcWarning(dcWarning);

Loading…
Cancel
Save