Examples of MenuCriteria


Examples of com.eatle.persistent.pojo.system.systemdata.MenuCriteria

  public void test()
  {
    System.out.println(menuService.findById(1).getMenuName());
    System.out.println(menuService.findAll().size() + "a");
   
    MenuCriteria criteria = new MenuCriteria();
    criteria.setStartIndex(1);
    criteria.setPageSize(4);
    System.out.println(menuService.findByCriteria(criteria).size());
   
    // 查询所有根菜单
    List<Menu> rootMenus = menuService.findRootMenu();
    for(Menu m : rootMenus)
View Full Code Here

Examples of com.eatle.persistent.pojo.system.systemdata.MenuCriteria

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

Examples of com.eatle.persistent.pojo.system.systemdata.MenuCriteria

  @Override
  public Pagination findPagination(Map<String, Object> queryMap,
      int currentPage, int pageSize)
  {
    MenuCriteria menuCriteria = new MenuCriteria();
    // 设置分页参数
    menuCriteria.setPageSize(pageSize);
    menuCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<Menu> items = menuMapper.selectByCriteria(menuCriteria);
    int totalCount = (int) menuMapper.selectCountByCriteria(menuCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.