|
|
@ -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); |
|
|
|