Battery automatic welding method