|
@@ -33,7 +33,7 @@ public class DataDictionaryCache {
|
|
|
public static String getWinturbinePartName(String code) {
|
|
|
if (dataDictionaryList == null || dataDictionaryList.size() <= 0)
|
|
|
initList();
|
|
|
- Optional<Datadictionary> partDataDictionary = dataDictionaryList.stream().filter(s -> s.getCategory().equals("windturbine") && s.getCode().equals(code)).findFirst();
|
|
|
+ Optional<Datadictionary> partDataDictionary = dataDictionaryList.stream().filter(s -> s.getCode().equals(code)).findFirst();
|
|
|
|
|
|
if (partDataDictionary.isPresent())
|
|
|
return partDataDictionary.get().getName();
|