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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
 
 
package com.iplatform.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:S_DEPT *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class S_dept extends BasePo<S_dept> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    /**
     * 用于兼容老写法
     */
    @JsonIgnore
    public static final S_dept ROW_MAPPER = new S_dept();
 
    // 主键
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private Long parent_id = null;
    @JsonIgnore
    protected boolean isset_parent_id = false;
 
    private Long org_id = null;
    @JsonIgnore
    protected boolean isset_org_id = false;
 
    private String ancestors = null;
    @JsonIgnore
    protected boolean isset_ancestors = false;
 
    private String dept_name = null;
    @JsonIgnore
    protected boolean isset_dept_name = false;
 
    private Integer order_num = null;
    @JsonIgnore
    protected boolean isset_order_num = false;
 
    private String leader = null;
    @JsonIgnore
    protected boolean isset_leader = false;
 
    private String phone = null;
    @JsonIgnore
    protected boolean isset_phone = false;
 
    private String email = null;
    @JsonIgnore
    protected boolean isset_email = 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 create_by = null;
    @JsonIgnore
    protected boolean isset_create_by = false;
 
    private Long create_time = null;
    @JsonIgnore
    protected boolean isset_create_time = false;
 
    private String attribute = null;
    @JsonIgnore
    protected boolean isset_attribute = false;
 
    private Integer org_type = null;
    @JsonIgnore
    protected boolean isset_org_type = false;
 
    private String charge_man = null;
    @JsonIgnore
    protected boolean isset_charge_man = false;
 
    private Integer menu_type = null;
    @JsonIgnore
    protected boolean isset_menu_type = false;
 
    /**
     * 默认构造函数
     */
    public S_dept() {
    }
 
    /**
     * 根据主键构造对象
     */
    public S_dept(Long id) {
        this.setId(id);
    }
 
    /**
     * 设置主键值
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
 
            public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
 
 
    public Long getParent_id() {
        return this.parent_id;
    }
    public void setParent_id(Long parent_id) {
        this.parent_id = parent_id;
        this.isset_parent_id = true;
        // parent_id, bigint
    }
    @JsonIgnore
    public boolean isEmptyParent_id() {
        return this.parent_id == null;
    }
 
 
    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;
        // org_id, bigint
    }
    @JsonIgnore
    public boolean isEmptyOrg_id() {
        return this.org_id == null;
    }
 
 
    public String getAncestors() {
        return this.ancestors;
    }
    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
        this.isset_ancestors = true;
        // ancestors, varchar
    }
    @JsonIgnore
    public boolean isEmptyAncestors() {
        return this.ancestors == null || this.ancestors.length() == 0;
    }
 
 
    public String getDept_name() {
        return this.dept_name;
    }
    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
        this.isset_dept_name = true;
        // dept_name, varchar
    }
    @JsonIgnore
    public boolean isEmptyDept_name() {
        return this.dept_name == null || this.dept_name.length() == 0;
    }
 
 
    public Integer getOrder_num() {
        return this.order_num;
    }
    public void setOrder_num(Integer order_num) {
        this.order_num = order_num;
        this.isset_order_num = true;
        // order_num, int
    }
    @JsonIgnore
    public boolean isEmptyOrder_num() {
        return this.order_num == null;
    }
 
 
    public String getLeader() {
        return this.leader;
    }
    public void setLeader(String leader) {
        this.leader = leader;
        this.isset_leader = true;
        // leader, varchar
    }
    @JsonIgnore
    public boolean isEmptyLeader() {
        return this.leader == null || this.leader.length() == 0;
    }
 
 
    public String getPhone() {
        return this.phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
        this.isset_phone = true;
        // phone, varchar
    }
    @JsonIgnore
    public boolean isEmptyPhone() {
        return this.phone == null || this.phone.length() == 0;
    }
 
 
    public String getEmail() {
        return this.email;
    }
    public void setEmail(String email) {
        this.email = email;
        this.isset_email = true;
        // email, varchar
    }
    @JsonIgnore
    public boolean isEmptyEmail() {
        return this.email == null || this.email.length() == 0;
    }
 
 
    public Integer getStatus() {
        return this.status;
    }
    public void setStatus(Integer status) {
        this.status = status;
        this.isset_status = true;
        // status, int
    }
    @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;
        // del_flag, int
    }
    @JsonIgnore
    public boolean isEmptyDel_flag() {
        return this.del_flag == null;
    }
 
 
    public String getCreate_by() {
        return this.create_by;
    }
    public void setCreate_by(String create_by) {
        this.create_by = create_by;
        this.isset_create_by = true;
        // create_by, varchar
    }
    @JsonIgnore
    public boolean isEmptyCreate_by() {
        return this.create_by == null || this.create_by.length() == 0;
    }
 
 
    public Long getCreate_time() {
        return this.create_time;
    }
    public void setCreate_time(Long create_time) {
        this.create_time = create_time;
        this.isset_create_time = true;
        // create_time, bigint
    }
    @JsonIgnore
    public boolean isEmptyCreate_time() {
        return this.create_time == null;
    }
 
 
    public String getAttribute() {
        return this.attribute;
    }
    public void setAttribute(String attribute) {
        this.attribute = attribute;
        this.isset_attribute = true;
        // attribute, varchar
    }
    @JsonIgnore
    public boolean isEmptyAttribute() {
        return this.attribute == null || this.attribute.length() == 0;
    }
 
 
    public Integer getOrg_type() {
        return this.org_type;
    }
    public void setOrg_type(Integer org_type) {
        this.org_type = org_type;
        this.isset_org_type = true;
        // org_type, int
    }
    @JsonIgnore
    public boolean isEmptyOrg_type() {
        return this.org_type == null;
    }
 
 
    public String getCharge_man() {
        return this.charge_man;
    }
    public void setCharge_man(String charge_man) {
        this.charge_man = charge_man;
        this.isset_charge_man = true;
        // charge_man, varchar
    }
    @JsonIgnore
    public boolean isEmptyCharge_man() {
        return this.charge_man == null || this.charge_man.length() == 0;
    }
 
 
    public Integer getMenu_type() {
        return this.menu_type;
    }
    public void setMenu_type(Integer menu_type) {
        this.menu_type = menu_type;
        this.isset_menu_type = true;
        // menu_type, int
    }
    @JsonIgnore
    public boolean isEmptyMenu_type() {
        return this.menu_type == null;
    }
 
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("parent_id=").append(this.parent_id)
                .append("org_id=").append(this.org_id)
                .append("ancestors=").append(this.ancestors)
                .append("dept_name=").append(this.dept_name)
                .append("order_num=").append(this.order_num)
                .append("leader=").append(this.leader)
                .append("phone=").append(this.phone)
                .append("email=").append(this.email)
                .append("status=").append(this.status)
                .append("del_flag=").append(this.del_flag)
                .append("create_by=").append(this.create_by)
                .append("create_time=").append(this.create_time)
                .append("attribute=").append(this.attribute)
                .append("org_type=").append(this.org_type)
                .append("charge_man=").append(this.charge_man)
                .append("menu_type=").append(this.menu_type)
                .toString();
    }
 
    /**
     * 克隆
     */
    public S_dept $clone() {
        S_dept s_dept = new S_dept();
 
        // 数据库名称
        //s_dept.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            s_dept.setId(this.getId());
        }
        // 普通属性
        if (this.isset_parent_id) {
            s_dept.setParent_id(this.getParent_id());
        }
        if (this.isset_org_id) {
            s_dept.setOrg_id(this.getOrg_id());
        }
        if (this.isset_ancestors) {
            s_dept.setAncestors(this.getAncestors());
        }
        if (this.isset_dept_name) {
            s_dept.setDept_name(this.getDept_name());
        }
        if (this.isset_order_num) {
            s_dept.setOrder_num(this.getOrder_num());
        }
        if (this.isset_leader) {
            s_dept.setLeader(this.getLeader());
        }
        if (this.isset_phone) {
            s_dept.setPhone(this.getPhone());
        }
        if (this.isset_email) {
            s_dept.setEmail(this.getEmail());
        }
        if (this.isset_status) {
            s_dept.setStatus(this.getStatus());
        }
        if (this.isset_del_flag) {
            s_dept.setDel_flag(this.getDel_flag());
        }
        if (this.isset_create_by) {
            s_dept.setCreate_by(this.getCreate_by());
        }
        if (this.isset_create_time) {
            s_dept.setCreate_time(this.getCreate_time());
        }
        if (this.isset_attribute) {
            s_dept.setAttribute(this.getAttribute());
        }
        if (this.isset_org_type) {
            s_dept.setOrg_type(this.getOrg_type());
        }
        if (this.isset_charge_man) {
            s_dept.setCharge_man(this.getCharge_man());
        }
        if (this.isset_menu_type) {
            s_dept.setMenu_type(this.getMenu_type());
        }
        return s_dept;
    }
}