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 listTask; /** * 控制柜执行的request */ @Transient private DeviceAutoControlRequest autoControlRequest; /** * 系统执行的request */ @Transient private DeviceControlRequest deviceControlRequest; }