| | |
| | | T1.id , |
| | | T1.invoice_no , |
| | | T1.invoice_total , |
| | | T3.project_name, |
| | | T1.invoice_person , |
| | | T1.invoice_date , |
| | | T1.create_time , |
| | |
| | | T1.receipt_payment_amount, |
| | | T1.receipt_payment_type, |
| | | T1.registrant, |
| | | T1.create_time |
| | | T1.create_time, |
| | | T4.project_name |
| | | FROM |
| | | receipt_payment T1 |
| | | LEFT JOIN |
| | |
| | | T5.customer_name LIKE CONCAT('%',#{params.searchText},'%') |
| | | </if> |
| | | <if test="params.receiptPaymentDateStart != null and params.receiptPaymentDateStart != '' "> |
| | | AND T1.receipt_payment_date >= STR_TO_DATE(#{params.receiptPaymentDateStart},'yyyy-mm-dd') |
| | | AND T1.receipt_payment_date >= date_format(#{params.receiptPaymentDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test="params.receiptPaymentDateEnd != null and params.receiptPaymentDateEnd != '' "> |
| | | AND T1.receipt_payment_date < STR_TO_DATE(#{params.receiptPaymentDateEnd}, '%Y-%m-%d') |
| | | AND T1.receipt_payment_date < date_format(#{params.receiptPaymentDateEnd}, '%Y-%m-%d') |
| | | </if> |
| | | </where> |
| | | ORDER BY T1.receipt_payment_date DESC |