update applet_appointment_detail set is_del=1 where id=#{id}
delete from applet_appointment_detail
where id=#{id}
update applet_appointment_detail
id = #{id},
appointment_id = #{appointment_id},
ship_id = #{ship_id},
ship_name = #{ship_name},
voy_number = #{voy_number},
destination_port = #{destination_port},
destination_port_id = #{destination_port_id},
brand_id = #{brand_id},
brand_name = #{brand_name},
vin = #{vin},
create_time = #{create_time}::timestamp,
is_del = #{is_del},
update_time =current_timestamp
where id = #{id}
delete from applet_appointment_detail
where appointment_id=#{appointment_id}