Examples of Pagination


Examples of com.eatle.utils.Pagination

    roleCriteria.setStartIndex((currentPage - 1) * pageSize);

    List<Role> items = roleMapper.selectByCriteria(roleCriteria);
    int totalCount = (int) roleMapper.selectCountByCriteria(roleCriteria);

    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

    {
      handleAdvert(ad);
    }
   
    int totalCount = (int) advertMapper.selectCountByCriteria(advertCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

      // 处理时间
      if(fb.getHandleTime() != null)
        fb.setHandleTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(fb.getHandleTime()));
    }
    int totalCount = (int) feedbackMapper.selectCountByCriteria(feedbackCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

    {
      fl.setIsDisplayStr(showFriendLinkHtml.get("" + fl.getIsDisplay()));
    }
   
    int totalCount = (int) friendshipLinkMapper.selectCountByCriteria(friendshipLinkCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

    // 设置分页参数
    advertPositionCriteria.setPageSize(pageSize);
    advertPositionCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<AdvertPosition> items = advertPositionMapper.selectByExampleWithBLOBs(advertPositionCriteria);
    int totalCount = (int) advertPositionMapper.selectCountByCriteria(advertPositionCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

      // 处理时间
      if(rm.getHandleTime() != null)
        rm.setHandleTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(rm.getHandleTime()));
    }
    int totalCount = (int) recommendMerchantMapper.selectCountByCriteria(recommendMerchantCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

      // 审核时间
      if(info.getAuditTime() != null)
        info.setAuditTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(info.getAuditTime()));
    }
    int totalCount = (int) joinInformationMapper.selectCountByCriteria(joinInformationCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

    // 设置分页参数
    serviceInformationCriteria.setPageSize(pageSize);
    serviceInformationCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<ServiceInformation> items = serviceInformationMapper.selectByCriteria(serviceInformationCriteria);
    int totalCount = (int) serviceInformationMapper.selectCountByCriteria(serviceInformationCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

        sn.setSendTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(sn.getSendTime()));
      // 公告对象
      sn.setTargetStr(userIdentityHtml.get("" + sn.getTarget()));
    }
    int totalCount = (int) systemNoticeMapper.selectCountByCriteria(systemNoticeCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

    // 设置分页参数
    menuCriteria.setPageSize(pageSize);
    menuCriteria.setStartIndex((currentPage - 1) * pageSize);
    List<FrontMenu> items = frontMenuMapper.selectByCriteria(menuCriteria);
    int totalCount = (int) frontMenuMapper.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.