Master data coding method, system and device based on service primary key and medium

Through the master data encoding method based on the business primary key, a configuration table and encoding rule library are established, the master data model is registered and the process activity configuration is added to generate the master data encoding, which solves the duplication and duplication of master data encoding in heterogeneous systems in the discrete manufacturing industry. Inconsistency problems are solved, and the correlation of master data objects in various business links is realized and the coding utilization rate is improved.

CN118607474AActive Publication Date: 2024-09-06CHENGDU AIRCRAFT INDUSTRY GROUP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410635770.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-06
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

In the discrete manufacturing industry, existing coding methods cannot achieve end-to-end process integration through a fixed master data coding, and cannot adapt to the needs of personalized business processes at different stages, resulting in duplication and inconsistency of master data coding in heterogeneous systems. .

Method used

Adopt a master data coding method based on business primary keys, establish configuration tables, coding rule bases, and register master data models in the master data system, add process activity configurations, and generate flexible master data coding to ensure that master data objects can be used in various business environments. connections.

Benefits of technology

It achieves flexible coding of master data objects and ensures the interconnection of master data coding in various business links of the discrete manufacturing industry. It solves the problem that one master data object with one coding rule cannot connect the end-to-end business workflow in the discrete environment, and improves the efficiency of the business workflow. Master data object encoding utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607474A
    Figure CN118607474A
Patent Text Reader

Abstract

The invention relates to the technical field of data asset management, in particular to a main data coding method, system and device based on a service main key and a medium. The method comprises the following steps: firstly, establishing a configuration table according to an obtained main data object, a main data service main key and a service stage; then, according to a main data service main key and the established coding element model, a coding rule base is established; and finally, registering the master data model into a master data system, adding flow activity configuration in a maintenance flow configuration link, and configuring a business primary key attribute value passing verification into a coding rule to generate a master data code. The flexible coding of the main data object is realized, the association and communication of the main data coding in each business environment of the discrete manufacturing industry are ensured, and the communication of the end-to-end process is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data asset management, and in particular to a method, system, device and medium for encoding master data based on a business primary key. Background Art

[0002] In the field of data asset management in management informatization, master data is considered to be the core data of an enterprise with high sharing and high stability characteristics. At present, one of the basic requirements of master data management is to achieve a one-to-one correspondence between master data objects and codes. Through coding, the consistency of heterogeneous systems and process data can be maintained, and the end-to-end connection of business processes can be achieved. However, in the small-batch production mode of discrete manufacturing, there are many personalized requirements for business processes at different stages, which makes it impossible to achieve the connection of the entire end-to-end process through a fixed master data code. A system that supports flexible definition of coding rules is needed for master data coding to adapt to the high sharing characteristics of master data in discrete manufacturing. Summary of the invention

[0003] In view of the problem that the existing encoding method needs to repeat encoding according to respective scenarios in multiple heterogeneous systems, the present invention proposes a master data encoding method, system, device and medium based on business primary key; firstly, a configuration table is established according to the acquired master data object, master data business primary key and business stage; then, an encoding rule library is established according to the master data business primary key and the established encoding metamodel; finally, the master data model is registered in the master data system, and process activity configuration is added in the maintenance process configuration link, and the business primary key attribute value after verification is configured into the encoding rule to generate the master data encoding; the flexible encoding of the master data object is realized, and it is ensured that the master data encoding is associated and connected in various business environments of the discrete manufacturing industry, so as to realize the connection of the end-to-end process.

[0004] The specific implementation contents of the present invention are as follows:

[0005] A master data encoding method based on business primary key, firstly, a configuration table is established according to the acquired master data object, the master data business primary key and the business stage; then, an encoding rule library is established according to the master data business primary key and the established encoding metamodel; finally, the master data model is registered in the master data system, and process activity configuration is added in the maintenance process configuration link, and the business primary key attribute value after verification is configured into the encoding rule to generate the master data code.

[0006] In order to better implement the present invention, further, the master data encoding method based on the business primary key specifically includes the following steps:

