| | |
| | | T3.customer_name, |
| | | T4.invoiceFileName, |
| | | T5.product_category, |
| | | T5.specification_model, |
| | | IFNULL(T6.receipt_payment_amount_total ,0) AS receipt_payment_amount_total, |
| | | (T1.invoice_total - IFNULL(T6.receipt_payment_amount_total ,0)) AS no_receipt_amount |
| | | FROM invoice_ledger T1 |
| | |
| | | <if test="req.invoiceDateEnd != null and req.invoiceDateEnd != '' "> |
| | | AND T1.invoice_date <= DATE_FORMAT(#{req.invoiceDateEnd},'%Y-%m-%d') |
| | | </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 T2.create_time DESC |
| | | </select> |