From 3c7d672fb7d6c34742fb7da6f66616ccf3be2c9a Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期五, 08 十一月 2024 14:50:11 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 insertions(+), 0 deletions(-)
diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml
new file mode 100644
index 0000000..b532cfa
--- /dev/null
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.mes.opctask.mapper.EdgStorageDeviceTaskMapper">
+
+ <resultMap id="baseMap" type="com.mes.opctask.entity.EdgStorageDeviceTask">
+ <id column="task_running" property="taskRunning"/>
+ <id column="glass_id_in" property="glassIdIn"/>
+ <id column="glass_id_out" property="glassIdOut"/>
+ <id column="current_cell" property="currentCell"/>
+ <id column="start_cell" property="startCell"/>
+ <id column="enc_cell" property="endCell"/>
+ <id column="task_state" property="taskState"/>
+ <id column="create_time" property="createTime"/>
+ <id column="update_time" property="updateTime"/>
+ <id column="width" property="width"/>
+ <id column="height" property="height"/>
+ <id column="thickness" property="thickness"/>
+ <id column="film_remove" property="filmRemove"/>
+ </resultMap>
+
+ <select id="queryTaskMessage" resultMap="baseMap">
+ select *
+ from ${tableName}
+ limit 1
+ </select>
+
+ <update id="updateTaskMessage">
+ UPDATE ${tableName}
+ SET task_running = #{task.taskRunning},
+ glass_id_out = #{task.glassIdOut},
+ current_cell = #{task.currentCell},
+ start_cell = #{task.startCell},
+ end_cell = #{task.endCell},
+ width = #{task.width},
+ height = #{task.height},
+ thickness = #{task.thickness},
+ film_remove = #{task.filmRemove}
+ <if test="task.taskState == 0">
+ ,task_state = #{task.taskState}
+ </if>
+ </update>
+</mapper>
\ No newline at end of file
--
Gitblit v1.8.0