Examples of FriendshipLinkCriteria


Examples of com.eatle.persistent.pojo.system.frontdata.FriendshipLinkCriteria

  @Override
  public Pagination findPagination(Map<String, Object> queryMap,
      int currentPage, int pageSize)
  {
    FriendshipLinkCriteria friendshipLinkCriteria = new FriendshipLinkCriteria();
    Criteria criteria = friendshipLinkCriteria.createCriteria();
    // 设置搜索条件参数
    if (queryMap != null)
    {
      if (queryMap.containsKey("name"))
      {
        criteria.andLinkNameLike("%" + (String) queryMap.get("name") + "%");
      }
      if (queryMap.containsKey("isDisplay"))
      {
        criteria.andIsDisplayEqualTo(Short.parseShort((String) queryMap.get("isDisplay")));
      }
    }
    // 设置分页参数
    friendshipLinkCriteria.setPageSize(pageSize);
    friendshipLinkCriteria.setStartIndex((currentPage - 1) * pageSize);
   
    List<FriendshipLink> items = friendshipLinkMapper.selectByCriteria(friendshipLinkCriteria);
    for(FriendshipLink fl : items)
    {
      fl.setIsDisplayStr(showFriendLinkHtml.get("" + fl.getIsDisplay()));
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.