opt:任务完成,取消逻辑优化;

This commit is contained in:
2024-10-12 14:14:59 +08:00
parent 350e248090
commit 290517bf5b

View File

@@ -587,22 +587,18 @@ public class InstructionServiceImpl extends CommonServiceImpl<InstructionMapper,
dto.setSend_status("2");
dto.setRemark("失败原因:"+jo.getString("message"));
log.error("创建指令,下发AGV/RGV任务失败任务id为:{},指令号为:{},失败原因{}", task.getTask_id(), dto.getInstruction_code(), jo.getString("message"));
if (task != null) {
task.setRemark("创建指令,下发AGV/RGV任务失败失败原因{}" + jo.getString("message"));
taskService.update(task);
}
task.setRemark("创建指令,下发AGV/RGV任务失败失败原因{}" + jo.getString("message"));
} else {
dto.setSend_status("1");
task.setRemark("");
}
} else {
dto.setSend_status("2");
dto.setRemark("失败原因:AGV/RGV未响应");
log.error("创建指令,下发AGV/RGV任务失败任务id为:{},指令号为:{},失败原因{}", task.getTask_id(), dto.getInstruction_code(), "AGV/RGV未响应");
if (task != null) {
task.setRemark("创建指令,下发AGV/RGV任务失败失败原因: AGV/RGV未响应");
taskService.update(task);
}
task.setRemark("创建指令,下发AGV/RGV任务失败失败原因: AGV/RGV未响应");
}
taskService.update(task);
}
} catch (Exception e) {
dto.setRemark("失败原因:"+e.getMessage());