Class PageUtils

java.lang.Object
com.codeupsoft.base.dao.utils.PageUtils

public class PageUtils extends Object
分页工具.
Author:
Liu,Dongdong
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> com.baomidou.mybatisplus.core.metadata.IPage<T>
    获取分页请求对象,使用默认的页码和页面大小参数名.
    static <T> com.baomidou.mybatisplus.core.metadata.IPage<T>
    getPageRequest(String pageNumKey, String pageSizeKey)
    根据指定的参数名从HTTP请求中获取分页信息并创建分页对象.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PageUtils

      public PageUtils()
  • Method Details

    • getPageRequest

      public static <T> com.baomidou.mybatisplus.core.metadata.IPage<T> getPageRequest()
      获取分页请求对象,使用默认的页码和页面大小参数名.
      Type Parameters:
      T - 泛型类型参数
      Returns:
      分页对象,包含页码和页面大小信息
    • getPageRequest

      public static <T> com.baomidou.mybatisplus.core.metadata.IPage<T> getPageRequest(String pageNumKey, String pageSizeKey)
      根据指定的参数名从HTTP请求中获取分页信息并创建分页对象.
      Type Parameters:
      T - 泛型类型参数
      Parameters:
      pageNumKey - 页码参数名
      pageSizeKey - 页面大小参数名
      Returns:
      分页对象,包含从请求参数中解析出的页码和页面大小信息