|
@ -123,7 +123,7 @@ public class ViewService extends BaseJpaService<View, ViewDao> {
|
|
*
|
|
*
|
|
* @param viewCode 视图编码
|
|
* @param viewCode 视图编码
|
|
* @param filterModelList 页面的过滤条件模型集合
|
|
* @param filterModelList 页面的过滤条件模型集合
|
|
* @return 聚合对象
|
|
|
|
|
|
* @return ES聚合对象
|
|
* @author 张进军
|
|
* @author 张进军
|
|
*/
|
|
*/
|
|
public Aggregations statViewResult(String viewCode, List<ViewQuotaFilterModel> filterModelList) throws Exception {
|
|
public Aggregations statViewResult(String viewCode, List<ViewQuotaFilterModel> filterModelList) throws Exception {
|
|
@ -201,7 +201,7 @@ public class ViewService extends BaseJpaService<View, ViewDao> {
|
|
|
|
|
|
if (i == otherRowDimensionCount - 1) {
|
|
if (i == otherRowDimensionCount - 1) {
|
|
// 末端行维度场合
|
|
// 末端行维度场合
|
|
// 汇总列维度的聚合及嵌套其指标聚合,并列嵌套于末端行维度的聚合
|
|
|
|
|
|
// 汇总列维度的聚合及嵌套其指标聚合,并列嵌套于末端行维度的聚合。
|
|
this.gatherColDimensionsAndQuotasAgg(rowAgg, otherRowDimension, colDimensionList, viewQuotaList);
|
|
this.gatherColDimensionsAndQuotasAgg(rowAgg, otherRowDimension, colDimensionList, viewQuotaList);
|
|
preRowAgg = rowAgg;
|
|
preRowAgg = rowAgg;
|
|
} else {
|
|
} else {
|
|
@ -213,7 +213,7 @@ public class ViewService extends BaseJpaService<View, ViewDao> {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
// 行维度组内只有一个行维度的场合
|
|
// 行维度组内只有一个行维度的场合
|
|
// 汇总列维度的聚合及嵌套其指标聚合,并列嵌套于顶层行维度的聚合
|
|
|
|
|
|
// 汇总列维度的聚合及嵌套其指标聚合,并列嵌套于顶层行维度的聚合。
|
|
this.gatherColDimensionsAndQuotasAgg(topAgg, topRowDimension, colDimensionList, viewQuotaList);
|
|
this.gatherColDimensionsAndQuotasAgg(topAgg, topRowDimension, colDimensionList, viewQuotaList);
|
|
}
|
|
}
|
|
|
|
|