From e17654e6444add5d08c01528dbd008739e37b1ea Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 08 五月 2026 13:28:50 +0800
Subject: [PATCH] fix(stock): 修复销售发货出库后库存扣减逻辑

---
 src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
index 30b4286..ac248cd 100644
--- a/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
+++ b/src/main/resources/mapper/purchase/PurchaseLedgerMapper.xml
@@ -66,7 +66,7 @@
             <if test="c.supplierId != null">
                 AND pl.supplier_id = #{c.supplierId}
             </if>
-            <if test="c.supplierType != null and c.supplierType != ''">
+            <if test="c.supplierType != null">
                 AND sm.supplier_type = #{c.supplierType}
             </if>
         </where>

--
Gitblit v1.9.3