From 9e9a455756794457f4dfe40e64a4b6021504f15b Mon Sep 17 00:00:00 2001 From: bonus <1203338439@qq.com> Date: Mon, 8 Dec 2025 15:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E5=8D=8F=E8=AE=AE=E4=B9=A6?= =?UTF-8?q?=E5=B0=8F=E6=95=B0=E5=90=91=E4=B8=8A=E5=8F=96=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/SltAgreementInfoServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java index 5843ea6b..e5534b03 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/settlement/service/impl/SltAgreementInfoServiceImpl.java @@ -453,8 +453,9 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService { } // 如果费用是空的、null、0 那么就根据数量和单价计算 if (bean.getCosts() == null || bean.getCosts().compareTo(BigDecimal.ZERO) < 0 || bean.getCosts().equals(BigDecimal.ZERO)) { - BigDecimal costs = leasePrice.multiply(num).multiply(leaseDays).setScale(GlobalConstants.INT_2, RoundingMode.DOWN); + BigDecimal costs = leasePrice.multiply(num).multiply(leaseDays).setScale(GlobalConstants.INT_2, RoundingMode.HALF_UP); bean.setCosts(costs); + log.info("租赁费用:"+costs); } } return leaseList; @@ -1372,6 +1373,12 @@ public class SltAgreementInfoServiceImpl implements ISltAgreementInfoService { } List rawResults; +// PeriodCostResultVo sltStatus = sltAgreementInfoMapper.selectSltStatus(queryDto); +// +// if(sltStatus != null){ +// queryDto.setSettlementStatus(sltStatus.getSettlementStatus()); +// } + if (StringUtils.isNotBlank(queryDto.getSettlementStatus()) && queryDto.getSettlementStatus().equals("2")) { // 从数据库slt_agreement_details表查询【已结算明细】 rawResults = sltAgreementInfoMapper.selectLeasePeriodCostListBySltDetails(queryDto);