From 0be0628fff68e4d838ef92893703f4456436f831 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Mon, 20 Nov 2023 09:17:03 +0800 Subject: [PATCH] =?UTF-8?q?debug=E5=B7=A5=E4=BD=9C=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java b/pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java index 8a45a17..363ab06 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java @@ -92,6 +92,10 @@ public class WorkbenchVO implements Serializable { private BigDecimal approvalAmountGrowthRate; public BigDecimal getDeclaredAmountGrowthRate(){ + if(Objects.isNull(declaredAmount)){ + this.declaredAmount = BigDecimal.ZERO; + } + // if((Objects.nonNull(declaredAmount)&&declaredAmount.compareTo(BigDecimal.ZERO) > 0) && (Objects.isNull(declaredAmountLastYear) || // declaredAmountLastYear.compareTo(BigDecimal.ZERO) == 0)){ // return BigDecimal.valueOf(100); @@ -106,6 +110,9 @@ public class WorkbenchVO implements Serializable { } public BigDecimal getApprovalAmountGrowthRate(){ + if(Objects.isNull(approvalAmount)){ + this.approvalAmount = BigDecimal.ZERO; + } // if((Objects.nonNull(approvalAmount)&&approvalAmount.compareTo(BigDecimal.ZERO) > 0) && (Objects.isNull(approvalAmountLastYear) || // approvalAmountLastYear.compareTo(BigDecimal.ZERO) == 0)){ // return BigDecimal.valueOf(100);