|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 任务状态 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer protocolStatus = LiftProtocolStatusType.NONE.id; | 
|---|
|  |  |  | private Integer protocolStatus = LiftProtocolStatusType.IDLE.id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 任务状态枚举 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private LiftProtocolStatusType protocolStatusType = LiftProtocolStatusType.NONE; | 
|---|
|  |  |  | private LiftProtocolStatusType protocolStatusType = LiftProtocolStatusType.IDLE; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 设备状态 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer deviceStatus = LiftDeviceStatusType.NONE.id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 设备状态枚举 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private LiftDeviceStatusType deviceStatusType = LiftDeviceStatusType.NONE; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 任务模式 | 
|---|
|  |  |  | 
|---|
|  |  |  | return this.taskNo == null ? 0 : this.taskNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public synchronized void setSyncTaskNo(Integer taskNo) { | 
|---|
|  |  |  | RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); | 
|---|
|  |  |  | if (null != redisUtil) { | 
|---|
|  |  |  | redisUtil.set(RedisKeyType.LIFT_FLAG.key + this.liftNo, taskNo); | 
|---|
|  |  |  | this.taskNo = taskNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getModel$() { | 
|---|
|  |  |  | if (this.model == null) { | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | 
|---|
|  |  |  | return LiftProtocolStatusType.get(this.protocolStatus).desc; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeviceStatus$() { | 
|---|
|  |  |  | if (this.deviceStatus == null) { | 
|---|
|  |  |  | return ""; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return LiftDeviceStatusType.get(this.deviceStatus).desc; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTaskMode$() { | 
|---|
|  |  |  | if (this.taskMode == null) { | 
|---|
|  |  |  | return ""; | 
|---|