CZT
2023-10-11 564295458c720206db9b5194b90481b711f4b010
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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<TimingDevice> devices;
    
    @Transient
    @PropertyDef(label = "操作仓库", description = "虚拟属性")
    private List<TimingDepot> items;
    
}