shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
 
 
package com.iplatform.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:S_ROLE *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class S_role extends BasePo<S_role> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    // 主键
    private Long role_id = null;
    @JsonIgnore
    protected boolean isset_role_id = false;
 
    // 属性列表
    private String role_name = null;
    @JsonIgnore
    protected boolean isset_role_name = false;
 
    private String role_key = null;
    @JsonIgnore
    protected boolean isset_role_key = false;
 
    private Integer role_sort = null;
    @JsonIgnore
    protected boolean isset_role_sort = false;
 
    private Integer data_scope = null;
    @JsonIgnore
    protected boolean isset_data_scope = false;
 
    private Integer menu_check_strictly = null;
    @JsonIgnore
    protected boolean isset_menu_check_strictly = false;
 
    private Integer dept_check_strictly = null;
    @JsonIgnore
    protected boolean isset_dept_check_strictly = false;
 
    private Integer status = null;
    @JsonIgnore
    protected boolean isset_status = false;
 
    private Integer del_flag = null;
    @JsonIgnore
    protected boolean isset_del_flag = false;
 
    private String remark = null;
    @JsonIgnore
    protected boolean isset_remark = false;
 
    private Long org_id = null;
    @JsonIgnore
    protected boolean isset_org_id = false;
 
    private Integer type = null;
    @JsonIgnore
    protected boolean isset_type = false;
 
    /**
     * 默认构造函数
     */
    public S_role() {
    }
 
    /**
     * 根据主键构造对象
     */
    public S_role(Long role_id) {
        this.setRole_id(role_id);
    }
 
    /**
     * 设置主键值
     */
    @Override
    public void setPkValue(Object value) {
        this.setRole_id((Long) value);
    }
 
            public Long getRole_id() {
        return this.role_id;
    }
    public void setRole_id(Long role_id) {
        this.role_id = role_id;
        this.isset_role_id = true;
    }
    @JsonIgnore
    public boolean isEmptyRole_id() {
        return this.role_id == null;
    }
 
 
    public String getRole_name() {
        return this.role_name;
    }
    public void setRole_name(String role_name) {
        this.role_name = role_name;
        this.isset_role_name = true;
            }
    @JsonIgnore
    public boolean isEmptyRole_name() {
        return this.role_name == null || this.role_name.length() == 0;
    }
 
 
    public String getRole_key() {
        return this.role_key;
    }
    public void setRole_key(String role_key) {
        this.role_key = role_key;
        this.isset_role_key = true;
            }
    @JsonIgnore
    public boolean isEmptyRole_key() {
        return this.role_key == null || this.role_key.length() == 0;
    }
 
 
    public Integer getRole_sort() {
        return this.role_sort;
    }
    public void setRole_sort(Integer role_sort) {
        this.role_sort = role_sort;
        this.isset_role_sort = true;
            }
    @JsonIgnore
    public boolean isEmptyRole_sort() {
        return this.role_sort == null;
    }
 
 
    public Integer getData_scope() {
        return this.data_scope;
    }
    public void setData_scope(Integer data_scope) {
        this.data_scope = data_scope;
        this.isset_data_scope = true;
            }
    @JsonIgnore
    public boolean isEmptyData_scope() {
        return this.data_scope == null;
    }
 
 
    public Integer getMenu_check_strictly() {
        return this.menu_check_strictly;
    }
    public void setMenu_check_strictly(Integer menu_check_strictly) {
        this.menu_check_strictly = menu_check_strictly;
        this.isset_menu_check_strictly = true;
            }
    @JsonIgnore
    public boolean isEmptyMenu_check_strictly() {
        return this.menu_check_strictly == null;
    }
 
 
    public Integer getDept_check_strictly() {
        return this.dept_check_strictly;
    }
    public void setDept_check_strictly(Integer dept_check_strictly) {
        this.dept_check_strictly = dept_check_strictly;
        this.isset_dept_check_strictly = true;
            }
    @JsonIgnore
    public boolean isEmptyDept_check_strictly() {
        return this.dept_check_strictly == null;
    }
 
 
    public Integer getStatus() {
        return this.status;
    }
    public void setStatus(Integer status) {
        this.status = status;
        this.isset_status = true;
            }
    @JsonIgnore
    public boolean isEmptyStatus() {
        return this.status == null;
    }
 
 
    public Integer getDel_flag() {
        return this.del_flag;
    }
    public void setDel_flag(Integer del_flag) {
        this.del_flag = del_flag;
        this.isset_del_flag = true;
            }
    @JsonIgnore
    public boolean isEmptyDel_flag() {
        return this.del_flag == null;
    }
 
 
    public String getRemark() {
        return this.remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
        this.isset_remark = true;
            }
    @JsonIgnore
    public boolean isEmptyRemark() {
        return this.remark == null || this.remark.length() == 0;
    }
 
 
    public Long getOrg_id() {
        return this.org_id;
    }
    public void setOrg_id(Long org_id) {
        this.org_id = org_id;
        this.isset_org_id = true;
            }
    @JsonIgnore
    public boolean isEmptyOrg_id() {
        return this.org_id == null;
    }
 
 
    public Integer getType() {
        return this.type;
    }
    public void setType(Integer type) {
        this.type = type;
        this.isset_type = true;
            }
    @JsonIgnore
    public boolean isEmptyType() {
        return this.type == null;
    }
 
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("role_id=").append(this.role_id)
                .append("role_name=").append(this.role_name)
                .append("role_key=").append(this.role_key)
                .append("role_sort=").append(this.role_sort)
                .append("data_scope=").append(this.data_scope)
                .append("menu_check_strictly=").append(this.menu_check_strictly)
                .append("dept_check_strictly=").append(this.dept_check_strictly)
                .append("status=").append(this.status)
                .append("del_flag=").append(this.del_flag)
                .append("remark=").append(this.remark)
                .append("org_id=").append(this.org_id)
                .append("type=").append(this.type)
                .toString();
    }
 
    /**
     * 克隆
     */
    public S_role $clone() {
        S_role s_role = new S_role();
 
        // 数据库名称
        //s_role.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_role_id) {
            s_role.setRole_id(this.getRole_id());
        }
        // 普通属性
        if (this.isset_role_name) {
            s_role.setRole_name(this.getRole_name());
        }
        if (this.isset_role_key) {
            s_role.setRole_key(this.getRole_key());
        }
        if (this.isset_role_sort) {
            s_role.setRole_sort(this.getRole_sort());
        }
        if (this.isset_data_scope) {
            s_role.setData_scope(this.getData_scope());
        }
        if (this.isset_menu_check_strictly) {
            s_role.setMenu_check_strictly(this.getMenu_check_strictly());
        }
        if (this.isset_dept_check_strictly) {
            s_role.setDept_check_strictly(this.getDept_check_strictly());
        }
        if (this.isset_status) {
            s_role.setStatus(this.getStatus());
        }
        if (this.isset_del_flag) {
            s_role.setDel_flag(this.getDel_flag());
        }
        if (this.isset_remark) {
            s_role.setRemark(this.getRemark());
        }
        if (this.isset_org_id) {
            s_role.setOrg_id(this.getOrg_id());
        }
        if (this.isset_type) {
            s_role.setType(this.getType());
        }
        return s_role;
    }
}