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

mybatis判断传入list大小

时间:2018-07-09 11:03:04      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:pen   foreach   and   tor   sep   size   get   cti   target   

<if test="tenantIds.size() > 0"> 
     AND A.PROC_TARGET_ID IN 
     <foreach  collection="tenantIds" item="tenantId" open="("  separator=","  close=")"> #{tenantId} </foreach>           
</if>

 

mybatis判断传入list大小

标签:pen   foreach   and   tor   sep   size   get   cti   target   

原文地址:https://www.cnblogs.com/gjack/p/9282237.html

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