The first sentence. It shows that Harry has always adhered to the right path of honesty in these years as an official and will not change in the future; He hoped that he could sacrifice his life for his country.
The second sentence. It shows Harry's great ambition in this life, that is to work hard for Daming's mountains and rivers; It also shows that the real purpose of his study is to save the fate of the country.