Parcourir la source

修改计量表场站数据统计

shilin il y a 1 an
Parent
commit
320cca2b15

+ 2 - 2
web/runeconomy-xk/src/main/java/com/gyee/runeconomy/service/singleanalysis/SingleAnalysisService.java

@@ -452,8 +452,8 @@ public class SingleAnalysisService {
                     vo.setLlfdl(StringUtils.round(llfdl / 10000, 2));
 
                     double powerProduction = 0;
-                    if (CacheContext.modelMap.containsKey(wt.getId())) {
-                        ProEconEquipmentmodel model = CacheContext.modelMap.get(wt.getId());
+                    if (CacheContext.modelMap.containsKey(wt.getModelId())) {
+                        ProEconEquipmentmodel model = CacheContext.modelMap.get(wt.getModelId());
                         powerProduction = model.getPowerProduction();
                     }
                     double lyxs = 0.0;

+ 2 - 1
web/runeconomy-xk/src/main/resources/application-jn.yml

@@ -96,7 +96,8 @@ logging:
     com.example: debug
 initialcode: INITIAL
 db:
-  URL1: http://10.81.3.160:8011/ts
+  URL1: http://127.0.0.1:8011/ts
+#  URL1: http://10.81.3.160:8011/ts
   URL2: http://10.81.3.160:8012/ts
 
 #