zhangjinjun 6 лет назад
Родитель
Сommit
efe6739426
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/main/java/com/yihu/quota/service/view/ViewService.java

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

@ -241,7 +241,7 @@ public class ViewService extends BaseJpaService<View, ViewDao> {
     * @param filterModelList  视图/指标的过滤条件模型集合
     */
    private void joinFilters(BoolQueryBuilder boolQueryBuilder, List<ViewQuotaFilterModel> filterModelList) {
        if (filterModelList.size() != 0) {
        if (filterModelList != null && filterModelList.size() != 0) {
            for (ViewQuotaFilterModel filterModel : filterModelList) {
                String field = filterModel.getDimensionCode();
                Object value = filterModel.getFilterValue();
@ -315,7 +315,8 @@ public class ViewService extends BaseJpaService<View, ViewDao> {
        AggregationBuilder dimensionAgg = null;
        String dimensionCode = viewDimension.getDimensionCode();
        String orderType = viewDimension.getMemberOrderType();
        boolean isTopAsc = "asc".equals(viewDimension.getMemberOrderStrategy()) ? true : false;
        String orderStrategy = viewDimension.getMemberOrderStrategy();
        boolean isTopAsc = StringUtils.isEmpty(orderStrategy) || "asc".equals(orderStrategy) ? true : false;
        String fieldType = cubeService.findDimensionDataType(viewDimension.getCubeCode(), viewDimension.getDimensionCode());
        if (!"date".equals(fieldType)) {