YYC
2023-10-20 d927426741a4fa32a7f250f645d916d778161e37
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
90
91
92
93
94
95
96
97
98
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.constant.Constant;
import com.ld.igds.constant.NoticeType;
import lombok.Data;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
 
/**
 * 警告配置
 *
 * @author: chen
 */
@Data
@Entity
@Table(name = "D_M_WARN_CONF")
public class MWarnConf implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "DEPT_ID_", length = 30)
    @PropertyDef(label = "分库编码")
    private String deptId;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "VAL_", length = 2)
    @PropertyDef(label = "是否启用")
    private String val = Constant.YN_Y;
 
    @PropertyDef(label = "通知方式,默认微信", description = "字典表,短信、语音、站内信、短信+语音、微信公众号等")
    @Column(name = "NOTICE_TYPE_", length = 30)
    private String noticeType = NoticeType.WECHAT.getCode();
 
    @PropertyDef(label = "通知时段-起始", description = "小时 24小时制")
    @Column(name = "START_")
    private Integer start = 0;
 
    @PropertyDef(label = "通知时段-截止", description = "小时 24小时制")
    @Column(name = "END_")
    private Integer end = 24;
 
    @PropertyDef(label = "系统警告是否开启")
    @Column(name = "SYSTEM_TAG_", length = 10)
    private String systemTag = Constant.YN_Y;
 
    @PropertyDef(label = "粮情警告是否开启")
    @Column(name = "GRAIN_TAG_", length = 10)
    private String grainTag = Constant.YN_N;
 
    @PropertyDef(label = "出入库业务警告是否开启")
    @Column(name = "INOUT_TAG_", length = 10)
    private String inoutTag = Constant.YN_N;
 
    @PropertyDef(label = "安防警告是否开启")
    @Column(name = "SECURITY_TAG_", length = 10)
    private String securityTag = Constant.YN_N;
 
    @PropertyDef(label = "数量检测警告是否开启")
    @Column(name = "QUANTITY_TAG_", length = 10)
    private String quantityTag = Constant.YN_N;
 
    @PropertyDef(label = "默认通知保管员")
    @Column(name = "KEEPER_TAG_", length = 2)
    private String keeperTag = Constant.YN_Y;
 
    @Column(name = "USER1_", length = 20)
    @PropertyDef(label = "通知人1")
    private String user1;
 
    @Column(name = "USER2_", length = 20)
    @PropertyDef(label = "通知人2")
    private String user2;
 
    @Column(name = "USER3_", length = 20)
    @PropertyDef(label = "通知人3")
    private String user3;
 
    @Column(name = "USER4_", length = 20)
    @PropertyDef(label = "通知人4")
    private String user4;
 
    @Column(name = "USER5_", length = 20)
    @PropertyDef(label = "通知人5")
    private String user5;
 
    @Column(name = "REMARK_", length = 200)
    @PropertyDef(label = "备注")
    private String remark;
}