记录子表Bom版本行ID
This commit is contained in:
parent
fa26973ce9
commit
ca9dee8eea
|
|
@ -731,8 +731,17 @@ public class BomNewEbomParentService extends ServiceImpl<BomNewEbomParentMapper,
|
|||
if (CollUtil.isNotEmpty(bomRowIds)) {
|
||||
this.getBaseMapper().updateStateBatchByRowIds(EBomStatusEnum.PUBLISHED.getValue(), bomRowIds);
|
||||
}
|
||||
|
||||
|
||||
//子级记录-bom版本
|
||||
List<BomNewEbomChildEntity> bomChildren=new ArrayList<>();
|
||||
bomTree.forEach(k->{
|
||||
BomNewEbomChildEntity entChild=new BomNewEbomChildEntity();
|
||||
entChild.setRowId(k.getRowId());
|
||||
entChild.setBomRowId(k.getBomRowId());
|
||||
bomChildren.add(entChild);
|
||||
});
|
||||
if(CollUtil.isNotEmpty(bomChildren)) {
|
||||
ebomChildService.updateBatchById(bomChildren);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -515,6 +515,18 @@ public class BomNewOriginalParentService extends ServiceImpl<BomNewOriginalParen
|
|||
this.getBaseMapper().updateBomState(OriginalEditStatusEnum.HANDLER_FINISHED.getValue(), OriginalStatusEnum.OVER_CONVERT.getValue(), convert.getHasHandlerParentIds());
|
||||
}
|
||||
|
||||
//记录子级BOM版本行ID
|
||||
List<BomNewOriginalChildEntity> originalChildEntities=new ArrayList<>();
|
||||
bomAllChildList.forEach(k->{
|
||||
BomNewOriginalChildEntity entChild=new BomNewOriginalChildEntity();
|
||||
entChild.setRowId(k.getRowId());
|
||||
entChild.setBomRowId(k.getBomRowId());
|
||||
originalChildEntities.add(entChild);
|
||||
});
|
||||
if(CollUtil.isNotEmpty(originalChildEntities)){
|
||||
originalChildService.updateBatchById(originalChildEntities);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static ThreadLocal<Integer> rowNum = new ThreadLocal<>();
|
||||
|
|
|
|||
|
|
@ -852,7 +852,19 @@ public class BomNewPbomParentService extends ServiceImpl<BomNewPbomParentMapper,
|
|||
//同步sap
|
||||
// saySyncDEMO();
|
||||
// importSap(parent,allBom);
|
||||
//
|
||||
//记录-BOM版本RowId
|
||||
List<BomNewPbomChildEntity> pBomChildren=new ArrayList<>();
|
||||
allBom.forEach(k->{
|
||||
BomNewPbomChildEntity entChild=new BomNewPbomChildEntity();
|
||||
entChild.setRowId(k.getRowId());
|
||||
entChild.setBomRowId(k.getBomRowId());
|
||||
pBomChildren.add(entChild);
|
||||
});
|
||||
if(CollUtil.isNotEmpty(pBomChildren)){
|
||||
pbomChildService.updateBatchById(pBomChildren);
|
||||
}
|
||||
|
||||
|
||||
} catch (Exception ex) {
|
||||
throw new NflgBusinessException(STATE.BusinessError, "发布Pbom失败:" + ex.getMessage());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue