自动化立体仓库 - WCS系统
#
Junjie
2025-04-12 3be5c88fbc583d17a932ca937d8e293d28b5c974
src/main/java/com/zy/core/action/LiftAction.java
@@ -132,28 +132,17 @@
                    command.setComplete(true);
                }
            } else if (command.getMode() == LiftCommandModeType.PALLET_IN.id) {
//                //托盘入
//                Integer target = liftDispatcher.getLiftLevLogic(liftThread.getDevice().getId().intValue(), command.getTargetLev());
//                if (liftProtocol.getLev() == target) {
//                    command.setComplete(true);
//                }
//
//                //判断提升机托盘是否存在
//                if (!liftProtocol.getHasTray()) {
//                    return false;
//                }
                //判断提升机托盘是否存在
                if (!liftProtocol.getHasTray()) {
                    return false;
                }
                command.setComplete(true);
            } else if (command.getMode() == LiftCommandModeType.PALLET_OUT.id) {
//                //托盘出
//                Integer target = liftDispatcher.getLiftLevLogic(liftThread.getDevice().getId().intValue(), command.getTargetLev());
//                if (liftProtocol.getLev() == target) {
//                    command.setComplete(true);
//                }
//
//                //判断提升机托盘是否存在
//                if (liftProtocol.getHasTray()) {
//                    return false;
//                }
                //判断提升机托盘是否存在
                if (liftProtocol.getHasTray()) {
                    return false;
                }
                command.setComplete(true);
            } else if (command.getMode() == LiftCommandModeType.RESET.id) {
                //复位
                command.setComplete(true);