1、PBOM发布判断状态

This commit is contained in:
大米 2024-06-29 17:38:07 +08:00
parent f600d1fe2e
commit 18c0b7f8cb
1 changed files with 1 additions and 0 deletions

View File

@ -1005,6 +1005,7 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public boolean realesePbom(Long bomRowId) { public boolean realesePbom(Long bomRowId) {
BomNewPbomParentEntity parent = this.getById(bomRowId); BomNewPbomParentEntity parent = this.getById(bomRowId);
VUtils.isTure( parent.getStatus()>PBomStatusEnum.PUBLISH.getValue()).throwMessage("pbom已发布无需在发布请刷新数据");
LogRecordContext.putVariable("bom",parent); LogRecordContext.putVariable("bom",parent);
try { try {
List<BomNewPbomParentVO> allBom = getAllBom(bomRowId, 0); List<BomNewPbomParentVO> allBom = getAllBom(bomRowId, 0);