删除指令需要下发ndc,下发结果异步处理
This commit is contained in:
@@ -90,7 +90,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService {
|
|||||||
// } else if (StrUtil.equals(cancelTaskCheck, "0")) {
|
// } else if (StrUtil.equals(cancelTaskCheck, "0")) {
|
||||||
Instruction inst = instructionService.findByTaskcode(task_code);
|
Instruction inst = instructionService.findByTaskcode(task_code);
|
||||||
if (inst != null) {
|
if (inst != null) {
|
||||||
instructionService.cancelNOSendAgv(inst.getInstruction_id());
|
instructionService.cancel(inst.getInstruction_id());
|
||||||
}
|
}
|
||||||
taskService.cancelNoSendWms(taskDto.getTask_id());
|
taskService.cancelNoSendWms(taskDto.getTask_id());
|
||||||
// } else {
|
// } else {
|
||||||
|
|||||||
@@ -879,11 +879,8 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
|
|||||||
|
|
||||||
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "2")) {
|
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "2")) {
|
||||||
// NDC agv指令不当场取消指令,需要等agv上报
|
// NDC agv指令不当场取消指令,需要等agv上报
|
||||||
if (!StrUtil.isEmpty(entity.getAgv_jobno())) {
|
|
||||||
ndcAgvService.deleteAgvInstToNDC(entity);
|
ndcAgvService.deleteAgvInstToNDC(entity);
|
||||||
} else {
|
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
|
||||||
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "3")
|
} else if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "3")
|
||||||
&& !StrUtil.equals(entity.getSend_status(), "2")) {
|
&& !StrUtil.equals(entity.getSend_status(), "2")) {
|
||||||
XianGongAgvService xianGongAgvService = SpringContextHolder.getBean(XianGongAgvService.class);
|
XianGongAgvService xianGongAgvService = SpringContextHolder.getBean(XianGongAgvService.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user