如果没有子节点则跳过

This commit is contained in:
曹鹏飞 2024-03-11 13:36:32 +08:00
parent 8c87b8f058
commit 3176249b7d
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ public class CheckEBomException {
allBomDetail = SpringUtil.getBean(BomNewEbomParentService.class).getBomTree(bomRowId, true);
BomNewEbomParentEntity parent = SpringUtil.getBean(BomNewEbomParentService.class).getById(bomRowId);
if (Objects.isNull(parent)){
return;
}
BomNewEbomParentVO convert = Convert.convert(BomNewEbomParentVO.class, parent);
convert.setBomRowId(convert.getRowId());
convert.setParentRowId(0L);