#1
dubin
3 天以前 f9ccc882fc1b1296f0c843a888a5962b45df236d
src/main/java/com/zy/asrs/controller/CrnController.java
@@ -134,8 +134,14 @@
        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();
    }