Ver código fonte

素材池,素材关联创意数取值调整

zhaoxian 3 anos atrás
pai
commit
3c9f33a945

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaishouProjectVideoGetMapper.xml

@@ -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',