Commit 9d35bd06 by Huang Linyu

add description query like

parent d25f8093
......@@ -170,7 +170,7 @@ public class VoucherDao extends GenericHibernateDao<Voucher, Integer> {
sb.append(" and v.uid='").append(request.getUid()).append("'");
}
if (org.apache.commons.lang.StringUtils.isNotEmpty(request.getDescription())) {
sb.append(" and v.description='").append(request.getDescription()).append("'");
sb.append(" and v.description like'%").append(request.getDescription()).append("%'");
}
if(request.getUsed()!=null && request.getUsed()!=-1){
sb.append(" and v.Used=").append(request.getUsed());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment