转PBOM-bug修复
This commit is contained in:
parent
721287c899
commit
60a807daec
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue