Browse Source

店铺调整

yumeng 11 months ago
parent
commit
441f126e51
1 changed files with 6 additions and 1 deletions
  1. 6 1
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

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

@@ -3963,7 +3963,12 @@
         when t1.send_status = 1
         then 1
         else 0 end) * 100,
-        2) as 'deliveryRadio'
+        2) as 'deliveryRadio',
+        round(sum(case
+        when t1.order_status != 80 then t1.regimental_promotion_amount
+        else 0 end) / 100, 2 )as 'regimentalPromotionAmount',
+        round(sum(case when t1.order_status != 80 then t1.total_regimental_settle_amount else 0 end) / 100 , 2) as
+        'totalRegimentalSettleAmount'
         from kuaishou_supply_chain t1 LEFT JOIN kuaishou_activity_open_item_list t2 on t1.item_id = t2.item_id
         where 1 = 1
         <if test="start != null and start != ''">