转PBOM-bug修复

This commit is contained in:
大米 2024-11-13 17:02:38 +08:00
parent 721287c899
commit 60a807daec
2 changed files with 24 additions and 20 deletions

View File

@ -271,6 +271,7 @@ public abstract class EBomToPbomBase {
//创建工艺包版本 //创建工艺包版本
BomNewPbomParentEntity artParent = buildPBomParent(Convert.convert(BomNewEbomParentVO.class, oldPBomAddItem), facCode, parentList); BomNewPbomParentEntity artParent = buildPBomParent(Convert.convert(BomNewEbomParentVO.class, oldPBomAddItem), facCode, parentList);
//old 工艺包子级 //old 工艺包子级
if(Objects.nonNull(artParent)) {
List<BomNewPbomParentVO> oldArtChildren = SpringUtil.getBean(BomNewPbomParentService.class).getChild(oldPBomAddItem.getBomRowId(), 1); List<BomNewPbomParentVO> oldArtChildren = SpringUtil.getBean(BomNewPbomParentService.class).getChild(oldPBomAddItem.getBomRowId(), 1);
for (BomNewPbomParentVO oldArtChild : oldArtChildren) { for (BomNewPbomParentVO oldArtChild : oldArtChildren) {
//工艺包新增 //工艺包新增
@ -285,6 +286,7 @@ public abstract class EBomToPbomBase {
} }
} }
} }
}
//pBom中修改过的 //pBom中修改过的
List<BomNewPbomParentVO> oldPBomUpdateChildren = oldChildren.stream().filter(u -> StrUtil.isNotBlank(u.getOriginalMaterialNo())).collect(Collectors.toList()); List<BomNewPbomParentVO> oldPBomUpdateChildren = oldChildren.stream().filter(u -> StrUtil.isNotBlank(u.getOriginalMaterialNo())).collect(Collectors.toList());
for (BomNewPbomParentVO oldPBomUpdateChild : oldPBomUpdateChildren) { for (BomNewPbomParentVO oldPBomUpdateChild : oldPBomUpdateChildren) {

View File

@ -275,6 +275,7 @@ public abstract class FormalEBomToPbomBase {
//创建工艺包版本 //创建工艺包版本
BomNewPbomParentEntity artParent = buildPBomParent(Convert.convert(BomNewEbomParentVO.class, oldPBomAddItem), facCode, parentList); BomNewPbomParentEntity artParent = buildPBomParent(Convert.convert(BomNewEbomParentVO.class, oldPBomAddItem), facCode, parentList);
//old 工艺包子级 //old 工艺包子级
if(Objects.nonNull(artParent)) {
List<BomNewPbomParentVO> oldArtChildren = SpringUtil.getBean(BomNewPbomParentService.class).getChild(oldPBomAddItem.getBomRowId(), 1); List<BomNewPbomParentVO> oldArtChildren = SpringUtil.getBean(BomNewPbomParentService.class).getChild(oldPBomAddItem.getBomRowId(), 1);
for (BomNewPbomParentVO oldArtChild : oldArtChildren) { for (BomNewPbomParentVO oldArtChild : oldArtChildren) {
//工艺包新增 //工艺包新增
@ -289,6 +290,7 @@ public abstract class FormalEBomToPbomBase {
} }
} }
} }
}
//pBom中修改过的 //pBom中修改过的
List<BomNewPbomParentVO> oldPBomUpdateChildren = oldChildren.stream().filter(u -> StrUtil.isNotBlank(u.getOriginalMaterialNo())).collect(Collectors.toList()); List<BomNewPbomParentVO> oldPBomUpdateChildren = oldChildren.stream().filter(u -> StrUtil.isNotBlank(u.getOriginalMaterialNo())).collect(Collectors.toList());
for (BomNewPbomParentVO oldPBomUpdateChild : oldPBomUpdateChildren) { for (BomNewPbomParentVO oldPBomUpdateChild : oldPBomUpdateChildren) {