From 8b68e5a8d8d43bcb45c9032c3eb893a2b8995acf Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期五, 17 四月 2026 16:18:51 +0800
Subject: [PATCH] fix(customer): 修复客户私海相关查询和导入功能

---
 src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
index 08e16e4..5fc2c24 100644
--- a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
+++ b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
@@ -36,10 +36,10 @@
         <where>
             cpp.delete_flag = 0
             <if test="c.customerName != null and c.customerName != ''">
-                and c.customer_name like concat('%', #{c.customerName}, '%')
+                and (c.customer_name like concat('%', #{c.customerName}, '%') or cp.customer_name like concat('%', #{c.customerName}, '%'))
             </if>
-            <if test="c.boundId != null">
-                and cpp.bound_id = #{c.boundId}
+            <if test="c.customerType != null">
+                and c.customer_type = #{c.customerType}
             </if>
         </where>
         order by cpp.id desc

--
Gitblit v1.9.3