mybatis 根據id批量刪除的兩種方法

第一種,直接傳遞給mapper.xml  集合/數組形式html <delete id="deleteByLogic" parameterType = "java.util.List"> delete from user where 1>2     or id in <foreach collection="list" item="item" open="("
相關文章
相關標籤/搜索