| | |
| | | T1.sales_contract_no, |
| | | T1.customer_contract_no, |
| | | T1.project_name, |
| | | T1.project_id, |
| | | T1.year, |
| | | T1.signing_unit_id, |
| | | T1.office_id, |
| | | T1.group_leader_id, |
| | | T1.is_invoice, |
| | | T1.bid_price, |
| | | T1.is_bid, |
| | | T1.unbid_reason, |
| | | T1.contract_original_return_date, |
| | | T1.entry_date, |
| | | T1.salesman, |
| | | T1.customer_id, |
| | |
| | | LEFT JOIN sys_user T2 ON T1.entry_person = T2.user_id |
| | | <where> |
| | | <if test="salesLedgerDto.customerName != null and salesLedgerDto.customerName != '' "> |
| | | T1.customer_name LIKE CONCAT('%',#{salesLedgerDto.customerName},'%') |
| | | AND T1.customer_name LIKE CONCAT('%',#{salesLedgerDto.customerName},'%') |
| | | </if> |
| | | <if test="salesLedgerDto.projectId != null"> |
| | | AND T1.project_id = #{salesLedgerDto.projectId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | T1.sales_contract_no, |
| | | T1.customer_contract_no, |
| | | T1.project_name, |
| | | T1.project_id, |
| | | T1.year, |
| | | T1.signing_unit_id, |
| | | T1.office_id, |
| | | T1.group_leader_id, |
| | | T1.is_invoice, |
| | | T1.bid_price, |
| | | T1.is_bid, |
| | | T1.unbid_reason, |
| | | T1.contract_original_return_date, |
| | | T1.entry_date, |
| | | T1.salesman, |
| | | T1.customer_id, |
| | |
| | | <if test="salesLedgerDto.customerName != null and salesLedgerDto.customerName != '' "> |
| | | AND T1.customer_name LIKE CONCAT('%',#{salesLedgerDto.customerName},'%') |
| | | </if> |
| | | <if test="salesLedgerDto.projectId != null"> |
| | | AND T1.project_id = #{salesLedgerDto.projectId} |
| | | </if> |
| | | <if test="salesLedgerDto.customerContractNo != null and salesLedgerDto.customerContractNo !='' "> |
| | | AND T1.customer_contract_no LIKE CONCAT('%',#{salesLedgerDto.customerContractNo},'%') |
| | | </if> |