当前位置: 首页 > 工具软件 > Filter View > 使用案例 >

filter多条件组合过滤

庄经国
2023-12-01
        FilterInfo filter = new FilterInfo();
        filter.getFilterItems().add(new FilterItemInfo("indexComType",IndexComTypeEnum.ALLCOMENUM_VALUE,CompareType.EQUALS));//指标类型:全局通用
        filter.getFilterItems().add(new FilterItemInfo("indexComType",IndexComTypeEnum.INDCOMENUM_VALUE,CompareType.EQUALS));//指标类型:行业通用
        filter.getFilterItems().add(new FilterItemInfo("industry.id",industryInfo.getId().toString(),CompareType.EQUALS));
        filter.getFilterItems().add(new FilterItemInfo("industry.id",industryInfo.getId().toString(),CompareType.EQUALS));
        filter.getFilterItems().add(new FilterItemInfo("zone.id",zoneInfo.getId().toString(),CompareType.EQUALS));
        filter.setMaskString("#0 or (#1 and  #2) or (#3 and #4)");
        EntityViewInfo view = new EntityViewInfo();
        view.setFilter(filter);
 类似资料: