|
|
@@ -195,6 +195,8 @@ public class WarnService {
|
|
|
String targetValue = config.getWiValue();
|
|
|
String wiAddress = config.getWiAddress();
|
|
|
String wiCode = config.getWiCode();
|
|
|
+ String wcStatus = config.getWcStatus();
|
|
|
+ String wiStatus = config.getWiStatus();
|
|
|
String key = wiAddress + wiCode;
|
|
|
|
|
|
if (!currentValueMap.containsKey(key)) {
|
|
|
@@ -216,7 +218,12 @@ public class WarnService {
|
|
|
EnumWarnRuleOp warnRuleOp = EnumWarnRuleOp.findEnumByCode(expression);
|
|
|
String ruleName = warnRuleOp.getName();
|
|
|
|
|
|
- boolean tempSuccess = CompareUtil.comp(currentValue, expression, targetValue);
|
|
|
+ boolean status = "0".equals(wcStatus) && "0".equals(wiStatus);
|
|
|
+ boolean tempSuccess = false;
|
|
|
+ if(status){
|
|
|
+ tempSuccess = CompareUtil.comp(currentValue, expression, targetValue);
|
|
|
+ }
|
|
|
+
|
|
|
String warnMessage = WarnMessageBuilderUtil.buildQxzWarningMessage(
|
|
|
"气象站设备", devCode, wiName, currentValue, wiUnit, ruleName, targetValue);
|
|
|
|