| | |
| | | <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"/> |
| | |
| | | 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, |
| | |
| | | <if test="startTime != null">AND aft.start_time >= #{startTime}</if> |
| | | <if test="endTime != null">AND aft.end_time <= #{endTime}</if> |
| | | <if test="serverId != null">AND aft.server_id = #{serverId}</if> |
| | | <if test="params.beginTime != null"><!-- 开始时间检索 --> |
| | | AND aft.create_time >= #{params.beginTime} |
| | | </if> |
| | | <if test="params.endTime != null"><!-- 结束时间检索 --> |
| | | AND aft.create_time <= #{params.endTime} |
| | | </if> |
| | | </trim> |
| | | </where> |
| | | ORDER BY aft.task_id DESC |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | </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="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> |
| | | <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} |