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)) > 0 </if> <if test="req.timeOut != null and req.timeOut"> AND T1.invoice_date < 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