SELECT count(*) as count,max(o_id),sum(receive_amount) FROM `redpacket_receive` GROUP BY o_id count值就是每个组的数量