|
@@ -27,7 +27,7 @@
|
|
LEFT JOIN ctop_bytedance_report_creative_daily d ON b.id = d.creative_id
|
|
LEFT JOIN ctop_bytedance_report_creative_daily d ON b.id = d.creative_id
|
|
WHERE
|
|
WHERE
|
|
b.account_id = #{accountId}
|
|
b.account_id = #{accountId}
|
|
- <if test="keyWord!=null and keyWord!=''">and a.slogan like '%'+ #{keyWord} +'%'</if>
|
|
|
|
|
|
+ <if test="keyWord!=null and keyWord!=''">and a.slogan like concat('%',#{keyWord},'%')</if>
|
|
<if test="startTime!=null and startTime!=''">and STR_TO_DATE(d.stat_datetime,'%Y-%m-%d') >= STR_TO_DATE(#{startTime},'%Y-%m-%d')</if>
|
|
<if test="startTime!=null and startTime!=''">and STR_TO_DATE(d.stat_datetime,'%Y-%m-%d') >= STR_TO_DATE(#{startTime},'%Y-%m-%d')</if>
|
|
<if test="endTime!=null and endTime!=''">and STR_TO_DATE(d.stat_datetime,'%Y-%m-%d') <= STR_TO_DATE(#{endTime},'%Y-%m-%d')</if>
|
|
<if test="endTime!=null and endTime!=''">and STR_TO_DATE(d.stat_datetime,'%Y-%m-%d') <= STR_TO_DATE(#{endTime},'%Y-%m-%d')</if>
|
|
AND a.`status` = 1
|
|
AND a.`status` = 1
|