|
|
@ -84,16 +84,18 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
|
} |
|
|
|
TaskDto taskDto = taskService.findByCodeFromCache(task_code); |
|
|
|
String cancelTaskCheck = paramService.findByCode(AcsConfig.CANCELTASKCHECK).getValue(); |
|
|
|
if (StrUtil.equals(cancelTaskCheck, "1")) { |
|
|
|
taskService.cancelNoSendWms(taskDto.getTask_id()); |
|
|
|
} else if (StrUtil.equals(cancelTaskCheck, "0")) { |
|
|
|
|
|
|
|
// if (StrUtil.equals(cancelTaskCheck, "1")) {
|
|
|
|
// taskService.cancelNoSendWms(taskDto.getTask_id());
|
|
|
|
// } else if (StrUtil.equals(cancelTaskCheck, "0")) {
|
|
|
|
Instruction inst = instructionService.findByTaskcode(task_code); |
|
|
|
if (inst == null) { |
|
|
|
taskService.cancelNoSendWms(taskDto.getTask_id()); |
|
|
|
} else { |
|
|
|
throw new RuntimeException("指令正在执行中,操作失败!"); |
|
|
|
if (inst != null) { |
|
|
|
instructionService.cancelNOSendAgv(inst.getInstruction_id()); |
|
|
|
} |
|
|
|
} |
|
|
|
taskService.cancelNoSendWms(taskDto.getTask_id()); |
|
|
|
// } else {
|
|
|
|
// throw new RuntimeException("指令正在执行中,操作失败!");
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|