| | |
| | | <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> |