The invention discloses a
machine tool manufacturing BOM storage query and
tree structure construction method based on an MES
system. The method comprises the steps: constructing a manufacturing BOM
storage structure; setting a cache
data structure to search part material numbers; setting a BOM reverse query process
data structure, and searching part numbers through a coding rule for subsequent manufacturing BOM search; respectively searching for a first-level component manufacturing BOM and a multi-level component manufacturing BOM, removing same-level repeated data and non-same-level repeated data, and searching for the components; searching a
machine tool manufacturing BOM directly containing a specific part and a
machine tool manufacturing BOM containing a group part, removing the same-level repeated data, removing the non-same-level repeated data, and searching to obtain
machine tool manufacturing BOM data; according to the method, building a
tree structure according to
machine tool manufacturing BOM data, providing a basis for subsequent material updating and correcting on a production site, and achieving BOM reverse checking on the production site; and performing result display on the
tree structure through an MES
system. According to the invention, the
workload is reduced, the query efficiency is improved, fast storage, fast taking and fast updating are achieved, and the query speed is increased.