1、修复转Pbom错误

This commit is contained in:
大米 2024-06-21 18:59:39 +08:00
parent 8c54292602
commit f266389ea0
1 changed files with 4 additions and 0 deletions

View File

@ -2517,7 +2517,11 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
* @param exceptRowIds
*/
private void eBomToFormal(List<Long> exceptRowIds, List<BomNewEbomParentVO> parents){
List<String> materialNos = parents.stream().map(u -> u.getMaterialNo()).collect(Collectors.toList());
if(CollUtil.isEmpty(materialNos)){
return;
}
List<BomNewEbomParentEntity> toParents = this.lambdaQuery().eq(BomNewEbomParentEntity::getStatus, EBomStatusEnum.PUBLISHED.getValue()).notIn(BomNewEbomParentEntity::getRowId, exceptRowIds)
.in(BomNewEbomParentEntity::getMaterialNo, materialNos).select(BomNewEbomParentEntity::getRowId).list();
if(CollUtil.isNotEmpty(toParents)) {