Principle of lithium battery automatic repair system