工具类之三:分页PageBean
PageBean类:
@Override public PageBean listActivationCodes(CouponModel form, UserVo currVisitor) throws ServiceException { List<CouponVo> coupons = listByCouponTemplateIdAndOrgId(form, currVisitor); PageBean page = new PageBean(form.getPageSize(), form.getPureCurPageNum(), form.getIsPaging()); page.setData(coupons); page.setTotalRecord(coupons.size()); return page; }