Forráskód Böngészése

品牌对标接口修改

wangb 1 éve
szülő
commit
062f1b0775

+ 5 - 2
web/runeconomy-jjyx/src/main/java/com/gyee/runeconomy/service/bmk/BenchmarkingService.java

@@ -1286,8 +1286,11 @@ public class BenchmarkingService {
                 if (wtls.size() == 0) continue;
                 QueryWrapper<ProEconEquipmentInfoDay1> wiqw = qw.clone().in("windturbine_id", wtls);
                 List<ProEconEquipmentInfoDay1> listls = proEconEquipmentInfoDay1Service.list(wiqw);
-                for (ProEconEquipmentInfoDay1 listl : listls) {
-                    listl.setWindturbineId("HFYG_SG500KTL");
+                for (ProBasicOrganizeTree t1: CacheContext.wtls){
+                    for (ProEconEquipmentInfoDay1 listl : listls) {
+                        if (t1.getId().equals(wtls.get(0)))
+                            listl.setWindturbineId(t1.getModelId());
+                    }
                 }
                 peeidls.add(listls);
             }