DROP TEMPORARY TABLE IF EXISTS tmp_record_t2;CREATE TEMPORARY TABLE tmp_record_t2(consumption_id INT(11) UNSIGNED NOT NULL,-- 店铺IDcreated_org INT,return_money DECIMAL(11,2),-- 退菜金额cash DECIMAL(11,2),-- 现金member_card DECIMAL(11,2),-- 会员卡bank_card DECI…