|
|
|
@ -39,7 +39,7 @@
|
|
|
|
|
<select id="getSumOrdersAndCustomersDaily" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
|
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,
|
|
|
|
|
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
|
|
|
|
|
FROM statistics_customer_order s
|
|
|
|
|
<where>
|
|
|
|
|