mybatis sql模糊搜索

<if test="creativeName!=null and creativeName!=''">
        and ci.creative_name like "%"#{creativeName}"%"
</if>


<if test="title != null">
     AND  title LIKE CONCAT(CONCAT('%',#{title}),'%')
</if>

猜你喜欢

转载自lanyan-lan.iteye.com/blog/2406476