结算记录优化
This commit is contained in:
parent
499a9ad4d5
commit
ae6f93ef4a
|
|
@ -83,7 +83,7 @@ public class CalcMonthlyServiceImp implements CalcMonthlyService {
|
|||
}
|
||||
}
|
||||
|
||||
private List<SltAgreementInfo> addProjectMonthCosts(List<AgreementInfo> list, CalMonthlyBean record) {
|
||||
private void addProjectMonthCosts(List<AgreementInfo> list, CalMonthlyBean record) {
|
||||
List<SltAgreementInfo> leaseList = new ArrayList<>();
|
||||
calMonthlyMapper.insertCalcRecord(record);
|
||||
String taskId = record.getId();
|
||||
|
|
@ -112,7 +112,8 @@ public class CalcMonthlyServiceImp implements CalcMonthlyService {
|
|||
agreementInfo.setIds(sltAgreementInfo.getIds());
|
||||
sltAgreementInfo.setMonth(bean.getMonth());
|
||||
agreementInfo.setEndTime(sltAgreementInfo.getOffTime());
|
||||
List<SltAgreementInfo> leaseListOneMonth = addProjectMonthDetail(agreementInfo, sltAgreementInfo, pmcId);
|
||||
// 新增project_month_detail
|
||||
addProjectMonthDetail(agreementInfo, sltAgreementInfo, pmcId);
|
||||
projectMonthCosts.setCosts(sltAgreementInfo.getCosts());
|
||||
calMonthlyMapper.updateProMonCosts(projectMonthCosts);
|
||||
|
||||
|
|
@ -129,14 +130,11 @@ public class CalcMonthlyServiceImp implements CalcMonthlyService {
|
|||
for (String proMonthCostId : proMonthCostIds) {
|
||||
calMonthlyMapper.deleteDetailsByProMonthCostId(proMonthCostId);
|
||||
}
|
||||
break;
|
||||
}
|
||||
sltAgreementInfo.setNode(leaseListOneMonth);
|
||||
break;
|
||||
}
|
||||
leaseList.addAll(monthList);
|
||||
}
|
||||
}
|
||||
return leaseList;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue