package com.ld.igds.models;
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import lombok.Data;
|
|
import javax.persistence.*;
|
import java.io.Serializable;
|
import java.util.Collection;
|
import java.util.HashMap;
|
import java.util.Map;
|
|
/**
|
* 化验项主表
|
*
|
* @author:
|
*/
|
@Data
|
@Entity
|
@Table(name = "D_DIC_CHECK_ITEM")
|
public class DicCheckItem implements Serializable {
|
|
/**
|
* 用于存放粮类型code -remark
|
*/
|
public static Map<String, String> mapCheckType = new HashMap<>();
|
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@Column(name = "CODE_", length = 10)
|
@PropertyDef(label = "化验项编码")
|
private String code;
|
|
@Id
|
@Column(name = "COMPANY_ID_", length = 10)
|
@PropertyDef(label = "组织编码")
|
private String companyId;
|
|
@Column(name = "NAME_", length = 20)
|
@PropertyDef(label = "化验项名称")
|
private String name;
|
|
@Column(name = "TYPE_", length = 20)
|
@PropertyDef(label = "所属类型")
|
private String type;
|
|
@Column(name = "UNIT_", length = 20)
|
@PropertyDef(label = "单位")
|
private String unit;
|
|
@Column(name = "REMARK_", length = 200)
|
@PropertyDef(label = "备注")
|
private String remark;
|
|
@Transient
|
private Collection<DicCheckItem> nodes;
|
|
public DicCheckItem() {
|
super();
|
}
|
|
public DicCheckItem(String code, String name) {
|
super();
|
this.code = code;
|
this.name = name;
|
}
|
}
|