|
|
@ -4,6 +4,7 @@ import com.xydl.cac.entity.ModevTypePoint;
|
|
|
|
import com.xydl.cac.entity.NSensor;
|
|
|
|
import com.xydl.cac.entity.NSensor;
|
|
|
|
import com.xydl.cac.entity.WarnRule;
|
|
|
|
import com.xydl.cac.entity.WarnRule;
|
|
|
|
import com.xydl.cac.entity.Warning;
|
|
|
|
import com.xydl.cac.entity.Warning;
|
|
|
|
|
|
|
|
import com.xydl.cac.entity.constants.Constants;
|
|
|
|
import com.xydl.cac.model.StaticVariable;
|
|
|
|
import com.xydl.cac.model.StaticVariable;
|
|
|
|
import com.xydl.cac.model.TriggerModel;
|
|
|
|
import com.xydl.cac.model.TriggerModel;
|
|
|
|
import com.xydl.cac.repository.WarnRuleRepository;
|
|
|
|
import com.xydl.cac.repository.WarnRuleRepository;
|
|
|
@ -73,6 +74,10 @@ 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) {
|
|
|
|
|
|
|
|
// 通知串口
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
log.error("RuleCheckTask.ruleCheck error.", e);
|
|
|
|
log.error("RuleCheckTask.ruleCheck error.", e);
|
|
|
|