String sql = " select count(case when oi.pay_status=1 then 1 else null end) buyTotal from order_info oi" 统计购买量