fyxc
2025-05-22 09fcc4ec56a1ce6c0fcb308348d8dd5e2c08d336
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);