From 2c7db34d4abd4079b40417a7e29db8860f29b619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Fri, 16 Aug 2024 17:24:45 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E5=AF=BC=E5=85=A5SAP=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=85=88=E8=8E=B7=E5=8F=96=E6=89=80=E6=9C=89bom?= =?UTF-8?q?=EF=BC=8C=E7=84=B6=E5=90=8E=E5=B0=86=E6=9D=A5=E6=BA=90=E6=98=AF?= =?UTF-8?q?SAP=E7=9A=84bom=E4=B8=A2=E5=BC=83=EF=BC=8C=E5=85=B6=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E5=AF=BC=E5=85=A5=E5=88=B0SAP=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nflg/product/bomnew/service/BomNewEbomExportToSAP.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomExportToSAP.java b/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomExportToSAP.java index 7be6dd49..9223ed8e 100644 --- a/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomExportToSAP.java +++ b/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomExportToSAP.java @@ -164,9 +164,10 @@ public class BomNewEbomExportToSAP { private BomNewEbomParentEntity getParent(BomNewEbomChildEntity c) { BomNewEbomParentEntity p = bomNewEbomParentService.lambdaQuery() .select(BomNewEbomParentEntity::getRowId, BomNewEbomParentEntity::getMaterialNo - , BomNewEbomParentEntity::getMaterialDesc, BomNewEbomParentEntity::getUserRootIs) + , BomNewEbomParentEntity::getMaterialDesc, BomNewEbomParentEntity::getUserRootIs + , BomNewEbomParentEntity::getSource) .eq(BomNewEbomParentEntity::getMaterialNo, c.getMaterialNo()) - .eq(BomNewEbomParentEntity::getUserRootIs, 0) + // .eq(BomNewEbomParentEntity::getUserRootIs, 0) .eq(BomNewEbomParentEntity::getStatus, EBomStatusEnum.PUBLISHED.getValue()) // .ne(BomNewEbomParentEntity::getSource, EBomSourceEnum.FROM_SAP.getValue()) .orderByDesc(BomNewEbomParentEntity::getCurrentVersion)