From 698f8f0f22af4c66581ce284407e986ca036aec6 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 23 一月 2025 17:10:26 +0800
Subject: [PATCH] 1. 网格细分逻辑(编写中)

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

diff --git a/src/main/resources/mapper/GridDataDetailMapper.xml b/src/main/resources/mapper/GridDataDetailMapper.xml
index 6312fe3..7574d75 100644
--- a/src/main/resources/mapper/GridDataDetailMapper.xml
+++ b/src/main/resources/mapper/GridDataDetailMapper.xml
@@ -18,4 +18,15 @@
     -->
     id, data_id, group_id, cell_id, PM25, rank
   </sql>
+
+  <!-- 娣诲姞鎵归噺鏇存柊PM25鐨勫嚱鏁� -->
+  <update id="updatePM25Batch" parameterType="java.util.List">
+    <foreach collection="list" item="item" separator=";">
+      UPDATE grid_data_detail
+      SET PM25 = #{item.pm25}
+      WHERE data_id = #{item.dataId}
+      AND group_id = #{item.groupId}
+      AND cell_id = #{item.cellId}
+    </foreach>
+  </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3