fix(pbom): 修改判断条件

This commit is contained in:
曹鹏飞 2024-06-29 18:14:36 +08:00
parent 6979d75388
commit b923c70b20
1 changed files with 2 additions and 2 deletions

View File

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