1、升级检查

This commit is contained in:
大米 2024-03-25 17:35:32 +08:00
parent 3a8b33eb32
commit 9991a150ee
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class PBomUpgrade {
*/
private void check() {
List<BomNewPbomParentEntity> waitPublishList = SpringUtil.getBean(BomNewPbomParentService.class).lambdaQuery().eq(BomNewPbomParentEntity::getMaterialNo, root.getMaterialNo())
.eq(BomNewPbomParentEntity::getFacCode, root.getMaterialNo())
.eq(BomNewPbomParentEntity::getFacCode, root.getFacCode())
.lt(BomNewPbomParentEntity::getStatus, PBomStatusEnum.PUBLISH.getValue()).list();
VUtils.isTure(CollUtil.isNotEmpty(waitPublishList)).throwMessage(root.getMaterialNo() + "存在待发布的版本,无法升级");
}