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; }