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]#,.... )

原文地址:https://www.cnblogs.com/zhanxp/p/1778916.html