}
@Override
public Pagination findPagination(Map<String, Object> queryMap, int currentPage, int pageSize)
{
RolePrivilegeCriteria rolePrivilegeCriteria = new RolePrivilegeCriteria();
rolePrivilegeCriteria.setPageSize(pageSize);
rolePrivilegeCriteria.setStartIndex((currentPage - 1) * pageSize);
List<RolePrivilege> items = rolePrivilegeMapper.selectByCriteria(rolePrivilegeCriteria);
int totalCount = (int) rolePrivilegeMapper.selectCountByCriteria(rolePrivilegeCriteria);
return new Pagination(pageSize, currentPage, totalCount, items);
}