From 8554335cf08aa31e42f88eb6f51d8542440975bf Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期四, 26 六月 2025 20:29:51 +0800
Subject: [PATCH] 设备器件excel导入,追加或新增

---
 src/main/resources/mapper/DeviceSpareMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/DeviceSpareMapper.xml b/src/main/resources/mapper/DeviceSpareMapper.xml
index 36a7fe5..761f7ea 100644
--- a/src/main/resources/mapper/DeviceSpareMapper.xml
+++ b/src/main/resources/mapper/DeviceSpareMapper.xml
@@ -13,4 +13,10 @@
             and supplier = #{item.supplier}
         </foreach>
     </update>
+    <update id="updateQuantityAndPictureBatch">
+        <foreach collection="list" item="item" separator=";">
+            update web_site.tb_device_spare set quantity = #{item.quantity},picture_url = #{item.pictureUrl}
+            where id = #{item.id}
+        </foreach>
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1