|
|
@ -77,7 +77,8 @@ public class RuleCheckTask {
|
|
|
|
for (TriggerModel model : warnList) {
|
|
|
|
for (TriggerModel model : warnList) {
|
|
|
|
this.sendWarning(rule, model);
|
|
|
|
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();
|
|
|
|
serialPortServer.sendData();
|
|
|
|
}
|
|
|
|
}
|
|
|
|