package com.zy.asrs.domain.vo;
|
|
import com.zy.core.enums.LiftNotReadyType;
|
import com.zy.core.enums.LiftProtocolStatusType;
|
import lombok.Data;
|
|
@Data
|
public class LiftStateTableVo {
|
|
// 提升机号
|
private Integer liftNo;
|
|
/**
|
* 任务号
|
*/
|
private Short taskNo = 0;
|
|
/**
|
* 四向穿梭车号
|
*/
|
private Short shuttleNo = 0;
|
|
/**
|
* 当前提升机状态(内部自我维护)
|
*/
|
private Integer protocolStatus;
|
|
/**
|
* 模式
|
*/
|
private Boolean model;
|
|
/**
|
* 忙闲
|
*/
|
private Boolean busy;
|
|
/**
|
* 有托盘
|
*/
|
private Boolean hasTray;
|
|
/**
|
* 有小车
|
*/
|
private Boolean hasCar;
|
|
/**
|
* 设备故障
|
*/
|
private Boolean deviceError;
|
|
/**
|
* 前超限
|
*/
|
private Boolean frontOverrun;
|
|
/**
|
* 后超限
|
*/
|
private Boolean backOverrun;
|
|
/**
|
* 左超限
|
*/
|
private Boolean leftOverrun;
|
|
/**
|
* 右超限
|
*/
|
private Boolean rightOverrun;
|
|
/**
|
* 超高
|
*/
|
private Boolean overHeight;
|
|
/**
|
* 超重
|
*/
|
private Boolean overWeight;
|
|
public String getModel$() {
|
if (this.model == null) {
|
return "离线";
|
}
|
return this.model ? "自动" : "手动";
|
}
|
|
public String getBusy$() {
|
if (this.busy == null) {
|
return "-";
|
}
|
return this.busy ? "忙碌" : "空闲";
|
}
|
|
public String getHasTray$() {
|
if (this.hasTray == null) {
|
return "-";
|
}
|
return this.hasTray ? "Y" : "N";
|
}
|
|
public String getHasCar$() {
|
if (this.hasCar == null) {
|
return "N";
|
}
|
return this.hasCar ? "Y" : "N";
|
}
|
|
public String getDeviceError$() {
|
if (this.deviceError == null) {
|
return "N";
|
}
|
return this.deviceError ? "Y" : "N";
|
}
|
|
public String getFrontOverrun$() {
|
if (this.frontOverrun == null) {
|
return "N";
|
}
|
return this.frontOverrun ? "Y" : "N";
|
}
|
|
public String getBackOverrun$() {
|
if (this.backOverrun == null) {
|
return "N";
|
}
|
return this.backOverrun ? "Y" : "N";
|
}
|
|
public String getLeftOverrun$() {
|
if (this.leftOverrun == null) {
|
return "N";
|
}
|
return this.leftOverrun ? "Y" : "N";
|
}
|
|
public String getRightOverrun$() {
|
if (this.rightOverrun == null) {
|
return "N";
|
}
|
return this.rightOverrun ? "Y" : "N";
|
}
|
|
public String getOverHeight$() {
|
if (this.overHeight == null) {
|
return "N";
|
}
|
return this.overHeight ? "Y" : "N";
|
}
|
|
public String getOverWeight$() {
|
if (this.overWeight == null) {
|
return "N";
|
}
|
return this.overWeight ? "Y" : "N";
|
}
|
|
public String getProtocolStatus$() {
|
if (this.protocolStatus == null) {
|
return LiftProtocolStatusType.OFFLINE.desc;
|
}
|
return LiftProtocolStatusType.get(this.protocolStatus).desc;
|
}
|
|
}
|