| package com.zy.asrs.domain.vo; | 
|   | 
| import com.zy.core.enums.ShuttleProtocolStatusType; | 
| import com.zy.core.enums.ShuttleStatusType; | 
| import lombok.Data; | 
|   | 
| @Data | 
| public class ShuttleStateTableVo { | 
|   | 
|     // 四向穿梭车号 | 
|     private Integer shuttleNo; | 
|   | 
|     // 状态 | 
|     private Integer status; | 
|   | 
|     //四向穿梭车忙装填 | 
|     private String busyStatus = "-"; | 
|   | 
|     /** | 
|      * 小车忙状态位枚举 | 
|      */ | 
|     private ShuttleStatusType busyStatusType; | 
|   | 
|     /** | 
|      * 任务号 | 
|      */ | 
|     public Integer taskNo; | 
|   | 
|     /** | 
|      * 当前二维码 | 
|      * 0为空 | 
|      */ | 
|     private Short currentCode; | 
|   | 
|     /** | 
|      * 当前库位号 | 
|      */ | 
|     private String locNo; | 
|   | 
|     /** | 
|      * 库位号-X | 
|      */ | 
|     private int locNoX; | 
|   | 
|     /** | 
|      * 库位号-Y | 
|      */ | 
|     private int locNoY; | 
|   | 
|     /** | 
|      * 当前库位层高 | 
|      */ | 
|     private int locNoLev; | 
|   | 
|     /** | 
|      * 电池电量 | 
|      */ | 
|     public String batteryPower = "-"; | 
|   | 
|     /** | 
|      * 电池温度 | 
|      */ | 
|     public String batteryTemp = "-"; | 
|   | 
|     /** | 
|      * 错误编号 | 
|      */ | 
|     private String errorCode; | 
|   | 
|     /** | 
|      * Plc输出状态IO | 
|      */ | 
|     private Short plcOutputStatusIO; | 
|   | 
|     /** | 
|      * Plc输出状态IO-顶升位 | 
|      */ | 
|     private Boolean plcOutputLift; | 
|   | 
|     /** | 
|      * Plc输出状态IO-换向位 | 
|      */ | 
|     private Boolean plcOutputTransfer; | 
|   | 
|     /** | 
|      * Plc输出状态IO-抱闸位 | 
|      */ | 
|     private Boolean plcOutputBrake; | 
|   | 
|     /** | 
|      * Plc输出状态IO-充电位 | 
|      */ | 
|     private Boolean plcOutputCharge; | 
|   | 
|     /** | 
|      * 错误信息码 | 
|      */ | 
|     private String statusErrorCode; | 
|   | 
|     /** | 
|      * PLC输入状态 | 
|      */ | 
|     private Short plcInputStatus; | 
|   | 
|     /** | 
|      * 当前或者之前读到的二维码值 | 
|      */ | 
|     private Short currentOrBeforeCode; | 
|   | 
|     /** | 
|      * 读到的二维码X方向偏移量 | 
|      */ | 
|     private Short codeOffsetX; | 
|   | 
|     /** | 
|      * 读到的二维码Y方向偏移量 | 
|      */ | 
|     private Short codeOffsetY; | 
|   | 
|     /** | 
|      * 当前的电压值 | 
|      */ | 
|     private Integer currentVoltage; | 
|   | 
|     /** | 
|      * 当前的模拟量值 | 
|      */ | 
|     private Short currentAnalogValue; | 
|   | 
|     /** | 
|      * 当前的升降伺服速度 | 
|      */ | 
|     private Short currentLiftServoSpeed; | 
|   | 
|     /** | 
|      * 当前的行走伺服速度 | 
|      */ | 
|     private Short currentMoveServoSpeed; | 
|   | 
|     /** | 
|      * 当前的升降伺服负载率 | 
|      */ | 
|     private Short currentLiftServoLoad; | 
|   | 
|     /** | 
|      * 当前的行走伺服负载率 | 
|      */ | 
|     private Short currentMoveServoLoad; | 
|   | 
|     /** | 
|      * 充电状态 | 
|      */ | 
|     public String chargeStatus = "-"; | 
|   | 
|     /** | 
|      * 当前位置 | 
|      */ | 
|     public String loca = "-"; | 
|   | 
|     public String getPlcOutputLift$() { | 
|         if (this.plcOutputLift == null) { | 
|             return null; | 
|         } | 
|         return this.plcOutputLift ? "Y" : "N"; | 
|     } | 
|   | 
|     public String getPlcOutputTransfer$() { | 
|         if (this.plcOutputTransfer == null) { | 
|             return null; | 
|         } | 
|         return this.plcOutputTransfer ? "Y" : "N"; | 
|     } | 
|   | 
|     public String getPlcOutputBrake$() { | 
|         if (this.plcOutputBrake == null) { | 
|             return null; | 
|         } | 
|         return this.plcOutputBrake ? "Y" : "N"; | 
|     } | 
|   | 
|     public String getPlcOutputCharge$() { | 
|         if (this.plcOutputCharge == null) { | 
|             return null; | 
|         } | 
|         return this.plcOutputCharge ? "Y" : "N"; | 
|     } | 
|   | 
|     public String getStatus$() { | 
|         if (this.status == null) { | 
|             return ShuttleProtocolStatusType.OFFLINE.desc; | 
|         } | 
|         return ShuttleProtocolStatusType.get(this.status).desc; | 
|     } | 
|   | 
|     public String getCurrentVoltage$() { | 
|         if (this.currentVoltage == null) { | 
|             return ""; | 
|         } | 
|         return (this.currentVoltage / 1000.0) + "V"; | 
|     } | 
|   | 
| } |