From 694e5602436a33fa203b97f3389a1665f75a7bc1 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Mon, 19 Jun 2023 22:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/sync/SpsSyncDownloadController.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/glxp/api/controller/sync/SpsSyncDownloadController.java b/src/main/java/com/glxp/api/controller/sync/SpsSyncDownloadController.java index 8a286df5..829142f2 100644 --- a/src/main/java/com/glxp/api/controller/sync/SpsSyncDownloadController.java +++ b/src/main/java/com/glxp/api/controller/sync/SpsSyncDownloadController.java @@ -800,11 +800,13 @@ public class SpsSyncDownloadController { if (CollUtil.isNotEmpty(spsSyncBusOrderResponse.getPurOrderDetailEntities())) { List purOrderDetailEntities = spsSyncBusOrderResponse.getPurOrderDetailEntities(); for (PurOrderDetailEntity purOrderDetailEntity : purOrderDetailEntities) { - PurOrderDetailEntity codeTempEntity = new PurOrderDetailEntity(); - BeanUtils.copyProperties(purOrderDetailEntity, codeTempEntity); - codeTempEntity.setId(null); - codeTempEntity.setOrderIdFk(orderEntity.getId() + ""); - purOrderDetailService.insert(codeTempEntity); + if(purOrderDetailEntity.getOrderIdFk().equals(orderEntity.getId()+"")){ + PurOrderDetailEntity codeTempEntity = new PurOrderDetailEntity(); + BeanUtils.copyProperties(purOrderDetailEntity, codeTempEntity); + codeTempEntity.setId(null); + purOrderDetailService.insert(codeTempEntity); + } + } }