xuhy
2025-08-19 629c5b1816332300fd164a2e85551b212c62b0d4
UserOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/crossCity/dao/mapping/LineMapper.xml
@@ -33,4 +33,20 @@
        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>