[0007] Step S1: Create a configuration table based on the acquired master data object, master data business primary key, and business stage;

[0008] Step S2: Establish a coding rule base according to the business primary key of the main database and the established coding metamodel;

[0009] Step S3: According to the master data business primary key attribute set, the identified master data model is registered into the master data system, the corresponding coding rules are selected from the coding rule library, and process activities are added according to the business stage. The business primary key attribute values ​​that have passed the verification are configured into the coding rules to generate the master data code of the corresponding stage.

[0010] In order to better implement the present invention, further, the step S1 specifically includes the following steps:

[0011] Step S11: Acquire the data entity object containing data characteristics from the enterprise database to obtain the master data object;

[0012] Step S12: According to the master data object and the data link of the master data object in the enterprise business process, the master data object is divided into different business stages, and the master data business primary keys corresponding to the different business stages are identified to obtain the master data business primary key attribute set;

[0013] Step S13: Create a master data object-business stage-business primary key configuration table based on the acquired master data object, business stage and master data business primary key, and configure the master data object, business stage and master data business primary key into the master data system according to the configuration table.

[0014] In order to better implement the present invention, further, the step S2 specifically includes the following steps:

[0015] Step S21: calling the abstract analysis method to divide the encoding meta-model into a prefix model object, a serial code model object, and a suffix model object;

[0016] Step S22: According to the master data business primary key and the master data business primary key attribute set, configure the attribute item sorting order, separator, and serial code parameters of the master data business primary key, and establish a coding rule library.

[0017] In order to better implement the present invention, further, the prefix model object and the suffix model object are used to match the master data business primary key attribute set, sort the combination of the master data business primary key attributes, and configure the separator after the master data business primary key attribute item;

[0018] The characteristic parameters of the serial code model object include a serial code fixed length identifier, a fixed length, a step length, a serial code initial value, a placeholder, and a separator.

[0019] In order to better implement the present invention, further, the step S3 specifically includes the following steps:

[0020] Step S31: After the attribute set corresponding to the master data business primary key and the master data attribute are identified, the master data model is registered in the master data system, and the encoding rules corresponding to the master data model are set in the encoding configuration phase;

[0021] Step S32: Add process activities in the master data maintenance process configuration link to generate the master data code for the corresponding stage;

[0022] Step S33: Verify the business primary key attribute value, pass the verified business primary key attribute to the configured encoding rule, and generate the discrete manufacturing master data code.

[0023] In order to better implement the present invention, further, the configuration quantity and activity sequence of the process activities are set according to the quantity of business primary keys of the master data objects and the scene sequence of the master data objects in the data link.

[0024] Based on the above-mentioned master data encoding method based on business primary key, in order to better implement the present invention, further, a master data encoding system based on business primary key is proposed, including an initialization unit, a creation unit, and an encoding unit;

[0025] The initialization unit is used to establish a configuration table according to the acquired master data object, master data business primary key, and business stage; the establishment unit is used to establish a coding rule library according to the master data business primary key and the established coding metamodel;

[0026] The encoding unit is used to register the master data model into the master data system, and to add process activity configuration in the maintenance process configuration link, configure the business primary key attribute value after verification into the encoding rule, and generate the master data code.

[0027] Based on the above-mentioned master data encoding method based on business primary key, in order to better realize the present invention, further, an electronic device is proposed, including a memory and a processor; a computer program is stored in the memory; when the computer program is executed on the processor, the above-mentioned master data encoding method based on business primary key is implemented.

[0028] Based on the above-mentioned master data encoding method based on business primary key, in order to better realize the present invention, further, a computer-readable storage medium is proposed, on which computer instructions are stored; when the computer instructions are executed on the above-mentioned electronic device, the above-mentioned master data encoding method based on business primary key is implemented.

[0029] The present invention has the following beneficial effects:

