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

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


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

TOP

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

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.