|  |  |  | 
|---|
|  |  |  | import com.zy.asrs.entity.BasShuttleErr; | 
|---|
|  |  |  | import com.zy.asrs.service.BasShuttleErrService; | 
|---|
|  |  |  | import com.zy.core.enums.ShuttleErrorCodeType; | 
|---|
|  |  |  | import com.zy.core.enums.ShuttleProtocolStatusType; | 
|---|
|  |  |  | import com.zy.core.enums.ShuttleStatusType; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | private Integer shuttleNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 状态 | 
|---|
|  |  |  | private String status = "-"; | 
|---|
|  |  |  | private Integer status; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //四向穿梭车忙装填 | 
|---|
|  |  |  | private String busyStatus = "-"; | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 当前的电压值 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Short currentVoltage; | 
|---|
|  |  |  | private Integer currentVoltage; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 当前的模拟量值 | 
|---|
|  |  |  | 
|---|
|  |  |  | 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"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|