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); }); } }