fix(pbom): 添加筛选条件-工厂

This commit is contained in:
曹鹏飞 2024-06-27 15:52:55 +08:00
parent 65acfcf94a
commit 0d587b3ea9
1 changed files with 1 additions and 0 deletions

View File

@ -83,6 +83,7 @@ public class TechnologyPackageParamBuilder {
BomNewPbomParentEntity oldBom = SpringUtil.getBean(BomNewPbomParentService.class)
.lambdaQuery()
.eq(BomNewPbomParentEntity::getMaterialNo, child.getMaterialNo())
.eq(BomNewPbomParentEntity::getFacCode, parent.getFacCode())
.eq(BomNewPbomParentEntity::getLastVersionIs, 1)
.one();
if(Objects.nonNull(oldBom)){