From 5cbfd0b2270edf6390cc1bb7c683956dbe93d66f Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期一, 23 三月 2026 11:08:28 +0800
Subject: [PATCH] feat:耗材物料更改(字段变动)

---
 src/main/resources/mapper/consumables/ConsumablesInventoryMapper.xml |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/consumables/ConsumablesInventoryMapper.xml b/src/main/resources/mapper/consumables/ConsumablesInventoryMapper.xml
index 46c284b..ebc0712 100644
--- a/src/main/resources/mapper/consumables/ConsumablesInventoryMapper.xml
+++ b/src/main/resources/mapper/consumables/ConsumablesInventoryMapper.xml
@@ -43,7 +43,7 @@
         update consumables_inventory
         <set>
             <if test="ew.netWeight != null">
-                qualitity = qualitity - #{ew.netWeight},
+                qualitity = qualitity - #{ew.qualitity},
             </if>
             <if test="ew.version != null">
                 version = version + 1,
@@ -62,6 +62,7 @@
         -- 褰撳墠鍑�閲� = 鍏ュ簱鍑�閲� - 鍑哄簱鍑�閲�
         (COALESCE(sir.total_net_weight,0) - COALESCE(sor.total_net_weight,0)) as net_weight,
         si.qualitity,
+        si.purchaser,
         COALESCE(si.locked_quantity, 0) as locked_quantity,
         si.product_model_id,
         si.create_time,

--
Gitblit v1.9.3