From 80b9483674741a3df62835eef4c98ea9a0e47477 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo <583671871@qq.com> Date: Sat, 28 Dec 2024 11:42:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(all):=20=E8=AF=97=E5=B0=BC=E6=9B=BC?= =?UTF-8?q?=E5=B7=A5=E5=8E=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1 修改重复包条码订单数量不正确的问题 --- .../main/java/com/logpm/factory/jobhandler/FactoryXxlJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/jobhandler/FactoryXxlJob.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/jobhandler/FactoryXxlJob.java index ffda34fbd..8925eee08 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/jobhandler/FactoryXxlJob.java +++ b/blade-service/logpm-factory/src/main/java/com/logpm/factory/jobhandler/FactoryXxlJob.java @@ -552,6 +552,7 @@ public class FactoryXxlJob { packageList.add(entries); } // 转成json对象,然后将包件明细放到detail中 + advanceEntity.setTotalNum(CollUtil.isNotEmpty(packageList) ? packageList.size() : 0); cn.hutool.json.JSONObject entries = JSONUtil.parseObj(advanceEntity); entries.set("details", JSONUtil.toJsonStr(packageList)); advances.add(entries); @@ -561,7 +562,6 @@ public class FactoryXxlJob { staorderPackagesService.updateById(it); }); } - advanceEntity.setTotalNum(CollUtil.isNotEmpty(orderPackageSet) ? orderPackageSet.size() : 0); }); // 将组装好的暂存单发送到 MQ ,由暂存单服务统一消费SendMsg.