From 670f58ee25e242f74497feff30dc3e99687a37e0 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Fri, 10 May 2024 09:26:17 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B9=B2=E7=BA=BF=E5=BC=80=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trunkline/service/impl/OpenOrderServiceImpl.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java index c309cdfca..189e16b3c 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java @@ -1017,8 +1017,10 @@ public class OpenOrderServiceImpl implements IOpenOrderService { List batchPackageCodeByType = basicdataCodeClient.getBatchPackageCodeByType(warehouseCode, orderCode, totalNumber); batchPackageCodeByType.forEach(item -> { - advanceDetailModel.setOrderPackageCode(item); - detailEntities.add(advanceDetailModel); + TrunklineAdvanceDetailEntity advanceDetailEntity = new TrunklineAdvanceDetailEntity(); + BeanUtil.copy(advanceDetailModel,advanceDetailEntity); + advanceDetailEntity.setOrderPackageCode(item); + detailEntities.add(advanceDetailEntity); }); @@ -1972,8 +1974,10 @@ public class OpenOrderServiceImpl implements IOpenOrderService { List orderPackageCodes = basicdataCodeClient.getBatchPackageCodeByType(warehouseCode, orderCode, totalNum); orderPackageCodes.forEach(orderPackageCode -> { - advanceDetailModel.setOrderPackageCode(orderPackageCode); - advanceDetailEntities.add(advanceDetailModel); + TrunklineAdvanceDetailEntity advanceDetailEntity = new TrunklineAdvanceDetailEntity(); + BeanUtil.copy(advanceDetailModel, advanceDetailEntity); + advanceDetailEntity.setOrderPackageCode(orderPackageCode); + advanceDetailEntities.add(advanceDetailEntity); }); } }