def result_data(productList, productListMAX):
    """
    整合数据 要达到所有可以参与活动的id
    :param productList: 择优完的最优数据
    :param productListMAX: 所有参加活动商品
    :return:
    """
    current_list = []
    cur_set = set()
    productListMAX.insert(0, productList)
    product_1 = productListMAX[0]
    for number_2 in productListMAX:
        if not current_list:
            for not_product in number_2:
                for i in not_product.discountId:
                    cur_set.add(i)
                current_list.append(cur_set)
        else:
            cursor_id = 0
            for product in number_2:
                for i in product.discountId:
                    current_list[cursor_id].add(i)
                cursor_id += 1
            cursor_id = 0
    cursor_id_2 = 0
    for product in product_1:
        for i in current_list[cursor_id_2]:
            product.discountId.add(i)
        cursor_id_2 += 1
    return product_1
