// 设置分页参数
convertGoodsCriteria.setPageSize(pageSize);
convertGoodsCriteria.setStartIndex((currentPage - 1) * pageSize);
List<ConvertGoods> items = convertGoodsMapper.selectByCriteria(convertGoodsCriteria);
int totalCount = (int) convertGoodsMapper.selectCountByCriteria(convertGoodsCriteria);
return new Pagination(pageSize, currentPage, totalCount, items);
}