订单信息增加车牌号和车架号
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user