mybatis判断传入list大小

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

 

posted @ 2016-12-21 15:31  乱码出黑客  阅读(23601)  评论(0编辑  收藏  举报