From 2ce5e3aa7eacdc91aa6d44310f2ced168a778460 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Sat, 7 Oct 2023 15:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=BF=90=E7=BB=B4=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=A4=87=E6=A1=88=E6=8E=A5=E5=8F=A3=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java index 441a904..7aaffc4 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectlib/manage/ProjectLibManage.java @@ -441,7 +441,7 @@ public class ProjectLibManage { } private BigDecimal computeAmount(BigDecimal cuurentAmount,List prfs) { - BigDecimal res = cuurentAmount; + BigDecimal res = Objects.isNull(cuurentAmount) ? BigDecimal.ZERO : cuurentAmount; for(ProjectRenewalFundDeclaration prf : prfs){ res = res.add(prf.getAnnualPaymentAmount()); }