diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/common/util/BizUtils.java b/pmapi/src/main/java/com/ningdatech/pmapi/common/util/BizUtils.java index fc3396d..9a0aa33 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/common/util/BizUtils.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/common/util/BizUtils.java @@ -130,7 +130,7 @@ public class BizUtils { } public static String computeRise(Integer numa, Integer numb) { - if(Objects.isNull(numa) || Objects.isNull(numb)){ + if(Objects.isNull(numa) || Objects.isNull(numb) || numa.equals(0) || numb.equals(0)){ return "0"; } return BigDecimal.valueOf((numa - numb) * 100.0).divide(BigDecimal.valueOf(numb),2, RoundingMode.CEILING)