Browse Source

经济运行性能损失率、限电损失率bug

xushili 2 years ago
parent
commit
aedd4eeb38

+ 7 - 10
benchmarking-impala/src/main/java/com/gyee/benchmarkingimpala/service/BenchmarkingService.java

@@ -12,13 +12,9 @@ import com.gyee.benchmarkingimpala.model.vo.*;
 import com.gyee.benchmarkingimpala.service.auto.*;
 import com.gyee.benchmarkingimpala.util.*;
 import com.gyee.benchmarkingimpala.util.taos.EdosUtil;
-import com.gyee.benchmarkingimpala.util.taos.StringUtil;
-import org.apache.poi.ss.formula.functions.T;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
-import java.lang.annotation.Target;
 import java.math.BigDecimal;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
@@ -2345,11 +2341,11 @@ public class BenchmarkingService  {
                 "sum(daynhxdssdl) daynhxdssdl," +
                 "sum(daynhqfdl) daynhqfdl," +
                 "sum(daynhcfdl) daynhcfdl, " +
-                "isnull(sum(actualpower)/nullif(sum(theoreticalpower),0),0)*100 windenergy, " +
-                "isnull(sum(daynhxdssdl)/nullif(sum(theoreticalpower),0),0)*100 powerlossrate, " +
-                "isnull(sum(daynhqfdl)/nullif(sum(theoreticalpower),0),0)*100 performancelossrate, " +
-                "isnull(sum(daynhgzssdl)/nullif(sum(theoreticalpower),0),0)*100 failurelossrate, " +
-                "isnull(sum(daynhwhssdl)/nullif(sum(theoreticalpower),0),0)*100 mainlossrate," +
+                "nullif(sum(actualpower),0)/nullif(sum(theoreticalpower),1)*100 windenergy, " +
+                "nullif(sum(daynhxdssdl),0)/nullif(sum(theoreticalpower),1)*100 powerlossrate, " +
+                "nullif(sum(daynhqfdl),0)/nullif(sum(theoreticalpower),1)*100 performancelossrate, " +
+                "nullif(sum(daynhgzssdl),0)/nullif(sum(theoreticalpower),1)*100 failurelossrate, " +
+                "nullif(sum(daynhwhssdl),0)/nullif(sum(theoreticalpower),1)*100 mainlossrate," +
                 "avg(comprehensiverate) comprehensiverate,sum(actualpower)/avg(capacity) utilizationhours," +
                 "avg(windpoweraccuracy) windpoweraccuracy," +
                 "avg(agccurvefollowing) agccurvefollowing," +
@@ -2361,7 +2357,8 @@ public class BenchmarkingService  {
                 "avg(eliminationrate) eliminationrate," +
                 "avg(speed) speed," +
                 "avg(staticwindfrequency) staticwindfrequency," +
-                "avg(effectivewindhourrate) effectivewindhourrate");if (foreigntype.equals("风电")){
+                "avg(effectivewindhourrate) effectivewindhourrate");
+        if (foreigntype.equals("风电")){
             qw.like("foreignkeyid","_FDC");
         }else {
             qw.like("foreignkeyid","_GDC");