yumeng 2 年之前
父節點
當前提交
366e5bef30
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

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

@@ -217,7 +217,7 @@
     </select>
     <select id="getOrderTotalRatio" resultType="java.lang.Double">
         select
-        round((t1.oid -t2.oid) / t2.oid , 2) as 'orderTotalRatio'
+        round((t1.oid -t2.oid) / t2.oid , 4) as 'orderTotalRatio'
         from (select count(oid) as 'oid'
         from kuaishou_supply_chain
         where 1= 1
@@ -256,7 +256,7 @@
     </select>
     <select id="getAmountTotalRatio" resultType="java.lang.Double">
         select
-        round((t1.payAmount -t2.payAmount) / t2.payAmount , 2) as 'amountTotalRatio'
+        round((t1.payAmount -t2.payAmount) / t2.payAmount , 4) as 'amountTotalRatio'
         from (select sum(pay_amount) as 'payAmount'
         from kuaishou_supply_chain
         where 1= 1