YYC
2023-08-08 9607a83c355cb61a35b412019091374bb7d6829c
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
package com.fzzy.sys.entity;
 
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
 
import javax.persistence.*;
import java.util.List;
 
/**
 * 系统表-部门表
 * <p>
 */
@Data
@Entity
@Table(name = "SYS_DEPT")
public class SysDept {
 
 
    @Id
    @Column(name = "ID_", length = 40)
    private String id;
 
    @Column(name = "COMPANY_ID_", length = 20)
    private String companyId;
 
    @Column(name = "NAME_", length = 50)
    private String name;
 
    @Column(name = "DESC_", length = 100)
    private String desc;
 
    @Column(name = "PARENT_ID_", length = 40)
    private String parentId;
 
    @Transient
    private List<SysDept> children;
 
 
    // ------------自定义字段信息-----------------------//
 
    @PropertyDef(label = "类型")
    @Column(name = "TYPE_", length = 10)
    private String type;
 
    @PropertyDef(label = "所在省")
    @Column(name = "PROVINCE_", length = 30)
    private String province;
 
    @PropertyDef(label = "所在城市")
    @Column(name = "CITY_", length = 30)
    private String city;
 
    @PropertyDef(label = "所在区县")
    @Column(name = "COUNTRY_", length = 30)
    private String country;
 
    @PropertyDef(label = "所在省")
    @Column(name = "PROVINCE_NAME_", length = 30)
    private String provinceName;
 
    @PropertyDef(label = "所在城市")
    @Column(name = "CITY_NAME_", length = 30)
    private String cityName;
 
    @PropertyDef(label = "所在区县")
    @Column(name = "COUNTRY_NAME_", length = 30)
    private String countryName;
 
}