Bläddra i källkod

修改公司查询bug

xieshengjie 2 år sedan
förälder
incheckning
18cdaf1af1

+ 5 - 1
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/bmk/BenchmarkingService.java

@@ -32,7 +32,11 @@ public class BenchmarkingService {
     public List<ProBasicCompany> companys() {
         List<ProBasicCompany> cpls = CacheContext.cpls;
         Map<String, ProBasicRegion> rgmap = CacheContext.rgmap;
-        List<ProBasicCompany> result = cpls;
+        List<ProBasicCompany> result = new ArrayList<>();
+        cpls.stream().forEach(cp->{
+            result.add(cp);
+        });
+
         ProBasicCompany company = new ProBasicCompany();
         Optional<ProBasicCompany> first = result.stream().findFirst();
         if (first.isPresent()){