根据多条件删除还能这样写

 

 

  <delete id="deleteStaffPosition" parameterType="java.util.List">
        delete from staff_position where (POSITION_ID,STAFF_ID)  in
        <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
            (#{item.POSITION_ID,jdbcType=VARCHAR},#{item.STAFF_ID,jdbcType=VARCHAR})
        </foreach>
    </delete>

posted @ 2019-08-16 14:54  戈博折刀  阅读(143)  评论(0编辑  收藏  举报