Commit 2df5e8bb authored by duanruiming's avatar duanruiming

[update] 控制模式列表查询

parent 35b6a4df
......@@ -53,12 +53,10 @@
<select id="selectRecentList" resultMap="tCrossControlHist">
select
<include refid="Base_Column_List"/>
from t_cross_control_hist
where start_time in (select max(start_time)
from t_cross_control_hist
where cross_id in (select id as cross_id
from t_base_cross_info)
group by cross_id);
<include refid="Base_Column_List"></include>
from t_cross_control_hist t1 left join
(select cross_id crossId, max(start_time) startTime from t_cross_control_hist group by cross_id) t2
on t1.cross_id = t2.crossId
where t1.start_time = t2.startTime
</select>
</mapper>
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