Package com.eatle.utils

Examples of com.eatle.utils.Pagination


    queryMap.put("restaurantId", 1);
//    queryMap.put("communityName", "花");
//    queryMap.put("pinyinName", "果");
//    queryMap.put("districtName", "观");
   
    Pagination page = communityRestaurantService.getSendCommunitiesByRestaurantId(queryMap, 1, 10);
    for(Object s : page.getItems())
    {
      System.out.println(((Community) s).getName() + "   " + ((Community) s).getDistrictName());
    }
  }
View Full Code Here


          break;
        }
      }
    }
    int totalCount = (int) userMapper.selectCountByCriteria(userCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

    // 设置分页参数
    schoolRestaurantCriteria.setPageSize(pageSize);
    schoolRestaurantCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<SchoolRestaurant> items = schoolRestaurantMapper.selectByCriteria(schoolRestaurantCriteria);
    int totalCount = (int) schoolRestaurantMapper.selectCountByCriteria(schoolRestaurantCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

      StringBuffer districtName = new StringBuffer();
      districtService.findAllFatherById(s.getDistrictId(), districtName);
      s.setDistrictName(StringUtil.reverseStrAsSplitStr(districtName.toString(), ";"));
    }
   
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

    queryMap.put("restaurantId", 1);
    queryMap.put("schoolName", "电");
    queryMap.put("englishName", "elec");
    queryMap.put("districtName", "大");
   
    Pagination page = schoolRestaurantService.getSendSchoolsByRestaurantId(queryMap, 1, 10);
    for(Object s : page.getItems())
    {
      System.out.println(((School) s).getName() + "   " + ((School) s).getDistrictName());
    }
  }
View Full Code Here

    // 设置分页参数
    communityRestaurantCriteria.setPageSize(pageSize);
    communityRestaurantCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<CommunityRestaurant> items = communityRestaurantMapper.selectByCriteria(communityRestaurantCriteria);
    int totalCount = (int) communityRestaurantMapper.selectCountByCriteria(communityRestaurantCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

      StringBuffer districtName = new StringBuffer();
      districtService.findAllFatherById(c.getDistrictId(), districtName);
      c.setDistrictName(StringUtil.reverseStrAsSplitStr(districtName.toString(), ";"));
    }
   
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

    privCriteria.setStartIndex((currentPage - 1) * pageSize);

    List<Priv> items = privMapper.selectByCriteria(privCriteria);
    int totalCount = (int) privMapper.selectCountByCriteria(privCriteria);

    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

    {
      r.setShopTypeStr(shopTypes.get(r.getShopType()));
    }
   
    int totalCount = (int) restaurantMapper.selectCountByCriteria(restaurantCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

    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);
  }
View Full Code Here

TOP

Related Classes of com.eatle.utils.Pagination

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.