12. (10 points) Given the equation $a b c d=a a d \times e$, where different letters represent different digits, what is the maximum value of the four-digit number $a b c d$?

Translate the above text into English, please retain the original text's line breaks and format, and output the translation result directly.