|
|
@ -68,10 +68,8 @@ |
|
|
|
bvoa.saleTypeValue saleType, |
|
|
|
bvoa.saleDate, |
|
|
|
if(length(bh.closingDate) > 0, '已交付', '未交付') as handoverState, |
|
|
|
DATE_FORMAT(bh.closingDate, '%Y-%m-%d') as handoverDate, |
|
|
|
(@rank := @rank + 1) rankNo |
|
|
|
from (SELECT @rank := 0) t, |
|
|
|
anrui_base.base_vehicle_out bvo |
|
|
|
DATE_FORMAT(bh.closingDate, '%Y-%m-%d') as handoverDate |
|
|
|
from anrui_base.base_vehicle_out bvo |
|
|
|
left join anrui_base.base_vehicle_out_apply bvoa on bvoa.sid = bvo.mainSid |
|
|
|
left join anrui_base.base_vehicle bv on bvo.vinSid = bv.sid |
|
|
|
left join anrui_buscenter.bus_handover_items bi on bi.vinSid = bv.sid |
|
|
|