fix(ebom): 修复根节点的判断问题
This commit is contained in:
parent
048ac55706
commit
dfbcad0649
|
|
@ -2576,7 +2576,7 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
public Boolean deleteBomV2(Long bomRowId) {
|
||||
BomNewEbomParentEntity root = getById(bomRowId);
|
||||
VUtils.isTure(Objects.isNull(root)).throwMessage("bom不存在");
|
||||
VUtils.isTure(root.getRootIs() != 1 && root.getUserRootIs() != 0).throwMessage("请选择根节点");
|
||||
VUtils.isTure(root.getRootIs() != 1 && root.getUserRootIs() != 1).throwMessage("请选择根节点");
|
||||
VUtils.isTure(!StrUtil.equals(root.getCreatedBy(), SessionUtil.getUserCode())).throwMessage("不能删除他人的数据");
|
||||
|
||||
delete(root);
|
||||
|
|
|
|||
Loading…
Reference in New Issue