| | |
| | | if (crnThread == null) { |
| | | return R.error("线程不存在"); |
| | | } |
| | | |
| | | CrnCommand command = crnThread.getPickAndPutCommand(sourceLocNo, targetLocNo, 9999, crnNo); |
| | | CrnCommand command = new CrnCommand(); |
| | | if (sourceLocNo.equals("1-1-1")){ |
| | | command = crnThread.getPickCommand(sourceLocNo, targetLocNo, 9999, crnNo); |
| | | }else if (targetLocNo.equals("1-1-1")){ |
| | | command = crnThread.getPutCommand(sourceLocNo, targetLocNo, 9999, crnNo); |
| | | }else { |
| | | command = crnThread.getPickAndPutCommand(sourceLocNo, targetLocNo, 9999, crnNo); |
| | | } |
| | | MessageQueue.offer(SlaveType.Crn, crnNo, new Task(2, command)); |
| | | return R.ok(); |
| | | } |