|
@@ -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() {
|