CZT
2023-09-14 db72a27d10fdc4de0926fb8c7cc411ec0d4ea51b
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
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.constant.Constant;
 
import lombok.Data;
 
import javax.persistence.*;
 
import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
 
/**
 * 数据字典
 * 
 * @author Andy
 *
 */
@Data
@Entity
@Table(name = "D_DIC_TRIGGER")
public class DicTrigger implements Serializable {
 
 
    /**
     * 用于存放粮食品种code -name
     */
    public static Map<String, String> mapFoodVariety = new HashMap<>();
 
    /**
     * 用于存放粮类型code -name
     */
    public static Map<String, String> mapFoodType = new HashMap<>();
 
 
    /**
     * 初始化存放流程各个环节的名称,名称通过更新字典表的时候同步
     */
    public static Map<String,String> mapProgressName = new HashMap<>();
 
    
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    
    @Id
    @Column(name = "CODE_", length = 20)
    @PropertyDef(label = "编号")
    private String code;
    
    @Id
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
    
    @Id
    @Column(name = "PARENT_CODE", length = 20)
    @PropertyDef(label = "父编码")
    private String parentCode = Constant.DEFAULT_PARENT_CODE;
 
    @Column(name = "NAME_", length = 100)
    @PropertyDef(label = "名称")
    private String name;
 
    @Column(name = "DISABLED_TAG", length = 2)
    @PropertyDef(label = "禁用标志", description = "禁用标志:Y 禁用;N 可用")
    private String disabledTag = Constant.YN_N;
 
    @Column(name = "REMARK_", length = 500)
    @PropertyDef(label = "备注信息", description = "")
    private String remark;
    
    @Transient
    private Collection<DicTrigger> nodes;
    
    public DicTrigger() {
        super();
    }
    
    public DicTrigger(String code, String name) {
        super();
        this.code = code;
        this.name = name;
    }
 
}