Browse Source

护栏碰撞备注修改

develop
wangsixiang 4 months ago
parent
commit
ffbf6ad31d
  1. 5
      zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java

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

@ -559,12 +559,13 @@ public class DeviceMessageHandler {
dcWarning.setWarningTime(new Date());
DcDevice dcDevice = dcDevices.get(UniversalEnum.ZERO.getNumber());
dcWarning.setStakeMark(dcDevice.getStakeMark());
String stakeMark = dcDevice.getStakeMark();
dcWarning.setStakeMark( stakeMark);
dcWarning.setDirection(dcDevice.getDirection());
dcWarning.setWarningSource(UniversalEnum.FOUR.getNumber());
dcWarning.setWarningState(UniversalEnum.ONE.getNumber());
dcWarning.setCreateTime(new Date());
dcWarning.setRemark(UniversalEnum.TWENTY.getValue() + timeOfFireAlarming + UniversalEnum.BLANK_SPACE.getValue() + direction + UniversalEnum.BLANK_SPACE.getValue() + UniversalEnum.TAKE_PLACE.getValue() + eventType + UniversalEnum.INCIDENT.getValue());
dcWarning.setRemark(UniversalEnum.TWENTY.getValue() + timeOfFireAlarming + UniversalEnum.BLANK_SPACE.getValue() + stakeMark + 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.setOtherConfig(dataJsonObject.toJSONString());
dcWarningService.insertDcWarning(dcWarning);

Loading…
Cancel
Save