提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.dto; |
C |
2 |
|
|
3 |
|
60b8b2
|
4 |
import lombok.Data; |
C |
5 |
|
02795f
|
6 |
import java.util.List; |
F |
7 |
|
7c680b
|
8 |
/** |
C |
9 |
* @author ChenJiaHe |
|
10 |
* 分页扩展类*/ |
60b8b2
|
11 |
@Data |
7c680b
|
12 |
public class PageDto { |
60b8b2
|
13 |
/**标识*/ |
C |
14 |
private String id; |
7c680b
|
15 |
/**当前页数*/ |
C |
16 |
private Integer pageNum; |
|
17 |
/**当前页显示条数*/ |
|
18 |
private Integer pageSize; |
|
19 |
/**关键字*/ |
|
20 |
private String keyWord; |
|
21 |
/**上级标识*/ |
|
22 |
private String parentId; |
|
23 |
/**分类标识*/ |
|
24 |
private String typeId; |
02795f
|
25 |
private List<String> typeIdList; |
ffaad1
|
26 |
//appid |
W |
27 |
private String appId; |
|
28 |
|
7c680b
|
29 |
|
C |
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() { |
7ccc84
|
51 |
if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 800){ |
6c8c7a
|
52 |
this.pageSize = 800; |
7c680b
|
53 |
} |
C |
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 |
} |
ffaad1
|
93 |
|
W |
94 |
public String getAppId() { |
|
95 |
return appId; |
|
96 |
} |
|
97 |
|
|
98 |
public void setAppId(String appId) { |
|
99 |
this.appId = appId; |
|
100 |
} |
7c680b
|
101 |
} |