Package com.eatle.persistent.pojo.foundation.scoreshop.ConvertGoodsCriteria

Examples of com.eatle.persistent.pojo.foundation.scoreshop.ConvertGoodsCriteria.Criteria


  @Override
  public Pagination findPagination(Map<String, Object> queryMap,
      int currentPage, int pageSize)
  {
    ConvertGoodsCriteria convertGoodsCriteria = new ConvertGoodsCriteria();
    Criteria criteria = convertGoodsCriteria.createCriteria();
    // 设置搜索条件参数
    if (queryMap != null)
    {
      if (queryMap.containsKey("name"))
      {
        criteria.andNameLike("%" + (String) queryMap.get("name") + "%");
      }
    }
    // 设置分页参数
    convertGoodsCriteria.setPageSize(pageSize);
    convertGoodsCriteria.setStartIndex((currentPage - 1) * pageSize);
 
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.foundation.scoreshop.ConvertGoodsCriteria.Criteria

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.