From 6c2ff1c7c8e0aba3af92110b76687b78f8278e86 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 03 一月 2025 09:57:37 +0800
Subject: [PATCH] 动态数据长度

---
 iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemResultDao.xml |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemResultDao.xml b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemResultDao.xml
index 910200c..a0a6838 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemResultDao.xml
+++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemResultDao.xml
@@ -18,7 +18,7 @@
         (id,outputid,datatime,datavalue)
         VALUES
         <foreach item="item" collection="list" separator=",">
-            (#{item.id},#{item.outputId},#{item.dataTime},#{item.dataValue})
+            (#{item.id},#{item.outputid},#{item.datatime},#{item.datavalue})
         </foreach>
     </insert>
 
@@ -28,5 +28,13 @@
         VALUES (#{entity.id},#{entity.outputid},#{entity.predicttime},#{entity.jsonvalue},#{entity.cumulant})
     </insert>
 
+    <insert id="saveOrUpdateItemResult" parameterType="com.iailab.module.model.mcs.pre.entity.MmItemResultEntity">
+        INSERT INTO t_mm_item_result (id,outputid, datatime, datavalue) VALUES
+        <foreach item="item" collection="list" separator=",">
+            (#{item.id},#{item.outputid},#{item.datatime},#{item.datavalue})
+        </foreach>
+            ON DUPLICATE KEY UPDATE datavalue = VALUES(datavalue)
+    </insert>
+
 
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3