[0030] (1) The present invention constructs a business primary key and a coding metamodel, and adds a coding link in the master data maintenance process to trigger the generation of master data codes. This not only enables flexible coding of master data objects, but also ensures that master data codes are associated and connected in various business links of discrete manufacturing.

[0031] (2) The present invention establishes a configuration table between different business primary keys, master data categories, and coding metamodels, and triggers the centralized generation of multiple codes in the maintenance process. This not only standardizes the coding process, but also establishes a mapping relationship between different codes at different stages of the same object. This solves the problem that the method of assigning one coding rule to one master data object in a discrete environment cannot penetrate the end-to-end business workflow, and improves the utilization rate of master data object codes. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic flowchart of the master data encoding method based on the business primary key provided by the present invention. DETAILED DESCRIPTION

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the technical solutions 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. It should be understood that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, and therefore should not be regarded as limiting the scope of protection. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technical personnel in this field without making creative work are within the scope of protection of the present invention.

[0034] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "disposed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0035] The professional terms and explanations involved in the embodiments of this application are as follows:

[0036] Master data: Master data is relative to business data. It refers to data that is reused across multiple business departments within an enterprise and exists in multiple heterogeneous application systems. It has high business value and is used to describe the core business entities of the enterprise.

[0037] Scenario: A set of business activities performed by an enterprise to achieve its production and operation goals, including business processes and related data flows.

[0038] Business primary key: describes the unique identification information of entity data from the perspective of business attributes. The difference from the data primary key is that the data primary key only describes the unique identification information from the data perspective, and has nothing to do with the specific business content. It is added when a new piece of data is added, and the expression form is generally 32-bit or 64-bit random data. The business primary key describes the unique identification information through a combination of attributes closely related to the business entity object. For example, the business primary key of basic personnel information can be: gender, date of birth, and ID number.

[0039] Business scenarios include business processes and data entities and data that support business circulation. One of the characteristics of master data is high sharing, that is, entity object data across business processes, systems, and departments. Therefore, there must be an association between which master data objects are in the scenario and which attribute combinations are the business primary keys of the master data entity objects. In addition, due to the multi-type and small-batch characteristics of discrete manufacturing business processes, business scenarios will be subdivided, that is, the data requirements for the same master data object in different scenarios are different. For example, in the process document preparation stage, the business primary keys required for part master data include drawing number, version, and technical status, and in the planning stage, they include drawing number, version, and manufacturing unit. Therefore, establishing an association between scenarios, master data, and business primary keys is a necessary step to open up end-to-end processes.

[0040] Embodiment 1:

[0041] This embodiment proposes a master data encoding method based on business primary key. First, a configuration table is established according to the acquired master data object, master data business primary key, and business stage; then, an encoding rule library is established according to the master data business primary key and the established encoding metamodel; finally, the master data model is registered in the master data system, and process activity configuration is added in the maintenance process configuration link, and the business primary key attribute value after verification is configured in the encoding rule to generate the master data code, such as Figure 1 As shown, the master data encoding method based on the business primary key specifically includes the following steps:

[0042] Step S1: Create a configuration table based on the acquired master data object, master data business primary key, and business stage.

[0043] Furthermore, the step S1 specifically includes the following steps:

[0044] Step S11: Acquire the data entity object containing data characteristics from the enterprise database to obtain the master data object;

[0045] Step S12: According to the master data object and the data link of the master data object in the enterprise business process, the master data object is divided into different business stages, and the master data business primary keys corresponding to the different business stages are identified to obtain the master data business primary key attribute set;

[0046] Step S13: Create a master data object-business stage-business primary key configuration table based on the acquired master data object, business stage and master data business primary key, and configure the master data object, business stage and master data business primary key into the master data system according to the configuration table.

[0047] Step S2: Establish a coding rule base according to the main database business primary key and the established coding metamodel.

[0048] Furthermore, the step S2 specifically includes the following steps:

[0049] Step S21: calling the abstract analysis method to divide the encoding meta-model into a prefix model object, a serial code model object, and a suffix model object;

