1
lige
2024-02-02 fb0c38c7470122174c0088fa8f2f69a0a90e2994
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
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
package com.ltkj.common.core.domain.entity;
 
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ltkj.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ltkj.common.core.domain.BaseEntity;
 
/**
 * 部门表 sys_dept
 *
 * @author ruoyi
 */
 
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SysDept extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    /**
     * 部门ID
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deptId;
 
    /**
     * 父部门ID
     */
    private Long parentId;
 
    /**
     * 祖级列表
     */
    private String ancestors;
 
    /**
     * 部门名称
     */
    private String deptName;
 
    /**
     * 显示顺序
     */
    private Integer orderNum;
 
    /**
     * 负责人
     */
    private String leader;
 
    /**
     * 联系电话
     */
    private String phone;
 
    /**
     * 邮箱
     */
    private String email;
 
    /**
     * 部门状态:0正常,1停用
     */
    private String status;
    //新添加属性
    /**
     * 科室英文名称
     */
    private String departmentEnName;
 
    /**
     * 组织类型(PT10.06.17)
     */
    private String orgType;
 
    /**
     * 科室编码
     */
    private String departmentCode;
 
    /**
     * 上级组织id
     */
    private String parentOrgId;
 
    /**
     * 上级组织名称
     */
    private String parentOrgName;
 
    /**
     * 上级组织编码
     */
    private String parentOrgCode;
 
    /**
     * 上级组织类型(PT10.06.17)
     */
    private String parentOrgType;
 
    /**
     * 医疗机构ID
     */
    private String hospId;
 
    /**
     * 医疗机构编码
     */
    private String hospCode;
 
    /**
     * 医疗机构名称
     */
    private String hospName;
 
    /**
     * 联系人
     */
    private String contactPerson;
 
    /**
     * 联系人电话
     */
    private String contactPhone;
 
    /**
     * 邮政编码
     */
    @Excel(name = "邮政编码")
    private String postalCode;
 
    /**
     * 官网
     */
    private String officialWeb;
 
    /**
     * 编制床位数
     */
    private Long plaitBed;
 
    /**
     * 开放床位数
     */
    private Long openBed;
 
    /**
     * 建立日期
     */
    private Date buildDate;
 
    /**
     * 建立日期
     */
    private Date overDate;
 
    /**
     * 简介
     */
    private String peofile;
 
    /**
     * 标准科室编码(PT10.06.24)
     */
    private String standardDeptCode;
 
    /**
     * 科室类型编码(PT10.06.08)(组织类型为“8-科室”时必填)
     */
    private String deptTypeCode;
 
    /**
     * 重点科室类型编码(PT10.06.15)
     */
    private String deptFcusTypeCode;
    //以上
 
 
    /**
     * 父部门名称
     */
    @TableField(exist = false)
    private String parentName;
 
    /**
     * 项目检查状态 小程序用
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "项目检查状态 小程序用")
    private Long checkStatus;
 
 
    /**
     * 子部门
     */
    @TableField(exist = false)
    private List<SysDept> children = new ArrayList<SysDept>();
 
    public Long getDeptId() {
        return deptId;
    }
 
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
 
    public Long getParentId() {
        return parentId;
    }
 
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
 
    public String getAncestors() {
        return ancestors;
    }
 
    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }
 
    @NotBlank(message = "部门名称不能为空")
    @Size(min = 0, max = 30, message = "部门名称长度不能超过30个字符")
    public String getDeptName() {
        return deptName;
    }
 
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
 
    @NotNull(message = "显示顺序不能为空")
    public Integer getOrderNum() {
        return orderNum;
    }
 
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }
 
    public String getLeader() {
        return leader;
    }
 
    public void setLeader(String leader) {
        this.leader = leader;
    }
 
    @Size(min = 0, max = 11, message = "联系电话长度不能超过11个字符")
    public String getPhone() {
        return phone;
    }
 
    public void setPhone(String phone) {
        this.phone = phone;
    }
 
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    public String getEmail() {
        return email;
    }
 
    public void setEmail(String email) {
        this.email = email;
    }
 
    public String getStatus() {
        return status;
    }
 
    public void setStatus(String status) {
        this.status = status;
    }
 
    public String getParentName() {
        return parentName;
    }
 
    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
 
    public List<SysDept> getChildren() {
        return children;
    }
 
    public void setChildren(List<SysDept> children) {
        this.children = children;
    }
 
    public String getDepartmentEnName() {
        return departmentEnName;
    }
 
    public void setDepartmentEnName(String departmentEnName) {
        this.departmentEnName = departmentEnName;
    }
 
    public String getOrgType() {
        return orgType;
    }
 
    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }
 
    public String getDepartmentCode() {
        return departmentCode;
    }
 
    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }
 
    public String getParentOrgId() {
        return parentOrgId;
    }
 
    public void setParentOrgId(String parentOrgId) {
        this.parentOrgId = parentOrgId;
    }
 
    public String getParentOrgName() {
        return parentOrgName;
    }
 
    public void setParentOrgName(String parentOrgName) {
        this.parentOrgName = parentOrgName;
    }
 
    public String getParentOrgCode() {
        return parentOrgCode;
    }
 
    public void setParentOrgCode(String parentOrgCode) {
        this.parentOrgCode = parentOrgCode;
    }
 
    public String getParentOrgType() {
        return parentOrgType;
    }
 
    public void setParentOrgType(String parentOrgType) {
        this.parentOrgType = parentOrgType;
    }
 
    public String getHospId() {
        return hospId;
    }
 
    public void setHospId(String hospId) {
        this.hospId = hospId;
    }
 
    public String getHospCode() {
        return hospCode;
    }
 
    public void setHospCode(String hospCode) {
        this.hospCode = hospCode;
    }
 
    public String getHospName() {
        return hospName;
    }
 
    public void setHospName(String hospName) {
        this.hospName = hospName;
    }
 
    public String getContactPerson() {
        return contactPerson;
    }
 
    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }
 
    public String getContactPhone() {
        return contactPhone;
    }
 
    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }
 
    public String getPostalCode() {
        return postalCode;
    }
 
    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
 
    public String getOfficialWeb() {
        return officialWeb;
    }
 
    public void setOfficialWeb(String officialWeb) {
        this.officialWeb = officialWeb;
    }
 
    public Long getPlaitBed() {
        return plaitBed;
    }
 
    public void setPlaitBed(Long plaitBed) {
        this.plaitBed = plaitBed;
    }
 
    public Long getOpenBed() {
        return openBed;
    }
 
    public void setOpenBed(Long openBed) {
        this.openBed = openBed;
    }
 
 
    public String getPeofile() {
        return peofile;
    }
 
    public void setPeofile(String peofile) {
        this.peofile = peofile;
    }
 
    public String getStandardDeptCode() {
        return standardDeptCode;
    }
 
    public void setStandardDeptCode(String standardDeptCode) {
        this.standardDeptCode = standardDeptCode;
    }
 
    public String getDeptTypeCode() {
        return deptTypeCode;
    }
 
    public void setDeptTypeCode(String deptTypeCode) {
        this.deptTypeCode = deptTypeCode;
    }
 
    public String getDeptFcusTypeCode() {
        return deptFcusTypeCode;
    }
 
    public void setDeptFcusTypeCode(String deptFcusTypeCode) {
        this.deptFcusTypeCode = deptFcusTypeCode;
    }
 
    @Override
    public String toString() {
        return "SysDept{" +
                "deptId=" + deptId +
                ", parentId=" + parentId +
                ", ancestors='" + ancestors + '\'' +
                ", deptName='" + deptName + '\'' +
                ", orderNum=" + orderNum +
                ", leader='" + leader + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", status='" + status + '\'' +
                ", departmentEnName='" + departmentEnName + '\'' +
                ", orgType='" + orgType + '\'' +
                ", departmentCode='" + departmentCode + '\'' +
                ", parentOrgId='" + parentOrgId + '\'' +
                ", parentOrgName='" + parentOrgName + '\'' +
                ", parentOrgCode='" + parentOrgCode + '\'' +
                ", parentOrgType='" + parentOrgType + '\'' +
                ", hospId='" + hospId + '\'' +
                ", hospCode='" + hospCode + '\'' +
                ", hospName='" + hospName + '\'' +
                ", contactPerson='" + contactPerson + '\'' +
                ", contactPhone='" + contactPhone + '\'' +
                ", postalCode='" + postalCode + '\'' +
                ", officialWeb='" + officialWeb + '\'' +
                ", plaitBed=" + plaitBed +
                ", openBed=" + openBed +
                ", buildDate='" + buildDate + '\'' +
                ", peofile='" + peofile + '\'' +
                ", standardDeptCode='" + standardDeptCode + '\'' +
                ", deptTypeCode='" + deptTypeCode + '\'' +
                ", deptFcusTypeCode='" + deptFcusTypeCode + '\'' +
                ", parentName='" + parentName + '\'' +
                ", children=" + children +
                '}';
    }
//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("deptId", getDeptId())
//            .append("parentId", getParentId())
//            .append("ancestors", getAncestors())
//            .append("deptName", getDeptName())
//            .append("orderNum", getOrderNum())
//            .append("leader", getLeader())
//            .append("phone", getPhone())
//            .append("email", getEmail())
//            .append("status", getStatus())
//            .append("delFlag", getDelFlag())
//            .append("createBy", getCreateBy())
//            .append("createTime", getCreateTime())
//            .append("updateBy", getUpdateBy())
//            .append("updateTime", getUpdateTime())
//            .toString();
//    }
}