| | |
| | | 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, |
| | |
| | | T1.attachment_materials, |
| | | T1.tenant_id, |
| | | T1.contract_amount, |
| | | T1.net_contract_amount, |
| | | T1.contract_amount AS noInvoiceAmountTotal, |
| | | T1.execution_date, |
| | | T2.nick_name AS entry_person_name, |
| | |
| | | <where> |
| | | <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},'%') |
| | |
| | | and c.customer_name like concat('%',#{customerName},'%') |
| | | </if> |
| | | </where> |
| | | order by sl.create_time desc |
| | | order by sl.entry_date desc |
| | | </select> |
| | | |
| | | </mapper> |