| | |
| | | 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, |
| | |
| | | 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} |