|
@@ -1352,6 +1352,7 @@
|
|
|
<select id="selectOrderInfo" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
COUNT(DISTINCT promoter_id) as 'promoterCount',
|
|
|
+ COUNT(DISTINCT item_id) as 'itemCount',
|
|
|
COUNT(oid) as 'allNumber',
|
|
|
IFNULL(SUM(CASE WHEN order_status != 80 THEN 1 ELSE 0 END), 0) AS 'validOrderNUm',
|
|
|
IFNULL(SUM(order_amount), 0) AS 'orderAmount',
|
|
@@ -1373,6 +1374,7 @@
|
|
|
<select id="selectOrderInfoBytedance" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
COUNT(DISTINCT author_short_id) as 'promoterCount',
|
|
|
+ COUNT(DISTINCT product_id) as 'itemCount',
|
|
|
COUNT(order_id) as 'allNumber',
|
|
|
IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN 1 ELSE 0 END), 0) AS 'validOrderNUm',
|
|
|
IFNULL(SUM(total_pay_amount), 0) AS 'orderAmount',
|
|
@@ -1406,6 +1408,7 @@
|
|
|
FROM (
|
|
|
SELECT
|
|
|
COUNT(DISTINCT promoter_id) as 'promoterCount',
|
|
|
+ COUNT(DISTINCT item_id) as 'itemCount',
|
|
|
COUNT(oid) as 'allNumber',
|
|
|
IFNULL(SUM(CASE WHEN order_status != 80 THEN 1 ELSE 0 END), 0) AS 'validOrderNUm',
|
|
|
IFNULL(SUM(order_amount), 0) AS 'orderAmount',
|
|
@@ -1429,6 +1432,7 @@
|
|
|
<select id="selectOrderInfoByItemIdsBytedance" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT
|
|
|
COUNT(DISTINCT author_short_id) as 'promoterCount',
|
|
|
+ COUNT(DISTINCT product_id) as 'itemCount',
|
|
|
COUNT(order_id) as 'allNumber',
|
|
|
IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN 1 ELSE 0 END), 0) AS 'validOrderNUm',
|
|
|
IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN total_pay_amount ELSE 0 END)/100, 0) AS 'orderAmount',
|