| | |
| | | |
| | | command = liftThread.getPalletInOutCommand(assignCommand.getDeviceTaskNo(), Integer.parseInt(motion.getOrigin()), Integer.parseInt(motion.getTarget()), motion.getOriDrt(), motion.getTarDrt(), LiftCommandModeType.PALLET_INOUT); |
| | | list.addAll(command); |
| | | |
| | | motion.setTemp(String.valueOf(assignCommand.getDeviceTaskNo())); |
| | | motion.setUpdateTime(new Date()); |
| | | motionService.updateById(motion); |
| | | |
| | | return liftAction.assignWork(liftThread.getDevice(), assignCommand); |
| | | case LIFT_WITH_SHUTTLE: |
| | | //判断提升机是否自动 |
| | |
| | | return false; |
| | | } |
| | | if (!motion.getTaskNo().equals(staProtocol.getWorkNo().intValue())) { |
| | | if (motion.getTemp() == null) { |
| | | return false; |
| | | } |
| | | |
| | | if (Integer.parseInt(motion.getTemp()) != staProtocol.getWorkNo().intValue()) { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | if (motion.getReleaseLift() == 1) {//释放提升机 |
| | | task.setLiftNo(0); |
| | | task.setUpdateTime(new Date()); |