|
@@ -285,13 +285,13 @@
|
|
|
AND media_id =2
|
|
|
GROUP BY user_id) t) as 'totle'
|
|
|
FROM (
|
|
|
- SELECT sum (charge) as 'charge', t2.user_id 'userId' FROM ctop_etl_kuaishou_report_account_daily t1
|
|
|
+ SELECT sum(charge) as 'charge', t2.user_id 'userId' FROM ctop_etl_kuaishou_report_account_daily t1
|
|
|
LEFT JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
|
|
|
WHERE t1.stat_date >= #{mStartDate}
|
|
|
AND t1.stat_date <= #{today}
|
|
|
AND media_id =2
|
|
|
GROUP BY user_id
|
|
|
- ORDER BY SUM (charge) DESC
|
|
|
+ ORDER BY SUM(charge) DESC
|
|
|
) t, (select @rownum := 0) a
|
|
|
) tt
|
|
|
WHERE tt.userId = #{userId}
|