|  | @@ -10,26 +10,26 @@ import java.util.List;
 | 
												
													
														
															|  |   * Version: 1.0
 |  |   * Version: 1.0
 | 
												
													
														
															|  |   */
 |  |   */
 | 
												
													
														
															|  |  public class PageUtil<T> {
 |  |  public class PageUtil<T> {
 | 
												
													
														
															|  | -    private Integer currentPage = 1;
 |  | 
 | 
												
													
														
															|  | -    private Integer totalCount;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    private Integer pageNum = 1;
 | 
												
													
														
															|  | 
 |  | +    private Integer total;
 | 
												
													
														
															|  |      private Integer pageSize = 10;
 |  |      private Integer pageSize = 10;
 | 
												
													
														
															|  | -    private Integer totalPage;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    private Integer pages;
 | 
												
													
														
															|  |      private List<T> list = new ArrayList<>();
 |  |      private List<T> list = new ArrayList<>();
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -    public Integer getCurrentPage() {
 |  | 
 | 
												
													
														
															|  | -        return currentPage;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    public Integer getPageNum() {
 | 
												
													
														
															|  | 
 |  | +        return pageNum;
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -    public void setCurrentPage(Integer currentPage) {
 |  | 
 | 
												
													
														
															|  | -        this.currentPage = currentPage;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    public void setPageNum(Integer pageNum) {
 | 
												
													
														
															|  | 
 |  | +        this.pageNum = pageNum;
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -    public Integer getTotalCount() {
 |  | 
 | 
												
													
														
															|  | -        return totalCount;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    public Integer getTotal() {
 | 
												
													
														
															|  | 
 |  | +        return total;
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -    public void setTotalCount(Integer totalCount) {
 |  | 
 | 
												
													
														
															|  | -        this.totalCount = totalCount;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    public void setTotal(Integer total) {
 | 
												
													
														
															|  | 
 |  | +        this.total = total;
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      public Integer getPageSize() {
 |  |      public Integer getPageSize() {
 | 
												
											
												
													
														
															|  | @@ -40,12 +40,12 @@ public class PageUtil<T> {
 | 
												
													
														
															|  |          this.pageSize = pageSize;
 |  |          this.pageSize = pageSize;
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -    public Integer getTotalPage() {
 |  | 
 | 
												
													
														
															|  | -        return totalPage;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    public Integer getPages() {
 | 
												
													
														
															|  | 
 |  | +        return pages;
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -    public void setTotalPage(Integer totalCount) {
 |  | 
 | 
												
													
														
															|  | -        this.totalPage = totalCount % this.pageSize == 0 ? totalCount / this.pageSize : totalCount / this.pageSize + 1;
 |  | 
 | 
												
													
														
															|  | 
 |  | +    public void setPages(Integer total) {
 | 
												
													
														
															|  | 
 |  | +        this.pages = total % this.pageSize == 0 ? total / this.pageSize : total / this.pageSize + 1;;
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      public List<T> getList() {
 |  |      public List<T> getList() {
 |