Browse Source

首页调整

yumeng 1 year ago
parent
commit
2240e2a092
1 changed files with 4 additions and 5 deletions
  1. 4 5
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

+ 4 - 5
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -1357,18 +1357,17 @@
         IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN 1 ELSE 0 END), 0) AS 'validOrderNUm',
         IFNULL(SUM(total_pay_amount), 0) AS 'orderAmount',
         IFNULL(SUM(CASE WHEN flow_point != 'REFUND' THEN total_pay_amount ELSE 0 END), 0) AS 'baseAmount',
-        sum(CASE
+        IFNULL( sum(CASE
         WHEN flow_point != 'REFUND' and colonel_type != 2
         THEN colonel_estimated_commission
         WHEN flow_point != 'REFUND' and colonel_type = 2
         then second_estimated_commission
-        ELSE 0 END) * 0.9 / 100 AS
+        ELSE 0 END) * 0.9,0) AS
         'regimentalPromotionAmount',
-        sum(CASE
+        IFNULL( sum(CASE
         WHEN flow_point != 'REFUND' and colonel_type != 2
         THEN second_estimated_commission
-        ELSE 0 END) /
-        100 AS 'secondEstimatedCommission'
+        ELSE 0 END) ,0) AS 'secondEstimatedCommission'
         FROM bytedance_order_list
         WHERE pay_success_time >= #{startDate}
         AND pay_success_time <= #{endDate}