[0050] Step S22: According to the master data business primary key and the master data business primary key attribute set, configure the attribute item sorting order, separator, and serial code parameters of the master data business primary key, and establish a coding rule library.

[0051] Furthermore, the prefix model object and the suffix model object are used to match the master data business primary key attribute set, sort the combination of the master data business primary key attributes, and configure the separator after the master data business primary key attribute item;

[0052] The characteristic parameters of the serial code model object include whether it is fixed length, fixed length, step length, initial value, placeholder, and separator.

[0053] Step S3: According to the master data business primary key attribute set, the identified master data model is registered into the master data system, the corresponding coding rules are selected from the coding rule library, and process activities are added according to the business stage. The business primary key attribute values ​​that have passed the verification are configured into the coding rules to generate the master data code of the corresponding stage.

[0054] Furthermore, the step S3 specifically includes the following steps:

[0055] Step S31: After the attribute set corresponding to the master data business primary key and the master data attribute are identified, the master data model is registered in the master data system, and the encoding rules corresponding to the master data model are set in the encoding configuration phase;

[0056] Step S32: Add process activities in the master data maintenance process configuration link to generate the master data code for the corresponding stage;

[0057] Step S33: Verify the business primary key attribute value, pass the verified business primary key attribute to the configured encoding rule, and generate the discrete manufacturing master data code.

[0058] Furthermore, the configuration quantity and activity sequence of the process activities are set according to the quantity of business primary keys of the master data objects and the scene sequence of the master data objects in the data link.

[0059] Working principle: This embodiment first establishes a configuration table based on the acquired master data object, master data business primary key, and business stage; then establishes a coding rule library based on the master data business primary key and the established coding metamodel; finally, the master data model is registered in the master data system, and process activity configuration is added in the maintenance process configuration link, and the business primary key attribute value after verification is configured into the coding rule to generate the master data code; flexible coding of master data objects is realized, ensuring that the master data code is associated and connected in various business environments in the discrete manufacturing industry, and realizing the connection of end-to-end processes.

[0060] Embodiment 2:

[0061] This embodiment is based on the above embodiment 1. Figure 1 As shown, the specific steps include:

[0062] Step S1: Obtain data entity objects containing data characteristics from the enterprise database to obtain master data objects;

[0063] According to the data link of the master data object and the master data object in the enterprise business process, the master data object is divided into different application scenarios, and the master data business primary key in different application scenarios is identified to obtain the master data object application code attribute list set.

[0064] The application code attribute is used to uniquely identify a set of data attributes of the master data object. When the content of any attribute changes, a new master data code needs to be generated.

[0065] When the master data object is an equipment master data object, the master data business primary key of the equipment master data object in the procurement project establishment stage is project category + project name + equipment name, the master data business primary key in the procurement stage is procurement demand source + demand name + equipment name + equipment model + equipment specifications, the master data business primary key in the warehousing and accounting stage is equipment name + equipment model + equipment specifications + manufacturer + factory identification code, and the master data business primary key in the asset depreciation stage is asset classification + equipment name + equipment model + equipment specifications + using department + purchase time. If the equipment maintenance and repair requirements are the same as those in the warehousing and accounting stage due to uniqueness, there is no need to separate the scene into a separate scenario for business primary key identification.

[0066] Based on the acquired master data objects, application scenarios and master data business primary keys, a master data object-application scenario-business primary key configuration table is established, and the master data objects, application scenarios and master data business primary keys are configured into the master data system according to the configuration table.

[0067] In this embodiment, for each type of master data, the corresponding business primary key is identified according to different business stages or scenarios; the attribute items identified as business primary keys must be included in the master data management and non-null constraints must be performed when the master data model is registered; after completing the identification of the business primary key, a relationship configuration table of master data categories, business scenarios, and business primary keys is established.

