update applet_appointment set is_del=1 where id=#{id} delete from applet_appointment where id=#{id} update applet_appointment id = #{id}, users_id = #{users_id}, transport_type = #{transport_type}, truck_number = #{truck_number}, tel_number = #{tel_number}, id_code = #{id_code}, truck_vin = #{truck_vin}, vehicle_weight = #{vehicle_weight}, vehicle_frame_weight = #{vehicle_frame_weight}, driving_license = #{driving_license}, approach_date = #{approach_date}::date, port_area_id = #{port_area_id}, biz_type = #{biz_type}, enter_type = #{enter_type}, goods_type = #{goods_type}, goods_quantity = #{goods_quantity}, appointment_state = #{appointment_state}, cancel_time = #{cancel_time}::timestamp, appointment_type = #{appointment_type}, is_del = #{is_del}, yard = #{yard}, yard_name = #{yard_name}, gate_canal_in = #{gate_canal_in}, gate_canal_out = #{gate_canal_out}, gate_canal_in_time= #{gate_canal_in_time}::timestamp, gate_canal_out_time=#{gate_canal_out_time}::timestamp, instruct_state = #{instruct_state}, send_time =# {send_time}::timestamp, sender = #{sender}, check_in_time = #{check_in_time}::timestamp, check_over_time = #{check_over_time}::timestamp, plate_scan_time = #{plate_scan_time}::timestamp, is_conventionality_in = #{is_conventionality_in}, push_ids = #{push_ids}, update_time = current_timestamp where id = #{id} update applet_appointment id = #{item.id}, yard = #{item.yard}, sender = #{item.sender}, yard_name = #{item.yard_name}, gate_canal_in = #{item.gate_canal_in}, instruct_state = #{item.instruct_state}, send_time =current_timestamp, update_time = current_timestamp where id = #{item.id} update applet_appointment plate_scan_time = current_timestamp where id = #{appointment_id}