During the Warring States period, there were officials such as Shangyi and Shangguan. There are liu de in Qin Dynasty, that is, respecting crowns, clothes, food, eyes, seats and history. That was in the early Han Dynasty. Later, Shangshu gradually became an important official in power, and the other five positions were held by other officials. Emperor Wendi of Sui Dynasty began to set up six female officials in the Imperial Palace, namely, three women, three women, three women, three women, three women, three women, three women, three women, three women, three women, three women, three women. Emperor Yang-ti expanded greatly. According to "Shangshu Province of the Outer Court", the names of the 24 departments of the Bureau of Female Officials were decided by Emperor Wen. Emperor Yang-ti also expanded the inner bureau under the jurisdiction of the outer court to the inner bureau of the temple, which governed the six bureaus of food, medicine, clothing, housing, transportation and transportation, also known as the six merchants. Every bureau has members, such as Feng Yu (positive five products) and Zhi Chang (positive seven products). The system of the Tang Dynasty was the Sui Dynasty. There is only one empty name left in the sixth inning of Song and Yunnan provinces. It was rebuilt, but Qin Kang was abandoned. The name of Shang Liu, a female official in Song Dynasty, changed frequently, not the old name of Sui and Tang Dynasties. The six officials of the Golden Daughter are still in the Tang Dynasty, and the six in the temple are only the three bureaus of clothing, food and medicine, which have been transferred to the propaganda institute. Later, it was only in the early Ming Dynasty that she resumed her status as a female official in the Sixth Bureau. After Yongle, all the staff affairs were attributed to eunuchs.
During the Sui and Tang Dynasties, there were six female officials in the palace: palace, ceremony, clothing, food, sleep and work to take charge of the palace. After the Sui Dynasty, the central organization set up six ministers, collectively referred to as six ministers.
The female officials in the Sui Dynasty included conductor, musician, decorator, doctor, banquet and system, which were collectively called six departments. Introduction to Empresses and Concubines of Sui Shu: "In the second year of the Emperor, I wrote the style of internal ministers ... and adopted the old instruments of Han and Jin Dynasties, and set up six merchants, six departments and six codes, which were handed over to the government in charge of the palace." "Six yards" is: one yard, playing with seals; Second, praise and guide women living at home and abroad to appear in court; Three-yard comb, palm towel comb cream bath; Four ritual vessels, palm bottles and yi vessels; Five yards, palm fan umbrella lamp candle; Six passwords, all in and out are money.
Emperor Wendi of Sui Dynasty placed female officials in the Imperial Palace, namely "Six Merchants", "Six Departments" and "Six Codes". One of them is Shang Shi, who has three positions, which is equivalent to catering from Jiupin, in charge of three doctors, three parties, divination and ritual vessels, and managing eating utensils. Yang-ti and female officials set up six bureaus and twenty-four divisions. The chief officer of Shangshi Bureau is Shangshi, who is divided into five categories: four catering, four brewing (wine-making), four medicine, four fuel and two catering, all of which are divided into six categories. There are official handbooks below, which are divided into seven categories, nine categories and several female ambassadors. The Tang Dynasty inherited the Sui system, but the level was improved. Food is positive five products, four divisions are positive six products, canon and palm are positive seven products, and positive eight products. The number of caterers has been reduced to two. Female officials in the Five Dynasties and the Song Dynasty were also known as banquets, meals and banquets. Jin and early Ming dynasties were based on the Tang system, and there were female officials in the Six Merchants. The name of the fourth branch of Shanghai Grain Bureau remains unchanged. After Yongle in the Ming Dynasty, the post was moved to eunuch.
Qin officials have food and are one of the "six merchants". At the beginning of the Han dynasty, I followed my family. After the Eastern Han Dynasty, his post was merged into the Taiguan government. The Northern Wei Dynasty established Shangshi Bureau in Menxia Province, which was the official position in charge of the emperor's diet. The official is a hundred official meals, which belongs to Guangluqing. Because of this, Beiqi used codes to protect the chief officials of the Grain Bureau. In the early years of Sui Dynasty, Shangshi was still transferred to the province. Emperor Yang Dijian introspected the temple, took Shangshi as one of the six business bureaus in the temple, and changed Feng Yu to two posts and five products. There are six direct members and seven grades. Six more games have been added, such as female officials still eating. In the Tang Dynasty, the introspection of the temple was changed to the province of the temple, and it was still in charge of six innings, such as the order of ministers. In the Song Dynasty, there was no real position in the Central Province and the Master Bureau, and the position of the master belonged to the chef. Yuanfeng reformed, and planned to restore the six innings of the Tang Dynasty, but failed to do so. Song Huizong Chongning was rebuilt and Song Qin Zong Jingkang was abandoned. Jin and Yuan Shangdu Grain Bureau are affiliated to Xuanhui Hospital. In the first year of Zhu Yuanzhang's military campaign (1367), the Shang Grain Bureau was established in Xuanhuiyuan according to the yuan system. In the first year of Hongwu in Ming Dynasty (1368), it was renamed Guanglu Temple. After the abolition, the post still belongs to the official department of Guanglu Temple.