fix: 增加校验

dev
huangfeng 2 months ago
parent c15d2af756
commit f05cac5010

@ -43,9 +43,11 @@ public class CacheTask {
item.initComparator(item.getComparator(), item.getOperator());
StaticVariable.rule_Cache.put(item.getId(), item);
}
if (item.getNSensor() != null && item.getTypePoint() != null) {
String key = item.getNSensor().getDevId() + "_" + item.getTypePoint().getField();
StaticVariable.ruleRelationMap.put(key, item.getId());
}
}
} catch (Exception e) {
log.error("CacheTask.refreshRule error.", e);
}

Loading…
Cancel
Save