|
|
@ -58,6 +58,8 @@ |
|
|
|
ifnull(sum(dr.deliver_subtotal_year), 0) as deliver_subtotal_year, |
|
|
|
ifnull(sum(dr.saleAllToThree), 0) as saleAllToThree |
|
|
|
, |
|
|
|
ifnull(sum(dr.loan_not_counts), 0) as loan_not_counts, |
|
|
|
ifnull(sum(dr.loan_not_amounts), 0) as loan_not_amounts, |
|
|
|
dr.busOrgName, |
|
|
|
dr.brandName, |
|
|
|
dr.busOrgSid, |
|
|
@ -168,6 +170,8 @@ |
|
|
|
ifnull(sum(dr.deliver_subtotal_year), 0) as deliver_subtotal_year, |
|
|
|
ifnull(sum(dr.saleAllToThree), 0) as saleAllToThree |
|
|
|
, |
|
|
|
ifnull(sum(dr.loan_not_counts), 0) as loan_not_counts, |
|
|
|
ifnull(sum(dr.loan_not_amounts), 0) as loan_not_amounts, |
|
|
|
bm.fuelTypeValue, |
|
|
|
bm.emissionStandardValue, |
|
|
|
dr.busOrgName, |
|
|
@ -214,6 +218,7 @@ |
|
|
|
sum(sale_subtotal_day) as sale_subtotal_day, |
|
|
|
sum(arrears_carry_veh_amount) as arrears_carry_veh_amount, |
|
|
|
sum(loan_not_amount) as loan_not_amount, |
|
|
|
sum(loan_not_amounts) as loan_not_amounts, |
|
|
|
sum(buyout_day) as buyout_day, |
|
|
|
useOrgSid, |
|
|
|
sum(saleAllToThree) as saleAllToThree, |
|
|
@ -350,7 +355,9 @@ |
|
|
|
ifnull(sum(dr.saleAllToThree), 0) as saleAllToThree |
|
|
|
, |
|
|
|
bm.fuelTypeValue, |
|
|
|
bm.emissionStandardValue |
|
|
|
bm.emissionStandardValue, |
|
|
|
ifnull(sum(dr.loan_not_counts), 0) as loan_not_counts, |
|
|
|
ifnull(sum(dr.loan_not_amounts), 0) as loan_not_amounts |
|
|
|
from daily_report dr |
|
|
|
left join anrui_base.base_vehicle_model bm on bm.sid = dr.vehModelSid |
|
|
|
left join anrui_base.base_model_config bmc on bmc.sid = dr.vehMConfigSid |
|
|
@ -376,6 +383,7 @@ |
|
|
|
sum(sale_subtotal_day) as sale_subtotal_day, |
|
|
|
sum(arrears_carry_veh_amount) as arrears_carry_veh_amount, |
|
|
|
sum(loan_not_amount) as loan_not_amount, |
|
|
|
sum(loan_not_amounts) as loan_not_amounts, |
|
|
|
sum(buyout_day) as buyout_day, |
|
|
|
sum(saleAllToThree) as saleAllToThree, |
|
|
|
SUM(stock_total) as stock_total, |
|
|
@ -397,6 +405,7 @@ |
|
|
|
sum(sale_subtotal_day) as sale_subtotal_day, |
|
|
|
sum(arrears_carry_veh_amount) as arrears_carry_veh_amount, |
|
|
|
sum(loan_not_amount) as loan_not_amount, |
|
|
|
sum(loan_not_amounts) as loan_not_amounts, |
|
|
|
sum(buyout_day) as buyout_day, |
|
|
|
sum(saleAllToThree) as saleAllToThree, |
|
|
|
SUM(stock_total) as stock_total, |
|
|
@ -463,6 +472,8 @@ |
|
|
|
ifnull(sum(loan_not_count), 0) as loan_not_count, |
|
|
|
ifnull(sum(loan_not_amount), 0) as loan_not_amount, |
|
|
|
ifnull(sum(saleAllToThree), 0) as saleAllToThree, |
|
|
|
ifnull(sum(loan_not_counts), 0) as loan_not_counts, |
|
|
|
ifnull(sum(loan_not_amounts), 0) as loan_not_amounts, |
|
|
|
busOrgSid, |
|
|
|
useOrgSid, |
|
|
|
busOrgName, |
|
|
@ -524,7 +535,9 @@ |
|
|
|
ifnull(sum(arrears_carry_veh_amount), 0) as arrears_carry_veh_amount, |
|
|
|
ifnull(sum(loan_not_count), 0) as loan_not_count, |
|
|
|
ifnull(sum(loan_not_amount), 0) as loan_not_amount, |
|
|
|
ifnull(sum(saleAllToThree), 0) as saleAllToThree |
|
|
|
ifnull(sum(saleAllToThree), 0) as saleAllToThree, |
|
|
|
ifnull(sum(loan_not_counts), 0) as loan_not_counts, |
|
|
|
ifnull(sum(loan_not_amounts), 0) as loan_not_amounts |
|
|
|
from daily_report |
|
|
|
where createTime like concat('%', #{date}, '%') |
|
|
|
group by busOrgSid |
|
|
@ -599,7 +612,9 @@ |
|
|
|
ifnull(sum(arrears_carry_veh_amount), 0) as arrears_carry_veh_amount, |
|
|
|
ifnull(sum(loan_not_count), 0) as loan_not_count, |
|
|
|
ifnull(sum(loan_not_amount), 0) as loan_not_amount, |
|
|
|
ifnull(sum(saleAllToThree), 0) as saleAllToThree |
|
|
|
ifnull(sum(saleAllToThree), 0) as saleAllToThree, |
|
|
|
ifnull(sum(loan_not_counts), 0) as loan_not_counts, |
|
|
|
ifnull(sum(loan_not_amounts), 0) as loan_not_amounts |
|
|
|
from daily_report |
|
|
|
where createTime like concat('%', #{date}, '%') |
|
|
|
and busOrgSid = #{busOrgSid} |
|
|
@ -733,6 +748,8 @@ |
|
|
|
ifnull(sum(dr.deliver_subtotal_year), 0) as deliver_subtotal_year, |
|
|
|
ifnull(sum(dr.saleAllToThree), 0) as saleAllToThree |
|
|
|
, |
|
|
|
ifnull(sum(dr.loan_not_counts), 0) as loan_not_counts, |
|
|
|
ifnull(sum(dr.loan_not_amounts), 0) as loan_not_amounts, |
|
|
|
bm.fuelTypeValue, |
|
|
|
bm.emissionStandardValue, |
|
|
|
bmc.carColor, |
|
|
|