select IFNULL(sum(amount), 0) as totalAmount, count(distribution_order_id) as totalOrderNum, IFNULL(sum(profit), 0) from distributor_profit
select IFNULL(sum(amount), 0) as totalAmount, IFNULL(sum(channel_cost), 0) as totalChannelCost, count(distribution_order_id) as totalOrderNum, IFNULL(sum(profit), 0) from distributor_profit