|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|