#
Junjie
2023-09-19 aac4bc5bdfd808fa7d33ee04924741a4c03944fc
src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java
@@ -3,18 +3,17 @@
import com.alibaba.fastjson.JSON;
import com.core.common.SpringUtils;
import com.zy.asrs.entity.BasShuttle;
import com.zy.asrs.entity.BasShuttleErr;
import com.zy.asrs.service.BasShuttleErrService;
import com.zy.asrs.service.BasShuttleService;
import com.zy.asrs.utils.Utils;
import com.zy.common.utils.NavigatePositionConvert;
import com.zy.core.News;
import com.zy.core.enums.ShuttleErrorCodeType;
import com.zy.core.enums.ShuttleProtocolStatusType;
import com.zy.core.enums.ShuttleStatusType;
import com.zy.core.model.command.ShuttleAssignCommand;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.util.List;
/**
 * 牛眼四向穿梭车
@@ -186,7 +185,7 @@
    /**
     * 故障码
     */
    private List<Integer> errCode;
    private Integer errCode;
    /**
     * mileage总里程数(米),liftNumber顶升总数dropNumber下降总数reversingX换X总数reversingY换Y总数
@@ -235,7 +234,14 @@
        if (this.getFree() == null) {
            return "";
        }
        return this.getFree() == 1 ? "空闲" : "运行中";
        return this.getFree() == 0 ? "运行中" : "空闲";
    }
    public String getWorkingMode$() {
        if (this.getWorkingMode() == null) {
            return "";
        }
        return this.getWorkingMode() == 0 ? "手动" : "自动";
    }
    public String getLoadState$() {
@@ -264,7 +270,7 @@
            return "";
        }
        switch (this.getRunDir()) {
        switch (this.getLiftPosition()) {
            case 0:
                return "未知";
            case 1:
@@ -393,6 +399,13 @@
        return NavigatePositionConvert.nyXyzToLocNo(this.getPoint().getX(), this.getPoint().getY(), this.getPoint().getZ());
    }
    public String getPoint$$() {
        if (this.getPoint() == null) {
            return "";
        }
        return JSON.toJSONString(this.getPoint());
    }
    public String getCoord$() {
        if (this.getCoord() == null) {
            return "";
@@ -400,6 +413,18 @@
        return JSON.toJSONString(this.getCoord());
    }
    public String getErrCode$() {
        if (this.getErrCode() == null) {
            return "";
        }
        BasShuttleErrService basShuttleErrService = SpringUtils.getBean(BasShuttleErrService.class);
        BasShuttleErr basShuttleErr = basShuttleErrService.selectById(this.getErrCode());
        if (basShuttleErr == null) {
            return this.getErrCode().toString();
        }
        return basShuttleErr.getErrName();
    }
    public void setPoint(NyShuttlePointClass point) {
        String locNo = NavigatePositionConvert.nyXyzToLocNo(point.getX(), point.getY(), point.getZ());
        this.point = point;