From e90ee8c152c553b22b651481675ca78308a148fa Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期四, 07 十一月 2024 11:02:08 +0800
Subject: [PATCH] 1、liquibase新增磨边任务表、磨边任务历史表、磨边对列表 上片任务表、上片历史任务表
---
hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml | 26 +++++++++++++++++---------
1 files changed, 17 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..b532cfa 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageDeviceTaskMapper.xml
@@ -12,23 +12,31 @@
<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}
+ 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},
+ 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