From 54b00a3d2964dd7213f6f4baeb3bcd6222906e51 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期一, 20 四月 2026 09:09:13 +0800
Subject: [PATCH] fix(product): 添加产品时验证父节点选择
---
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