批量模糊查询 语法 。参数为list
<if test="skuList != null and skuList.length > 1">
and
<foreach collection="skuList" item="sku" index="index" open="(" close=")" separator="or">
t.sku LIKE concat('%',#{sku},'%')
</foreach>
</if>
关键地方标注了,没什么特别的。先支持批量,然后循环里边模糊,注意分隔符用or
    下班记得打卡
                    
                
                
            
        
浙公网安备 33010602011771号