fix: 硬节点告警触发修正

dev
huangfeng 2 months ago
parent faa8a45e70
commit 858203a856

@ -77,7 +77,8 @@ public class RuleCheckTask {
for (TriggerModel model : warnList) {
this.sendWarning(rule, model);
}
if (rule.getNotifyCom() != null && rule.getNotifyCom().intValue() == Constants.TRUE) {
if (warnList.size() > 0 &&
rule.getNotifyCom() != null && rule.getNotifyCom().intValue() == Constants.TRUE) {
// 通知串口
serialPortServer.sendData();
}

Loading…
Cancel
Save