|
@@ -217,7 +217,7 @@
|
|
</select>
|
|
</select>
|
|
<select id="getOrderTotalRatio" resultType="java.lang.Double">
|
|
<select id="getOrderTotalRatio" resultType="java.lang.Double">
|
|
select
|
|
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 (select count(oid) as 'oid'
|
|
from kuaishou_supply_chain
|
|
from kuaishou_supply_chain
|
|
where 1= 1
|
|
where 1= 1
|
|
@@ -256,7 +256,7 @@
|
|
</select>
|
|
</select>
|
|
<select id="getAmountTotalRatio" resultType="java.lang.Double">
|
|
<select id="getAmountTotalRatio" resultType="java.lang.Double">
|
|
select
|
|
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 (select sum(pay_amount) as 'payAmount'
|
|
from kuaishou_supply_chain
|
|
from kuaishou_supply_chain
|
|
where 1= 1
|
|
where 1= 1
|