ibatis数组参数的设置

<delete id="delete" parameterClass="java.util.Map" >

<![CDATA[ delete from user where (id in
]]>
  <iterate property="idList" open="(" close=")" conjunction=",">
    #idList[]#
           </iterate>
<![CDATA[
)
]]>

或者

<delete id="delete" parameterClass="java.util.Map" >

<![CDATA[ delete from user where (id in

]]>

  <iterate property="idList" open="(" close=")" conjunction=",">

    #idList[].id#

           </iterate>

<![CDATA[

)

]]>

你可能感兴趣的:(ibatis)