|
@@ -2673,11 +2673,8 @@
|
|
|
2),
|
|
|
'%') as 'validOrderRate',
|
|
|
round(sum(t2.orderAmount) / 100, 2) as 'orderAmount',
|
|
|
-
|
|
|
- round(sum(case when t2.order_status != 80 then t2.regimental_promotion_amount end) / 100, 2) as
|
|
|
- 'regimentalPromotionAmount',
|
|
|
- round(sum(case when t2.order_status != 80 then t2.total_regimental_settle_amount end) / 100, 2) as
|
|
|
- 'totalRegimentalSettleAmount'
|
|
|
+ round(sum(t2.regimentalPromotionAmount) / 100, 2) as 'regimentalPromotionAmount',
|
|
|
+ round(sum(t2.totalRegimentalSettleAmount) / 100, 2) as 'totalRegimentalSettleAmount'
|
|
|
from promoter_bind_channel_date t1
|
|
|
left join (select promoter_id as 'promoter_id',
|
|
|
stat_date as 'stat_date',
|