|
|
|
|
@ -440,7 +440,11 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
|
|
|
|
|
// 8. 发送AGV调度任务(可选)
|
|
|
|
|
if (agvSend) { |
|
|
|
|
return sendAgvSchedulingTask(task, startStationCode, endStationCode); |
|
|
|
|
R<?> reult = sendAgvSchedulingTask(task, startStationCode, endStationCode); |
|
|
|
|
if (!reult.isSuccess()) { |
|
|
|
|
taskService.removeById(task); |
|
|
|
|
} |
|
|
|
|
return reult; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info("【回库任务创建】任务创建成功(未发送AGV)- 任务ID:{}", task.getId()); |
|
|
|
|
@ -621,6 +625,7 @@ public class IOrderBoxServiceImpl implements IOrderBoxService { |
|
|
|
|
if (!stationList.get(0).getStationStatus().equals(STATUS_FREE)) { |
|
|
|
|
return R.fail("起始站点非空闲状态,无法使用"); |
|
|
|
|
} |
|
|
|
|
log.info(String.valueOf(stationList.get(0))); |
|
|
|
|
// 校验站点是否可以发送数据
|
|
|
|
|
if (stationList.get(0).getStatus().equals(RECEIVE_ONLY)) { |
|
|
|
|
return R.fail("起始站点站码无法当开始站点编码"); |
|
|
|
|
|