1、分页是在dao层封装好的

2、分页的参数:

  currentPage:当前页数

  pageSize:每页的数量

  totalPage:总页数  Math.ceil(totalCount/pageSize)

  totalCount:总数量

  封装好的集合 List<T> list ;

 

1 public class Page<T> {
2     private Integer currentPage;//当前页
3     private Integer pageSize;//每页数量
4     private Integer totalPage;//总页数
5     private Long totalCount;//总数量
6     private List<T> list = new ArrayList<T>();
7 }

 

相关文章:

  • 2022-01-22
  • 2021-12-16
  • 2021-08-18
  • 2021-09-22
  • 2022-01-21
  • 2022-01-31
猜你喜欢
  • 2021-12-09
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-11-23
  • 2021-11-23
相关资源
相似解决方案