src/main/resources/mapper/sales/ReceiptPaymentMapper.xml
@@ -102,6 +102,10 @@ <if test="req.customerName != null and req.customerName !=''"> AND T3.customer_name LIKE CONCAT('%',#{req.customerName},'%') </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> <if test="req.invoiceLedgerId != null"> AND T1.id = #{req.invoiceLedgerId} </if>