Examples of Pagination


Examples of com.eatle.utils.Pagination

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

Examples of com.eatle.utils.Pagination

      loginLog.setIdentifyTypeStr(identityHtml.get("" + loginLog.getIdentifyType()));
      // 登陆时间
      loginLog.setLoginTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(loginLog.getLoginTime()));
    }
    int totalCount = (int) loginLogMapper.selectCountByCriteria(loginLogCriteria);
    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<Menu> items = menuMapper.selectByCriteria(menuCriteria);
    int totalCount = (int) menuMapper.selectCountByCriteria(menuCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

      c.setIsEnabledStr(customerEnabledHtml.get(c.getIsEnabled().toString()));
      // 注册时间
      c.setRegisterTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(c.getRegisterTime()));
    }
    int totalCount = (int) customerMapper.selectCountByCriteria(customerCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

      districtService.findAllFatherById(c.getDistrictId() == null ? -1 : c.getDistrictId(), sb);
      c.setDistrictName(StringUtil.reverseStrAsSplitStr(sb.toString(), ";"));
      items.add(c);
    }
    int totalCount = (int) communityMapper.selectCountByCriteria(communityCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

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

Examples of com.eatle.utils.Pagination

      districtService.findAllFatherById(s.getDistrictId() == null ? -1 : s.getDistrictId(), sb);
      s.setDistrictName(StringUtil.reverseStrAsSplitStr(sb.toString(), ";"));
      items.add(s);
    }
    int totalCount = (int) schoolMapper.selectCountByCriteria(schoolCriteria);
    return new Pagination(pageSize, currentPage, totalCount, items);
  }
View Full Code Here

Examples of com.eatle.utils.Pagination

    for(ConvertRecords cr : items)
    {
      cr.setConvertTimeStr(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(cr.getConvertTime()));
    }

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

Examples of com.eatle.utils.Pagination

    // 设置分页参数
    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

Examples of com.eatle.utils.Pagination

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