| | |
| | | AND T3.customer_name LIKE CONCAT('%',#{c.customerName},'%') |
| | | </if> |
| | | <if test="c.customerContractNo != null and c.customerContractNo !=''"> |
| | | AND T1.customer_contract_no LIKE CONCAT('%',#{c.customerContractNo},'%') |
| | | AND T3.customer_contract_no LIKE CONCAT('%',#{c.customerContractNo},'%') |
| | | </if> |
| | | <if test="c.projectName != null and c.projectName !=''"> |
| | | AND T3.project_name LIKE CONCAT('%',#{c.projectName},'%') |
| | |
| | | AND T4.project_name LIKE CONCAT('%',#{params.projectName},'%') |
| | | </if> |
| | | <if test="params.customerContractNo != null and params.customerContractNo != '' "> |
| | | AND T1.customer_contract_no LIKE CONCAT('%',#{params.customerContractNo},'%') |
| | | AND T4.customer_contract_no LIKE CONCAT('%',#{params.customerContractNo},'%') |
| | | </if> |
| | | <if test="params.salesContractNo != null and params.salesContractNo != '' "> |
| | | AND T1.sales_contract_no LIKE CONCAT('%',#{params.salesContractNo},'%') |
| | | AND T4.sales_contract_no LIKE CONCAT('%',#{params.salesContractNo},'%') |
| | | </if> |
| | | </where> |
| | | ORDER BY T1.receipt_payment_date DESC |
| | |
| | | BY invoice_ledger_id |
| | | ) T6 ON T1.id = T6.invoice_ledger_id |
| | | </select> |
| | | <select id="bindInvoiceNoRegListByIds" resultType="com.ruoyi.sales.dto.ReceiptPaymentDto"> |
| | | <select id="bindInvoiceNoRegListByIds" resultType="com.ruoyi.sales.dto.ReceiptPaymentExeclDto"> |
| | | SELECT |
| | | T1.id , |
| | | T1.invoice_no , |