EBOM-正式转PBOM-多任务问题

This commit is contained in:
大米 2024-09-09 16:38:57 +08:00
parent afd82d5c15
commit 425dfa2678
1 changed files with 5 additions and 0 deletions

View File

@ -1117,6 +1117,11 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
// if(CollUtil.isNotEmpty(eBomToPBom.getDelParentRowIds())){ // if(CollUtil.isNotEmpty(eBomToPBom.getDelParentRowIds())){
// pBomChildService.getBaseMapper().batchDelByParentRowId(eBomToPBom.getDelParentRowIds()); // pBomChildService.getBaseMapper().batchDelByParentRowId(eBomToPBom.getDelParentRowIds());
// } // }
eBomToPBom.getPBomParentResult().forEach(u->{
u.setRootIs(0);
u.setUserRootIs(0);
});
//检查是否用户跟用户节点 //检查是否用户跟用户节点
List<String> childMaterialNos = SpringUtil.getBean(BomNewPbomParentMapper.class).getPBomExistMaterialInChildForWorkList(parent.getMaterialNo()); List<String> childMaterialNos = SpringUtil.getBean(BomNewPbomParentMapper.class).getPBomExistMaterialInChildForWorkList(parent.getMaterialNo());
if(CollUtil.isEmpty(childMaterialNos)){ if(CollUtil.isEmpty(childMaterialNos)){