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