Commit 2df5e8bb authored by duanruiming's avatar duanruiming

[update] 控制模式列表查询

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