From b7760ab3eec64c9c23db976ec104e7d09cfae041 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期一, 20 四月 2026 10:22:59 +0800
Subject: [PATCH] fix(customer): 解决客户档案删除时私海数据未清理问题

---
 src/main/resources/mapper/stock/StockUninventoryMapper.xml |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/stock/StockUninventoryMapper.xml b/src/main/resources/mapper/stock/StockUninventoryMapper.xml
index b171ae2..58f30bd 100644
--- a/src/main/resources/mapper/stock/StockUninventoryMapper.xml
+++ b/src/main/resources/mapper/stock/StockUninventoryMapper.xml
@@ -33,6 +33,9 @@
             <if test="ew.qualitity != null">
                 qualitity = qualitity + #{ew.qualitity},
             </if>
+            <if test="ew.lockedQuantity != null">
+                locked_quantity = locked_quantity + #{ew.lockedQuantity},
+            </if>
             <if test="ew.version != null">
                 version = version + 1,
             </if>

--
Gitblit v1.9.3