Преглед на файлове

由于有的风机发电量采集不到为0,导致理论电量过高,过滤发电量为0的数据

xushili преди 1 година
родител
ревизия
cee5a57b30
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      benchmarking-impala/src/main/java/com/gyee/benchmarkingimpala/service/BenchmarkingService.java

+ 2 - 1
benchmarking-impala/src/main/java/com/gyee/benchmarkingimpala/service/BenchmarkingService.java

@@ -548,7 +548,8 @@ public class BenchmarkingService  {
 
         sb.append("sum(genecapacity) genecapacity,sum(therogenecapacity) therogenecapacity,avg(speed) speed,sum(daynhwhssdl1) daynhwhssdl1,sum(daynhwhssdl2) daynhwhssdl2,sum(daynhgzssdl1) daynhgzssdl1,sum(daynhgzssdl2) daynhgzssdl2,sum(daynhxdssdl1) daynhxdssdl1,sum(daynhxdssdl2) daynhxdssdl2,sum(daynhqfdl1) daynhqfdl1,sum(daynhqfdl2) daynhqfdl2,sum(daynhqfdl3) daynhqfdl3,sum(daynhqfdl4) daynhqfdl4,sum(daynhcfdl1) daynhcfdl1,sum(daynhcfdl2) daynhcfdl2 ");
         qw.select(String.valueOf(sb));
-        qw.ge("recorddate",DateUtils.parseDate(beginDate)).le("recorddate",DateUtils.parseDate(endDate));
+        qw.ge("recorddate", DateUtils.parseDate(beginDate)).le("recorddate", DateUtils.parseDate(endDate));
+        qw.gt("genecapacity", 0); //由于有的风机发电量采集不到为0,导致理论电量过高,过滤发电量为0的数据
 
         if (StringUtils.isNotEmpty(wpids)){
             List<String> wpList = Arrays.asList(wpids.split(","));