Energy storage charging pile matching function