|
@@ -211,7 +211,7 @@
|
|
sum(case when t1.send_status = 0 and t1.order_status != 80 then 1 else 0 end) as 'notDeliveryNum',
|
|
sum(case when t1.send_status = 0 and t1.order_status != 80 then 1 else 0 end) as 'notDeliveryNum',
|
|
round(sum(case when t1.send_status = 1 and t1.order_status != 80 then 1 else 0 end) / sum(case when
|
|
round(sum(case when t1.send_status = 1 and t1.order_status != 80 then 1 else 0 end) / sum(case when
|
|
send_status = 1 then 1 else 0 end), 4) as 'deliveryRadio',
|
|
send_status = 1 then 1 else 0 end), 4) as 'deliveryRadio',
|
|
- t1.item_commission_rate as 'itemCommissionRate',
|
|
|
|
|
|
+ t1.promoter_commission_rate as 'itemCommissionRate',
|
|
(case
|
|
(case
|
|
when t3.ccr_value is null or t3.ccr_value = 0
|
|
when t3.ccr_value is null or t3.ccr_value = 0
|
|
then '0%'
|
|
then '0%'
|
|
@@ -233,12 +233,11 @@
|
|
else '-'
|
|
else '-'
|
|
end
|
|
end
|
|
) as 'isPresale',
|
|
) as 'isPresale',
|
|
- round(t3.investment_promotion_rate / 10, 2) as 'investmentPromotionRate'
|
|
|
|
|
|
+ round(t1.regimental_promotion_rate / 10, 2) as 'investmentPromotionRate'
|
|
from kuaishou_supply_chain t1
|
|
from kuaishou_supply_chain t1
|
|
left join kuaishou_item_bind_user t2
|
|
left join kuaishou_item_bind_user t2
|
|
on t1.item_id = t2.item_id
|
|
on t1.item_id = t2.item_id
|
|
- left join kuaishou_activity_open_item_list t3
|
|
|
|
- on t1.item_id = t3.item_id
|
|
|
|
|
|
+
|
|
left join kuaishou_item_list t5
|
|
left join kuaishou_item_list t5
|
|
on t1.item_id = t5.item_id
|
|
on t1.item_id = t5.item_id
|
|
left join (
|
|
left join (
|