瀏覽代碼

BytedanceVideoSlogenInfoMapper.xml中模糊查询条件修改

huangxuechao 4 年之前
父節點
當前提交
c1cf5ff8a5

+ 1 - 1
jeecg-boot-bytedance/src/main/java/org/jeecg/modules/bytedance/advertise/mapper/xml/BytedanceVideoSlogenInfoMapper.xml

@@ -27,7 +27,7 @@
         LEFT JOIN ctop_bytedance_report_creative_daily d ON b.id = d.creative_id
         WHERE
             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') &gt;= STR_TO_DATE(#{startTime},'%Y-%m-%d')</if>
             <if test="endTime!=null and endTime!=''">and STR_TO_DATE(d.stat_datetime,'%Y-%m-%d') &lt;= STR_TO_DATE(#{endTime},'%Y-%m-%d')</if>
         AND a.`status` = 1