[0068] The scenario in this embodiment is not a data query, but a primary key combination with business meaning for master data coding to realize the association of different scenarios. The technical implementation does not rely on the primary and foreign key relationship of the existing method, but by adding columns instead of rows in the identified master data model to include all fields involved in the business primary key corresponding to each scenario, and clearly identifies that the attributes identified as business primary keys must be included in the master data management and are not empty. When the data items filled in by the master data maintenance personnel in the maintenance process match the business primary key attribute combination data items in the master data category, scenario, and business rule configuration table, the trigger coding loop calls the corresponding coding rules to generate the code and writes it into the corresponding column of the master data model. The configuration table data items include master data category, scenario name, scenario activity set, business primary key name, business primary key attribute combination, and configured business rule name. The configuration table configuration process is derived from the result of master data identification in the end-to-end process. The basis of configuration is to divide the process according to the same granularity to form corresponding scenarios and business primary keys and primary key attribute combinations.

[0069] Generate a new code for the newly generated data. Technically, it is generally generated by using a serial number or a globally unique identifier. The difficulty lies in how to control the generation of a new version when the background data is modified. In this embodiment, the focus is not on the version of the data itself, but on the unique identification information of the same data in different business processes, and technically, the coding rules need to be configured in advance to achieve this. The difficulty lies in the division of various scenarios in the end-to-end process and the implementation of the business primary key coding. For example, in personnel information, when their positions change, a new version of the personnel information will be generated. According to traditional methods, there will be a new data primary key. At this time, in this embodiment, its business primary key will not change, but combined with a scenario such as attendance punching, its business primary key includes: gender, date of birth, ID number, punching date.

[0070] Step S2: calling the abstract analysis method to divide the encoding meta-model into a prefix model object, a serial code model object, and a suffix model object;

[0071] The prefix model object and the suffix model object are used to match the attribute set involved in the primary key of the master data business, the combination of sorting attributes, and the separator after the configuration attribute item;

[0072] The characteristic parameters of the serial code model object include a serial code fixed length mark, a fixed length, a step length, a serial code initial value, a placeholder, and a separator. Among them, in the serial code fixed length mark, 0 indicates an indefinite length, and 1 indicates a fixed length; the serial code initial value is the first serial code, such as 0001.

[0073] This embodiment uses an abstract analysis method to divide the encoding metamodel into three objects: prefix, serial code, and suffix. The prefix and suffix objects can contain 0 or more attributes, and each attribute can define the post-delimiter. If there is no delimiter, it is not defined; if the serial code object exists, it is necessary to define characteristic parameters, such as whether it is fixed length, fixed length, step length, initial value, placeholder, and separator. If it does not contain the serial code object, it can be undefined;

[0074] According to the identified master data business primary key and the obtained master data business primary key attribute list set, the attribute item sorting order, separator, and serial code parameters of the master data business primary key are configured to form a coding rule library.

[0075] In this embodiment, when encoding the metamodel, the encoding does not reflect the business meaning, and is only used as a unique identifier for computer recognition. In terms of technical implementation, a coding rule table is required to support code generation, that is, the coding metamodel needs to be implemented through code, and different coding services are released. The coding metamodel is implemented in advance, and more complex coding scenarios can be adapted. For example, the business attributes may or may not be reflected in the code, and the replacement of prefixes and suffixes can be supported. It can support multiple different scenarios such as pure numbers, numbers and letters, and Chinese characters.

[0076] Step S3: After the attribute set corresponding to the master data business primary key and other master data attributes are identified, the master data model is registered in the master data system, and the encoding rules corresponding to the master data model are set in the encoding configuration phase; process activities are added in the master data maintenance process configuration phase to generate the master data code for the corresponding stage;

[0077] The configuration quantity and activity sequence of the process activities are set according to the quantity of business primary keys of the master data objects and the scene sequence of the master data objects in the data link;

[0078] Verify the business primary key attribute value, pass the verified business primary key attribute to the configured encoding rule, and generate the discrete manufacturing master data code.

