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