|
|
@@ -502,7 +502,7 @@ public class ProjectCostServiceImpl implements ProjectCostService {
|
|
|
}
|
|
|
List<ComputeProjectCostDetail> computeProjectCostDetailChilds=new ArrayList<>();
|
|
|
//按项目分摊配置计算项目的所有项目成本列的分摊金额
|
|
|
- itemShareParamCost.stream().forEach(shareParamCost->{
|
|
|
+ itemShareParamCost.forEach(shareParamCost->{
|
|
|
ComputeProjectCostDetail cmputeProjectCostDetail=createComputeProjectCostDetail(computeDate, currentUser,incomeShareParam,responsibilityItem,projectCost,
|
|
|
shareParamCost,shareParamCostVos,itemShareParams,computeShareParamDetailGroup,costDepartmentProfits);
|
|
|
computeProjectCostDetailChilds.add(cmputeProjectCostDetail);
|
|
|
@@ -530,12 +530,12 @@ public class ProjectCostServiceImpl implements ProjectCostService {
|
|
|
repository.saveBatch(computeProjectCosts, 500);
|
|
|
if (!CollectionUtils.isEmpty(computeProjectCostDetails)) {
|
|
|
//保存项目分摊明细表对象数据
|
|
|
- computeProjectCostDetails.stream().forEach(projectCostDetail->projectCostDetail.setProjectCostId(projectCostDetail.getComputeProjectCost().getId()));
|
|
|
+ computeProjectCostDetails.forEach(projectCostDetail->projectCostDetail.setProjectCostId(projectCostDetail.getComputeProjectCost().getId()));
|
|
|
detailRepository.saveBatch(computeProjectCostDetails, 500);
|
|
|
}
|
|
|
if (!CollectionUtils.isEmpty(computeProjectGroupCostDetails)) {
|
|
|
//保存项目分摊汇总表对象数据
|
|
|
- computeProjectGroupCostDetails.stream().forEach(projectCostDetail->projectCostDetail.setProjectCostId(projectCostDetail.getComputeProjectCost().getId()));
|
|
|
+ computeProjectGroupCostDetails.forEach(projectCostDetail->projectCostDetail.setProjectCostId(projectCostDetail.getComputeProjectCost().getId()));
|
|
|
groupDetailRepository.saveBatch(computeProjectGroupCostDetails, 500);
|
|
|
}
|
|
|
|