Commit 83f92499 authored by duwei's avatar duwei

小数点两位

parent b456dea6
......@@ -2023,7 +2023,7 @@ public class TrendServiceImpl implements TrendService {
//饱和度
if (po.getSturation() != null) {
vo.setSaturation(po.getSturation());
vo.setSaturation((double) Math.round(po.getSturation()));
}else {
vo.setSaturation(0.0);
}
......@@ -2071,7 +2071,7 @@ public class TrendServiceImpl implements TrendService {
vo.setTrafficAccidentNum(0);
//不停车通过率
if (po.getNoStopRate() != null) {
vo.setNoStopPassRate(po.getNoStopRate());
vo.setNoStopPassRate((int) Math.round(po.getNoStopRate()));
}else {
vo.setNoStopPassRate(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