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