CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
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
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.ld.igds.io.request.DeviceAutoControlRequest;
import com.ld.igds.io.request.DeviceControlRequest;
import com.ld.igds.n2.N2Util;
import lombok.Data;
 
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
 
/**
 * 气调的任务,包括完成的记录
 *
 * @author Andy
 */
@Data
@Entity
@Table(name = "D_N2_INTEL_TASK")
public class N2IntelTask implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "ID")
    private String id;
 
    @Column(name = "PARENT_ID_", length = 40)
    @PropertyDef(label = "父编码")
    private String parentId;
 
    @Column(name = "ORDER_ID_", length = 6)
    @PropertyDef(label = "命令ID")
    private String orderId;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "DEPT_ID_", length = 40)
    @PropertyDef(label = "所属分库")
    private String deptId;
 
    @Column(name = "AUTO_NAME_", length = 50)
    @PropertyDef(label = "执行名称")
    private String autoName;
 
    @Column(name = "AUTO_ID_", length = 40)
    @PropertyDef(label = "自动模式")
    private String autoId;
 
    @Column(name = "DEPOT_ID_", length = 40)
    @PropertyDef(label = "生效仓库")
    private String depotId;
 
    @Column(name = "MODE_TAG_", length = 10)
    @PropertyDef(label = "气调模式")
    private String modeTag;
 
    @Column(name = "EXE_MODE_", length = 20)
    @PropertyDef(label = "执行模式", description = "01=系统执行,02=控制柜执行")
    private String exeMode = N2Util.EXE_MODE_01;
 
    @Column(name = "START_")
    @PropertyDef(label = "开始时间")
    private Date start;
 
    @Column(name = "END_")
    @PropertyDef(label = "结束时间")
    private Date end;
 
    @Column(name = "EXE_NUM_")
    @PropertyDef(label = "执行次数")
    private int exeNum = 1;
 
    @Column(name = "STATUS_", length = 10)
    @PropertyDef(label = "状态")
    private String status = N2Util.TASK_STATUS_02;
 
    @Column(name = "RESULT_", length = 50)
    @PropertyDef(label = "运行结果")
    private String result;
 
    @Column(name = "UPDATE_USER_", length = 30)
    @PropertyDef(label = "执行人")
    private String updateUser;
 
    @Transient
    private List<N2IntelTask> listTask;
 
    /**
     * 控制柜执行的request
     */
    @Transient
    private DeviceAutoControlRequest autoControlRequest;
 
 
    /**
     * 系统执行的request
     */
    @Transient
    private DeviceControlRequest deviceControlRequest;
 
}