delete from pension_organization_user where user_id in #{userId} UPDATE pension_organization_user SET organization_id = #{orgId} WHERE user_id = #{userId}