|
@ -58,13 +58,14 @@ |
|
|
t1.saleDate, |
|
|
t1.saleDate, |
|
|
t1.handoverState, |
|
|
t1.handoverState, |
|
|
t1.handoverDate, |
|
|
t1.handoverDate, |
|
|
(@rank := @rank + 1) rankNo from (SELECT @rank := 0) t,(select bv.useOrgName, |
|
|
(@rank := @rank + 1) rankNo from (SELECT @rank := 0) t,(select distinct bv.vinNo, |
|
|
|
|
|
bv.useOrgName, |
|
|
bvoa.orgName deptName, |
|
|
bvoa.orgName deptName, |
|
|
bvoa.staffName, |
|
|
bvoa.staffName, |
|
|
bvoa.customerName, |
|
|
bvoa.customerName, |
|
|
bvoa.contractNo, |
|
|
bvoa.contractNo, |
|
|
bv.modelName, |
|
|
bv.modelName, |
|
|
bv.vinNo, |
|
|
|
|
|
bvoa.saleTypeValue saleType, |
|
|
bvoa.saleTypeValue saleType, |
|
|
bvoa.saleDate, |
|
|
bvoa.saleDate, |
|
|
if(length(bh.closingDate) > 0, '已交付', '未交付') as handoverState, |
|
|
if(length(bh.closingDate) > 0, '已交付', '未交付') as handoverState, |
|
|