订单信息增加车牌号和车架号

This commit is contained in:
2025-07-31 18:24:01 +08:00
parent 4faa44cd4f
commit a4eaf1a869
2 changed files with 17 additions and 1 deletions

View File

@ -25,10 +25,17 @@
o.first_order_time,
o.end_rent_time,
o.car_model_id,
o.vehicle_id,
c.license_plate,
c.vin,
m.model_name,
m.brand_name,
m.image
from zc_order_main o join zc_car_model m on o.car_model_id = m.id
from
zc_order_main o
join zc_car_model m on o.car_model_id = m.id
LEFT JOIN zc_car c on o.vehicle_id = c.id
<where>
<if test="customerId != null">
and o.customer_id = #{customerId}