Browse Source

抖音增加有效gmv

yumeng 1 year ago
parent
commit
98b17f82ee
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

+ 2 - 1
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -1601,7 +1601,8 @@
         DATE_FORMAT(pay_success_time, '%Y-%m-%d') as 'date',
         count(1) AS 'orderCount',
         IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN 1 ELSE 0 END), 0) AS 'validOrderCount',
-        IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN total_pay_amount ELSE 0 END),0) AS 'orderAmount',
+        IFNULL(SUM( total_pay_amount),0) AS 'orderAmount',
+        IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN total_pay_amount ELSE 0 END),0) AS 'validOrderAmount',
         IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN colonel_estimated_commission ELSE 0 END) * 0.9 ,0) AS
         'regimentalPromotionAmount',
         COUNT(DISTINCT author_short_id) as 'promoterCount'