opt:任务完成,取消逻辑优化;
This commit is contained in:
@@ -1036,15 +1036,13 @@ public class InstructionServiceImpl extends CommonServiceImpl<InstructionMapper,
|
|||||||
StrUtil.equals(entity.getInstruction_type(), "3")) {
|
StrUtil.equals(entity.getInstruction_type(), "3")) {
|
||||||
ZheDaAgvService zheDaAgvService = SpringContextHolder.getBean(ZheDaAgvService.class);
|
ZheDaAgvService zheDaAgvService = SpringContextHolder.getBean(ZheDaAgvService.class);
|
||||||
HttpResponse result = zheDaAgvService.deleteZDAgvInst(entity.getInstruction_code());
|
HttpResponse result = zheDaAgvService.deleteZDAgvInst(entity.getInstruction_code());
|
||||||
if (result.getStatus() == 200) {
|
if (result.getStatus() != 200) {
|
||||||
flag = true;
|
flag = false;
|
||||||
} else {
|
|
||||||
log.error("下发rgv取消指令动作失败,下发AGV/RGV任务失败!任务id为:{},指令号为:{},失败原因{}", task.getTask_id(), entity.getInstruction_code(), "AGV/RGV未响应!");
|
log.error("下发rgv取消指令动作失败,下发AGV/RGV任务失败!任务id为:{},指令号为:{},失败原因{}", task.getTask_id(), entity.getInstruction_code(), "AGV/RGV未响应!");
|
||||||
if (task != null) {
|
if (task != null) {
|
||||||
task.setRemark("下发rgv取消指令动作失败!失败原因: 连接AGV/RGV未响应!");
|
task.setRemark("下发rgv取消指令动作失败!失败原因: 连接AGV/RGV未响应!");
|
||||||
taskService.update(task);
|
taskService.update(task);
|
||||||
}
|
}
|
||||||
flag = false;
|
|
||||||
}
|
}
|
||||||
if (flag) {
|
if (flag) {
|
||||||
String currentUsername = SecurityUtils.getCurrentUsername();
|
String currentUsername = SecurityUtils.getCurrentUsername();
|
||||||
|
|||||||
Reference in New Issue
Block a user