OFBiz实体查询例子

String dateStart = "2016-01-18 00:00:00";
String dateEnd   = "2016-01-20 00:00:00";
    
List l = new ArrayList();//存放查询条件
l.add(new EntityExpr("createdStamp",EntityOperator.GREATER_THAN,dateStart));    
l.add(new EntityExpr("createdStamp",EntityOperator.LESS_THAN,dateEnd));
l.add(new EntityExpr("state",EntityOperator.EQUALS,"create"));
l.add(new EntityExpr("Meta_status",EntityOperator.EQUALS,"1"));
List<GenericValue> infoSendGVList = delegator.findByAnd("Meta_infoSendHistory", l);


你可能感兴趣的:(OFBiz实体查询例子)