浏览代码

抖音增加有效gmv

yumeng 1 年之前
父节点
当前提交
98b17f82ee
共有 1 个文件被更改,包括 2 次插入1 次删除
  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',
         DATE_FORMAT(pay_success_time, '%Y-%m-%d') as 'date',
         count(1) AS 'orderCount',
         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 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
         IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN colonel_estimated_commission ELSE 0 END) * 0.9 ,0) AS
         'regimentalPromotionAmount',
         'regimentalPromotionAmount',
         COUNT(DISTINCT author_short_id) as 'promoterCount'
         COUNT(DISTINCT author_short_id) as 'promoterCount'