1、升级检查
This commit is contained in:
parent
3a8b33eb32
commit
9991a150ee
|
|
@ -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() + "存在待发布的版本,无法升级");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue