|
|
@ -88,11 +88,11 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
|
// 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) { |
|
|
|
instructionService.cancel(inst.getInstruction_id()); |
|
|
|
} |
|
|
|
taskService.cancelNoSendWms(taskDto.getTask_id()); |
|
|
|
Instruction inst = instructionService.findByTaskcode(task_code); |
|
|
|
if (inst != null) { |
|
|
|
instructionService.cancel(inst.getInstruction_id()); |
|
|
|
} |
|
|
|
taskService.cancelNoSendWms(taskDto.getTask_id()); |
|
|
|
// } else {
|
|
|
|
// throw new RuntimeException("指令正在执行中,操作失败!");
|
|
|
|
// }
|
|
|
@ -644,7 +644,6 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
|
(byte) 0X00, (byte) 0X01 |
|
|
|
}; |
|
|
|
OneNDCSocketConnectionAutoRun.write(bytes1); |
|
|
|
System.out.println("下发agv指令数据:" + NDCAgvServiceImpl.Bytes2HexString(bytes1)); |
|
|
|
break; |
|
|
|
case "2": |
|
|
|
// 恢复急停AGV车辆
|
|
|
@ -661,7 +660,6 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
|
(byte) 0X00, (byte) 0X00 |
|
|
|
}; |
|
|
|
OneNDCSocketConnectionAutoRun.write(bytes2); |
|
|
|
System.out.println("下发agv指令数据:" + NDCAgvServiceImpl.Bytes2HexString(bytes2)); |
|
|
|
break; |
|
|
|
case "3": |
|
|
|
ParamDto sysParam3 = paramService.findByCode(AcsConfig.SEND_INST); |
|
|
@ -681,6 +679,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService { |
|
|
|
|
|
|
|
resultJSON.put("status", HttpStatus.OK.value()); |
|
|
|
resultJSON.put("message", "操作成功"); |
|
|
|
log.info("deviceOption-----输出参数{}", resultJSON); |
|
|
|
return resultJSON; |
|
|
|
} finally { |
|
|
|
MDC.remove(log_file_type); |
|
|
|