def contion(response, bean):
    """
    判断是单品还是组合and两者活动以什么满足是
    :param response:
    :return:
    """
    condition1 = None
    condition2 = None
    if response[-1] == 2:
        condition1 = None
        condition2 = None
        if response[0] != None:
            condition1 = response[0]
        if response[1] != 'qtty' and response[1] != 2:
            condition2 = response[1]
    else:
        condition1 = None
        if response[0] != None:
            condition1 = response[0]
        if bean.target_type.lower() == 'amt_list':
            condition1 = 'amt_list'
        elif bean.target_type.lower() == 'amt_retail':
            condition1 = 'amt_retail'
        elif bean.target_type.lower() == 'amt_receivable':
            condition1 = 'amt_receivable'
    return condition1, condition2
