提交 | 用户 | 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 |
|
|
19 |
|
|
20 |
public Integer getPageNum() { |
|
21 |
if(this.pageNum == null || this.pageNum < 0){ |
|
22 |
this.pageNum = 1; |
|
23 |
} |
|
24 |
return this.pageNum; |
|
25 |
} |
|
26 |
|
|
27 |
public Integer getPageNum(Integer pageNum) { |
|
28 |
if(pageNum != null){ |
|
29 |
this.pageNum = pageNum; |
|
30 |
}else{ |
|
31 |
this.pageNum = getPageNum(); |
|
32 |
} |
|
33 |
return this.pageNum; |
|
34 |
} |
|
35 |
|
|
36 |
public void setPageNum(Integer pageNum) { |
|
37 |
this.pageNum = pageNum; |
|
38 |
} |
|
39 |
|
|
40 |
public Integer getPageSize() { |
|
41 |
if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 500){ |
|
42 |
this.pageSize = 20; |
|
43 |
} |
|
44 |
return this.pageSize; |
|
45 |
} |
|
46 |
|
|
47 |
public Integer getPageSize(Integer pageSize) { |
|
48 |
if(pageSize != null){ |
|
49 |
this.pageSize = pageSize; |
|
50 |
}else{ |
|
51 |
this.pageSize = getPageSize(); |
|
52 |
} |
|
53 |
return this.pageSize; |
|
54 |
} |
|
55 |
|
|
56 |
public void setPageSize(Integer pageSize) { |
|
57 |
this.pageSize = pageSize; |
|
58 |
} |
|
59 |
|
|
60 |
public String getKeyWord() { |
|
61 |
return keyWord; |
|
62 |
} |
|
63 |
|
|
64 |
public void setKeyWord(String keyWord) { |
|
65 |
this.keyWord = keyWord; |
|
66 |
} |
|
67 |
|
|
68 |
public String getParentId() { |
|
69 |
return parentId; |
|
70 |
} |
|
71 |
|
|
72 |
public void setParentId(String parentId) { |
|
73 |
this.parentId = parentId; |
|
74 |
} |
|
75 |
|
|
76 |
public String getTypeId() { |
|
77 |
return typeId; |
|
78 |
} |
|
79 |
|
|
80 |
public void setTypeId(String typeId) { |
|
81 |
this.typeId = typeId; |
|
82 |
} |
|
83 |
} |