<?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" property="glassId"/>
|
<id column="in_place" property="inPlace"/>
|
<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"/>
|
</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}
|
</update>
|
</mapper>
|