Package com.eatle.persistent.pojo.foundation.dictionary

Examples of com.eatle.persistent.pojo.foundation.dictionary.MenuFeatureCriteria


  @Override
  public Pagination findPagination(Map<String, Object> queryMap,
      int currentPage, int pageSize)
  {
    MenuFeatureCriteria menuFeatureCriteria = new MenuFeatureCriteria();
    Criteria criteria = menuFeatureCriteria.createCriteria();
    // 设置搜索条件参数
    if (queryMap != null)
    {
      if (queryMap.containsKey("feature"))
      {
        criteria.andFeatureLike("%" + (String) queryMap.get("feature") + "%");
      }
    }
    // 设置分页参数
    menuFeatureCriteria.setPageSize(pageSize);
    menuFeatureCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<MenuFeature> items = menuFeatureMapper.selectByCriteria(menuFeatureCriteria);
    int totalCount = (int) menuFeatureMapper.selectCountByCriteria(menuFeatureCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.foundation.dictionary.MenuFeatureCriteria

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.