eason.qian 7 years ago
parent 6e9c1bbc4c
commit d1ec5620d5

@ -39,7 +39,7 @@
<select id="getSumOrdersAndCustomersDaily" resultType="com.alibaba.fastjson.JSONObject"> <select id="getSumOrdersAndCustomersDaily" resultType="com.alibaba.fastjson.JSONObject">
SELECT sum(s.customers) customers,sum(s.orders) orders,sum(s.new_customers) new_customers, SELECT sum(s.customers) customers,sum(s.orders) orders,sum(s.new_customers) new_customers,
sum(s.old_customers) old_customers,sum(s.total) total, sum(s.total)/sum(s.customers) single_amount, sum(s.old_customers) old_customers,sum(s.total) total, sum(s.total)/sum(s.customers) single_amount,
ifnull(sum(s.refund_amount),0) refund_amount,ifnull(sum(s.refund_orders),0) refund_orders, sum(s.refund_amount) refund_amount,sum(s.refund_orders) refund_orders,
date_format(s.date,'%d/%m/%Y') trade_date date_format(s.date,'%d/%m/%Y') trade_date
FROM statistics_customer_order s FROM statistics_customer_order s
<where> <where>

Loading…
Cancel
Save