Commit b1fd6e29 by caosy

分页

parent ac39870c
......@@ -64,7 +64,7 @@ public class BuyVoucherActivityDao extends GenericHibernateDao<BuyVoucherActivit
criteria.addOrder(Order.desc(queryBean.getSortField()));
}
List<BuyVoucherActivity> result = criteria.list();
criteria.setFirstResult(0);
// criteria.setFirstResult(0);
Long count = (Long) criteria.setProjection(Projections.rowCount()).uniqueResult();
PagedEntityBean<BuyVoucherActivity> pagedEntityBean = new PagedEntityBean<BuyVoucherActivity>();
......
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