Commit 8c32d67eb3ba037b1a2c3de6f83e7a142bc28576
1 parent
6438d320
fix: 告警详情被清空问题修复。
告警自动解除,会清空告警详情的问题修复
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -433,10 +433,10 @@ class ReactState { | @@ -433,10 +433,10 @@ class ReactState { | ||
433 | ObjectNode clearResult = clearState.process(ctx, msg, true); | 433 | ObjectNode clearResult = clearState.process(ctx, msg, true); |
434 | if(!clearResult.isEmpty()){ | 434 | if(!clearResult.isEmpty()){ |
435 | ctx.getAlarmService() | 435 | ctx.getAlarmService() |
436 | - .clearAlarmForResult( | 436 | + .clearAlarm( |
437 | ctx.getTenantId(), | 437 | ctx.getTenantId(), |
438 | currentAlarms.get(deviceId).getId(), | 438 | currentAlarms.get(deviceId).getId(), |
439 | - clearResult, | 439 | + null, |
440 | System.currentTimeMillis()); | 440 | System.currentTimeMillis()); |
441 | ytDeviceService.freshAlarmStatus(new DeviceId(UUID.fromString(deviceId)), 0); | 441 | ytDeviceService.freshAlarmStatus(new DeviceId(UUID.fromString(deviceId)), 0); |
442 | alarmMsg(ctx, msg, currentAlarms.get(deviceId), "Alarm Cleared"); | 442 | alarmMsg(ctx, msg, currentAlarms.get(deviceId), "Alarm Cleared"); |