update applet_appointment set cancel_time = #{cancel_time}::timestamp, appointment_state=4 where id=#{appointment_id} update applet_appointment_detail set is_del=1 where id=#{appointment_id}