当前位置:   article > 正文

mybaits字符串分割数组迭代遍历_mybatis 字符串拆分list

mybatis 字符串拆分list
SELECT *  from XXX
 where 1=1
 <if test="list!= null and list != ''">
   and `status` in
     <foreach collection="list.split(',')" item="item"
              index="index" open="(" close=")" separator=",">
       #{item}
     </foreach>
 </if>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号