mybatise 实现同一字段多模糊查询
Posted 随风逝去,只是凋零
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mybatise 实现同一字段多模糊查询相关的知识,希望对你有一定的参考价值。
mybatise
同一字段多模糊查询
<foreach collection="typeList" index="index" item="item" open="("
separator="or" close=")">
s.type like concat(concat(‘%‘,#{item}),‘%‘)
</foreach>
以上是关于mybatise 实现同一字段多模糊查询的主要内容,如果未能解决你的问题,请参考以下文章
Mybatis 的 foreach 批量模糊 like 查询及批量插入
Mybatis 的 foreach 批量模糊 like 查询及批量插入
Mybatis 的 foreach 批量模糊 like 查询及批量插入
Mybatis 的 foreach 批量模糊 like 查询及批量插入