|
@@ -1131,6 +1131,7 @@
|
|
|
<select id="getMonthOrderAmount" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
FROM_UNIXTIME(order_create_time / 1000, '%Y-%m-%d') as 'date',
|
|
|
+ IFNULL(SUM(CASE WHEN order_status != 80 THEN 1 ELSE 0 END), 0) AS 'orderCount',
|
|
|
IFNULL(SUM(order_amount),0) AS 'orderAmount',
|
|
|
IFNULL(SUM(regimental_promotion_amount),0) AS 'totalRegimentalSettleAmount',
|
|
|
IFNULL(promoterCount,0) AS 'promoterCount'
|
|
@@ -1164,9 +1165,9 @@
|
|
|
<select id="getMonthOrderAmountByItems" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
FROM_UNIXTIME(order_create_time / 1000, '%Y-%m-%d') as 'date',
|
|
|
+ IFNULL(SUM(CASE WHEN order_status != 80 THEN 1 ELSE 0 END), 0) AS 'orderCount',
|
|
|
IFNULL(SUM(order_amount),0) AS 'orderAmount',
|
|
|
- IFNULL(SUM(regimental_promotion_amount),0) AS 'totalRegimentalSettleAmount',
|
|
|
- count(oid) AS 'orderCount'
|
|
|
+ IFNULL(SUM(regimental_promotion_amount),0) AS 'totalRegimentalSettleAmount'
|
|
|
FROM kuaishou_supply_chain
|
|
|
WHERE order_status != 80
|
|
|
<if test='itemIds != null and itemIds.size() > 0'>
|