yumeng před 2 roky
rodič
revize
d97a4042af

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

@@ -990,20 +990,23 @@
         ELSE 0
         END
         ) AS 'invalidOrderNUm',
-        sum(
+
+       round( sum(
         CASE
         WHEN t2.order_status != 80 THEN t2.pay_amount
         ELSE 0
         END
-        ) AS 'payAmount',
+        )/ 100,2 )AS 'payAmount',
         t2.regimental_promotion_rate AS 'regimentalPromotionRate',
+        round(
         sum(
         CASE
         WHEN t2.order_status != 80 THEN t2.regimental_promotion_amount
         ELSE 0
         END
-        ) AS 'regimentalPromotionAmount',
-        sum(case when t2.order_status != 80 then t2.total_regimental_settle_amount else 0 end) as
+        ) / 100 , 2)AS 'regimentalPromotionAmount',
+        round(
+        sum(case when t2.order_status != 80 then t2.total_regimental_settle_amount else 0 end) / 100,2) as
         'totalRegimentalSettleAmount',
         concat(round(t2.item_commission_rate / 10),'%') as 'itemCommissionRate'
         FROM