mybatis 传入多个参数

List<BoReview> check(@Param("flows") String[] flows, @Param("id") long id);
<select id="check" resultMap="BaseResultMap" >
  select * from
      (
          select
            <include refid="Base_Column_List" />
          from abc
          where 1=2
          <foreach item="item" index="index" collection="flows" >
            or FIELD_VALUE like '%'||#{item}||'%'
          </foreach>
      )
  WHERE ID != #{id} 
</select>

猜你喜欢

转载自www.cnblogs.com/liuboyuan/p/9816074.html