PBOM 发布问题

This commit is contained in:
luoliming 2024-06-23 16:05:47 +08:00
parent cff4a2dbd2
commit 437e0c10e2
1 changed files with 3 additions and 4 deletions

View File

@ -1211,10 +1211,9 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
List<Long> oldPBomRowIds = toParents.stream().map(u -> u.getRowId()).collect(Collectors.toList());
List<Long> toFormalPBomRowIds = new ArrayList<>();
toFormalPBomRowIds.addAll(exceptRowIds);
toFormalPBomRowIds.addAll(oldPBomRowIds);
this.getBaseMapper().insertPBomParentToFormal(toFormalPBomRowIds);
this.getBaseMapper().insertPBomChildToFormal(toFormalPBomRowIds);
this.getBaseMapper().insertPBomParentToFormal(exceptRowIds);
this.getBaseMapper().insertPBomChildToFormal(exceptRowIds);
//转移后删除
this.getBaseMapper().delPBom(oldPBomRowIds);