SELECT *,SUM(a.order_price) as totalPrice,COUNT(a.id) as orderNumFROM consult bLEFT JOIN orderinfo a on a.consult_id = b.idWHERE a.create_time >='2022-02-28' AND a.create_time <='2022-02-29'GROUP BY b.idORDER BY totalPrice ASC