package com.ld.igds.models; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Transient; import lombok.Data; import com.bstek.bdf2.job.model.JobDefinition; import com.bstek.dorado.annotation.PropertyDef; import com.ld.igds.constant.Constant; /** * 定时检测分为: * 1,粮情定时,虫害定时,气体定时 此三种检测不需要配置设备信息,只需要添加需要定时操作的仓库即可。 * 2,定时通风,由于每个仓库的设备配置均不一样,此定时需要根据仓库选择设备来操作。 * 3,智能方案,智能方案 * * @author Andy * */ @Entity @Table(name = "D_TIMING") @Data public class Timing implements Serializable { /** * * */ private static final long serialVersionUID = 1L; @Id @Column(name = "ID_", length = 40) @PropertyDef(label = "ID") private String id; @Column(name = "NAME_", length = 50) @PropertyDef(label = "方案名称", description = "") private String name; @Column(name = "DEPOT_ID_", length = 50) @PropertyDef(label = "仓库名称", description = "仓库编号") private String depotId; @Column(name = "COMPANY_ID_", length = 10) @PropertyDef(label = "组织编码", description = "") private String companyId; @Column(name = "TYPE_", length = 10) @PropertyDef(label = "检测类型", description = "温度检测=temp,虫害检测=pest,气体检测=gas") private String type; @Column(name = "DISABLED_TAG", length = 2) @PropertyDef(label = "禁用标志", description = "禁用标志:Y 禁用;N 可用") private String disabledTag = Constant.YN_N; @Column(name = "WEEK_") @PropertyDef(label = "星期日期", description = "MON,TUE,WED,THU,FRI,SAT,SUN") private String week; @Column(name = "HOUR_") @PropertyDef(label = "执行时间", description = "") private int hour; @Column(name = "MINUTE_") @PropertyDef(label = "执行分钟", description = "") private int minute; @Column(name = "APPOINT_TIME_") @PropertyDef(label = "指定执行时间") private Date appointTime; @Column(name = "TIM_TYPE_", length = 10) @PropertyDef(label = "定时类型", description = "day,week,hour") private String timType; @Column(name = "UPDATE_TIME_") @PropertyDef(label = "更新时间", description = "") private Date updateTime; @Column(name = "UPDATE_USER_", length = 50) @PropertyDef(label = "更新人", description = "") private String updateUser; @Column(name = "REMARKS_", length = 500) @PropertyDef(label = "备注信息", description = "") private String remarks; @Column(name = "CRON_", length = 50) @PropertyDef(label = "解析信息", description = "") private String cron; @Transient @PropertyDef(label = "job信息", description = "虚拟属性") private JobDefinition job; @Transient @PropertyDef(label = "定时设备信息", description = "虚拟属性") private List devices; @Transient @PropertyDef(label = "操作仓库", description = "虚拟属性") private List items; }