From 91f09b6a09277979ae32126c1d8fc73e0213de65 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期一, 20 四月 2026 17:15:52 +0800
Subject: [PATCH] fix(stock): 修复销售发货出库删除时关联记录校验问题
---
src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
index 5fc2c24..12c2fc6 100644
--- a/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
+++ b/src/main/resources/mapper/basic/CustomerPrivatePoolMapper.xml
@@ -41,6 +41,9 @@
<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