select id, plan_name, plan_type, cycle_type, cycle_value, execute_type,
execute_time, start_date, end_date, route_id, uav_id, status,
description, create_by, create_time, update_by, update_time, remark
from task_plan
insert into task_plan
plan_name,
plan_type,
cycle_type,
cycle_value,
execute_type,
execute_time,
start_date,
end_date,
route_id,
uav_id,
status,
description,
create_by,
remark,
create_time
#{planName},
#{planType},
#{cycleType},
#{cycleValue},
#{executeType},
#{executeTime},
#{startDate},
#{endDate},
#{routeId},
#{uavId},
#{status},
#{description},
#{createBy},
#{remark},
now()
update task_plan
plan_name = #{planName},
plan_type = #{planType},
cycle_type = #{cycleType},
cycle_value = #{cycleValue},
execute_type = #{executeType},
execute_time = #{executeTime},
start_date = #{startDate},
end_date = #{endDate},
route_id = #{routeId},
uav_id = #{uavId},
status = #{status},
description = #{description},
update_by = #{updateBy},
remark = #{remark},
update_time = now()
where id = #{id}
delete from task_plan where id = #{id}
delete from task_plan where id in
#{id}