Browse Source

V1.1.4 自动投放 修改 历史top素材sql

yumeng 4 years ago
parent
commit
d39684954a

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

@@ -82,7 +82,7 @@
 
     <select id="getHistoryTopVideoList" resultType="com.alibaba.fastjson.JSONObject">
         select
-        t1.photo_id,
+        t2.photo_id,
         t1.signature,
         t1.charge
         FROM
@@ -115,6 +115,15 @@
         sum(charge) DESC
         LIMIT #{num}
         ) t1
+        LEFT JOIN (
+        SELECT
+        photo_id,
+        signature
+        FROM
+        ctop_kuaishou_video_get
+        WHERE
+        account_id = #{accountId}
+        ) t2 ON t1.signature = t2.signature
         ORDER BY t1.charge DESC
     </select>
 </mapper>