diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/reportforms/OrgConsumerMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/reportforms/OrgConsumerMapper.xml index 62f1a172..faa4f1c7 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/reportforms/OrgConsumerMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/reportforms/OrgConsumerMapper.xml @@ -863,7 +863,7 @@ SELECT a.order_id, a.cust_id, a.payable_amount, a.real_amount, a.pay_time, a.canteen_id, NULL AS mch_sn FROM report_order_info a - WHERE a.pay_time >= #{vo.startTime} AND a.pay_time <= #{vo.endTime} + WHERE a.order_refund_state='1' and a.pay_time >= #{vo.startTime} AND a.pay_time <= #{vo.endTime} UNION ALL @@ -920,7 +920,7 @@ SELECT a.order_id, a.cust_id, a.payable_amount, a.real_amount, a.pay_time, a.canteen_id, NULL AS mch_sn FROM report_order_info a - WHERE a.pay_time >= #{startTime} AND a.pay_time <= #{endTime} + WHERE a.order_refund_state='1' and a.pay_time >= #{startTime} AND a.pay_time <= #{endTime} UNION ALL @@ -983,7 +983,7 @@ SELECT order_id, cust_id, payable_amount, real_amount, pay_time, canteen_id, NULL AS mch_sn FROM report_order_info - WHERE pay_time >= #{startTime} AND pay_time <= #{endTime} + WHERE order_refund_state='1' and pay_time >= #{startTime} AND pay_time <= #{endTime} UNION ALL SELECT flow_id AS order_id,