订单信息增加车牌号和车架号
This commit is contained in:
@ -39,6 +39,15 @@ public class OrderSimpleDTO {
|
|||||||
@ApiModelProperty("品牌名称")
|
@ApiModelProperty("品牌名称")
|
||||||
private String brandName;
|
private String brandName;
|
||||||
|
|
||||||
|
@ApiModelProperty("车辆id")
|
||||||
|
private Long vehicleId;
|
||||||
|
|
||||||
|
@ApiModelProperty("车架号(VIN)")
|
||||||
|
private String vin;
|
||||||
|
|
||||||
|
@ApiModelProperty("车牌号码")
|
||||||
|
private String licensePlate;
|
||||||
|
|
||||||
@ApiModelProperty("车型图片")
|
@ApiModelProperty("车型图片")
|
||||||
private String image;
|
private String image;
|
||||||
|
|
||||||
|
|||||||
@ -25,10 +25,17 @@
|
|||||||
o.first_order_time,
|
o.first_order_time,
|
||||||
o.end_rent_time,
|
o.end_rent_time,
|
||||||
o.car_model_id,
|
o.car_model_id,
|
||||||
|
o.vehicle_id,
|
||||||
|
c.license_plate,
|
||||||
|
c.vin,
|
||||||
m.model_name,
|
m.model_name,
|
||||||
m.brand_name,
|
m.brand_name,
|
||||||
m.image
|
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>
|
<where>
|
||||||
<if test="customerId != null">
|
<if test="customerId != null">
|
||||||
and o.customer_id = #{customerId}
|
and o.customer_id = #{customerId}
|
||||||
|
|||||||
Reference in New Issue
Block a user