Commit 7fa341a8 authored by tianbo's avatar tianbo

Merge remote-tracking branch 'origin/develop_tzs_bugfix' into develop_tzs_bugfix

parents e0a91e5c c5f51e3b
...@@ -1294,8 +1294,8 @@ public class ComprehensiveStatisticalAnalysisServiceImpl { ...@@ -1294,8 +1294,8 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
request.indices(StatisticalAnalysisEnum.equip.getKey()); request.indices(StatisticalAnalysisEnum.equip.getKey());
BigDecimal pipeLong; BigDecimal pipeLong;
BoolQueryBuilder pipeLengthQuery = QueryBuilderUtils.copyBoolQuery(boolMust); BoolQueryBuilder pipeLengthQuery = QueryBuilderUtils.copyBoolQuery(boolMust);
pipeLengthQuery.must(QueryBuilders.existsQuery("pipLineLength")); pipeLengthQuery.must(QueryBuilders.existsQuery("pipeLength"));
SumAggregationBuilder pipeLengthAgg = AggregationBuilders.sum(countField).field("pipLineLength").missing(0); SumAggregationBuilder pipeLengthAgg = AggregationBuilders.sum(countField).field("pipeLength").missing(0);
builder.aggregation(pipeLengthAgg).size(0); builder.aggregation(pipeLengthAgg).size(0);
request.source(builder); request.source(builder);
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment