he2802 2 years ago
parent
commit
7054cd1982

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/order/OrderInputMapper.xml

@@ -62,8 +62,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         any_value ( cb.business_name ) business_name,
         (select IFNULL(sum(og.goods_received),0) from order_goods og LEFT JOIN `order` o on o.order_sn = og.order_sn  where o.input_order_sn = u.input_order_sn and og.refund_status = 2) goods_refund,
         IFNULL(sum( og.goods_received ),0) goods_received,
-        IFNULL(sum(u.order_price ),0) order_price,
-        IFNULL(sum(u.pay_price),0) pay_price,
+        IFNULL(sum(og.goods_price ),0) order_price,
+        IFNULL(sum(og.goods_real_price),0) pay_price,
         any_value ( u.create_username ) create_username,
         any_value ( u.create_time ) create_time FROM (SELECT
         oi.*,