jiazx0107@163.com
2023-05-17 620eab6cca2bc9ef9ea6d3067a0a5ba1deadbd1c
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
99
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.constant.WarnStatus;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
 
/**
 * 管理模块-报警管理
 * <p>
 * <p>
 * 主要用于保存系统的报警信息,如粮情高温报警、入侵报警等不同类型的通知类报警
 *
 * @author: andy.jia
 * @description:
 * @version:
 * @data:
 */
@Data
@Entity
@Table(name = "D_M_WARN_INFO")
public class MWarnInfo implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "ID_", length = 40)
    private String id;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "DEPT_ID_", length = 40)
    @PropertyDef(label = "部门编码")
    private String deptId;
 
    @Column(name = "DEPOT_ID_", length = 50)
    @PropertyDef(label = "所属仓库")
    private String depotId;
 
    @Column(name = "SER_ID_", length = 40)
    @PropertyDef(label = "设备编码")
    private String serId;
 
    @Column(name = "NAME_", length = 50)
    @PropertyDef(label = "警告名称")
    private String name;
 
    @Column(name = "BIZ_TYPE_", length = 15)
    @PropertyDef(label = "业务类型")
    private String bizType;
 
    @Column(name = "TYPE_", length = 5)
    @PropertyDef(label = "警告类型")
    private String type;
 
    @PropertyDef(label = "警告级别")
    @Column(name = "LEVEL_", length = 5)
    private String level;
 
    @Column(name = "STATUS_", length = 5)
    @PropertyDef(label = "警报状态")
    private String status = WarnStatus.STATUS_10.getCode();
 
    @Column(name = "INFO_", length = 300)
    @PropertyDef(label = "警告内容")
    private String info;
 
    @Column(name = "TIME_")
    @PropertyDef(label = "警告时间")
    private Date time;
 
    @Column(name = "NOTICE_RESULT_", length = 20)
    @PropertyDef(label = "通知结果")
    private String noticeResult = "不推送";
 
    @Column(name = "NOTICE_USER_", length = 200)
    @PropertyDef(label = "通知人", description = "多人用逗号隔开")
    private String noticeUser;
 
    @Column(name = "COMPLETE_USER_", length = 30)
    @PropertyDef(label = "处理人", description = "中文名称")
    private String completeUser;
 
    @Column(name = "COMPLETE_TIME_")
    @PropertyDef(label = "处理时间")
    private Date completeTime;
 
    @Column(name = "REMARK_", length = 200)
    @PropertyDef(label = "处理说明")
    private String remark;
 
    @Transient
    private List<FileInfo> files;
}