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

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

@ -39,6 +39,15 @@ public class OrderSimpleDTO {
@ApiModelProperty("品牌名称")
private String brandName;
@ApiModelProperty("车辆id")
private Long vehicleId;
@ApiModelProperty("车架号(VIN)")
private String vin;
@ApiModelProperty("车牌号码")
private String licensePlate;
@ApiModelProperty("车型图片")
private String image;

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}