longz
2026-06-04 da780b14b8db78043d2c0f27d3bfd73111e6d550
UserYKDTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/crossCity/dao/mapping/LineSiteMapper.xml
@@ -27,8 +27,10 @@
        d.carColor as carColor,
        CONCAT((b.totalSeat - b.laveSeat), '/', b.totalSeat) as `number`,
        (select sum(fraction)/count(fraction) from t_order_evaluate where driverId = b.driverId) as evaluate,
        h.type as priceType,
        h.content as content,
        null as priceType,
        null as content,
        (select price5 from t_line_destination where lineId = a.lineId and state != 3 order by isMain desc, id asc limit 1) as defaultPrice5,
        (select price7 from t_line_destination where lineId = a.lineId and state != 3 order by isMain desc, id asc limit 1) as defaultPrice7,
        b.driverId as driverId,
        c.carId as carId,
        b.totalSeat as totalSeat,
@@ -42,7 +44,6 @@
        left join t_car_brand e on (d.carBrandId = e.id)
        left join t_car_model f on (d.carModelId = f.id)
        left join t_car_service g on (d.id = g.carId and g.`type` = 3)
        left join t_line_price h on (g.serverCarModelId = h.serverCarModelId and a.lineId = h.lineId)
        where b.driverId in (select driverId from t_driver_work where state = 1 and type like '%3%')
        <if test="null != lineId">
            and a.lineId = #{lineId}