Fix: Do not retrieve SAV refunds for orders who haven't been invoiced yet in the first place

pull/6221/head
Qiuyi LI 2023-08-08 11:17:22 +02:00
parent 2fa8cf0a2e
commit 6c8d0c06b7
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@
JOIN platform_order po ON sr.platform_order_id = po.id
JOIN shop s ON po.shop_id = s.id
WHERE invoice_number IS NULL
AND sr.fret_fee IS NOT NULL
AND s.owner_id = #{clientId}
</select>
<select id="fetchRefundsWhere" resultType="org.jeecg.modules.business.entity.SavRefundWithDetail">