Module management method and device of production management system, equipment and medium
By building a module management control link to determine the legality of module operations, the problem of data inconsistency caused by module independence in the production management system is solved, and the accuracy of data management and the controllability of operations are improved.
Patent Information
- Application Number
- CN202410722328.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-22
AI Technical Summary
The independence between modules in the existing production management system results in low data management accuracy. Modification or deletion operations can easily lead to data inconsistency and redundancy, affecting the accuracy of production management.
By obtaining module identification information and dependencies, a module management control link is constructed to determine whether the module management instructions are allowed to be executed. If allowed, execute them, otherwise reject them, ensuring that the dependencies between modules are followed to avoid data loss or inconsistency.
It improves the accuracy of data management in the production management system, prevents data source loss or inconsistency caused by random operations, and ensures the controllability of module operations and the validity of data.
Smart Images

Figure CN118820232A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of production management, and in particular to a module management method, device, equipment and medium for a production management system. Background Art
[0002] In modern manufacturing, the management system based on MES (Manufacturing Execution System) software, as the core of production process management, plays an important role in production management and control.
[0003] The MES management system includes multiple modules, such as work order module, process module, bill of materials module, etc. In the existing MES management system, the relationship between each module is relatively independent. When performing daily maintenance or use, operators can easily modify or delete any module and perform other management operations. This design is usually prone to low data management accuracy in the production management system in actual operation. For example, due to the mutual independence between the modules, when the upstream module is deleted by mistake or disappears due to other reasons, the data in its downstream module will lose its corresponding data source, making the data of the downstream module become a large amount of inaccessible redundant data, resulting in inaccurate management data. For another example, modifying the module information related to the ongoing work order module may lead to inconsistent information in the production execution process and cause inaccurate management information. For example, modifying the bill of materials module related to the work order module will cause inconsistent product material composition before and after the work order module. Summary of the invention
[0004] Based on this, it is necessary to provide a module management method, device, equipment and medium for a production management system that can improve the accuracy of data management in the production management system in response to the above technical problems.
[0005] A module management method for a production management system, comprising:
[0006] Obtain the module identification information of each module created in the production management system, as well as the dependency relationship between the modules;
[0007] Building a module management control link based on the module identification information and the dependency relationship;
[0008] When receiving a module management instruction for a module, determining whether the module management instruction is allowed to be executed according to the module management control link;
[0009] If yes, execute the module management instruction;
[0010] If not, the module management instruction is rejected.
[0011] In one of the embodiments, the dependency relationship includes a production data inclusion relationship, and the module management control link includes a global modification control link;
[0012] The step of constructing a module management control link based on the module identification information and the dependency relationship includes:
[0013] According to the production data inclusion relationship between modules, a directed graph structure is constructed with the identification information of each module as a node, from the node of the previous module to the node of the next module containing the production data in the previous module, to obtain the global modification control link.
[0014] In one of the embodiments, after obtaining the global modification control link, the method further includes:
[0015] Obtaining the production status of the work order module in the global modification control link;
[0016] When the production status of the work order module is to start production, a status lock is set for the node of the module associated with the work order module in the global modification control link.
[0017] In one embodiment, the module management instruction includes a module modification instruction; and judging whether the module management instruction is allowed to be executed according to the module management control link includes:
[0018] Determine the module to be modified corresponding to the module modification instruction;
[0019] Check whether there is no node with a status lock set in the path from the root node in the global modification control link to the node corresponding to the module to be modified;
[0020] If it does not exist, the module modification instruction is allowed to execute;
[0021] If it exists, the module modification instruction is not allowed to be executed.
[0022] In one of the embodiments, the dependency relationship includes a data deletion upstream and downstream relationship, and the module management control link includes a global deletion control link;
[0023] The step of constructing a module management control link based on the module identification information and the dependency relationship includes:
[0024] According to the upstream and downstream relationships of data deletion between each module, the upstream module and the downstream module of the two associated modules are determined, and a directed graph structure with the module identification information of each module as the node and pointing from the node of the downstream module to the node of the upstream module is constructed to obtain the global deletion control link.
[0025] In one embodiment, the module management instruction includes a module deletion instruction; and judging whether the module management instruction is allowed to be executed according to the module management control link includes:
[0026] Determine the module to be deleted corresponding to the module deletion instruction;
[0027] Determine the in-degree of the node corresponding to the module to be deleted in the global deletion control link;
[0028] If the in-degree of the node corresponding to the module to be deleted is 0, the module deletion instruction is allowed to be executed;
[0029] If the in-degree of the node corresponding to the module to be deleted is not 0, the module deletion instruction is not allowed to be executed.
[0030] A module management device for a production management system, comprising:
[0031] The acquisition module is used to obtain the module identification information of each module created in the production management system, as well as the dependency relationship between the modules;
[0032] A link construction module, used for building a module management control link based on the module identification information and the dependency relationship;
[0033] an analysis module, configured to, upon receiving a module management instruction for a module, determine whether the module management instruction is allowed to be executed according to the module management control link;
[0034] The decision module is used to execute the module management instruction when the module management instruction allows execution; and to reject the module management instruction when the module management instruction does not allow execution.
[0035] In one of the embodiments, the dependency relationship includes a production data inclusion relationship, and the module management control link includes a global modification control link; the link construction module includes a global modification control link construction unit, which is used to construct a directed graph structure with each module identification information as a node, pointing from the node of the previous module to the node of the next module containing the production data in the previous module, based on the production data inclusion relationship between the modules, to obtain the global modification control link; and / or
[0036] The dependency relationship includes an upstream and downstream relationship of data deletion, and the module management control link includes a global deletion control link; the link construction module includes a global deletion control link construction unit, which is used to determine the upstream module and the downstream module among the two associated modules based on the upstream and downstream relationship of data deletion between the modules, and construct a directed graph structure with the module identification information of each module as the node, and from the node of the downstream module to the node of the upstream module, to obtain the global deletion control link.
[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0038] Obtain the module identification information of each module created in the production management system, as well as the dependency relationship between the modules;
[0039] Building a module management control link based on the module identification information and the dependency relationship;
[0040] When receiving a module management instruction for a module, determining whether the module management instruction is allowed to be executed according to the module management control link;
[0041] If yes, execute the module management instruction;
[0042] If not, the module management instruction is rejected.
[0043] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0044] Obtain the module identification information of each module created in the production management system, as well as the dependency relationship between the modules;
[0045] Building a module management control link based on the module identification information and the dependency relationship;
[0046] When receiving a module management instruction for a module, determining whether the module management instruction is allowed to be executed according to the module management control link;
[0047] If yes, execute the module management instruction;
[0048] If not, the module management instruction is rejected.
[0049] The module management method, device, equipment and medium of the above-mentioned production management system construct a module management control link based on the module identification information of the modules in the production management system and the dependency relationship between the modules, and then determine whether the received module management instruction is allowed to be executed based on the module management control link, thereby analyzing the executableness of the module management instruction in combination with the module dependency relationship. If execution is allowed, the module management instruction is executed to perform management operations on the module; otherwise, the module management instruction is rejected to prohibit management operations on the module. In this way, the management operations on the modules are controlled on the basis of considering the module dependency relationship, and the module management instruction is executed only when the requirements are met, thereby avoiding the problem of inaccurate production management caused by the loss or inconsistency of the data source due to arbitrary operation of the module data, thereby improving the accuracy of data management of the production management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0051] Figure 1 A schematic diagram of a flow chart of a module management method of a production management system in one embodiment;
[0052] Figure 2 A schematic flow chart of a module management method of a production management system in another embodiment;
[0053] Figure 3 A schematic diagram of a global modification control link in one embodiment;
[0054] Figure 4 A schematic diagram of a global deletion control link in one embodiment;
[0055] Figure 5 It is a structural block diagram of a module management device of a production management system in one embodiment. DETAILED DESCRIPTION
[0056] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0058] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.
[0059] As described in the background technology, in the prior art, when a module of a production management system is modified, the modified module may be inconsistent with the same information of other modules, resulting in inaccurate management information. When a module of a production management system is deleted, the data sources of other modules will disappear and become redundant data. The inventor has found that the reason for this problem is that the management of each module in the prior art is independent, without considering the association between modules, that is, without considering the chain effect on other modules.
[0060] Based on the above reasons, the present application provides a module management solution that takes into account the dependencies between modules. Operators need to follow the set rules when performing management operations such as modification or deletion on each module in the production management system.
[0061] In one embodiment, Figure 1 As shown, a module management method of a production management system is provided, which can be applied to computer equipment, for example, the computer equipment can be a computer, a notebook, a tablet computer, an intelligent computing terminal, etc. Taking the application to computer equipment as an example, the method includes the following steps S110 to S190.
[0062] S110: Acquire module identification information of each module created in the production management system, and dependency relationships between modules.
[0063] The module identification information is information used to distinguish modules. For example, the module identification information may be a module name. The dependency relationship refers to the association relationship between modules. Each module in the production management system is created by an operator, and the dependency relationship between modules can be determined by the operator and information representing the dependency relationship can be generated. Specifically, the computer device can read the module identification information of each created module to represent each module; the computer device can read the information representing the dependency relationship to obtain the dependency relationship between modules.
[0064] S130: Construct a module management control link based on the module identification information and the dependency relationship.
[0065] The module management control link is a link that reflects the dependency relationship between modules. Specifically, it is a directed graph structure with module identification information as nodes. Specifically, the module management control link can be established by AOP (aspect-oriented programming) and adding headers. The construction of the module management control link is separated from the main business logic as much as possible to improve the maintainability and reusability of the code.
[0066] S150: When receiving a module management instruction for a module, determine whether the module management instruction is allowed to be executed according to the module management control link.
[0067] The module management instruction is an instruction to instruct to perform a management operation on the module's data / information. Specifically, the module management instruction includes at least one of a module deletion instruction and a module modification instruction, wherein the module deletion instruction instructs to perform a deletion operation on the module's data / information, and the module modification instruction instructs to perform a modification operation on the module's data / information.
[0068] Specifically, if the module management instruction is allowed to be executed, step S170 is executed to execute the module management instruction. If the module management instruction is not allowed to be executed, step S190 is executed to prohibit the execution of the module management instruction.
[0069] S170: Execute module management instructions.
[0070] S190: Reject the module management instruction.
[0071] The module management method of the above-mentioned production management system constructs a module management control link according to the module identification information of the modules in the production management system and the dependency relationship between the modules, and then determines whether the received module management instruction is allowed to be executed according to the module management control link, thereby analyzing the executableness of the module management instruction in combination with the module dependency relationship. If execution is allowed, the module management instruction is executed to perform management operations on the module; otherwise, the module management instruction is rejected to prohibit management operations on the module. In this way, the management operations on the modules are controlled on the basis of considering the module dependency relationship, and the module management instruction is executed only when the requirements are met, thereby avoiding the problem of inaccurate production management caused by the loss or inconsistency of the data source due to arbitrary operation of the module data, thereby improving the accuracy of data management of the production management system.
[0072] In one embodiment, the dependency relationship includes a production data inclusion relationship, and the module management control link includes a global modification control link. The production data inclusion relationship, i.e., the relationship between the production data of one module and the production data of another module, can be specifically determined based on the association between the production data of the modules.
[0073] Specifically, refer to Figure 2 Step S130 includes step S131: based on the production data inclusion relationship between the modules, a directed graph structure is constructed with the identification information of each module as a node, from the node of the previous module to the node of the next module containing the production data in the previous module, to obtain a global modification control link.
[0074] The identification information of each module is used as the node, and specifically the module name can be used as the node, such as the work order module, process module, procedure module, bill of materials module, etc. In the global modification control link, the pointing order between the nodes is determined by the production data inclusion relationship of each module, and the node of the previous module points to the node of the module containing the production data of the previous module. For example, the production data of the bill of materials module contains the information of the material, so the nodes of each material module point to the node of the bill of materials module; and the information of the bill of materials appears in the production data of the process module, that is, the production data of the process module contains the information of the bill of materials, so the node of the bill of materials module points to the node of the process module; the production data of the work order module contains the information of the process, so the node of the process module points to the node of the work order module, thus forming one of the paths in the global modification control link, such as Figure 3 shown.
[0075] In this embodiment, a global modification control link is constructed through the production data inclusion relationship between modules, and the production data inclusion relationship between modules is recorded, so as to intuitively reflect the association between modules. Specifically, when the operator creates each module, the computer device can construct a global modification control link by adding a header through AOP (aspect-oriented programming).
[0076] In one embodiment, reference Figure 2 , after step S131, it also includes step S132 and step S133.
[0077] S132: Obtain the production status of the work order module in the global modification control link.
[0078] The production status of the work order module refers to whether the work order corresponding to the work order module is currently in the production stage, including the state of starting production and the state of non-production. For example, if the work order corresponding to the work order module is currently in production, the production status of the work order module is starting production. Specifically, the production status of the work order module can be a production status identifier set by an operator. For example, the work order module can be bound to a production status selection box, and the operator selects the production status selection box according to the actual work order production situation, thereby setting the production status identifier; the computer device reads the production status identifier of the work order module to obtain the production status.
[0079] S133: When the production status of the work order module is to start production, a status lock is set for the node of the module associated with the work order module in the global modification control link.
[0080] The module associated with the work order module is the module in the same path as the work order module in the global modification control link. The status lock indicates the locked state; specifically, if the status lock is set for the node of the module, the corresponding node is locked, and the corresponding module of the node does not allow data modification. For example Figure 3 In the global modification control link, all modules are associated with the work order module. If the production status of the work order module is to start production, the status lock can be set for the nodes corresponding to all modules, and all modules are in a state where data modification is not allowed.
[0081] In this embodiment, each node on the global modification control link is allowed to set a status lock, and the node status lock is set according to the production status of the work order module, thereby marking whether the module corresponding to the node is allowed to be modified, providing a basis for judging whether the module is allowed to be modified, and facilitating the analysis of whether the module modification operation is allowed. It can be understood that in other embodiments, other methods can be used to mark whether the node is allowed to be modified, for example, different marking numbers can be set to distinguish between allowed modification and not allowed modification.
[0082] Further, in one embodiment, the module management instruction includes a module modification instruction; continue to refer to Figure 2 , step S150 includes step S151 and step S153.
[0083] S151: When a module modification instruction for a module is received, a module to be modified corresponding to the module modification instruction is determined.
[0084] S153: Check whether there is no node with a status lock set in the path from the root node in the global modification control link to the node corresponding to the module to be modified.
[0085] If there is no node with a status lock set, it means that the set rules are met. At this time, the module modification instruction is allowed to be executed, and step S170 is performed to execute the module modification instruction to modify the data of the module to be modified. If there is a node with a status lock set, it means that the set rules are not met. At this time, the module modification instruction is not allowed to be executed, and step S190 is performed, that is, the module modification instruction is rejected and the data of the module to be modified is prohibited from being modified.
[0086] If a node is set with a status lock, it means that the module corresponding to the node is not allowed to be modified. In the global modification control link, there is an association relationship between the modules corresponding to the nodes on the same path, and the modification of data in one module will affect the consistency of data with other modules. This embodiment constructs a global modification control link and marks whether it is allowed to be modified by means of a status lock. The absence of a node with a status lock set on the path of the node corresponding to the module to be modified is used as a rule to allow modification operations, and analyzes whether the module modification instruction is allowed to be executed, thereby ensuring the controllability of the data modification operations of each module, preventing the data of the module corresponding to the node from being arbitrarily changed and causing data inconsistency, and ensuring the validity of the data and the continuity of the production process, thereby improving the accuracy of production process data management.
[0087] In particular, when a work order starts production, the node corresponding to the work order module will set a status lock. When a module modification instruction is received, due to the existence of the status lock, all modules related to this work order module are not allowed to be modified at will during the production process. In this way, it can be ensured that all data and operations are consistent from the beginning to the end of the work order production process, thereby avoiding data inconsistency problems caused by mid-term modifications.
[0088] In one embodiment, the dependency relationship includes a data deletion upstream and downstream relationship, and the module management control link includes a global deletion control link. The data deletion upstream and downstream relationship, that is, the impact relationship between the data deletion of one module and the data of another module, can be specifically confirmed based on the impact of the module deletion data on other modules, with one module as the upstream module, and the affected modules after the upstream module deletes the data as the downstream modules of the upstream module. Specifically, the data deletion upstream and downstream relationship can be manually determined and generated.
[0089] Further, refer to Figure 2 Step S130 may include step S134: determining the upstream module and the downstream module of the two associated modules according to the upstream and downstream relationship of data deletion between the modules, constructing a directed graph structure with the module identification information of each module as the node and pointing from the node of the downstream module to the node of the upstream module, and obtaining a global deletion control link.
[0090] In the global deletion control link, the order of pointing between nodes is determined by the upstream and downstream relationship of data deletion of each module, and the node of the downstream module points to the node of the upstream module. For example, taking the bill of materials module as an example, if the bill of materials is deleted directly, the information of the materials related to the bill of materials will lose the data source and become dirty data. Therefore, the bill of materials module is the upstream module and the material module is the downstream module; in addition, the generation of the process requires the selection of a specific bill of materials. If the bill of materials is deleted first, the process will lose its related dependencies and lose its practical significance. Therefore, the process module is also the downstream module of the bill of materials module. By analogy, the upstream and downstream relationship of data deletion of each module is obtained, and the establishment of Figure 4 The global delete control link is shown.
[0091] In this embodiment, a global deletion control link is constructed through the upstream and downstream relationships of data deletion between modules, and the impact relationship of deleting data between modules is recorded, so as to intuitively reflect the association of modules. Specifically, when the operator creates each module, the computer device can construct a global deletion control link by adding a header through AOP (aspect-oriented programming).
[0092] In one embodiment, the module management instruction includes a module deletion instruction. Figure 2, step S150 may also include steps S154 to S157.
[0093] S154: When a module deletion instruction for a module is received, a module to be deleted corresponding to the module deletion instruction is determined.
[0094] S156: Determine the in-degree of the node corresponding to the module to be deleted in the global deletion control link.
[0095] The in-degree refers to the sum of the number of times a node is the end point of an edge in a directed graph structure; correspondingly, the in-degree of the node corresponding to the module to be deleted can be obtained by calculating the sum of the edges pointing to the node corresponding to the module to be deleted. Figure 4 In the example, the in-degree of the work order is 0, the in-degree of the process is 1, and the in-degree of the bill of materials is 3.
[0096] S157: Determine whether the in-degree of the node corresponding to the module to be deleted is 0.
[0097] If the in-degree of the node corresponding to the module to be deleted is 0, it means that it meets the set rules. At this time, the module deletion instruction is allowed to be executed, and step S170 is performed to execute the module deletion instruction to delete the data of the module to be deleted. If the in-degree of the node corresponding to the module to be deleted is not 0, it means that it does not meet the set rules. At this time, the module deletion instruction is not allowed to be executed, and step S190 is performed, that is, the module deletion instruction is rejected, and the data of the module to be modified is prohibited from being deleted.
[0098] The in-degree of a node is equal to the number of downstream modules of the module corresponding to the node. If the in-degree is 0, the module corresponding to the node has no downstream module. Deleting data of the module corresponding to the node will not affect the data of other modules. Deleting the data of the module corresponding to the node with in-degree will cause data loss. This embodiment constructs a global deletion control link, analyzes whether the in-degree of the node in the global deletion control link is 0 to determine whether the module deletion instruction is allowed to execute, and uses the in-degree of the node corresponding to the module to be deleted as 0 as a rule to allow the deletion operation, thereby ensuring the controllability of the data deletion operation of each module, ensuring that there will be no adverse effects on other modules when deleting module data, avoiding data redundancy, and improving the accuracy of data management in the production process.
[0099] Take the BOM module as an example. On the one hand, if the BOM is deleted directly, the material information related to the BOM will lose its data source and become dirty data. On the other hand, the generation of a process requires the selection of a specific BOM. If the BOM is deleted first, the process will lose its relevant dependencies and lose its practical significance. Therefore, the BOM module is the upstream module, and the material module and process module are the downstream modules of the BOM module. On the global deletion control link, the nodes of the material module and the process module point to the node of the BOM module. All material information related to the BOM and process-related information must be deleted first to ensure that the in-degree of the BOM module is 0, that is, there is no downstream module, and then the data of the BOM module can be safely deleted.
[0100] Understandably, Figure 2 This is a diagram of a preferred embodiment, in which the dependency relationship includes a production data inclusion relationship and a data deletion upstream and downstream relationship, and the module management control link includes a global modification control link and a global deletion control link, which can control the deletion and modification of module data, but is not used to limit this application. It can be understood that in other embodiments, one of the global modification control link and the global deletion control link can be constructed, and correspondingly, step S130 includes steps S131 to S133, step S150 includes steps S151 and S153, or step S130 includes step S134, and step S150 includes steps S154 to S157.
[0101] It should be understood that although Figure 1-Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0102] In one embodiment, Figure 5 As shown, a module management device of a production management system is provided, including: an acquisition module 510, a link construction module 530, an analysis module 550 and a decision module 570, wherein:
[0103] The acquisition module 510 is used to obtain the module identification information of each module created in the production management system, as well as the dependency relationship between each module. The link construction module 530 is used to construct a module management control link based on the module identification information and the dependency relationship. The analysis module 550 is used to determine whether the module management instruction is allowed to be executed according to the module management control link when receiving the module management instruction for the module. The decision module 570 is used to execute the module management instruction when the module management instruction is allowed to be executed; and reject the module management instruction when the module management instruction is not allowed to be executed.
[0104] The module management device of the above-mentioned production management system constructs a module management control link according to the module identification information of the modules in the production management system and the dependency relationship between the modules, and then determines whether the received module management instruction is allowed to be executed according to the module management control link, thereby analyzing the executableness of the module management instruction in combination with the module dependency relationship. If execution is allowed, the module management instruction is executed to perform management operations on the module; otherwise, the module management instruction is rejected to prohibit management operations on the module. In this way, the management operations on the modules are controlled on the basis of considering the module dependency relationship, and the module management instruction is executed only when the requirements are met, thereby avoiding the problem of inaccurate production management caused by the loss or inconsistency of the data source due to arbitrary operation of the module data, thereby improving the accuracy of data management of the production management system.
[0105] In one embodiment, the dependency relationship includes a production data inclusion relationship, and the module management control link includes a global modification control link. The link construction module 530 includes a global modification control link construction unit, which is used to construct a directed graph structure with each module identification information as a node, from the node of the previous module to the node of the next module containing the production data in the previous module, according to the production data inclusion relationship between the modules, to obtain a global modification control link.
[0106] Specifically, the global modification control link construction unit is also used to obtain the production status of the work order module in the global modification control link, and when the production status of the work order module is to start production, set a status lock for the node of the module associated with the work order module in the global modification control link.
[0107] Furthermore, the analysis module 550 includes a modification analysis unit, which is used to determine the module to be modified corresponding to the module modification instruction when receiving a module modification instruction for the module; query whether there is no node with a status lock set in the path from the root node in the global modification control link to the node corresponding to the module to be modified; if there is no node with a status lock set, the module modification instruction is allowed to be executed, and if there is a node with a status lock set, the module modification instruction is not allowed to be executed.
[0108] In one embodiment, the dependency relationship includes a data deletion upstream and downstream relationship, and the module management control link includes a global deletion control link. The link construction module 530 includes a global deletion control link construction unit, which is used to determine the upstream module and the downstream module of the two associated modules according to the data deletion upstream and downstream relationship between the modules, and construct a directed graph structure with the module identification information of each module as a node, from the node of the downstream module to the node of the upstream module, to obtain a global deletion control link.
[0109] Furthermore, the analysis module 550 includes a deletion analysis unit, which is used to determine the module to be deleted corresponding to the module deletion instruction when receiving a module deletion instruction for the module; determine the in-degree of the node corresponding to the module to be deleted in the global deletion control link; judge whether the in-degree of the node corresponding to the module to be deleted is 0; if the in-degree of the node corresponding to the module to be deleted is 0, the module deletion instruction is allowed to be executed, otherwise, the module deletion instruction is not allowed to be executed.
[0110] For the specific definition of the module management device of the production management system, please refer to the definition of the module management method of the production management system above, which will not be repeated here. Each module in the module management device of the above-mentioned production management system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0111] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0112] The above-mentioned computer device can implement the steps in the above-mentioned method embodiments when the processor it contains executes the computer program. Similarly, it can avoid the problem of inaccurate production management caused by loss or inconsistency of data source due to arbitrary operation of module data, thereby improving the accuracy of data management of the production management system.
[0113] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0114] The above-mentioned computer-readable storage medium implements the steps in the above-mentioned method embodiments when the computer program stored in it is executed by the processor. Similarly, it can avoid the problem of inaccurate production management caused by loss or inconsistency of data source due to arbitrary operation of module data, thereby improving the accuracy of data management of the production management system.
[0115] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0116] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.
[0117] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0118] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A module management method for a production management system, It is characterized in that include: Obtain the module identification information of each module created in the production management system, as well as the dependency relationship between the modules; Building a module management control link based on the module identification information and the dependency relationship; When receiving a module management instruction for a module, determining whether the module management instruction is allowed to be executed according to the module management control link; If yes, execute the module management instruction; If not, the module management instruction is rejected.
2. The method according to claim 1, It is characterized in that The dependency relationship includes a production data inclusion relationship, and the module management control link includes a global modification control link; The step of constructing a module management control link based on the module identification information and the dependency relationship includes: According to the production data inclusion relationship between modules, a directed graph structure is constructed with the identification information of each module as a node, from the node of the previous module to the node of the next module containing the production data in the previous module, to obtain the global modification control link.
3. The method according to claim 2, It is characterized in that After obtaining the global modification control link, the method further includes: Obtaining the production status of the work order module in the global modification control link; When the production status of the work order module is to start production, a status lock is set for the node of the module associated with the work order module in the global modification control link.
4. The method according to claim 3, It is characterized in that The module management instruction includes a module modification instruction; and judging whether the module management instruction is allowed to be executed according to the module management control link includes: Determine the module to be modified corresponding to the module modification instruction; Check whether there is no node with a status lock set in the path from the root node in the global modification control link to the node corresponding to the module to be modified; If it does not exist, the module modification instruction is allowed to execute; If it exists, the module modification instruction is not allowed to be executed.
5. The method according to any one of claims 1 to 4, It is characterized in that The dependency relationship includes a data deletion upstream and downstream relationship, and the module management control link includes a global deletion control link; The step of constructing a module management control link based on the module identification information and the dependency relationship includes: According to the upstream and downstream relationships of data deletion between each module, the upstream module and the downstream module of the two associated modules are determined, and a directed graph structure with the module identification information of each module as the node and pointing from the node of the downstream module to the node of the upstream module is constructed to obtain the global deletion control link.
6. The method according to claim 5, It is characterized in that The module management instruction includes a module deletion instruction; and judging whether the module management instruction is allowed to be executed according to the module management control link includes: Determine the module to be deleted corresponding to the module deletion instruction; Determine the in-degree of the node corresponding to the module to be deleted in the global deletion control link; If the in-degree of the node corresponding to the module to be deleted is 0, the module deletion instruction is allowed to be executed; If the in-degree of the node corresponding to the module to be deleted is not 0, the module deletion instruction is not allowed to be executed.
7. A module management device for a production management system, It is characterized in that include: The acquisition module is used to obtain the module identification information of each module created in the production management system, as well as the dependency relationship between the modules; A link construction module, used for building a module management control link based on the module identification information and the dependency relationship; an analysis module, configured to, upon receiving a module management instruction for a module, determine whether the module management instruction is allowed to be executed according to the module management control link; A decision module, configured to execute the module management instruction when the module management instruction allows execution; When the module management instruction is not allowed to be executed, reject the module management instruction.
8. The device according to claim 7, It is characterized in that The dependency relationship includes a production data inclusion relationship, and the module management control link includes a global modification control link; the link construction module includes a global modification control link construction unit, which is used to construct a directed graph structure with identification information of each module as a node and pointing from the node of the previous module to the node of the next module containing the production data in the previous module according to the production data inclusion relationship between the modules, so as to obtain the global modification control link; and / or The dependency relationship includes an upstream and downstream relationship of data deletion, and the module management control link includes a global deletion control link; the link construction module includes a global deletion control link construction unit, which is used to determine the upstream module and the downstream module among the two associated modules based on the upstream and downstream relationship of data deletion between the modules, and construct a directed graph structure with the module identification information of each module as the node, and from the node of the downstream module to the node of the upstream module, to obtain the global deletion control link.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
