maven
6 天以前 e5e8464e8a6385683187b3459f8bfb5f9682a8ae
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