From b193c5917fd92a1fe285f563ff8291151264f572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Tue, 6 Aug 2024 11:47:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(ebom):=20=E5=AF=BC=E5=85=A5=E5=88=B0SAP?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E5=86=8D=E7=A7=BB=E9=99=A4=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E7=9B=B4=E5=8F=91=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bomnew/service/BomNewEbomExportToSAP.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 186ef231..8326bc8d 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 @@ -57,14 +57,14 @@ public class BomNewEbomExportToSAP { SapStatusEnum state = SapStatusEnum.PUB_ERROR_ALL; try { buildChildrenForSap(root); - //移除空的直发包 - Set zfbMaterialNos = this.children.stream().filter(T1ExtDTO::isZFB).map(T1ExtDTO::getIDNRK).collect(Collectors.toSet()); - if (CollUtil.isNotEmpty(zfbMaterialNos)) { - Set allMaterialNos = this.children.stream().map(T1ExtDTO::getMATNR).collect(Collectors.toSet()); - zfbMaterialNos.removeAll(allMaterialNos); - LOGGER.debug("{} 移除空的直发包:{}", TAG, String.join(",", zfbMaterialNos)); - this.children.removeIf(c -> c.isZFB() && zfbMaterialNos.contains(c.getIDNRK())); - } + // //移除空的直发包 + // Set zfbMaterialNos = this.children.stream().filter(T1ExtDTO::isZFB).map(T1ExtDTO::getIDNRK).collect(Collectors.toSet()); + // if (CollUtil.isNotEmpty(zfbMaterialNos)) { + // Set allMaterialNos = this.children.stream().map(T1ExtDTO::getMATNR).collect(Collectors.toSet()); + // zfbMaterialNos.removeAll(allMaterialNos); + // LOGGER.debug("{} 移除空的直发包:{}", TAG, String.join(",", zfbMaterialNos)); + // this.children.removeIf(c -> c.isZFB() && zfbMaterialNos.contains(c.getIDNRK())); + // } ImportSapParamDTO sapDto = new ImportSapParamDTO(); sapDto.setZID(RandomUtil.randomNumbers(5));