输入多个编码并支持模糊搜索,参数是一个list

<if test="wbs != null and wbs.size()>0"> AND (
    <foreach collection="wbs" item="item" index="index" separator="OR ">        注意or后边要有空格
        p.wbs LIKE CONCAT('%', #{item}, '%')
    </foreach>
    )</if>
posted @ 2024-05-15 08:21  了悟  阅读(2)  评论(0编辑  收藏  举报