Browse Source

修正了光伏电站气象站数据E文本解析bug

songwenbin 1 year ago
parent
commit
5f82609909

+ 2 - 2
gdnxak102/src/main/java/com/gyee/edge/gdnxak/forcast/ForcastService.java

@@ -133,8 +133,8 @@ public class ForcastService {
             gyMessage.setAddressIndex(akConfig.getDqAddressStart());
             gyMessage.setAddressIndex(akConfig.getDqAddressStart());
         } else if ("CFT".equals(forcastModel.getDataType())) {
         } else if ("CFT".equals(forcastModel.getDataType())) {
             gyMessage.setAddressIndex(akConfig.getCftAddressStart());
             gyMessage.setAddressIndex(akConfig.getCftAddressStart());
-        } else if ("QXZ".equals(forcastModel.getDataType())) {
-            gyMessage.setAddressIndex(akConfig.getCftAddressStart());
+        }  else if ("QX".equals(forcastModel.getDataType())) {
+            gyMessage.setAddressIndex(akConfig.getQxzAddressStart());
         } else if ("LLCDQ".equals(forcastModel.getDataType())) {
         } else if ("LLCDQ".equals(forcastModel.getDataType())) {
             gyMessage.setAddressIndex(akConfig.getLlcdqAddressStart());
             gyMessage.setAddressIndex(akConfig.getLlcdqAddressStart());
         } else {
         } else {