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