From 2753ad7aee272a5a5a8a0124b1feea5a1e4cc83e Mon Sep 17 00:00:00 2001
From: whyclxw <810412026@qq.com>
Date: 星期五, 20 六月 2025 22:40:52 +0800
Subject: [PATCH] 电源告警参数返回

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

diff --git a/src/main/resources/mapper/DeviceSpareMapper.xml b/src/main/resources/mapper/DeviceSpareMapper.xml
new file mode 100644
index 0000000..36a7fe5
--- /dev/null
+++ b/src/main/resources/mapper/DeviceSpareMapper.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.whyc.mapper.DeviceSpareMapper" >
+
+    <update id="outBound">
+        <foreach collection="list" item="item" separator=";">
+            update web_site.tb_device_spare set quantity = quantity - #{item.quantity}
+            where name = #{item.name}
+            and model = #{item.model}
+            and version = #{item.version}
+            and brand = #{item.brand}
+            and type = #{item.type}
+            and supplier = #{item.supplier}
+        </foreach>
+    </update>
+</mapper>
\ No newline at end of file

--
Gitblit v1.9.1