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

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

@@ -340,7 +340,7 @@
         sum(case when order_status != 80 then 1 else 0 end) as 'validOrderNUm',
         round(sum(case when order_status != 80 then 1 else 0 end) / count(oid),4) as 'validRadio',
         sum(case when send_status = 1 then 1 else 0 end) as 'deliveryNum',
-        round(sum(case when send_status = 1 then 1 else 0 end) / sum(case when order_status != 80 then 1 else 0 end),4) as 'deliveryRadio'
+        round(sum(case when send_status = 1 and order_status != 80 then 1 else 0 end) / sum(case when order_status != 80 then 1 else 0 end),4) as 'deliveryRadio'
         from kuaishou_supply_chain
         where 1= 1
         <if test="start != null and start != ''">