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