Let $E$ and $F$ be real Hilbert spaces, and $f:E\rightarrow F$ be a mapping. This paper shows that $f$ is an affine isometry if $f$ preserves distance $a$ and $b$ (where $a, b$ are two positive real numbers) and satisfies some additional conditions, and hence partly answers the Aleksandrov problem.