[0079] This embodiment adds process activities in the maintenance process configuration link. After each type of master data model is registered, it is necessary to configure the maintenance process to achieve the maintenance and review of the master data. The traditional approach is to fix an activity in the process as a coding link, that is, there is a fixed coding link in the process activity table that is associated with the master data coding process master table. This method is mainly suitable for scenarios where the business process is unified and standard, and one code can achieve a thoroughgoing connection, which is inconsistent with the discrete scenarios of this embodiment.

[0080] The order of activities in the process where the activities required to be coded in the scenario of this embodiment are located is not fixed. Therefore, when each activity submits data, the master data category, scenario, and business primary key configuration table will be associated according to the submitted process activity name and data items. If the corresponding business primary key combination is matched, and there is no valid data in the business primary key field in the current master data, the process activity calls the corresponding coding rule in the configuration table, otherwise the next activity is carried out or the process is ended. The advantage of this embodiment is that it does not rely on fixed processes and process activities. The coding link can be flexibly added to each link of the newly added process or the changed process according to the actual business rules to generate the corresponding code. If the process activities are not added, the coding of the master data cannot be adapted to each process, and the corresponding coding cannot be generated according to different scenarios, and the master data coding requirements of the discrete manufacturing process cannot be met.

[0081] Working principle: This embodiment constructs a business primary key, a coding metamodel, and adds a coding link in the master data maintenance process to trigger the generation of master data codes. This can not only achieve flexible coding of master data objects, but also ensure that master data codes are associated and connected in various business links of discrete manufacturing. This embodiment establishes a configuration table between different business primary keys, master data categories, and coding metamodels, and triggers the centralized generation of multiple codes in the maintenance process. This not only standardizes the coding process, but also establishes a mapping relationship between different codes at different stages of the same object, solving the problem that the method of assigning one coding rule to a master data object in a discrete environment cannot connect the end-to-end business workflow, thereby improving the utilization rate of master data object codes.

[0082] This embodiment encodes based on the business primary key of each stage of the entire discrete manufacturing process, which can ensure that the final generated code covers the business process and supports the association between the front-end and back-end processes. It can be used in different business scenarios to achieve end-to-end process connectivity. From a technical perspective, it realizes the demand for unified coding in the discrete manufacturing industry, and there is no need to repeat the coding in multiple heterogeneous systems according to their respective scenarios.

[0083] The other parts of this embodiment are the same as those of the above-mentioned embodiment 1, so they will not be described in detail.

[0084] Embodiment 3:

[0085] Based on any one of the above-mentioned embodiments 1 to 2, this embodiment proposes a master data encoding system based on a business primary key, including an initialization unit, a creation unit, and an encoding unit;

[0086] The initialization unit is used to establish a configuration table according to the acquired master data object, master data business primary key, and business stage; the establishment unit is used to establish a coding rule library according to the master data business primary key and the established coding metamodel;

[0087] The encoding unit is used to register the master data model into the master data system, add process activity configuration in the maintenance process configuration link, configure the business primary key attribute value after verification into the encoding rule, and generate the master data code.

[0088] This embodiment also proposes an electronic device, including a memory and a processor; a computer program is stored in the memory; when the computer program is executed on the processor, the above-mentioned master data encoding method based on the business primary key is implemented.

[0089] This embodiment further proposes a computer-readable storage medium, on which computer instructions are stored; when the computer instructions are executed on the above-mentioned electronic device, the above-mentioned master data encoding method based on the business primary key is implemented.

[0090] The other parts of this embodiment are the same as any one of the above-mentioned embodiments 1-2, so they will not be repeated here.

[0091] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification or equivalent change made to the above embodiment based on the technical essence of the present invention shall fall within the protection scope of the present invention.

Claims

1. A master data encoding method based on business primary key, characterized in that: First, a configuration table is established based on the acquired master data objects, master data business primary keys, and business stages. Then, a coding rule library is established based on the master data business primary keys and the established coding metamodel. Finally, the master data model is registered in the master data system, and process activity configuration is added in the maintenance process configuration link. The business primary key attribute values ​​that have passed the verification are configured in the coding rules to generate the master data code.

