1、最子级搜索

This commit is contained in:
大米 2024-03-29 19:06:35 +08:00
parent ecca276e77
commit 41dcf17772
1 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
} }
if (StrUtil.isNotBlank(materialNo)) { if (StrUtil.isNotBlank(materialNo)) {
List<BomNewEbomParentEntity> materialBoms = this.lambdaQuery().eq(BomNewEbomParentEntity::getMaterialNo, materialNo).eq(BomNewEbomParentEntity::getLastVersionIs, 1) List<BomNewEbomParentEntity> materialBoms = this.lambdaQuery().eq(BomNewEbomParentEntity::getMaterialNo, materialNo).eq(BomNewEbomParentEntity::getLastVersionIs, 1)
.ne(BomNewEbomParentEntity::getStatus, EBomStatusEnum.PUBLISHED.getValue()).list(); .eq(BomNewEbomParentEntity::getStatus, EBomStatusEnum.PUBLISHED.getValue()).list();
if (query.getDataType().equals(0) && CollUtil.isEmpty(materialBoms)) { if (query.getDataType().equals(0) && CollUtil.isNotEmpty(materialBoms)) {
return returnResult; return returnResult;
} }
List<String> materialNos = new ArrayList<>(); List<String> materialNos = new ArrayList<>();