自动化立体仓库 - WCS系统
#
luxiaotao1123
2022-09-22 08132d449611a875007e3fface38d0517e1da87c
src/main/java/com/zy/core/model/protocol/SteProtocol.java
@@ -253,7 +253,9 @@
        boolean res = this.statusType.equals(SteStatusType.IDLE)
                && this.pakMk.equals("N")
                && !isAlarm()
                && this.chargeStatus == 0;
                && this.chargeStatus == 0
                && isEnable()
                ;
        if (!res) {
            return res;
        } else {
@@ -273,4 +275,23 @@
        return this.alarm > 1;
    }
    public Boolean isEnable() {
        if (Cools.isEmpty(row)) {
            if (row == 0) {
                return false;
            }
        }
        if (Cools.isEmpty(bay)) {
            if (bay == 0) {
                return false;
            }
        }
        if (Cools.isEmpty(lev)) {
            if (lev == 0) {
                return false;
            }
        }
        return true;
    }
}