1、修复t_bom_new_ebom_child_formal的bom_version_row_id字段没有赋值

This commit is contained in:
大米 2024-06-29 16:52:36 +08:00
parent f2f62ac4dd
commit f600d1fe2e
1 changed files with 4 additions and 2 deletions

View File

@ -1004,8 +1004,6 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
//List<Long> bomRowIds = bomTree.stream().filter(u ->!EBomStatusEnum.PUBLISHED.equalsValue(u.getStatus()) && u.getBomRowId() > 0).map(u -> u.getBomRowId()).collect(Collectors.toList());
if (CollUtil.isNotEmpty(eBomToPBom.getAddEBomNew())) {
this.getBaseMapper().updateStateBatchByRowIds(EBomStatusEnum.PUBLISHED.getValue(), eBomToPBom.getAddEBomNew());
//将历史已发布版-转移到正式历史表
eBomToFormal(eBomToPBom.getAddEBomNew(), eBomToPBom.getDelOldEBom() );
}
//替换需覆盖的受影响的虚拟包
if(CollUtil.isNotEmpty(eBomToPBom.getUpgradeChangeResultForCover())){
@ -1025,6 +1023,10 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
if (CollUtil.isNotEmpty(bomChildren)) {
ebomChildService.updateBatchById(bomChildren);
}
//将历史已发布版-转移到正式历史表
if (CollUtil.isNotEmpty(eBomToPBom.getAddEBomNew())) {
eBomToFormal(eBomToPBom.getAddEBomNew(), eBomToPBom.getDelOldEBom() );
}
// SpringUtil.getBean(BomNewEbomParentFormalService.class).copyEbomFormal(bomRowId);
}