|
@@ -437,7 +437,10 @@
|
|
ctop_etl_kuaishou_report_account_hourly t1
|
|
ctop_etl_kuaishou_report_account_hourly t1
|
|
LEFT JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
|
|
LEFT JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
|
|
LEFT JOIN(
|
|
LEFT JOIN(
|
|
- SELECT user_id,COUNT(1) 'accountCount' FROM ctop_user_allocation WHERE
|
|
|
|
|
|
+ SELECT user_id,COUNT(1) 'accountCount' FROM ctop_user_allocation i1
|
|
|
|
+ INNER JOIN ctop_etl_kuaishou_report_account_hourly i2 ON i1.account_id = i2.account_id
|
|
|
|
+ AND i2.stat_date = #{today}
|
|
|
|
+ WHERE
|
|
account_status = 0 AND user_id IN
|
|
account_status = 0 AND user_id IN
|
|
<foreach item="id" index="index" collection="userIds"
|
|
<foreach item="id" index="index" collection="userIds"
|
|
open="(" separator="," close=")">
|
|
open="(" separator="," close=")">
|