mybatis 中foreach传入的是对像List时怎么办
1个回答
展开全部
<delete id = "delRightsByID" parameterType = "java.util.List">
<![CDATA[
delete from T_RIGHT where RIGHT_ID in
]]>
<foreach collection="list" item ="right" open="(" separator="," close=")">
#{right.rightId, jdbcType=DECIMAL}
</foreach>
</delete>
<![CDATA[
delete from T_RIGHT where RIGHT_ID in
]]>
<foreach collection="list" item ="right" open="(" separator="," close=")">
#{right.rightId, jdbcType=DECIMAL}
</foreach>
</delete>
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询