This commit is contained in:
jsowell
2026-05-27 18:31:34 +08:00
parent 8168b3686a
commit 429bc73c3c
4 changed files with 278 additions and 12 deletions

View File

@@ -756,7 +756,7 @@
GREATEST(0, IFNULL(due_refund_amount, 0) - IFNULL(refund_amount, 0)) AS refundPayAmount
FROM adapay_unsplit_record
WHERE
(IFNULL(pay_amount, 0) - IFNULL(due_refund_amount, 0) > IFNULL(confirmed_split_amount, 0))
OR (IFNULL(due_refund_amount, 0) > IFNULL(refund_amount, 0))
(refund_flag IS NULL OR refund_flag != 'SUCCESS')
OR (split_flag IS NULL OR split_flag != 'SUCCESS')
</select>
</mapper>