Commit 2243b466 authored by duanruiming's avatar duanruiming

[add] 绿波时序图下速度优化

parent c43ff8db
......@@ -120,6 +120,7 @@ public class StrategyGreenBeltServiceImpl implements StrategyGreenBeltService {
vo.setStopTimes(greenwaveHistPO.getStopTimes());
vo.setCordQueueRatio(Objects.isNull(greenwaveHistPO.getCordQueueRatio()) ? 0.0 : greenwaveHistPO.getCordQueueRatio() * 100);
vo.setTravelTime(greenwaveHistPO.getTrvalTime());
vo.setSpeed(greenwaveHistPO.getSpeed());
vo.setRoadDirection(GreenBeltDirEnum.getDesc(greenwaveHistPO.getRoadDirection()));
results.add(vo);
}
......
......@@ -33,4 +33,7 @@ public class GreenBeltStopTimesQueueLengthVO {
private Double cordQueueRatio;
@ApiModelProperty("行程时间")
private Integer travelTime;
@ApiModelProperty("速度")
@JsonSerialize(using = Double2TwoDecimalPlacesSerializer.class)
private Double speed;
}
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