From e092cf71d1b333e866a927941b918f6c8fb70154 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期一, 27 四月 2026 10:37:47 +0800
Subject: [PATCH] feat(sales): 添加供应商名称或合同号搜索功能

---
 src/main/resources/mapper/sales/SalesLedgerProductMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml b/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
index 2ce5fb8..2596f58 100644
--- a/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
+++ b/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
@@ -78,8 +78,8 @@
         left join purchase_ledger sl on slp.sales_ledger_id = sl.id
         <where>
             slp.type = 2
-            <if test="req.purchaseContractNumber != null and req.purchaseContractNumber != '' ">
-                AND sl.purchase_contract_number like concat('%',#{req.purchaseContractNumber},'%')
+            <if test="req.supplierNameOrContractNo != null and req.supplierNameOrContractNo != '' ">
+                AND sl.purchase_contract_number like concat('%',#{req.supplierNameOrContractNo},'%')
             </if>
             <if test="req.approvalStatus != null and req.approvalStatus != ''">
                 and sl.approval_status = #{req.approvalStatus}
@@ -90,8 +90,8 @@
             <if test="req.projectName != null and req.projectName != '' ">
                 AND sl.project_name like concat('%',#{req.projectName},'%')
             </if>
-            <if test="req.customerName != null and req.customerName != '' ">
-                AND sl.customer_name like concat('%',#{req.customerName},'%')
+            <if test="req.supplierNameOrContractNo != null and req.supplierNameOrContractNo != '' ">
+                AND sl.customer_name like concat('%',#{req.supplierNameOrContractNo},'%')
             </if>
             <if test="req.productCategory != null and req.productCategory != '' ">
                 AND slp.product_category like concat('%',#{req.productCategory},'%')

--
Gitblit v1.9.3