|
@@ -1601,7 +1601,8 @@
|
|
|
DATE_FORMAT(pay_success_time, '%Y-%m-%d') as 'date',
|
|
|
count(1) AS 'orderCount',
|
|
|
IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN 1 ELSE 0 END), 0) AS 'validOrderCount',
|
|
|
- IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN total_pay_amount ELSE 0 END),0) AS 'orderAmount',
|
|
|
+ IFNULL(SUM( total_pay_amount),0) AS 'orderAmount',
|
|
|
+ IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN total_pay_amount ELSE 0 END),0) AS 'validOrderAmount',
|
|
|
IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN colonel_estimated_commission ELSE 0 END) * 0.9 ,0) AS
|
|
|
'regimentalPromotionAmount',
|
|
|
COUNT(DISTINCT author_short_id) as 'promoterCount'
|