删除BOM优化提示
This commit is contained in:
parent
f6afff1bfb
commit
6995b568ca
|
|
@ -3213,7 +3213,11 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
@Transactional(rollbackFor = Exception.class)
|
||||
public Boolean deleteBomV2(Long bomRowId) {
|
||||
BomNewEbomParentEntity parent = getById(bomRowId);
|
||||
VUtils.isTure(Objects.isNull(parent)).throwMessage("bom不存在");
|
||||
if(parent == null){
|
||||
//如果是发起变更后,再删除市,用户页面缓存再次提交删除,则直接返回成功,刷新页面 10002327 241107
|
||||
return true;
|
||||
}
|
||||
//VUtils.isTure(Objects.isNull(parent)).throwMessage("bom不存在");
|
||||
// VUtils.isTure(root.getRootIs() != 1 && root.getUserRootIs() != 1).throwMessage("请选择根节点");
|
||||
//校验状态,发布PBOM以后,不能再删除 10002327 241106
|
||||
VUtils.isTure(parent.getStatus() != null && parent.getStatus() >= EBomStatusEnum.PUBLISHED.getValue()).throwMessage("发布PBOM之后,不能再删除~");
|
||||
|
|
|
|||
Loading…
Reference in New Issue