|
@@ -172,7 +172,7 @@
|
|
|
|
|
|
<select id="queryCreativeByPhotoIdTotal" resultType="java.lang.Long">
|
|
|
SELECT
|
|
|
- IFNULL(COUNT(1),0)
|
|
|
+ IFNULL(COUNT(1),0)
|
|
|
FROM ctop_kuaishou_creative t1
|
|
|
WHERE t1.photo_id in
|
|
|
<foreach collection="photoIds" item="item" separator=","
|
|
@@ -180,7 +180,7 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
<if test="accountId!=null">
|
|
|
- and t1.account_id = #{accountId}
|
|
|
+ and t1.account_id = #{accountId}
|
|
|
</if>
|
|
|
and t1.status = 42
|
|
|
</select>
|
|
@@ -202,13 +202,13 @@
|
|
|
|
|
|
<select id="queryCreativeByPhotoIds" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
- IFNULL(t2.auth_name,'') 'authName',
|
|
|
- IFNULL(t1.account_id,'') 'accountId',
|
|
|
- IFNULL(t1.creative_id,'') 'creativeId',
|
|
|
- IFNULL(t1.creative_name,'') 'creativeName',
|
|
|
- IFNULL(t1.cover_url,'') 'coverUrl',
|
|
|
- IFNULL(t1.description,'') 'description',
|
|
|
- IFNULL(t1.review_detail,'') 'reviewDetail'
|
|
|
+ IFNULL(t2.auth_name,'') 'authName',
|
|
|
+ IFNULL(t1.account_id,'') 'accountId',
|
|
|
+ IFNULL(t1.creative_id,'') 'creativeId',
|
|
|
+ IFNULL(t1.creative_name,'') 'creativeName',
|
|
|
+ IFNULL(t1.cover_url,'') 'coverUrl',
|
|
|
+ IFNULL(t1.description,'') 'description',
|
|
|
+ IFNULL(t1.review_detail,'') 'reviewDetail'
|
|
|
FROM ctop_kuaishou_creative t1
|
|
|
LEFT JOIN ctop_user_allocation t2 ON t1.account_id = t2.account_id
|
|
|
WHERE t1.photo_id in
|
|
@@ -217,8 +217,12 @@
|
|
|
#{item}
|
|
|
</foreach>
|
|
|
<if test="accountId!=null">
|
|
|
- and t1.account_id = #{accountId}
|
|
|
+ and t1.account_id = #{accountId}
|
|
|
</if>
|
|
|
and t1.status = 42
|
|
|
</select>
|
|
|
+ <select id="getCreativeList" resultType="java.lang.Long">
|
|
|
+ select creative_id from ctop_kuaishou_creative where account_id = #{accountId}
|
|
|
+ and unit_id = #{unitId}
|
|
|
+ </select>
|
|
|
</mapper>
|