转EBOM时- PBOM发布报错修复2
This commit is contained in:
parent
2a0d37c116
commit
f983cf3bcb
|
|
@ -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> child = result.stream().filter(u -> u.getParentRowId().equals(vo.getBomRowId()) && !childDelMaterialNos.contains(u.getMaterialNo())).distinct().collect(Collectors.toList());
|
||||||
List<BomNewEbomParentVO> mergeChild = mergeChild(child);
|
List<BomNewEbomParentVO> mergeChild = mergeChild(child);
|
||||||
//判断pbom 是否一致
|
//判断pbom 是否一致
|
||||||
if( compareContentIsSame(vo, mergeChild, facCode)){
|
if( compareContentIsSame(vo, mergeChild, facCode) && !vo.getMaterialNo().equals(parent.getMaterialNo())){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
BomNewPbomParentEntity parentEnt = buildPBomParent(vo, facCode,parentList);
|
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> 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);
|
List<BomNewEbomParentVO> mergeChild = mergeChild(child);
|
||||||
if(compareContentIsSame(vo, mergeChild, facCode)){
|
if(compareContentIsSame(vo, mergeChild, facCode) && !vo.getMaterialNo().equals(parent.getMaterialNo())){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
BomNewPbomParentEntity parentEnt = buildPBomParent(vo, facCode, parentList);
|
BomNewPbomParentEntity parentEnt = buildPBomParent(vo, facCode, parentList);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue