SELECT FROM_UNIXTIME(add_time, '%Y-%m-%d') AS date, sum(price), user_idFROM `ryc_order_course`WHERE add_time != ''GROUP BY date, user_id