Commit 79d9b027 authored by duwei's avatar duwei

sql调整

parent 114ff730
......@@ -164,7 +164,7 @@
AVG(t1.non_motor_flow) as nonMotorFlow
FROM
t_base_lane_info t2
LEFT JOIN t_lane_data_hist t1 ON t1.cross_id = t2.cross_id
LEFT JOIN t_lane_data_hist t1 ON t1.id = t2.id
WHERE
1 = 1
<if test="crossId != null">
......@@ -180,6 +180,7 @@
and t1.start_time <![CDATA[ >= ]]> #{startStamp}
and t1.start_time <![CDATA[ <= ]]> #{endStamp}
GROUP BY
t2.id,
t2.dir,
t2.turn,
t2.sort,
......
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