From bfcc71f500625a26886b43c43a8fdf2ea1152844 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 23 六月 2026 13:47:59 +0800
Subject: [PATCH] 环境检测排序,仓库绑定物联设备
---
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