Yunpai structure management device and application method
By creating structural views and setting sub-objects in factory production information management, the problem of low query efficiency is solved, rapid construction of structural relationship data and historical data tracing are achieved, and query and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202410721404.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-05
AI Technical Summary
In the existing technology, when querying factory production information, the query efficiency is low due to the lack of relationships between data, and there is a lack of effective solutions.
By creating a structural view and setting sub-objects, add sub-structure rows under the selected structure row, use a tree structure to store the relationship between the sub-structure and the parent structure, and introduce reference relationships in the sub-structure to achieve synchronous updates and versions of data. manage.
It realizes the rapid construction of structural relational data, improves query and maintenance efficiency, and supports the viewing and tracing of historical data, improving data traceability and query efficiency.
Smart Images

Figure CN118296195B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology applications, and in particular to a cloud structure management device and application method. Background Art
[0002] In the actual production of various factories, the products of the factories are often assembled from various parts, and various parts are often produced from various materials. Various products, formulas, and materials often go through multiple versions of iterations. Therefore, there is a need to obtain various production information in the factory production, storage, and transportation environment.
[0003] Currently, no effective solution has been proposed to address the problem that related technologies have low query efficiency due to the lack of relationships between data when querying production information. Summary of the invention
[0004] In order to solve the above technical problems, the embodiments of the present invention hope to provide a cloud structure management device and application method, so as to at least solve the problem that the related technology has low query efficiency due to the lack of relationship between data when querying production information.
[0005] The technical solution of the present invention is achieved in this way:
[0006] An embodiment of the present invention provides an application method of a Yunpai structure management device, including: creating a structure view; setting a sub-object through the created structure view; after setting the sub-object, adding a sub-structure row under the selected structure row.
[0007] Optionally, the structure view is a view for storing structure data, and a substructure is generated under the structure view to store the substructure and the structure view, as well as the association relationship between the structure row of the substructure and the parent structure row, wherein the association relationship between the structure row of the substructure and the parent structure row is a tree structure.
[0008] Optionally, adding a substructure row under the selected structure row includes: determining whether it contains structure views of the same type; if the determination result is yes, setting the first sub-object; if the determination result is no, creating a structure view of the same type belonging to the substructure and setting the second sub-object; and adding a substructure row under the selected structure row based on the first sub-object or the second sub-object.
[0009] Further, optionally, the substructure includes a reference relationship of the substructure, and when the substructure is modified, all referenced structures are updated synchronously.
[0010] Optionally, return an error message if creating the structure view fails.
[0011] Optionally, the method also includes: when removing the structural view, removing the selected sub-object, if the removal of the sub-object is successful, selecting the target structure row for removal; wherein, when removing the target structure row, if the selected target structure row contains a substructure, the substructure and the target structure row are removed at the same time; if the selected target structure row is a substructure, the substructure is removed.
[0012] Further, optionally, the substructure includes a reference relationship between substructures, and when a substructure in a substructure is removed, all referenced structures are updated synchronously.
[0013] Optionally, the method also includes: obtaining the structure to be viewed, displaying the latest version of the structural information by default, and all structures displaying the latest version of the corresponding data information; viewing other versions, if the structural information of the latest released version only needs to switch the corresponding version rules to the latest released version, then updating the data of each layer of the structure according to the version rules, if at least one structure row does not have the latest released version of data, then a prompt message is given in the corresponding structure row.
[0014] Further, optionally, select the version rule of the latest released version; query whether the substructure under the structure contains the latest released data; if the query result is yes, query whether the substructure under the substructure of the latest released version contains a substructure, if it contains a substructure, continue the query; if it does not contain a substructure, organize the data and display the latest released data, replacing the original data for display; if the query result is no, end the traversal, identify the data that does not contain the latest released version, and replace the original data for display.
[0015] An embodiment of the present invention provides a Yunpai structure management device, including: a creation module for creating a structure view; a setting module for setting sub-objects through the created structure view; and an adding module for adding a sub-structure row under the selected structure row after setting the sub-object.
[0016] The embodiment of the present invention provides a cloud structure management device and application method, which creates a structure view; sets sub-objects through the created structure view; and after setting the sub-objects, adds sub-structure rows under the selected structure row, thereby achieving the technical effects of quickly building various structural relationship data, quickly retrieving and maintaining structural data, and viewing and tracing historical structural data. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1A flowchart of an application method of a cloud structure management device provided by an embodiment of the present invention;
[0019] Figure 2 A schematic diagram of building structural logic in an application method of a cloud structure management device provided by an embodiment of the present invention;
[0020] Figure 3 A schematic diagram of adding a substructure row in an application method of a cloud structure management device provided by an embodiment of the present invention;
[0021] Figure 4 A schematic diagram of removing a structure row in an application method of a cloud structure management device provided by an embodiment of the present invention;
[0022] Figure 5 A schematic diagram of displaying different version rules in an application method of a cloud structure management device provided by an embodiment of the present invention;
[0023] Figure 6 A schematic diagram of the underlying data structure of structure management in an application method of a cloud structure management device provided by an embodiment of the present invention;
[0024] Figure 7 A schematic diagram of the latest released version rules of structure management in an application method of a cloud structure management device provided by an embodiment of the present invention;
[0025] Figure 8 A schematic diagram of a cloud structure management device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second" and the like in the specification, claims and drawings of the present invention are used to distinguish different objects rather than to limit a specific order.
[0028] It should also be noted that the following embodiments of the present invention may be executed separately, or in combination with each other, and the embodiments of the present invention do not impose specific limitations on this.
[0029] The embodiment of the present invention provides an application method of a cloud structure management device. Figure 1A flowchart of an application method of a cloud structure management device provided by an embodiment of the present invention; Figure 1 As shown, the application method of the cloud structure management device provided in the embodiment of the present application includes:
[0030] Step S102, creating a structure view;
[0031] Optionally, the structure view is a view for storing structure data, and a substructure is generated under the structure view to store the substructure and the structure view, as well as the association relationship between the structure row of the substructure and the parent structure row, wherein the association relationship between the structure row of the substructure and the parent structure row is a tree structure.
[0032] Specifically, the application method of the Yunpai structure management device provided in the embodiment of the present application is applied to the Yunpai structure management tool (Yunmai structure management device). When using the Yunpai structure management tool to build a structure, it is necessary to first create a view that stores the structure data (i.e., the structure view in the embodiment of the present application) as the top-level data, which is the final product of the structure. When adding or creating a substructure under the top-level structure row, the tool will create a new structure row and store it. The structure row contains the associated information of the parent structure row. After the addition is completed, the parent-child structure relationship is displayed in a tree structure. If there are substructures of the same type under the added substructure, they will be brought out together and spliced for display; Figure 2 As shown, Figure 2 A schematic diagram of building structural logic in an application method of a cloud structure management device provided in an embodiment of the present invention.
[0033] Step S104, setting the sub-object through the created structural view;
[0034] Step S106, after setting the sub-object, add a sub-structure row under the selected structure row.
[0035] Optionally, adding a substructure row under the selected structure row in step S106 includes: determining whether it contains structure views of the same type; if the determination result is yes, setting the first sub-object; if the determination result is no, creating a structure view of the same type belonging to the substructure, and setting the second sub-object; and adding a substructure row under the selected structure row based on the first sub-object or the second sub-object.
[0036] Specifically, if you add a substructure again under a substructure, it will determine whether the substructure contains the same type of structure view. If it does, the substructure will be added under the structure view of the substructure. If it does not, the structure view of this type of subobject will be created first, and then the substructure will be added under the structure view of the substructure. Figure 3 As shown, Figure 3A schematic diagram of adding a substructure row in an application method of a cloud structure management device provided in an embodiment of the present invention. When a substructure row is selected, it is determined whether a structure view of the same type is included. If included, a subobject is added / created (i.e., the setting subobject and the first subobject in the embodiment of the present application). If not included, a structure view of the same type belonging to the substructure is created, and a corresponding subobject is created / added (i.e., the setting subobject and the second subobject in the embodiment of the present application). If the creation / addition is successful, the substructure row is added under the selected structure row; if the addition or creation fails, an error message is returned.
[0037] For example: The top-level structure view is A. Add substructure A1 under A. If substructure A2 also exists under substructure A1, the structure is:
[0038] A
[0039] A1
[0040] A2
[0041] If there is no substructure under substructure A1, the structure is:
[0042] A
[0043] A1
[0044] It should be noted that structure management involves the storage of structure views, top-level structure rows, sub-structure rows and other data. To improve the efficiency and scalability of structure management, the backend database only uses two tables, structure view table and structure row table, for storage, and the data will be stored in Elasticsearch synchronously. The use of this data structure and storage method can greatly increase the query and modification speed of structure data and improve the efficiency of the system. At the same time, the backend only stores the structure data of a single layer of the object, and the multi-layer structure meets the purpose of viewing and editing multi-layer structure data through corresponding algorithms. That is, there is A2 under the multi-layer structure A1, and A3 under A2. In the underlying data structure, there are only single-layer A1 and A2 in the structure view of A1. The system will use the algorithm to create the structure view of A2 when A2 adds substructure A3, and put A3 into the substructure row of A2.
[0045] Further, optionally, the substructure includes a reference relationship of the substructure, and when the substructure is modified, all referenced structures are updated synchronously.
[0046] Specifically, the structure can be composed of many small structures. In order to achieve the purpose of coordinated editing to improve efficiency, different structures may be edited by different people. The embodiment of the present application supports coordinated editing. That is, the substructures in the structure are all referenced by the substructures. If the substructures are modified separately in other places, all referenced structures will be updated synchronously.
[0047] For example, user U1 is editing a three-layer structure data with A1, A2, and A3. User U2 is editing the structure of A2 in the three-layer structure and adding A4 to the structure of A2.
[0048] At this time, the structure of A2 opened by U2 is:
[0049] A2
[0050] A3
[0051] A4
[0052] At this time, when U1 opens A1 again, the three-layer structure will become:
[0053] A1
[0054] A2
[0055] A3
[0056] A4
[0057] Optionally, return an error message if creating the structure view fails.
[0058] Specifically, Figure 2 As shown, when the creation of the structural view fails, an error message is returned and the process ends; similarly, when the creation / addition of a sub-object (i.e., setting a sub-object in the embodiment of the present application) fails in step S104, an error message is returned and the process ends.
[0059] Optionally, the application method of the Yunpai structure management device provided in the embodiment of the present application also includes: when removing a structural view, removing the selected sub-object, if the removal of the sub-object is successful, selecting the target structure row for removal; wherein, when removing the target structure row, if the selected target structure row contains a substructure, the substructure and the target structure row are removed at the same time; if the selected target structure row is a substructure, the substructure is removed.
[0060] Specifically, Figure 4 As shown, Figure 4 A schematic diagram of removing a structure row in an application method of a cloud structure management device provided in an embodiment of the present invention. When using a tool to maintain structure data, the structure will be removed. Select the structure row to be removed. When removing the selected structure row, there are two situations:
[0061] Case 1: If the selected structure row contains substructures, the substructures will be removed together;
[0062] Example: In a three-layer structure of A1, A2, and A3, if A2 is removed, the structure becomes:
[0063] A1
[0064] Case 2: If the selected structure row is a substructure, only the selected structure row will be removed.
[0065] Example: In a three-layer structure data with A1, A2, and A3, if A3 is removed, the structure will be:
[0066] A1
[0067] A2
[0068] Further, optionally, the substructure includes a reference relationship between substructures, and when a substructure in a substructure is removed, all referenced structures are updated synchronously.
[0069] Specifically, in order to support coordinated editing, the removal of structures is also supported. That is, the substructures in a structure are all references to substructures. If a substructure is removed separately in other places, all referenced structures will be updated synchronously.
[0070] For example, user U1 is editing a three-layer structure data with A1, A2, and A3. User U2 is editing the structure of A2 in the three-layer structure and removing A3 from the structure of A2.
[0071] At this time, the structure of A2 opened by U2 is:
[0072] A2
[0073] At this time, when U1 opens A1 again, the three-layer structure will become:
[0074] A1
[0075] A2
[0076] Optionally, the application method of the Yunpai structure management device provided in the embodiment of the present application also includes: obtaining the structure to be viewed, displaying the structural information of the latest version by default, and all structures displaying the latest version information of the corresponding data; viewing other versions, if the structural information of the latest released version only needs to switch the corresponding version rules to the latest released version, then updating the data of each layer of the structure according to the version rules, if at least one structure row does not have the latest released version of data, then a prompt message is given in the corresponding structure row.
[0077] Specifically, the application method of the Yunpai structure management device provided in the embodiment of the present application is convenient for tracing the structure of historical versions in the display of different versions in the management of the structure, so that different versions of the structure can be viewed. In the embodiment of the present application, the need to view and trace different versions of structures can be achieved by selecting different version rules. That is, obtain the structure to be viewed, and display the structural information of the latest version by default, and all structures display the latest version information of their corresponding data. To view other versions, such as the structural information of the latest released version, you only need to switch the corresponding version rule to the latest released version. The tool will update the data of each layer of the structure according to the version rules. If the data of the latest released version does not exist in a certain structure row, the tool will give a prompt message in the corresponding structure row.
[0078] Example: View the latest version of the three-layer structure data of A1, A2, and A3. The structure is:
[0079] A1
[0080] A2
[0081] A3
[0082] View the latest released version data of the three-layer structure data of A1, A2, and A3. The structure of A2 does not contain the latest released version data. The structure is:
[0083] A1
[0084] A2 (there is no latest release)
[0085] Check the latest released version of the three-layer structure data of A1, A2, and A3. The substructure A4 is added to the latest released version of A2. The structure is:
[0086] A1
[0087] A2
[0088] A3
[0089] A4
[0090] Further, optionally, select the version rule of the latest released version; query whether the substructure under the structure contains the latest released data; if the query result is yes, query whether the substructure under the substructure of the latest released version contains a substructure, if it contains a substructure, continue the query; if it does not contain a substructure, organize the data and display the latest released data, replacing the original data for display; if the query result is no, end the traversal, identify the data that does not contain the latest released version, and replace the original data for display.
[0091] Specifically, Figure 5 As shown, Figure 5A schematic diagram of the display of different version rules in an application method of a cloud structure management device provided in an embodiment of the present invention, open the structure view, determine "select the latest version of the version rule" or "select the latest released version of the version rule", if it is "select the latest version of the version rule", query the data of the latest version of all levels under the structure, and replace the original data for display; if it is "select the latest released version of the version rule", query whether the substructure under the structure contains the latest released version of the data, if the substructure under the structure contains the latest released version of the data, query whether the substructure under the latest released version contains the substructure, if it does, continue to query, if not, organize the data and display the latest released version of the data, and replace the original data for display; if the substructure under the structure does not contain the latest released version of the data, end the traversal, identify the data that does not contain the latest released version, and replace the original data for display.
[0092] Different from the structure management functions and tools on the market, the application method of the cloud structure management device provided in the embodiment of the present application introduces the concept and implementation of version rules. The version rules can assign different version rules to the current structure according to different needs, so as to achieve the purpose of viewing different versions of structure data. Figure 5 As shown, users can choose according to their needs, such as: the latest version, which can display and edit the latest version data of all levels of the structure manager, the latest released version, which can display and edit the latest released version data of all levels of the structure manager; based on the above, it can greatly reduce the workload of users to view, compare and trace different versions of structures, improve work efficiency and traceability of structures.
[0093] In related technologies, structural management is often composed of many levels of structures, and these levels are often edited by different people. When querying and viewing different versions of structural data, the real-time requirements for switching version rules are also particularly high, so the processing of structural management data is often the most troublesome.
[0094] In the embodiments of the present application, while introducing the innovative mechanism of version rules, the data processing is also innovated. To improve query efficiency, the system optimizes the data structure, saves data of different levels separately, and the background uses algorithms to meet the modification and coordination of the structure (automatically creating structure views when adding substructures, processing of initial data such as top-level structure rows, and individual permission control for each layer of structure rows), and the background will restore each layer of structure through algorithms during display. At the same time, the system also improves query efficiency by simplifying the data structure and synchronously writing the structure data in the database to Elasticsearch. For the hierarchy of the structure, the system adopts lazy loading and multi-threaded processing methods to improve the efficiency of viewing the structure; for the introduced version rules, the system backend uses a unique data processing mode (based on the optimized structure, quickly querying the single-layer data of the structure, and replacing the data of the structure row with data that complies with the version rules) to support users' needs to view different versions of data, while improving the efficiency of viewing different versions of data. The details are as follows:
[0095] like Figure 6 As shown, Figure 6 A schematic diagram of the underlying data structure of structure management in an application method of a cloud structure management device provided by an embodiment of the present invention, Figure 6 It includes: structure view table, structure row table and structure data of l1 object. The final display structure is l1 structure, so the background data processing algorithm will automatically query the structure view and top-level structure and sub-structure row of l1. If the sub-structure row also contains sub-structure rows, the top-level structure row in the sub-structure row object will no longer be displayed, and the sub-structure row of the sub-structure row will be directly hung below.
[0096] Figure 7 A schematic diagram of the latest release version rules of the structure management in the application method of the cloud structure management device provided by the embodiment of the present invention, such as Figure 7 As shown, combined Figure 5 and Figure 6 , based on the underlying data structure of structure management, the structure is finally displayed in the latest release version rule of structure management in the embodiment of the present application. Because the structure of the latest release version of l1 is to be viewed, the background data processing algorithm will automatically query the structure view and top-level structure of l1, and the sub-structure row. If the sub-structure row also contains a sub-structure row, the top-level structure row in the sub-structure row object will no longer be displayed, and the sub-structure row of the sub-structure row will be directly hung below. Because the sub-structure does not exist in the release version, the information is displayed.
[0097] The application method of the Yunpai structure management device provided in the embodiment of the present application builds and manages various complex structures online, and improves the efficiency of query, editing, and modification by intuitively displaying various structures. At the same time, the application method of the Yunpai structure management device provided in the embodiment of the present application improves the traceability of structure and data through version support for structure, material and other data; the application method of the Yunpai structure management device provided in the embodiment of the present application can flexibly build various data structures in the tool according to different needs, greatly improving the efficiency of building the structure. At the same time, different versions of structures can be viewed using the version rules supported in the tool, effectively improving the traceability of each version of the structure data.
[0098] An embodiment of the present invention provides an application method of a Yunpai structure management device, which creates a structure view; sets sub-objects through the created structure view; and after setting the sub-objects, adds sub-structure rows under the selected structure rows, thereby achieving the technical effects of quickly building various structural relationship data, quickly retrieving and maintaining structural data, and viewing and tracing historical structural data.
[0099] The embodiment of the present invention provides a cloud structure management device, Figure 8 A schematic diagram of a cloud structure management device provided by an embodiment of the present invention is shown in FIG. Figure 8 As shown, the Yunpai structure management device provided by the embodiment of the present invention includes: a creation module 82, used to create a structure view; a setting module 84, used to set sub-objects through the created structure view; an adding module 86, used to add a sub-structure row under the selected structure row after setting the sub-object.
[0100] An embodiment of the present invention provides a cloud structure management device, which creates a structure view; sets sub-objects through the created structure view; and after setting the sub-objects, adds sub-structure rows under the selected structure row, thereby achieving the technical effects of quickly building various structural relationship data, quickly retrieving and maintaining structural data, and viewing and tracing historical structural data.
[0101] The above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention.
Claims
1. An application method of a cloud structure management device, characterized in that: include: Create a structure view; Setting child objects by creating the structure view; After setting the sub-objects, add a sub-structure row under the selected structure row; The structure view is a view for storing structure data, under which a substructure is generated to store the substructure and the structure view, and the association relationship between the structure row of the substructure and the parent structure row, wherein the association relationship between the structure row of the substructure and the parent structure row is a tree structure; Adding a substructure row under the selected structure row includes: Determine whether the structure views of the same type are included; If the judgment result is yes, set the first child object; When the structure is judged to be no, a structure view of the same type belonging to the substructure is created, and the second subobject is set; Adding a substructure row under the selected structure row according to the first subobject or the second subobject; Among them, the structure management involves the structure view, the top-level structure row, and the sub-structure row. The backend database only uses two tables, the structure view table and the structure row table, for storage, and the data will be synchronously stored in Elasticsearch.
2. The application method of the cloud structure management device according to claim 1 is characterized in that: The substructure includes a reference relationship between substructures. When the substructure is modified, all referenced structures are updated synchronously.
3. The application method of the cloud structure management device according to claim 1 is characterized in that: In the event that creation of the structure view fails, an error message is returned.
4. The application method of the cloud structure management device according to claim 1 is characterized in that: The method further comprises: When removing the structural view, remove the selected sub-object. If the removal of the sub-object is successful, select the target structure row for removal. When removing the target structure row, if the selected target structure row contains a sub-structure, remove the sub-structure and the target structure row at the same time. If the selected target structure row is a sub-structure, remove the sub-structure.
5. The application method of the cloud structure management device according to claim 4 is characterized in that: The substructure includes a reference relationship of the substructure. When a substructure in the substructure is removed, all referenced structures are updated synchronously.
6. The application method of the cloud structure management device according to claim 1 is characterized in that: The method further comprises: Get the structure to be viewed. By default, the latest version of the structure information is displayed. All structures display the latest version of the corresponding data. Check other versions. If the structure information of the latest release version only needs to switch the corresponding version rule to the latest release version, update the data of each layer of the structure according to the version rule. If at least one structure row does not have the data of the latest release version, a prompt message will be given in the corresponding structure row.
7. The application method of the cloud structure management device according to claim 6 is characterized in that: Select the latest released version of the rules; Check whether the substructure under the structure contains the latest published data; If the query result is yes, query whether the substructure under the substructure of the latest release contains the substructure. If the substructure is contained, continue to query; if the substructure is not contained, organize the data and display the latest released data, replacing the original data for display; When the query result is negative, the traversal is terminated, the data that does not contain the latest release version is identified, and the original data is replaced for display.
8. A cloud structure management device, characterized in that: include: Create a module to create a structure view; A setting module, used for setting sub-objects through the created structure view; An adding module, used for adding a sub-structure row under the selected structure row after setting the sub-object; The structure view is a view for storing structure data, under which a substructure is generated to store the substructure and the structure view, and the association relationship between the structure row of the substructure and the parent structure row, wherein the association relationship between the structure row of the substructure and the parent structure row is a tree structure; The adding of a substructure row under the selected structure row includes: judging whether the structure view of the same type is included; if the judging result is yes, setting a first sub-object; if the judging result is no, creating a structure view of the same type belonging to the substructure and setting a second sub-object; adding a substructure row under the selected structure row according to the first sub-object or the second sub-object; Among them, the structure management involves the structure view, the top-level structure row, and the sub-structure row. The backend database only uses two tables, the structure view table and the structure row table, for storage, and the data will be synchronously stored in Elasticsearch.
