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;
|
}
|
|
}
|