liusuyi
2025-11-19 6c9ad02f19d5bd8e597bd23006bead9b9ebcd593
ard-work/src/main/resources/mapper/ArdFlightTaskMapper.xml
@@ -93,9 +93,28 @@
        </trim>
    </insert>
    <update id="updateArdFlightTask" parameterType="com.ard.work.domain.entity.ArdFlightTask">
        update ard_flight_task
        <set>
            <if test="taskId != null">task_id = #{taskId},</if>
            <if test="boxSn != null">box_sn = #{boxSn},</if>
            <if test="boxName != null">box_name = #{boxName},</if>
            <if test="taskName != null">task_name = #{taskName},</if>
            <if test="videoCount != null">video_count = #{videoCount},</if>
            <if test="photoCount != null">photo_count = #{photoCount},</if>
            <if test="videoPath != null">video_path = #{videoPath},</if>
            <if test="startTime != null">start_time = #{startTime},</if>
            <if test="endTime != null">end_time = #{endTime},</if>
            <if test="serverId != null">server_id = #{serverId},</if>
            <if test="updateBy != null">update_by = #{updateBy},</if>
            <if test="updateTime != null">update_time = #{updateTime},</if>
            <if test="remark != null">remark = #{remark},</if>
        </set>
        where task_id = #{taskId}
    </update>
    <!-- 根据任务ID获取飞行任务 -->
    <select id="getArdFlightTaskById" resultType="ArdFlightTask">
    <select id="getArdFlightTaskById" resultMap="ArdFlightTaskResult">
        SELECT *
        FROM ard_flight_task
        WHERE task_id = #{taskId}