From 5005f4916ae1240cf4cd91bb4ed82be43598f568 Mon Sep 17 00:00:00 2001
From: whycxzp <glperry@163.com>
Date: 星期二, 10 六月 2025 20:10:32 +0800
Subject: [PATCH] 自动充放电自动化流程

---
 src/main/resources/mapper/BattWarehouseMapper.xml |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/BattWarehouseMapper.xml b/src/main/resources/mapper/BattWarehouseMapper.xml
index 8d45cc9..4bd1737 100644
--- a/src/main/resources/mapper/BattWarehouseMapper.xml
+++ b/src/main/resources/mapper/BattWarehouseMapper.xml
@@ -3,7 +3,7 @@
 <mapper namespace="com.whyc.mapper.BattWarehouseMapper" >
 
 
-    <update id="updateBatchById">
+    <update id="updateActivateBatchById">
         <foreach collection="list" item="item" index="index" separator=";">
             update tb_batt_warehouse
             <set>
@@ -17,4 +17,34 @@
             where id = #{item.id}
         </foreach>
     </update>
+
+    <update id="updateChargeBatchById">
+        <foreach collection="list" item="item" index="index" separator=";">
+            update tb_batt_warehouse
+            <set>
+                <if test="item.chargeTaskNo != null">
+                    charge_task_no = #{item.chargeTaskNo},
+                </if>
+                <if test="item.chargeOnPlan != null">
+                    charge_on_plan = #{item.chargeOnPlan},
+                </if>
+            </set>
+            where id = #{item.id}
+        </foreach>
+    </update>
+
+    <update id="updateDischargeBatchById">
+        <foreach collection="list" item="item" index="index" separator=";">
+            update tb_batt_warehouse
+            <set>
+                <if test="item.dischargeTaskNo != null">
+                    discharge_task_no = #{item.dischargeTaskNo},
+                </if>
+                <if test="item.dischargeOnPlan != null">
+                    discharge_on_plan = #{item.dischargeOnPlan},
+                </if>
+            </set>
+            where id = #{item.id}
+        </foreach>
+    </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1