liusuyi
2025-12-22 2fd6dc640f0f94ea5c1109aa7a8fd3ae33643dec
ard-work/src/main/resources/mapper/ArdFlightTaskMapper.xml
@@ -14,6 +14,10 @@
        <result property="videoPath" column="video_path"/>
        <result property="startTime" column="start_time"/>
        <result property="endTime" column="end_time"/>
        <result property="flightDuration" column="flight_duration"/>
        <result property="flightMileage" column="flight_mileage"/>
        <result property="aveSpeed" column="ave_speed"/>
        <result property="maxSpeed" column="max_speed"/>
        <result property="serverId" column="server_id"/>
        <result property="createBy" column="create_by"/>
        <result property="createTime" column="create_time"/>
@@ -33,6 +37,10 @@
        aft.video_path,
        aft.start_time,
        aft.end_time,
        aft.flight_duration,
        aft.flight_mileage,
        aft.ave_speed,
        aft.max_speed,
        aft.server_id,
        aft.create_by,
        aft.create_time,
@@ -49,6 +57,12 @@
                <if test="startTime != null">AND aft.start_time &gt;= #{startTime}</if>
                <if test="endTime != null">AND aft.end_time &lt;= #{endTime}</if>
                <if test="serverId != null">AND aft.server_id = #{serverId}</if>
                <if test="params.beginTime != null"><!-- 开始时间检索 -->
                    AND aft.create_time &gt;= #{params.beginTime}
                </if>
                <if test="params.endTime != null"><!-- 结束时间检索 -->
                    ANDaft.create_time &lt;= #{params.endTime}
                </if>
            </trim>
        </where>
        ORDER BY aft.task_id DESC
@@ -67,6 +81,10 @@
            <if test="videoPath != null">video_path,</if>
            <if test="startTime != null">start_time,</if>
            <if test="endTime != null">end_time,</if>
            <if test="flightDuration != null">flight_duration,</if>
            <if test="flightMileage != null">flight_mileage,</if>
            <if test="aveSpeed != null">ave_speed,</if>
            <if test="maxSpeed != null">max_speed,</if>
            <if test="serverId != null">server_id,</if>
            <if test="createBy != null">create_by,</if>
            <if test="createTime != null">create_time,</if>
@@ -84,6 +102,10 @@
            <if test="videoPath != null">#{videoPath},</if>
            <if test="startTime != null">#{startTime},</if>
            <if test="endTime != null">#{endTime},</if>
            <if test="flightDuration != null">#{flightDuration},</if>
            <if test="flightMileage != null">#{flightMileage},</if>
            <if test="aveSpeed != null">#{aveSpeed},</if>
            <if test="maxSpeed != null">#{maxSpeed},</if>
            <if test="serverId != null">#{serverId},</if>
            <if test="createBy != null">#{createBy},</if>
            <if test="createTime != null">#{createTime},</if>
@@ -105,6 +127,10 @@
            <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="flightDuration != null">flight_duration = #{flightDuration},</if>
            <if test="flightMileage != null">flight_mileage = #{flightMileage},</if>
            <if test="aveSpeed != null">ave_speed = #{aveSpeed},</if>
            <if test="maxSpeed != null">max_speed = #{maxSpeed},</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>