zhoushihao
2024-11-21 b4f51417997c20dd15e3db19d5055edd55d872cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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>