‘xugp преди 2 години
родител
ревизия
0549ab283d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      schedule-job/alarm-schedule/src/main/java/com/gyee/wisdom/alarm/schedule/cache/DataDictionaryCache.java

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