def QA_SU_save_deal(dealist, client=DATABASE):
    """存储order_handler的deal_status

    Arguments:
        dealist {[dataframe]} -- [description]

    Keyword Arguments:
        client {[type]} -- [description] (default: {DATABASE})
    """

    if isinstance(dealist, pd.DataFrame):
        dealist = QA_util_to_json_from_pandas(
            dealist.assign(date=QA_util_get_order_day()).reset_index())
        collection = client.deal

        collection.create_index([('account_cookie', ASCENDING),
                                 ('trade_id', ASCENDING)],
                                unique=True)
        try:
            collection.insert_many(dealist, ordered=False)
        except Exception as e:

            pass