Commit 932b7166 authored by suhuiguang's avatar suhuiguang

1.小数位调整位0位

parent 4bfa8ad1
......@@ -635,7 +635,7 @@ public class DPStatisticsServiceImpl {
BigDecimal finish = new BigDecimal(String.valueOf(allFinishedCount));
BigDecimal total = new BigDecimal(String.valueOf(allBizDataInFlowingCount));
BigDecimal result = finish.divide(total, 2, RoundingMode.HALF_UP);
BigDecimal percentage = result.multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP);
BigDecimal percentage = result.multiply(new BigDecimal("100")).setScale(0, RoundingMode.HALF_UP);
return percentage.toPlainString();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment