提交 | 用户 | age
|
c88379
|
1 |
package com.hz.his.dto.common; |
F |
2 |
|
|
3 |
|
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import java.util.List; |
|
7 |
|
|
8 |
/** |
|
9 |
* @author ChenJiaHe |
|
10 |
* 分页扩展类*/ |
|
11 |
@Data |
|
12 |
public class PageDto { |
|
13 |
/**标识*/ |
|
14 |
private String id; |
|
15 |
/**当前页数*/ |
|
16 |
private Integer pageNum; |
|
17 |
/**当前页显示条数*/ |
|
18 |
private Integer pageSize; |
|
19 |
/**关键字*/ |
|
20 |
private String keyWord; |
|
21 |
/**上级标识*/ |
|
22 |
private String parentId; |
|
23 |
/**分类标识*/ |
|
24 |
private String typeId; |
|
25 |
private List<String> typeIdList; |
|
26 |
//appid |
|
27 |
private String appId; |
|
28 |
|
|
29 |
|
|
30 |
public Integer getPageNum() { |
|
31 |
if(this.pageNum == null || this.pageNum < 0){ |
|
32 |
this.pageNum = 1; |
|
33 |
} |
|
34 |
return this.pageNum; |
|
35 |
} |
|
36 |
|
|
37 |
public Integer getPageNum(Integer pageNum) { |
|
38 |
if(pageNum != null){ |
|
39 |
this.pageNum = pageNum; |
|
40 |
}else{ |
|
41 |
this.pageNum = getPageNum(); |
|
42 |
} |
|
43 |
return this.pageNum; |
|
44 |
} |
|
45 |
|
|
46 |
public void setPageNum(Integer pageNum) { |
|
47 |
this.pageNum = pageNum; |
|
48 |
} |
|
49 |
|
|
50 |
public Integer getPageSize() { |
|
51 |
if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 800){ |
|
52 |
this.pageSize = 800; |
|
53 |
} |
|
54 |
return this.pageSize; |
|
55 |
} |
|
56 |
|
|
57 |
public Integer getPageSize(Integer pageSize) { |
|
58 |
if(pageSize != null){ |
|
59 |
this.pageSize = pageSize; |
|
60 |
}else{ |
|
61 |
this.pageSize = getPageSize(); |
|
62 |
} |
|
63 |
return this.pageSize; |
|
64 |
} |
|
65 |
|
|
66 |
public void setPageSize(Integer pageSize) { |
|
67 |
this.pageSize = pageSize; |
|
68 |
} |
|
69 |
|
|
70 |
public String getKeyWord() { |
|
71 |
return keyWord; |
|
72 |
} |
|
73 |
|
|
74 |
public void setKeyWord(String keyWord) { |
|
75 |
this.keyWord = keyWord; |
|
76 |
} |
|
77 |
|
|
78 |
public String getParentId() { |
|
79 |
return parentId; |
|
80 |
} |
|
81 |
|
|
82 |
public void setParentId(String parentId) { |
|
83 |
this.parentId = parentId; |
|
84 |
} |
|
85 |
|
|
86 |
public String getTypeId() { |
|
87 |
return typeId; |
|
88 |
} |
|
89 |
|
|
90 |
public void setTypeId(String typeId) { |
|
91 |
this.typeId = typeId; |
|
92 |
} |
|
93 |
|
|
94 |
public String getAppId() { |
|
95 |
return appId; |
|
96 |
} |
|
97 |
|
|
98 |
public void setAppId(String appId) { |
|
99 |
this.appId = appId; |
|
100 |
} |
|
101 |
} |