Commit 8c32d67eb3ba037b1a2c3de6f83e7a142bc28576

Authored by 芯火源
1 parent 6438d320

fix: 告警详情被清空问题修复。

告警自动解除,会清空告警详情的问题修复
... ... @@ -433,10 +433,10 @@ class ReactState {
433 433 ObjectNode clearResult = clearState.process(ctx, msg, true);
434 434 if(!clearResult.isEmpty()){
435 435 ctx.getAlarmService()
436   - .clearAlarmForResult(
  436 + .clearAlarm(
437 437 ctx.getTenantId(),
438 438 currentAlarms.get(deviceId).getId(),
439   - clearResult,
  439 + null,
440 440 System.currentTimeMillis());
441 441 ytDeviceService.freshAlarmStatus(new DeviceId(UUID.fromString(deviceId)), 0);
442 442 alarmMsg(ctx, msg, currentAlarms.get(deviceId), "Alarm Cleared");
... ...