|
@@ -244,4 +244,19 @@ public abstract class AbstractFeatureService<K, V> {
|
|
|
}
|
|
|
return Collections.emptyMap();
|
|
|
}
|
|
|
+
|
|
|
+ protected Map<K, V> getAllTempMethod(List<K> idList) {
|
|
|
+ try {
|
|
|
+ Map<K,V> map=new HashMap<>();
|
|
|
+ for(K k:idList){
|
|
|
+ if(cache.getIfPresent(k)!=null){
|
|
|
+ map.put(k,cache.get(k));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return map;
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("get all failed {}", JSONUtils.toJson(idList), e);
|
|
|
+ }
|
|
|
+ return Collections.emptyMap();
|
|
|
+ }
|
|
|
}
|