jiazx0107@163.com
2023-05-30 2495e9ab75e6c45af1d6e14414711d8cc79fe2ca
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
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;
    }
}