Browse Source

bug修改

‘xugp 2 years ago
parent
commit
0549ab283d

+ 1 - 1
schedule-job/alarm-schedule/src/main/java/com/gyee/wisdom/alarm/schedule/cache/DataDictionaryCache.java

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