|
@@ -205,7 +205,9 @@
|
|
|
LEFT JOIN ctop_kuaishou_report_daily_material t1 ON t0.account_id = t1.account_id
|
|
|
LEFT JOIN ctop_user_allocation t2 ON t0.account_id = t2.account_id
|
|
|
LEFT JOIN (
|
|
|
- SELECT IFNULL(COUNT(1),0) 'rejectCount',account_id FROM ctop_kuaishou_creative WHERE `status` = 42 GROUP BY account_id
|
|
|
+ SELECT IFNULL(COUNT(1),0) 'rejectCount',account_id FROM ctop_kuaishou_creative WHERE `status` = 42
|
|
|
+ and account_id IN (SELECT account_id FROM ctop_user_allocation where project_id = #{projectId})
|
|
|
+ GROUP BY account_id
|
|
|
) t3 ON t0.account_id = t3.account_id
|
|
|
WHERE t2.project_id = #{projectId}
|
|
|
AND t0.signature = #{signature}
|