PageParam pageParam = createPageParam(request);
List<AffiliateCommissionRpt> commissionList = affiliateReportAdminModel
.getCommissions(filter, pageParam);
model.addAttribute("commissions", commissionList);
int total = affiliateReportAdminModel.getTotalCommissions(filter);
Pagination pagination = new Pagination();
pagination.setTotal(total).setPageParam(pageParam)
.setText(message(request, "text.pagination"))
.setUrl(uri("/admin/report/affiliateCommission"));
model.addAttribute("pagination", pagination.render());
return "/admin/report/affiliateCommission";
}