Is “Defeated Ma Su at the Battle of Jieting, cutting off Shu's grain supply route” true?

attested in history

According to Records of the Three Kingdoms, Wei Shu, Biography of Zhang He, he routed Ma Su at Jieting and cut off his water supply, causing Zhuge Liang's first northern expedition to fail.

Zhang He

In official histories, Zhang He was one of Wei's Five Elite Generals, known for adapting to changing circumstances and excelling in camp formations, but in fiction he is often defeated by Zhuge Liang and Zhang Fei.

Other claims about Zhang He