From f4d2e8ad519d96982248a4b1a14adaeee526ae20 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo Date: Wed, 10 Apr 2024 12:08:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(all):=20=E4=BF=AE=E6=94=B9=E5=BF=97?= =?UTF-8?q?=E9=82=A6=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../factorydata/zbom/mq/ZbomNodeDataPushListener.java | 7 ++++--- .../report/controller/ReportBillLoadingController.java | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomNodeDataPushListener.java b/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomNodeDataPushListener.java index 1deed9c08..01d36c6b0 100644 --- a/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomNodeDataPushListener.java +++ b/blade-service/logpm-factory-data/logpm-factory-data-zbom/src/main/java/com/logpm/factorydata/zbom/mq/ZbomNodeDataPushListener.java @@ -213,6 +213,9 @@ public class ZbomNodeDataPushListener { paramDTO.setNode(zbNode.getCode()); ZbFactoryNodeOrderEntity nodeOrderEntity = nodeOrderMap.get(departCode + platformOrderCode); ZbomNodeEnums currentNode = zbNode; + if (ObjectUtil.isEmpty(nodeOrderEntity)) { + nodeOrderEntity = new ZbFactoryNodeOrderEntity(); + } // 如果是签收节点,需要判断是否为全部签收和部分签收 if (EnumUtil.equals(NodeEnums.CLERK_REVIEW, node)) { // 签收节点设置签收数量 @@ -221,9 +224,7 @@ public class ZbomNodeDataPushListener { // 签收环节上一个节点是在途,说明缺少一个送货抵达,需要补一个节点 if (ObjectUtil.isEmpty(nodeOrderEntity) || ObjectUtil.equal(nodeOrderEntity.getCurrentNode(), ZbomNodeEnums.INTRANSIT.getIndex())) { - if (ObjectUtil.isEmpty(nodeOrderEntity)) { - nodeOrderEntity = new ZbFactoryNodeOrderEntity(); - } + // 第一次签收,节点改为送货抵达 paramDTO.setNode(ZbomNodeEnums.DELIVERY_ARRIVAL.getCode()); currentNode = ZbomNodeEnums.DELIVERY_ARRIVAL; diff --git a/blade-service/logpm-report/src/main/java/com/logpm/report/controller/ReportBillLoadingController.java b/blade-service/logpm-report/src/main/java/com/logpm/report/controller/ReportBillLoadingController.java index 9fd6ff0e9..e8a5db74d 100644 --- a/blade-service/logpm-report/src/main/java/com/logpm/report/controller/ReportBillLoadingController.java +++ b/blade-service/logpm-report/src/main/java/com/logpm/report/controller/ReportBillLoadingController.java @@ -52,8 +52,8 @@ public class ReportBillLoadingController { .node(nodeEnums) .brand(BrandEnums.ZB) .operatorTime(new Date()) - .operator("test") - .address("test") + .operator((String) map.get("operator")) + .address((String) map.get("address")) .content((List) map.get("content")) .build(); sender.sendNodeDataByBrand(build);