Commit aacce29b authored by duwei's avatar duwei

小数点处理

parent 68fb0504
......@@ -1714,7 +1714,11 @@ public class TrendServiceImpl implements TrendService {
//效率评价等级
vo.setEfficiencyEvaluateLevel(0.0);
//饱和度
vo.setSaturation(po.getSturation());
if(po.getSturation() != null) {
//保留小数点后两位
vo.setSaturation(Math.round(po.getSturation() * 100) / 100.0);
vo.setSaturation(po.getSturation());
}
//拥堵指数
vo.setCongestionIndex(0.0);
//溢出指数
......
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