fix:退款订单按租户查询
This commit is contained in:
@@ -4,7 +4,14 @@
|
||||
<mapper namespace="com.central.order.mapper.RefundMapper">
|
||||
|
||||
<select id="findList" resultType="com.central.order.model.Refund">
|
||||
select * from orders_refund t ORDER BY id DESC
|
||||
SELECT r.* FROM orders_refund r
|
||||
WHERE EXISTS (
|
||||
SELECT 1 FROM orders o
|
||||
JOIN tourisms t ON t.id = o.tourism_id AND t.is_del = 0
|
||||
WHERE o.order_no = r.order_no AND t.tenant_id IN
|
||||
<foreach collection="tenantIds" item="tenantId" open="(" separator="," close=")">#{tenantId}</foreach>
|
||||
)
|
||||
ORDER BY r.id DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据订单编码查询退款详情 -->
|
||||
|
||||
Reference in New Issue
Block a user