fix: 添加子节点为空判断,如果为空则不执行更新操作

This commit is contained in:
曹鹏飞 2024-04-11 10:25:17 +08:00
parent c9e03f5009
commit 743191a5be
1 changed files with 3 additions and 0 deletions

View File

@ -243,6 +243,9 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
new Workbook().addSheet(new ListSheet<>(result)).writeTo(response.getOutputStream());
}
public List<BomNewPbomParentVO> getChild(Long rowId) {
return getChild(this.getById(rowId));
}
public List<BomNewPbomParentVO> getChild(BomNewPbomParentEntity parent) {
//List<BomNewPbomParentVO> parentChild = this.getBaseMapper().getParentChild(rowId);
//BomNewPbomParentEntity parent = this.getById(rowId);