Kaynağa Gözat

山西大同修改风场name

xieshengjie 2 yıl önce
ebeveyn
işleme
ce97ed7c8f

+ 1 - 0
web/gdsx-ghost/pom.xml

@@ -60,6 +60,7 @@
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
+                <version>2.7.1</version>
                 <executions>
                     <execution>
                         <goals>

+ 2 - 2
web/gdsx-ghost/src/main/java/com/gyee/ghost/service/auto/GhostService.java

@@ -466,7 +466,7 @@ public class GhostService {
         faultrecord.setProjectid(projectid);
         faultrecord.setProjectname(promap.get(projectid).getName());
         faultrecord.setWpid(windpowerstationid);
-        faultrecord.setWpname(wpmap.get(windpowerstationid).getName());
+        faultrecord.setWpname(wpmap.get(windpowerstationid).getAname());
         double hours = DateUtils.hoursDiff2(faultrecord.getBegindate(), faultrecord.getEnddate());
         faultrecord.setFaultduration(hours);
         faultrecord.setImpactcapacity(hours * wtcap.get(faultrecord.getWtid()) / 10000);
@@ -521,7 +521,7 @@ public class GhostService {
         mainrecord.setProjectid(projectid);
         mainrecord.setProjectname(promap.get(projectid).getName());
         mainrecord.setWpid(windpowerstationid);
-        mainrecord.setWpname(wpmap.get(windpowerstationid).getName());
+        mainrecord.setWpname(wpmap.get(windpowerstationid).getAname());
         double hours = DateUtils.hoursDiff2(mainrecord.getBegindate(), mainrecord.getEnddate());
         mainrecord.setFaultduration(hours);
         mainrecord.setImpactcapacity(hours * wtcap.get(mainrecord.getWtid()) / 10000);