瀏覽代碼

计算服务修改

xieshengjie 2 年之前
父節點
當前提交
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() {
+        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;
     }
 }