Shang dynasty
Lincang was previously called Baihuai during the Shang dynasty.