|
@@ -130,7 +130,7 @@ public class BizUtils { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static String computeRise(Integer numa, Integer numb) { |
|
|
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 "0"; |
|
|
} |
|
|
} |
|
|
return BigDecimal.valueOf((numa - numb) * 100.0).divide(BigDecimal.valueOf(numb),2, RoundingMode.CEILING) |
|
|
return BigDecimal.valueOf((numa - numb) * 100.0).divide(BigDecimal.valueOf(numb),2, RoundingMode.CEILING) |
|
|