Commit ceefdd7c authored by jichao's avatar jichao

能耗拆分百分比bug

parent ca7c917c
......@@ -367,7 +367,7 @@ public class OverViewServiceImpl implements OverViewService {
if (total.compareTo(new BigDecimal(0)) == 0)
energyCountMVo.setPercent(total + "%");
else
energyCountMVo.setPercent(energyCountMVo.getEnergy().divide(total, 2, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)) + "%");
energyCountMVo.setPercent(energyCountMVo.getEnergy().divide(total, 5, BigDecimal.ROUND_HALF_UP).multiply(new BigDecimal(100)) + "%");
}
}
return list;
......
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