Browse Source

debug工作台

tags/24080901
PoffyZhang 1 year ago
parent
commit
0be0628fff
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java

+ 7
- 0
pmapi/src/main/java/com/ningdatech/pmapi/workbench/model/vo/WorkbenchVO.java View File

@@ -92,6 +92,10 @@ public class WorkbenchVO implements Serializable {
private BigDecimal approvalAmountGrowthRate; private BigDecimal approvalAmountGrowthRate;


public BigDecimal getDeclaredAmountGrowthRate(){ public BigDecimal getDeclaredAmountGrowthRate(){
if(Objects.isNull(declaredAmount)){
this.declaredAmount = BigDecimal.ZERO;
}

// if((Objects.nonNull(declaredAmount)&&declaredAmount.compareTo(BigDecimal.ZERO) > 0) && (Objects.isNull(declaredAmountLastYear) || // if((Objects.nonNull(declaredAmount)&&declaredAmount.compareTo(BigDecimal.ZERO) > 0) && (Objects.isNull(declaredAmountLastYear) ||
// declaredAmountLastYear.compareTo(BigDecimal.ZERO) == 0)){ // declaredAmountLastYear.compareTo(BigDecimal.ZERO) == 0)){
// return BigDecimal.valueOf(100); // return BigDecimal.valueOf(100);
@@ -106,6 +110,9 @@ public class WorkbenchVO implements Serializable {
} }


public BigDecimal getApprovalAmountGrowthRate(){ public BigDecimal getApprovalAmountGrowthRate(){
if(Objects.isNull(approvalAmount)){
this.approvalAmount = BigDecimal.ZERO;
}
// if((Objects.nonNull(approvalAmount)&&approvalAmount.compareTo(BigDecimal.ZERO) > 0) && (Objects.isNull(approvalAmountLastYear) || // if((Objects.nonNull(approvalAmount)&&approvalAmount.compareTo(BigDecimal.ZERO) > 0) && (Objects.isNull(approvalAmountLastYear) ||
// approvalAmountLastYear.compareTo(BigDecimal.ZERO) == 0)){ // approvalAmountLastYear.compareTo(BigDecimal.ZERO) == 0)){
// return BigDecimal.valueOf(100); // return BigDecimal.valueOf(100);


Loading…
Cancel
Save