Browse Source

fix 分班

he2802 3 years ago
parent
commit
7a550b98f7

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

@@ -54,9 +54,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         any_value ( cpt.project_name ) project_name,
         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,
-        sum( og.goods_received ) goods_received,
-        sum(u.order_price ) order_price,
-        sum(u.pay_price) pay_price,
+        IFNULL(sum( og.goods_received ),0) goods_received,
+        IFNULL(sum(u.order_price ),0) order_price,
+        IFNULL(sum(u.pay_price),0) pay_price,
         any_value ( u.create_username ) create_username,
         any_value ( u.create_time ) create_time FROM (SELECT
         oi.*,