collection="tkflid" :map传递的参数key
<if test="tkflid != null and tkflid !=''">AND ST.TKFL_ID IN
<foreach item="tkid" collection="tkflid" open="(" separator="," close=")">#{tkid,jdbcType=VARCHAR}</foreach>
</if>
<if test="tkflid != null and tkflid !=''">AND ST.TKFL_ID IN
<foreach item="tkid" collection="tkflid" open="(" separator="," close=")">#{tkid,jdbcType=VARCHAR}</foreach>
</if>

本文探讨了MyBatis中一种特定的参数传递方式:通过集合进行传递,并深入解析了其内部实现机制,特别是如何使用foreach标签来遍历集合。
852

被折叠的 条评论
为什么被折叠?



