|
|
@@ -42,7 +42,6 @@
|
|
|
LEFT JOIN thirtpart.ly_official_accounts t2 ON t0.official_account_id = t2.id
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
- DATE_FORMAT(t.activation_time, '%Y%m%d') AS 'date',
|
|
|
t0.id,
|
|
|
t0.official_account_id,
|
|
|
t0.responsibility_person_id,
|
|
|
@@ -101,9 +100,9 @@
|
|
|
t3.pay_users,
|
|
|
t3.pay_counts,
|
|
|
order_counts,
|
|
|
- count(distinct case when SUBSTR(register_time,1,10) = SUBSTR(event_time,1,10) then uid end) 'new_iaa_users',
|
|
|
- sum(if(SUBSTR(register_time,1,10) = SUBSTR(event_time,1,10) ,1,0)) 'new_iaa_counts',
|
|
|
- IFNULL(ROUND(sum(if(SUBSTR(register_time,1,10) = SUBSTR(event_time,1,10) ,cost/100000,0)),2),0.00) 'new_iaa_amount',
|
|
|
+ count(distinct case when SUBSTR(dying_time,1,10) = SUBSTR(event_time,1,10) then uid end) 'new_iaa_users',
|
|
|
+ sum(if(SUBSTR(dying_time,1,10) = SUBSTR(event_time,1,10) ,1,0)) 'new_iaa_counts',
|
|
|
+ IFNULL(ROUND(sum(if(SUBSTR(dying_time,1,10) = SUBSTR(event_time,1,10) ,cost/100000,0)),2),0.00) 'new_iaa_amount',
|
|
|
count(distinct uid) 'iaa_users',
|
|
|
sum(1) 'iaa_counts',
|
|
|
IFNULL(ROUND(sum(cost/100000),2),0.00) 'iaa_amount'
|
|
|
@@ -113,8 +112,7 @@
|
|
|
LEFT JOIN thirtpart.ly_official_accounts t2 ON t0.official_account_id = t2.id
|
|
|
LEFT JOIN (
|
|
|
SELECT
|
|
|
- DATE_FORMAT(t.activation_time, '%Y%m%d') AS 'date',
|
|
|
- t0.id,
|
|
|
+ t0.id,
|
|
|
t0.official_account_id,
|
|
|
t0.responsibility_person_id,
|
|
|
count(DISTINCT t.uid) AS 'new_users'
|