IBatisNet In 参数配置方法

 

配额制方法:

<isNotEmpty prepend="AND" property="resIds">
res_id in
<iterate property="resIdsLong" open="(" close=")" conjunction="," >
#resIdsLong[]#
</iterate>
</isNotEmpty>

 

效果如:(也是参数的方式)

and res_id in (#resIdsLong[0]#,#resIdsLong[1]# ,#resIdsLong[2]#,.... )