Browse Source

计算服务修改

xieshengjie 2 years ago
parent
commit
8e3f048678

+ 5 - 0
web/benchmarking-web-hb/src/main/java/com/gyee/benchmarkingweb/service/benching/BenchmarkingService.java

@@ -2072,6 +2072,11 @@ public class BenchmarkingService {
     }
     }
 
 
     public Map<String, List<Windturbine>> wpwtlist() {
     public Map<String, List<Windturbine>> wpwtlist() {
+        Map<String, List<Windturbine>> wtmap = CacheContext.wtmap;
+        Set<String> wpids = wtmap.keySet();
+        wpids.stream().forEach(wp->{
+            SortUtils.sort(wtmap.get(wp),"id",SortUtils.ASC);
+        });
         return CacheContext.wtmap;
         return CacheContext.wtmap;
     }
     }
 }
 }