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; /** * 管理模块-报警管理 *

*

* 主要用于保存系统的报警信息,如粮情高温报警、入侵报警等不同类型的通知类报警 * * @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 files; }