Commit f8f9469f authored by duanruiming's avatar duanruiming

[update] 绿波干线添加行程时间和速度

parent dfa508df
......@@ -33,6 +33,10 @@ public class GreenwaveListVO {
private Long duration;
@ApiModelProperty(value = "区域边界")
private String wkt;
@ApiModelProperty(value = "行程时间")
private int travelTime;
@ApiModelProperty(value = "行程速度")
private Double speed;
@ApiModelProperty(value = "路口列表")
private List<CrossListElement> crossList;
......
......@@ -9,7 +9,7 @@
<select id="listGreenwave" resultType="net.wanji.databus.vo.GreenwaveListVO">
select
t1.id, t1.name, t1.status as infoStatus, t2.status as realtimeStatus,
t2.traffic_index, t1.start_time, t1.end_time, t1.wkt
t2.traffic_index, t1.start_time, t1.end_time, t1.wkt, t2.trval_time as travelTime, t2.speed
from t_greenwave_info t1 join t_greenwave_realtime t2 on t1.id = t2.green_id
<where>
<if test="status != null">
......
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