package com.hz.his.dto;
|
|
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* @author ChenJiaHe
|
* 分页扩展类*/
|
@Data
|
public class PageDto {
|
/**标识*/
|
private String id;
|
/**当前页数*/
|
private Integer pageNum;
|
/**当前页显示条数*/
|
private Integer pageSize;
|
/**关键字*/
|
private String keyWord;
|
/**上级标识*/
|
private String parentId;
|
/**分类标识*/
|
private String typeId;
|
private List<String> typeIdList;
|
//appid
|
private String appId;
|
|
|
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 > 800){
|
this.pageSize = 800;
|
}
|
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;
|
}
|
|
public String getAppId() {
|
return appId;
|
}
|
|
public void setAppId(String appId) {
|
this.appId = appId;
|
}
|
}
|