jsk 异地查询订单去掉已退单面额
This commit is contained in:
parent
a7e125ab1a
commit
5f07349ff0
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue