From ae6f93ef4a71e6aa5509f7cca05702d54f69f652 Mon Sep 17 00:00:00 2001 From: "liang.chao" <1360241448@qq.com> Date: Tue, 15 Oct 2024 13:34:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E8=AE=B0=E5=BD=95=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/remind/service/CalcMonthlyServiceImp.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java index a5c1194..fbf26a3 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/material/remind/service/CalcMonthlyServiceImp.java @@ -83,7 +83,7 @@ public class CalcMonthlyServiceImp implements CalcMonthlyService { } } - private List addProjectMonthCosts(List list, CalMonthlyBean record) { + private void addProjectMonthCosts(List list, CalMonthlyBean record) { List 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 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; }