Browse Source

bug修复

xujuanning 2 months atrás
parent
commit
0c2991f7d1

+ 2 - 2
generationXK-service/src/main/java/com/gyee/generation/util/realtimesource/EdosUtil.java

@@ -523,8 +523,8 @@ public class EdosUtil implements IEdosUtil {
 
         if (StringUtils.notEmp(point) && StringUtils.notEmp(point.getNemCode()) && !initialcode.equals(point.getNemCode())) {
             Optional<String> keys = Optional.ofNullable(point.getNemCode());
-            List<String> ls = new ArrayList<>();
-            ls.add(String.valueOf(keys));
+            List<String> ls = keys.map(Collections::singletonList)
+                    .orElse(Collections.emptyList());
             List<PointData> realData = getRealData(ls);
             return realData.get(0);
         } else {