码迷,mamicode.com
首页 > 其他好文 > 详细

mybatis list条件判断

时间:2018-10-31 12:28:25      阅读:331      评论:0      收藏:0      [点我收藏+]

标签:class   _id   cti   span   col   foreach   close   size   each   

<if test="userIds != null and userIds.size > 0">
    AND user_id in 
  <foreach collection="userIds" item="userId" open="(" separator="," close=")"> #{userId} </foreach> </if>

 

mybatis list条件判断

标签:class   _id   cti   span   col   foreach   close   size   each   

原文地址:https://www.cnblogs.com/kingsonfu/p/9882139.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!