delete from sys_user_post where user_id=#{userId} delete from sys_user_post where user_id in #{userId} delete from sys_user_post where user_id=#{userId} and project_id=#{projectId} insert into sys_user_post(user_id, post_id,project_id) values (#{item.userId},#{item.postId},#{item.projectId})