1. 程式人生 > >mybatis判斷傳入list大小

mybatis判斷傳入list大小

spa close class tor ant tar tid pen pro

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

mybatis判斷傳入list大小