|
@@ -1654,7 +1654,7 @@
|
|
|
sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount',
|
|
|
IFNULL(SUM(CASE WHEN sample_voucher_status = 2 THEN total_regimental_settle_amount ELSE 0 END), 0) AS
|
|
|
'voucherTotalRegimentalSettleAmount'
|
|
|
- from ruixuan.canal_management
|
|
|
+ from ruixuan.promoter_item_order_count
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and stat_date >= #{start}
|
|
@@ -1729,7 +1729,7 @@
|
|
|
sum(order_amount) as 'orderAmount',
|
|
|
sum(regimental_promotion_amount) as 'regimentalPromotionAmount',
|
|
|
sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount'
|
|
|
- from ruixuan.canal_management
|
|
|
+ from ruixuan.promoter_item_order_count
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and stat_date >= #{start}
|
|
@@ -1770,7 +1770,7 @@
|
|
|
sum(order_amount) as 'orderAmount',
|
|
|
sum(regimental_promotion_amount) as 'regimentalPromotionAmount',
|
|
|
sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount'
|
|
|
- from ruixuan.canal_management
|
|
|
+ from ruixuan.promoter_item_order_count
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and stat_date >= #{start}
|
|
@@ -1815,7 +1815,7 @@
|
|
|
sum(order_amount) as 'orderAmount',
|
|
|
sum(regimental_promotion_amount) as 'regimentalPromotionAmount',
|
|
|
sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount'
|
|
|
- from ruixuan.canal_management
|
|
|
+ from ruixuan.promoter_item_order_count
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and stat_date >= #{start}
|
|
@@ -1891,7 +1891,7 @@
|
|
|
sum(total_regimental_settle_amount) as 'totalRegimentalSettleAmount',
|
|
|
IFNULL(SUM(CASE WHEN sample_voucher_status = 2 THEN total_regimental_settle_amount ELSE 0 END), 0) AS
|
|
|
'voucherTotalRegimentalSettleAmount'
|
|
|
- from ruixuan.canal_management
|
|
|
+ from ruixuan.promoter_item_order_count
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
|
and stat_date >= #{start}
|
|
@@ -2113,7 +2113,7 @@
|
|
|
round(sum(t2.regimental_promotion_amount) / 100, 2) as 'regimentalPromotionAmount',
|
|
|
round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
|
|
|
from promoter_bind_channel_date t1
|
|
|
- left join canal_management t2
|
|
|
+ left join promoter_item_order_count t2
|
|
|
on t1.promoter_id = t2.promoter_id and t1.stat_date = t2.stat_date
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != ''">
|
|
@@ -2169,7 +2169,7 @@
|
|
|
round(sum(t2.regimental_promotion_amount) / 100, 2) as 'regimentalPromotionAmount',
|
|
|
round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
|
|
|
from promoter_bind_channel_date t1
|
|
|
- left join canal_management t2
|
|
|
+ left join promoter_item_order_count t2
|
|
|
on t1.promoter_id = t2.promoter_id and t1.stat_date = t2.stat_date
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != '' ">
|
|
@@ -2200,7 +2200,7 @@
|
|
|
round(sum(t2.regimental_promotion_amount) / 100, 2) as 'regimentalPromotionAmount',
|
|
|
round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
|
|
|
from promoter_bind_channel_date t1
|
|
|
- left join canal_management t2
|
|
|
+ left join promoter_item_order_count t2
|
|
|
on t1.promoter_id = t2.promoter_id and t1.stat_date = t2.stat_date
|
|
|
where 1 = 1
|
|
|
<if test="start != null and start != '' ">
|
|
@@ -2240,7 +2240,7 @@
|
|
|
round(sum(t2.total_regimental_settle_amount) / 100, 2) as 'totalRegimentalSettleAmount'
|
|
|
from kuaishou_promoter t1
|
|
|
left join(select *
|
|
|
- from canal_management
|
|
|
+ from promoter_item_order_count
|
|
|
where stat_date >= #{bindStartDate}) t2
|
|
|
on t1.promoter_id = t2.promoter_id
|
|
|
where 1 = 1
|