From 6f319b1328d401eb2382dfd604e45270fe91b661 Mon Sep 17 00:00:00 2001 From: "USER-20220102CG\\noblelift" <546428999@qq.com> Date: Mon, 31 Jul 2023 16:23:08 +0800 Subject: [PATCH] rev log --- .../nl/modules/quartz/task/QueryZDAgvTaskStatus.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/QueryZDAgvTaskStatus.java b/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/QueryZDAgvTaskStatus.java index b5d314e..6da4679 100644 --- a/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/QueryZDAgvTaskStatus.java +++ b/acs/nladmin-system/src/main/java/org/nl/modules/quartz/task/QueryZDAgvTaskStatus.java @@ -71,8 +71,10 @@ public class QueryZDAgvTaskStatus { //执行中 if ("BEING_PROCESSED".equals(state) || "ACTIVE".equals(state)) { if (inst != null && StrUtil.equals("0",inst.getInstruction_status())) { + log.info("更新指令状态执行中---"); inst.setInstruction_status("1"); instructionService.update(inst); + log.info("更新指令状态执行中成功---"); // 判断是否为WMS下发的任务,如果是反馈任务状态给WMS TaskDto entity = taskService.findByCode(inst.getTask_code()); String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); @@ -118,8 +120,13 @@ public class QueryZDAgvTaskStatus { // } } } - - + } else { + if(ObjectUtil.isEmpty(inst)){ + log.info("未更新指令状态执行中,inst为空,指令号:"+ inst_code); + } + if(!StrUtil.equals("0",inst.getInstruction_status())){ + log.info("未更新指令状态执行中,inst状态:"+ inst.getInstruction_status()); + } } } else if ("FINISHED".equals(state)) { if (inst != null) {