|
@@ -22,7 +22,7 @@
|
|
|
#{video.programStatus},
|
|
|
#{video.photoId},
|
|
|
#{video.photoName},
|
|
|
- #{video.materialType},
|
|
|
+ #{video.materialType},
|
|
|
#{video.channelType},
|
|
|
#{video.statDate},
|
|
|
#{video.signature}
|
|
@@ -46,8 +46,12 @@
|
|
|
<if test="statDate!=null">
|
|
|
AND stat_date = #{statDate}
|
|
|
</if>
|
|
|
- <if test="keyword != null and keyword != '' ">
|
|
|
- AND photo_name LIKE concat(#{keyword},'%')
|
|
|
+ <if test="keyword != null and keyword.size>0 ">
|
|
|
+ AND
|
|
|
+ <foreach item="item" index="index" collection="keyword"
|
|
|
+ open="(" separator="OR" close=")">
|
|
|
+ photo_name LIKE concat(#{keyword},'%')
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
LIMIT #{videoCnt}
|
|
|
</select>
|
|
@@ -63,8 +67,12 @@
|
|
|
AND stat_date < #{statDate}
|
|
|
AND stat_date >= DATE_SUB(#{statDate},INTERVAL 7 day)
|
|
|
</if>
|
|
|
- <if test="keyword != null and keyword != '' ">
|
|
|
- AND photo_name LIKE concat(#{keyword},'%')
|
|
|
+ <if test="keyword != null and keyword.size>0 ">
|
|
|
+ AND
|
|
|
+ <foreach item="item" index="index" collection="keyword"
|
|
|
+ open="(" separator="OR" close=")">
|
|
|
+ photo_name LIKE concat(#{keyword},'%')
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
LIMIT #{videoCnt}
|
|
|
</select>
|
|
@@ -94,8 +102,12 @@
|
|
|
<if test="channelType!=null and channelType!=2">
|
|
|
and channel_type = #{channelType}
|
|
|
</if>
|
|
|
- <if test="keyword != null and keyword != '' ">
|
|
|
- and material_name like concat(#{keyword},'%')
|
|
|
+ <if test="keyword != null and keyword.size>0 ">
|
|
|
+ AND
|
|
|
+ <foreach item="item" index="index" collection="keyword"
|
|
|
+ open="(" separator="OR" close=")">
|
|
|
+ photo_name LIKE concat(#{keyword},'%')
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
group by signature
|
|
|
ORDER BY 7day_cost DESC
|
|
@@ -125,8 +137,12 @@
|
|
|
<if test="channelType!=null and channelType!=2">
|
|
|
and channel_type = #{channelType}
|
|
|
</if>
|
|
|
- <if test="keyword != null and keyword != '' ">
|
|
|
- and material_name like concat(#{keyword},'%')
|
|
|
+ <if test="keyword != null and keyword.size>0 ">
|
|
|
+ AND
|
|
|
+ <foreach item="item" index="index" collection="keyword"
|
|
|
+ open="(" separator="OR" close=")">
|
|
|
+ photo_name LIKE concat(#{keyword},'%')
|
|
|
+ </foreach>
|
|
|
</if>
|
|
|
group by signature
|
|
|
ORDER BY sum_cost DESC
|
|
@@ -179,14 +195,14 @@
|
|
|
SELECT photo_id
|
|
|
FROM ctop_ai_kuaishou_account_auto_video
|
|
|
WHERE account_id = #{accountId}
|
|
|
- AND stat_date = #{statDate}
|
|
|
+ AND stat_date = #{statDate}
|
|
|
<if test="details!=null">
|
|
|
AND photo_id in
|
|
|
<foreach item="item" collection="details"
|
|
|
open="(" separator="," close=")">
|
|
|
#{item.photo_id}
|
|
|
</foreach>
|
|
|
- </if>
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|