maven
2026-01-21 ea7c1df32b0c8830173ba01a647706a5ded10ce8
src/main/resources/mapper/sales/ReceiptPaymentMapper.xml
@@ -120,6 +120,10 @@
            <if test="req.status != null and req.status">
                and (T1.invoice_total - IFNULL(T6.receipt_payment_amount_total, 0)) &gt; 0
            </if>
            <if test="req.timeOut != null and req.timeOut">
                AND T1.invoice_date &lt; DATE_SUB(CURDATE(), INTERVAL 15 DAY)
                AND (T1.invoice_total - IFNULL(T6.receipt_payment_amount_total ,0)) > 0
            </if>
        </where>
        ORDER BY IFNULL(T2.create_time, T1.create_time) DESC