fix(pbom): 修复一个bug

This commit is contained in:
曹鹏飞 2024-06-06 17:52:47 +08:00
parent 111456e587
commit 343d76b71c
1 changed files with 3 additions and 3 deletions

View File

@ -190,10 +190,10 @@ public class BomNewPbomExportToSAPImpl implements IBomNewPbomExportToSAP {
children.add(convert(it, p.getMaterialNo(), ignore));
}
BomNewPbomParentEntity cp = getParent(it);
if (!ignore && cp.getUserRootIs() == 1) {
ignore = true;
}
if (Objects.nonNull(cp)) {
if (!ignore && cp.getUserRootIs() == 1) {
ignore = true;
}
buildChildrenForSap(cRowId, cp, it, ignore);
}
}