Undergraduate companies generally look at the popularity of your school, and then at your major. CUHK's ranking is obviously better than Xiamen University.
If you plan to work in Guangdong in the future, CUHK students will definitely have an advantage over Xiamen University students, because many Cantonese people know CUHK but don't know Xiamen University, and CUHK has more alumni in Guangdong, which is a very favorable advantage in finding a job.
And the learning environment varies from person to person. Most of the students I know don't like studying and like playing games, but these students are not worse than other students in the exam. On the contrary, they are very practical. If they have a deep understanding of the internet and computers, they will be very popular when looking for a job. Don't think that CUHK students don't like learning, and it is difficult to find a place in the library at ordinary times, because the library is full every day.
I graduated from Sun Yat-sen University, but what I said is true and unbiased.