FOBiz组合模糊查询

List list= delegator.findList("Entity",condition , null, null, null, false);
其中condition为:组合查询条件

List conditionList = new ArrayList();//存放查询条件

conditionList.add(EntityCondition.makeCondition("Entity", EntityOperator.EQUALS, "test"));//EntityOperator.EQUALS 为比较符如果是模糊就用EntityOperator.LIKE,后面的变量可以用%test%

EntityConditionList condition = EntityCondition.makeCondition(UtilMisc.toList(conditionList), EntityOperator.AND);//将list条件用and类型结合成所需的查询条件

原文地址:https://www.cnblogs.com/BobXie85/p/9790823.html