Class PagingVO<T>

java.lang.Object
com.elitesland.ystdms.sys.dto.PagingVO<T>
Type Parameters:
T - 数据类型
All Implemented Interfaces:
Serializable

public class PagingVO<T> extends Object implements Serializable
分页数据传输对象 用于封装分页查询结果,包括数据列表、分页信息等
See Also:
  • Constructor Details

    • PagingVO

      public PagingVO(long current, long size, long total, List<T> records)
      构造分页对象
      Parameters:
      current - 当前页码
      size - 每页大小
      total - 总记录数
      records - 当前页数据列表
    • PagingVO

      public PagingVO(com.mybatisflex.core.paginate.Page<T> page)
  • Method Details

    • getCurrent

      public long getCurrent()
    • getSize

      public long getSize()
    • isFirst

      public boolean isFirst()
      判断当前页是否为首页
      Returns:
      是否为首页
    • isLast

      public boolean isLast()
      判断当前页是否为末页
      Returns:
      是否为末页
    • getStartOffset

      public long getStartOffset()
      计算当前页的起始记录位置
      Returns:
      起始记录位置
    • isEmpty

      public boolean isEmpty()
      判断当前页是否为空
      Returns:
      当前页是否为空
    • isNotEmpty

      public boolean isNotEmpty()
      判断当前页是否非空
      Returns:
      当前页是否非空