接收数组 运用foreach语法 进行批量条件修改
<!--userIds为Mapper传入的数组参数名-->
<delete id="deleteUser">
update user set del_flag = 2 where user_id in (
<foreach collection ="userIds" item="userId" index= "index" separator =",">
#{userId}
</foreach>
)
</delete>