|
@@ -189,7 +189,8 @@
|
|
t0.account_id 'accountId',
|
|
t0.account_id 'accountId',
|
|
t0.stat_date 'statDate',
|
|
t0.stat_date 'statDate',
|
|
t3.rejectCount,
|
|
t3.rejectCount,
|
|
- (SELECT COUNT(0) FROM ctop_kuaishou_creative WHERE account_id = t1.account_id) 'creativeCount',
|
|
|
|
|
|
+ (SELECT COUNT(0) FROM ctop_kuaishou_creative WHERE account_id = t1.account_id
|
|
|
|
+ AND photo_id = t0.photo_id) 'creativeCount',
|
|
IFNULL(SUM(t1.charge), 0) 'charge',
|
|
IFNULL(SUM(t1.charge), 0) 'charge',
|
|
IFNULL(SUM(t1.photo_show), 0) 'photoShow',
|
|
IFNULL(SUM(t1.photo_show), 0) 'photoShow',
|
|
IFNULL(SUM(t1.photo_click), 0) 'photoClick',
|
|
IFNULL(SUM(t1.photo_click), 0) 'photoClick',
|