Compared with the spherical quantum dot, the ground-state energies of hydrogen-like impurity in a lens-shaped quantum dot (GaAs/In1-xGaxAs) under vertical magnetic field have been discussed by using effective mass approximation and variational method. It is found that for the spherical quantum dot, the ground-state energy is only related with the deviation of distance of the impurity, but not with the in-plane or perpendicular deviation. For a lens-shaped quantum dot, due to the asymmetry of the bound potential of in-plane and perpendicular to the plane, the electronic ground-state energies are related not only with the deviation of distance but also with the deviation of direction.