| | |
| | | vo.setShuttleNo(shuttleSlave.getId()); |
| | | BasShuttle basShuttle = basShuttleService.selectById(shuttleSlave.getId()); |
| | | if (!Cools.isEmpty(basShuttle)) { |
| | | vo.setRow(basShuttle.getRow()); |
| | | vo.setBay(basShuttle.getBay()); |
| | | vo.setLev(basShuttle.getLev()); |
| | | vo.setWorkNo(basShuttle.getWrkNo()); |
| | | vo.setPakMk(basShuttle.getPakMk()); |
| | | } |
| | |
| | | } else { |
| | | throw new CoolException("命令下发失败"); |
| | | } |
| | | basShuttle.setRow(vo.getRow()); |
| | | basShuttle.setBay(vo.getBay()); |
| | | basShuttle.setLev(vo.getLev()); |
| | | |
| | | basShuttle.setPakMk(vo.getPakMk()); |
| | | basShuttle.setWrkNo(vo.getWorkNo()); |
| | |
| | | command.setShuttleNo(shuttleSlave.getId().shortValue()); // 四向穿梭车编号 |
| | | command.setTaskMode(shuttleTaskModeType.id.shortValue()); |
| | | command.setSourceLocNo(param.getSourceLocNo()); |
| | | command.setDistLocNo(param.getDistLocNo()); |
| | | command.setLocNo(param.getDistLocNo()); |
| | | command.setTaskNo((short) 9999); |
| | | |
| | | if (MessageQueue.offer(SlaveType.Shuttle, shuttleSlave.getId(), new Task(3, command))) { |