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