From 6121eaa7f8df0b8bf46d92d36e96991a6f4d23f1 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期五, 24 四月 2026 11:20:13 +0800
Subject: [PATCH] feat(stock): 增加顶级父产品id查询入库、出库记录功能

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

diff --git a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
index 5fc2c24..c7f33c8 100644
--- a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
+++ b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
@@ -41,6 +41,10 @@
             <if test="c.customerType != null">
                 and c.customer_type = #{c.customerType}
             </if>
+            <if test="c.boundId != null">
+                and cpp.bound_id = #{c.boundId}
+            </if>
+
         </where>
         order by cpp.id desc
     </select>

--
Gitblit v1.9.3