生成PBOM时,bom没有子项的话,仅生成EBOM正式表2
This commit is contained in:
parent
3f51dd3317
commit
935f4f596e
|
|
@ -97,7 +97,7 @@ public class EBomToPBomForFormalNew extends FormalEBomToPbomBase {
|
|||
continue;
|
||||
}
|
||||
List<BomNewEbomParentVO> parentList = ListCommonUtil.toDistinct(result.stream().filter(u -> u.getBomRowId() > 0).collect(Collectors.toList()), BomNewEbomParentVO::getBomRowId);
|
||||
if(EBomConstant.MAIN_FACTORY_CODE_1010.equals(facCode)){
|
||||
if(EBomConstant.MAIN_FACTORY_CODE_1010.equals(facCode) && CollUtil.isNotEmpty(facBomDataMp.get(facCode))){
|
||||
parentList = ListCommonUtil.toDistinct(facBomDataMp.get(facCode).stream().filter(u -> u.getBomRowId() > 0).collect(Collectors.toList()), BomNewEbomParentVO::getBomRowId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue