From 0cc92828383014e38b770427353d09f693c5ee9d Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期一, 27 四月 2026 13:26:16 +0800
Subject: [PATCH] fix(sales): 修复销售台账产品查询中供应商名称搜索条件重复问题
---
src/main/resources/mapper/sales/SalesLedgerProductMapper.xml | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml b/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
index 2a9e211..10b87f9 100644
--- a/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
+++ b/src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
@@ -80,6 +80,7 @@
slp.type = 2
<if test="req.supplierNameOrContractNo != null and req.supplierNameOrContractNo != '' ">
AND sl.purchase_contract_number like concat('%',#{req.supplierNameOrContractNo},'%')
+ or sl.supplier_name like concat('%',#{req.supplierNameOrContractNo},'%')
</if>
<if test="req.approvalStatus != null and req.approvalStatus != ''">
and sl.approval_status = #{req.approvalStatus}
@@ -89,9 +90,6 @@
</if>
<if test="req.projectName != null and req.projectName != '' ">
AND sl.project_name like concat('%',#{req.projectName},'%')
- </if>
- <if test="req.supplierNameOrContractNo != null and req.supplierNameOrContractNo != '' ">
- AND sl.supplier_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