mbom版本赋值

This commit is contained in:
jing's 2024-03-18 23:10:20 +08:00
parent 8d0fc3ad1c
commit adeb6bccff
1 changed files with 12 additions and 2 deletions

View File

@ -172,6 +172,7 @@ public class MBomForwardReport extends BaseForwardReport {
List<Long> rowIdList = new ArrayList<>( Arrays.asList(rowId) );
List<ForwardReportVO> reportVOList = new ArrayList<>();
orderNum.set(0);
while (!rowIdList.isEmpty()) {
List<BomNewMbomMiddleVO> childList = SpringUtil.getBean(BomNewMbomParentService.class).getBaseMapper().getParentChild(rowIdList, bomRowId);
rowIdList.clear();
@ -206,8 +207,17 @@ public class MBomForwardReport extends BaseForwardReport {
if(ObjectUtil.equal(item.getRowId(),item.getBomRowId())){
rowId = 0l;
}
listMap.put(item.getRowId(), queryDetail(isMore, rowId, item.getBomRowId()));
}
List<ForwardReportVO> list= queryDetail(isMore, rowId, item.getBomRowId());
BomNewMbomParentEntity parentEntity= SpringUtil.getBean(BomNewMbomParentService.class).getById(item.getBomRowId());
list.forEach(u->{
u.setCurrentVersion(parentEntity.getCurrentVersion());
});
listMap.put(item.getRowId(), list );
}
}
return listMap;