fix:退款订单按租户查询

This commit is contained in:
2026-12-03 11:54:41 +08:00
parent 217210c8a7
commit 815f9e311e
9 changed files with 175 additions and 15 deletions
@@ -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>
<!-- 根据订单编码查询退款详情 -->