转EBOM时- PBOM发布报错修复2
This commit is contained in:
parent
ba1209700a
commit
ef3287ba9c
|
|
@ -77,7 +77,7 @@ public class EBomToPBom extends EBomToPbomBase {
|
|||
List<BomNewEbomParentVO> child = result.stream().filter(u -> u.getParentRowId().equals(vo.getBomRowId()) && !childDelMaterialNos.contains(u.getMaterialNo())).distinct().collect(Collectors.toList());
|
||||
List<BomNewEbomParentVO> mergeChild = mergeChild(child);
|
||||
//判断pbom 是否一致
|
||||
if( compareContentIsSame(vo, mergeChild, facCode)){
|
||||
if( compareContentIsSame(vo, mergeChild, facCode) && !vo.getMaterialNo().equals(parent.getMaterialNo())){
|
||||
continue;
|
||||
}
|
||||
BomNewPbomParentEntity parentEnt = buildPBomParent(vo, facCode,parentList);
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ public class EBomToPBomFor31 extends EBomToPbomBase {
|
|||
//子级
|
||||
List<BomNewEbomParentVO> child = facBomDataMp.get(facCode).stream().filter(u -> u.getParentRowId().equals(vo.getBomRowId()) && !childDelMaterialNos.contains(u.getMaterialNo())).distinct().collect(Collectors.toList());
|
||||
List<BomNewEbomParentVO> mergeChild = mergeChild(child);
|
||||
if(compareContentIsSame(vo, mergeChild, facCode)){
|
||||
if(compareContentIsSame(vo, mergeChild, facCode) && !vo.getMaterialNo().equals(parent.getMaterialNo())){
|
||||
continue;
|
||||
}
|
||||
BomNewPbomParentEntity parentEnt = buildPBomParent(vo, facCode, parentList);
|
||||
|
|
|
|||
Loading…
Reference in New Issue