package com.hz.crm.dto;
|
|
|
/**
|
* @author ChenJiaHe
|
* 分页扩展类*/
|
public class PageDto {
|
/**当前页数*/
|
private Integer pageNum;
|
/**当前页显示条数*/
|
private Integer pageSize;
|
/**关键字*/
|
private String keyWord;
|
/**上级标识*/
|
private String parentId;
|
/**分类标识*/
|
private String typeId;
|
|
|
public Integer getPageNum() {
|
if(this.pageNum == null || this.pageNum < 0){
|
this.pageNum = 1;
|
}
|
return this.pageNum;
|
}
|
|
public Integer getPageNum(Integer pageNum) {
|
if(pageNum != null){
|
this.pageNum = pageNum;
|
}else{
|
this.pageNum = getPageNum();
|
}
|
return this.pageNum;
|
}
|
|
public void setPageNum(Integer pageNum) {
|
this.pageNum = pageNum;
|
}
|
|
public Integer getPageSize() {
|
if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 500){
|
this.pageSize = 20;
|
}
|
return this.pageSize;
|
}
|
|
public Integer getPageSize(Integer pageSize) {
|
if(pageSize != null){
|
this.pageSize = pageSize;
|
}else{
|
this.pageSize = getPageSize();
|
}
|
return this.pageSize;
|
}
|
|
public void setPageSize(Integer pageSize) {
|
this.pageSize = pageSize;
|
}
|
|
public String getKeyWord() {
|
return keyWord;
|
}
|
|
public void setKeyWord(String keyWord) {
|
this.keyWord = keyWord;
|
}
|
|
public String getParentId() {
|
return parentId;
|
}
|
|
public void setParentId(String parentId) {
|
this.parentId = parentId;
|
}
|
|
public String getTypeId() {
|
return typeId;
|
}
|
|
public void setTypeId(String typeId) {
|
this.typeId = typeId;
|
}
|
}
|