分页 @param list 列表数据 @param totalCount 总记录数 @param pageSize 每页记录数 @param currPage 当前页数
(List<?> list, int totalCount, int pageSize, int currPage)
| 31 | * @param currPage 当前页数 |
| 32 | */ |
| 33 | public PageUtils(List<?> list, int totalCount, int pageSize, int currPage) { |
| 34 | this.list = list; |
| 35 | this.total = totalCount; |
| 36 | this.pageSize = pageSize; |
| 37 | this.currPage = currPage; |
| 38 | this.totalPage = (int)Math.ceil((double)totalCount/pageSize); |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * 分页 |