|
@ -926,18 +926,15 @@ public class SSJHandServiceImpl implements SSJHandService { |
|
|
3 强制完成*/ |
|
|
3 强制完成*/ |
|
|
if (type.equals("1")) { |
|
|
if (type.equals("1")) { |
|
|
//调用agv删除任务的接口
|
|
|
//调用agv删除任务的接口
|
|
|
|
|
|
agvService = SpringContextHolder.getBean("agvServiceImpl"); |
|
|
|
|
|
instructionService = SpringContextHolder.getBean(InstructionServiceImpl.class); |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
//agvService.deleteAgvInst(instwo.getString("instruction_code"));
|
|
|
agvService.deleteAgvInst(instwo.getString("instruction_code")); |
|
|
if (StrUtil.isEmpty(instdto.getAgv_jobno())) { |
|
|
instructionService.cancel(inst_uuid); |
|
|
instructionService.cancelNOSendAgv(inst_uuid); |
|
|
|
|
|
} else { |
|
|
|
|
|
agvService.deleteAgvInst(instdto.getInstruction_code()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
jo.put("code", "2"); |
|
|
jo.put("code", "2"); |
|
|
jo.put("desc", "下发agv失败"); |
|
|
jo.put("desc", e.getMessage()); |
|
|
jo.put("result", ""); |
|
|
jo.put("result", ""); |
|
|
return jo; |
|
|
return jo; |
|
|
} |
|
|
} |
|
|