Commit 96fb5a7d by caosy

显示端

parent eae75ddd
......@@ -61,7 +61,7 @@ public class BuyVoucherActivityDao extends GenericHibernateDao<BuyVoucherActivit
criteria.add(Restrictions.eq("voucherType", queryBean.getVoucherType()));
}
// App
if (null == queryBean.getShowPaths()&& ("").equals(queryBean.getShowPaths()) && !("0").equals(queryBean.getShowPaths()) ) {
if ((null == queryBean.getShowPaths()|| ("").equals(queryBean.getShowPaths())) && !("0").equals(queryBean.getShowPaths()) ) {
criteria.add(Restrictions.or(Restrictions.eq("showPaths", 1)
,Restrictions.eq("showPaths", 3)));
}
......
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