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 138ed68..b453ae5 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,6 +130,10 @@ public class BizUtils { } public static String computeRise(Integer numa, Integer numb) { + if((Objects.isNull(numb)|| numb.equals(0)) && + (Objects.isNull(numa)|| numa.equals(0))){ + return "0"; + } if(Objects.isNull(numa) || numa.equals(0)){ return "-100"; }