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.