2. A master data encoding method based on business primary key according to claim 1, characterized in that: The master data encoding method based on the business primary key specifically comprises the following steps: Step S1: Create a configuration table based on the acquired master data object, master data business primary key, and business stage; Step S2: Establish a coding rule base according to the business primary key of the main database and the established coding metamodel; Step S3: According to the master data business primary key attribute set, the identified master data model is registered into the master data system, the corresponding coding rules are selected from the coding rule library, and process activities are added according to the business stage. The business primary key attribute values ​​that have passed the verification are configured into the coding rules to generate the master data code of the corresponding stage.

3. A master data encoding method based on business primary key according to claim 2, characterized in that: The step S1 specifically includes the following steps: Step S11: Acquire the data entity object containing data characteristics from the enterprise database to obtain the master data object; Step S12: According to the master data object and the data link of the master data object in the enterprise business process, the master data object is divided into different business stages, and the master data business primary keys corresponding to the different business stages are identified to obtain the master data business primary key attribute set; Step S13: Create a master data object-business stage-business primary key configuration table based on the acquired master data object, business stage and master data business primary key, and configure the master data object, business stage and master data business primary key into the master data system according to the configuration table.

4. A master data encoding method based on business primary key according to claim 3, characterized in that: The step S2 specifically includes the following steps: Step S21: calling the abstract analysis method to divide the encoding meta-model into a prefix model object, a serial code model object, and a suffix model object; Step S22: According to the master data business primary key and the master data business primary key attribute set, configure the attribute item sorting order, separator, and serial code parameters of the master data business primary key, and establish a coding rule library.

5. A master data encoding method based on business primary key according to claim 4, characterized in that: The prefix model object and the suffix model object are used to match the master data business primary key attribute set, sort the combination of the master data business primary key attributes, and configure the separator after the master data business primary key attribute item; The characteristic parameters of the serial code model object include a serial code fixed length identifier, a fixed length, a step length, a serial code initial value, a placeholder, and a separator.

6. A master data encoding method based on business primary key according to claim 4, characterized in that: The step S3 specifically comprises the following steps: Step S31: After the attribute set corresponding to the master data business primary key and the master data attribute are identified, the master data model is registered in the master data system, and the encoding rules corresponding to the master data model are set in the encoding configuration phase; Step S32: Add process activities in the master data maintenance process configuration link to generate the master data code for the corresponding stage; Step S33: Verify the business primary key attribute value, pass the verified business primary key attribute to the configured encoding rule, and generate the discrete manufacturing master data code.

7. A master data encoding method based on business primary key according to claim 6, characterized in that: The configuration quantity and activity sequence of the process activities are set according to the quantity of business primary keys of the master data objects and the scene sequence of the master data objects in the data link.

8. A master data coding system based on business primary key, characterized in that: It includes an initialization unit, a creation unit, and a coding unit; The initialization unit is used to establish a configuration table according to the acquired master data object, master data business primary key, and business stage; the establishment unit is used to establish a coding rule library according to the master data business primary key and the established coding metamodel; The encoding unit is used to register the master data model into the master data system, add process activity configuration in the maintenance process configuration link, configure the business primary key attribute value after verification into the encoding rule, and generate the master data code.

9. An electronic device, characterized in that: It comprises a memory and a processor; a computer program is stored in the memory; when the computer program is executed on the processor, the master data encoding method based on the business primary key as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions; when the computer instructions are executed on the electronic device as described in claim 9, the master data encoding method based on the business primary key as described in any one of claims 1-7 is implemented.

Citation Information

Patent Citations

  • System and method for realizing main data coding rule maintenance function in big data environment

    CN110147361A

  • Bit number master data management system and method, terminal equipment and storage medium

    CN113516459A

  • Power supply service data management system

    CN113723822A

  • Multi-source master data modeling maintenance distribution method and system based on data integration

    CN115757358A

  • Intelligent coding method and device of master data, storage medium and electronic equipment

    CN116258122A