@Override
public Pagination findPagination(Map<String, Object> queryMap,
int currentPage, int pageSize)
{
FrontMenuCriteria menuCriteria = new FrontMenuCriteria();
// 设置分页参数
menuCriteria.setPageSize(pageSize);
menuCriteria.setStartIndex((currentPage - 1) * pageSize);
List<FrontMenu> items = frontMenuMapper.selectByCriteria(menuCriteria);
int totalCount = (int) frontMenuMapper.selectCountByCriteria(menuCriteria);
return new Pagination(pageSize, currentPage, totalCount, items);
}