From 21a75d672606f3e3eb3be10e1fc38c01899a8351 Mon Sep 17 00:00:00 2001 From: luolm <470431449@qq.com> Date: Sun, 13 Oct 2024 20:46:36 +0800 Subject: [PATCH] =?UTF-8?q?pbom-=E7=94=A8=E6=88=B7=E8=B7=9F=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bomnew/service/BomNewEbomParentService.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomParentService.java b/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomParentService.java index 6770e250..1907368f 100644 --- a/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomParentService.java +++ b/nflg_project_dev/nflg-bom-new/src/main/java/com/nflg/product/bomnew/service/BomNewEbomParentService.java @@ -1060,6 +1060,12 @@ public class BomNewEbomParentService extends ServiceImpl rootParent = eBomToPBom.getPBomParentResult().stream().filter(u -> u.getMaterialNo().equals(parent.getMaterialNo())).collect(Collectors.toList()); + if(CollUtil.isNotEmpty(rootParent)) { + rootParent.get(0).setUserRootIs(1); + } + pBomParentService.saveOrUpdateBatch(eBomToPBom.getPBomParentResult()); } @@ -1258,6 +1264,11 @@ public class BomNewEbomParentService extends ServiceImpl rootParent = eBomToPBom.getPBomParentResult().stream().filter(u -> u.getMaterialNo().equals(parent.getMaterialNo())).collect(Collectors.toList()); + if(CollUtil.isNotEmpty(rootParent)) { + rootParent.get(0).setUserRootIs(1); + } pBomParentService.saveOrUpdateBatch(eBomToPBom.getPBomParentResult()); }