From dcc799551b532fa29d64f5f2cb614f5b80b233f6 Mon Sep 17 00:00:00 2001
From: zhangyong <517047165@qq.com>
Date: 星期二, 26 十一月 2024 13:23:55 +0800
Subject: [PATCH] 义乌项目:增加响应PLC钢化进炉请求逻辑,以及向钢化炉下发参数逻辑
---
hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageInTaskMapper.xml | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageInTaskMapper.xml b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageInTaskMapper.xml
index 425afb7..84a0817 100644
--- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageInTaskMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageInTaskMapper.xml
@@ -8,18 +8,29 @@
<result column="target_slot" property="targetSlot"/>
<result column="task_state" property="taskState"/>
</resultMap>
+ <insert id="saveTaskMessage">
+ INSERT INTO ${tableName} (glass_id, start_slot, target_slot,task_state)
+ VALUES
+ <foreach collection="list" item="item" index="index" separator=",">
+ (#{item.glassId}, #{item.startSlot},#{item.targetSlot},#{item.taskState})
+ </foreach>
+ </insert>
+ <delete id="removeAll">
+ delete
+ from ${tableName}
+ </delete>
<select id="queryTaskMessage" resultMap="baseMap">
select *
from ${tableName}
where glass_id is not null
- or glass_id != ''
+ and glass_id != ''
</select>
<update id="updateTaskMessage">
UPDATE ${tableName}
- SET start_slot = #{task.startSlot}
+ SET target_slot = #{task.targetSlot}
where glass_id = #{task.glassId}
</update>
--
Gitblit v1.8.0