| | |
| | | left join t_line b on (a.lineId = b.id) |
| | | where b.state = 1 and a.driverId = #{driverId} |
| | | </select> |
| | | <select id="queryLinesByStopoverIds" resultType="java.util.Map"> |
| | | select |
| | | a.id as id, |
| | | a.name as name, |
| | | c.name as siteName |
| | | from t_line a |
| | | left join t_line_site b on (a.id = b.lineId) |
| | | left join t_site c on (b.siteId = c.id) |
| | | where a.state = 1 and b.type = #{type} |
| | | <if test="null != stopoverIds"> |
| | | and b.lineId in |
| | | <foreach item="item" collection="stopoverIds" index="index" separator="," close=")" open="("> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | </mapper> |