Commit 3170984a authored by zhouleilei's avatar zhouleilei

[update]信控调优平台-路口检测左下角路口事件列表添加wtk和交通指数两个数据

parent 94951937
...@@ -15,4 +15,6 @@ public class CrossEventListPO { ...@@ -15,4 +15,6 @@ public class CrossEventListPO {
private Integer duration; private Integer duration;
private String type; private String type;
private String typeName; private String typeName;
private String wkt;
private Double trafficIndex;
} }
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<!-- 路口监测左下角路口事件列表 --> <!-- 路口监测左下角路口事件列表 -->
<select id = "selectCrossEventList" resultType="net.wanji.opt.vo.CrossEventListPO"> <select id = "selectCrossEventList" resultType="net.wanji.opt.vo.CrossEventListPO">
select t1.id crossId, t2.type, ifnull(t2.place_desc, "畅通") typeName, select t1.id crossId, t2.type, ifnull(t2.place_desc, "畅通") typeName,
ifnull(t2.count, 0) count, ifnull(t2.duration, 0) duration, t1.`name` name ifnull(t2.count, 0) count, ifnull(t2.duration, 0) duration, t1.`name` name,t1.location wkt, ROUND(t3.traffic_index,2) trafficIndex
from t_base_cross_info t1 from t_base_cross_info t1
left join left join
(select cross_id, type, place_desc, (select cross_id, type, place_desc,
...@@ -111,6 +111,8 @@ ...@@ -111,6 +111,8 @@
group by cross_id, type group by cross_id, type
order by duration desc) t2 order by duration desc) t2
on t2.cross_id = t1.id on t2.cross_id = t1.id
LEFT JOIN t_cross_data_realtime t3
ON t1.id = t3.cross_id
where t1.is_signal = 1 where t1.is_signal = 1
order by t2.duration desc order by t2.duration desc
</select> </select>
......
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