From 5d81fcc5768741323a2e343fc01f44e17e68b65b Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 25 六月 2026 14:59:38 +0800
Subject: [PATCH] 1.库存入库新增质检流程 2.销售相关查询返回总合同号 3.采购相关查询返回总合同号

---
 src/main/resources/mapper/stock/StockInventoryMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/stock/StockInventoryMapper.xml b/src/main/resources/mapper/stock/StockInventoryMapper.xml
index aad917a..cb70db6 100644
--- a/src/main/resources/mapper/stock/StockInventoryMapper.xml
+++ b/src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -34,6 +34,9 @@
             <if test="ew.warehouse != null and ew.warehouse !=''">
                 warehouse = #{ew.warehouse},
             </if>
+            <if test="ew.warehouse == null or ew.warehouse ==''">
+                warehouse = null,
+            </if>
             update_time = now()
         </set>
         where product_model_id = #{ew.productModelId}
@@ -228,8 +231,7 @@
         model,
         unit,
         product_name,
-        product_id,
-        warehouse
+        product_id
         order by create_time desc
     </select>
 

--
Gitblit v1.9.3