Commit 12b6076e authored by duwei's avatar duwei

方向指标

parent 3f8ef61f
......@@ -1487,7 +1487,7 @@ public class TrendServiceImpl implements TrendService {
//行人闯红灯率
vo.setPedCrossRedLightRate(0.0);
vo.setVehheadDist(po.getVehheadDist());
vo.setVehheadDist((double) Math.round(po.getVehheadDist()));
vo.setTrafficFlowA(po.getTrafficFlowA());
vo.setTrafficFlowB(po.getTrafficFlowB());
vo.setTrafficFlowC(po.getTrafficFlowC());
......@@ -1566,7 +1566,7 @@ public class TrendServiceImpl implements TrendService {
vo.setVehheadTime((int) Math.round(vehheadTime));
//饱和度 sturation
if (po.getSturation() != null) {
vo.setSaturation(po.getSturation());
vo.setSaturation((double) Math.round(po.getSturation()));
}else {
vo.setSaturation(0.0);
}
......@@ -1638,7 +1638,7 @@ public class TrendServiceImpl implements TrendService {
//行人闯红灯率
vo.setPedCrossRedLightRate(0.0);
vo.setVehheadDist(po.getVehheadDist());
vo.setVehheadDist((double) Math.round(po.getVehheadDist()));
vo.setV85(Math.round(po.getV85() * 100) / 100);
......@@ -1865,7 +1865,7 @@ public class TrendServiceImpl implements TrendService {
vo.setEfficiencyEvaluateLevel(0.0);
//饱和度
if(po.getSturation() != null) {
vo.setSaturation(po.getSturation());
vo.setSaturation((double) Math.round(po.getSturation()));
}else {
vo.setSaturation(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