You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
535 B
Java
32 lines
535 B
Java
5 years ago
|
package com.manage.util;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
|
||
|
public class PageHelper<T> {
|
||
|
//实体类集合
|
||
|
private List<T> rows = new ArrayList<T>();
|
||
|
//数据总条数
|
||
|
private int total;
|
||
|
|
||
|
public PageHelper() {
|
||
|
super();
|
||
|
}
|
||
|
|
||
|
public List<T> getRows() {
|
||
|
return rows;
|
||
|
}
|
||
|
|
||
|
public void setRows(List<T> rows) {
|
||
|
this.rows = rows;
|
||
|
}
|
||
|
|
||
|
public int getTotal() {
|
||
|
return total;
|
||
|
}
|
||
|
|
||
|
public void setTotal(int total) {
|
||
|
this.total = total;
|
||
|
}
|
||
|
}
|