zhoushihao
2024-11-20 649e50a1b4fa3811072843c79787163b87ab3889
hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageInTaskMapper.xml
@@ -8,18 +8,29 @@
        <result column="target_slot" property="targetSlot"/>
        <result column="task_state" property="taskState"/>
    </resultMap>
    <insert id="saveTaskMessage">
        INSERT INTO ${tableName} (glass_id, start_slot, target_slot,task_state)
        VALUES
        <foreach collection="list" item="item" index="index" separator=",">
            (#{item.glassId}, #{item.startSlot},#{item.targetSlot},#{item.taskState})
        </foreach>
    </insert>
    <delete id="removeAll">
        delete
        from ${tableName}
    </delete>
    <select id="queryTaskMessage" resultMap="baseMap">
        select *
        from ${tableName}
        where glass_id is not null
           or glass_id != ''
          and glass_id != ''
    </select>
    <update id="updateTaskMessage">
        UPDATE ${tableName}
        SET start_slot = #{task.startSlot}
        SET target_slot = #{task.targetSlot}
        where glass_id = #{task.glassId}
    </update>