chenjiahe
6 天以前 50345f3b921e6c9763ea713bc0f7824d23717c40
提交 | 用户 | 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;
910975 26     /**appid*/
ffaad1 27     private String appId;
7c680b 28
C 29     public Integer getPageNum() {
30         if(this.pageNum == null || this.pageNum < 0){
31             this.pageNum = 1;
32         }
33         return this.pageNum;
34     }
35
36     public Integer getPageNum(Integer pageNum) {
37         if(pageNum != null){
38             this.pageNum = pageNum;
39         }else{
40             this.pageNum = getPageNum();
41         }
42         return this.pageNum;
43     }
44
45     public void setPageNum(Integer pageNum) {
46         this.pageNum = pageNum;
47     }
48
49     public Integer getPageSize() {
7ccc84 50         if(this.pageSize == null || this.pageSize < 0 || this.pageSize > 800){
6c8c7a 51             this.pageSize = 800;
7c680b 52         }
C 53         return this.pageSize;
54     }
55
56     public Integer getPageSize(Integer pageSize) {
57         if(pageSize != null){
58             this.pageSize = pageSize;
59         }else{
60             this.pageSize = getPageSize();
61         }
62         return this.pageSize;
63     }
64
65     public void setPageSize(Integer pageSize) {
66         this.pageSize = pageSize;
67     }
68
69     public String getKeyWord() {
70         return keyWord;
71     }
72
73     public void setKeyWord(String keyWord) {
74         this.keyWord = keyWord;
75     }
76
77     public String getParentId() {
78         return parentId;
79     }
80
81     public void setParentId(String parentId) {
82         this.parentId = parentId;
83     }
84
85     public String getTypeId() {
86         return typeId;
87     }
88
89     public void setTypeId(String typeId) {
90         this.typeId = typeId;
91     }
ffaad1 92
W 93     public String getAppId() {
94         return appId;
95     }
96
97     public void setAppId(String appId) {
98         this.appId = appId;
99     }
7c680b 100 }