@Override
public Pagination findPagination(Map<String, Object> queryMap, int currentPage, int pageSize)
{
SchoolRestaurantCriteria schoolRestaurantCriteria = new SchoolRestaurantCriteria();
Criteria criteria = schoolRestaurantCriteria.createCriteria();
// 设置搜索条件参数
if (queryMap != null)
{
if (queryMap.containsKey("restaurantId"))
{
criteria.andRestaurantIdEqualTo((Long) queryMap.get("restaurantId"));
}
}
// 设置分页参数
schoolRestaurantCriteria.setPageSize(pageSize);
schoolRestaurantCriteria.setStartIndex((currentPage - 1) * pageSize);