opt:任务完成,取消逻辑优化;
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user