From c583e5683bac5d11750be01b8a3c4147e8f16026 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 06 十一月 2024 23:21:53 +0800
Subject: [PATCH] 1、opc订阅服务为阻塞模式,配置需要开启多线程 2、新增订阅回调函数,用于执行任务,完成任务时调用 3、目前测试效果来看,一个定时任务只能有一个订阅任务,可订阅多个节点,当某个节点发生变化时,回调任务仅获取变化节点的信息

---
 hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml
index 059ec28..666cd4c 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml
@@ -16,19 +16,19 @@
 
     <select id="queryTaskMessage" resultMap="baseMap">
         select *
-        from #{tableName}
+        from ${tableName}
         limit 1
     </select>
 
     <update id="updateTaskMessage">
-        UPDATE #{tableName}
-        SET task_running = #{taskRunning},
-        glass_id_out = #{glassIdOut},
-        current_cell = #{currentCell},
-        start_cell = #{startCell},
-        enc_cell = #{endCell},
-        <if test="taskState == 0">
-            task_state = #{taskState},
+        UPDATE ${tableName}
+        SET task_running = #{task.taskRunning},
+        glass_id_out = #{task.glassIdOut},
+        current_cell = #{task.currentCell},
+        start_cell = #{task.startCell},
+        end_cell = #{task.endCell}
+        <if test="task.taskState == 0">
+            ,task_state = #{task.taskState}
         </if>
     </update>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0