Browse Source

修改PageUtils

ljx 4 years ago
parent
commit
f0f9965ef5
1 changed files with 11 additions and 11 deletions
  1. 11 11
      src/main/java/com/imed/costaccount/common/util/PageUtils.java

+ 11 - 11
src/main/java/com/imed/costaccount/common/util/PageUtils.java

@@ -27,7 +27,7 @@ public class PageUtils implements Serializable {
 	/**
 	 * 当前页数
 	 */
-	private int curr;
+	private int current;
 	/**
 	 * 列表数据
 	 */
@@ -38,13 +38,13 @@ public class PageUtils implements Serializable {
 	 * @param list        列表数据
 	 * @param totalCount  总记录数
 	 * @param pageSize    每页记录数
-	 * @param curr    当前页数
+	 * @param current    当前页数
 	 */
-	public PageUtils(List<?> list, int totalCount, int pageSize, int curr) {
+	public PageUtils(List<?> list, int totalCount, int pageSize, int current) {
 		this.list = list;
 		this.totalCount = totalCount;
 		this.pageSize = pageSize;
-		this.curr = curr ;
+		this.current = current ;
 		this.totalPage = (int)Math.ceil((double)totalCount/pageSize);
 	}
 
@@ -55,15 +55,15 @@ public class PageUtils implements Serializable {
 		this.list = page.getRecords();
 		this.totalCount = (int)page.getTotal();
 		this.pageSize = (int)page.getSize();
-		this.curr = (int)page.getCurrent();
+		this.current = (int)page.getCurrent();
 		this.totalPage = (int)page.getPages();
 	}
 
-	public int gettotalCount() {
+	public int getTotalCount() {
 		return totalCount;
 	}
 
-	public void settotalCount(int totalCount) {
+	public void setTotalCount(int totalCount) {
 		this.totalCount = totalCount;
 	}
 
@@ -83,12 +83,12 @@ public class PageUtils implements Serializable {
 		this.totalPage = totalPage;
 	}
 
-	public int getCurr() {
-		return curr;
+	public int getCurrent() {
+		return current;
 	}
 
-	public void setCurr(int curr) {
-		this.curr = curr;
+	public void setCurrent(int current) {
+		this.current = current;
 	}
 
 	public List<?> getList() {