zhangjinjun 6 лет назад
Родитель
Сommit
92bcbb72f9

+ 3 - 3
src/main/java/com/yihu/quota/model/view/ViewQuotaFilter.java

@ -27,7 +27,7 @@ public class ViewQuotaFilter extends BaseAssignedEntity {
    private String filterType; // 过滤条件类型,view:视图,quota:指标。
    private String relationType; // 关系类型,关系类型,and:且,or:或
    private String compareType; //比较类型,belong:属于,not_belong:不属于,null:为空,not_null:非空,gt:大于,gte:大于等于,小于:lt,小于等于:lte,contain:包含,not_contain:不包含
    private Object filterValue; //过滤的值
    private String filterValue; //过滤的值
    @Column(name = "relation_id")
    public Integer getRelationId() {
@ -111,11 +111,11 @@ public class ViewQuotaFilter extends BaseAssignedEntity {
    }
    @Column(name = "filter_value")
    public Object getFilterValue() {
    public String getFilterValue() {
        return filterValue;
    }
    public void setFilterValue(Object filterValue) {
    public void setFilterValue(String filterValue) {
        this.filterValue = filterValue;
    }
}

+ 3 - 3
src/main/java/com/yihu/quota/service/view/ViewService.java

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