com.zys.mybatis.page.Page Maven / Gradle / Ivy
package com.zys.mybatis.page;
import java.io.Serializable;
import java.util.List;
public class Page extends BasePage implements Serializable {
private static final long serialVersionUID = -6570192533192942163L;
public Page(){
}
public Page(int page, int pageSize){
this.setPage(page);
this.setPageSize(pageSize);
this.total = 0;
}
public Page(BasePage basePage){
this.setPage(basePage.getPage());
this.setPageSize(basePage.getPageSize());
this.total = 0;
}
public Page(int page, int pageSize,int total, List data){
this.setPage(page);
this.setPageSize(pageSize);
this.total = total;
this.data = data;
}
public Page(BasePage basePage,int total, List data){
this.setPage(basePage.getPage());
this.setPageSize(basePage.getPageSize());
this.total = total;
this.data = data;
}
/**
* 总条数
*/
private int total;
/**
* 数据
*/
private List data;
public int getTotal() {
return total;
}
public List getData() {
return data;
}
public void setTotal(int total) {
this.total = total;
}
public void setData(List data) {
this.data = data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy