소스 검색

抖音增加有效gmv

yumeng 2 년 전
부모
커밋
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',
         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'