自动化立体仓库 - WCS系统
#
Junjie
2025-04-10 1d624dfdb040825ffecba6c792c480be662b2dbc
src/main/java/com/zy/core/model/protocol/ForkLiftProtocol.java
@@ -25,7 +25,7 @@
    private Integer liftNo;
    /**
     * 模式0单机 1联机
     * 模式0手动 1单机 2联机
     */
    private Integer model;
@@ -52,7 +52,7 @@
    /**
     * 任务模式
     */
    private Integer mode = ForkLiftTaskModeType.NONE.id;
    private Integer taskMode = ForkLiftTaskModeType.NONE.id;
    /**
     * 任务模式枚举
@@ -123,17 +123,17 @@
    /**
     * 设置任务模式
     */
    public void setMode(Integer mode) {
        this.mode = mode;
        this.modeType = ForkLiftTaskModeType.get(mode);
    public void setTaskMode(Integer taskMode) {
        this.taskMode = taskMode;
        this.modeType = ForkLiftTaskModeType.get(taskMode);
    }
    /**
     * 设置任务模式
     */
    public void setMode(ForkLiftTaskModeType mode) {
        this.mode = mode.id;
        this.modeType = mode;
    public void setMode(ForkLiftTaskModeType taskMode) {
        this.taskMode = taskMode.id;
        this.modeType = taskMode;
    }
    /**
@@ -186,6 +186,46 @@
        }
    }
    public String getModel$() {
        if (this.model == null) {
            return "";
        }
        String name = "";
        if (this.model == 0) {
            name = "手动";
        } else if (this.model == 1) {
            name = "单机";
        }else if (this.model == 2) {
            name = "联机";
        }
        return name;
    }
    public String getProtocolStatus$() {
        if (this.protocolStatus == null) {
            return "";
        }
        return ForkLiftProtocolStatusType.get(this.protocolStatus).desc;
    }
    public String getTaskMode$() {
        if (this.taskMode == null) {
            return "";
        }
        return ForkLiftTaskModeType.get(this.taskMode).desc;
    }
    public String getIOMode$() {
        if (this.iOMode == null) {
            return "";
        }
        return ForkLiftIoModeType.get(this.iOMode).desc;
    }
    @Override
    public ForkLiftProtocol clone() {
        try {