给Query传过滤条件
EntityViewInfo evi = new EntityViewInfo();
FilterInfo filterInfo = new FilterInfo(); //建立过滤条件
filterInfo.getFilterItems().add(
new FilterItemInfo("typelink.id", info.getId(),
CompareType.EQUALS));
filterInfo.getFilterItems().add(
new FilterItemInfo("currencyCompany.id", companyID,
CompareType.EQUALS));
filterInfo.setMaskString("#0 and #1 ");
evi.setFilter(filterInfo);
if (mainQuery == null) {
mainQuery = new EntityViewInfo();
}
mainQuery.setFilter(filterInfo); //添加过滤条件
this.execQuery();