Nuclear power service data distribution method and device, electronic equipment and medium
By matching the pre-built distribution rule table and using the rule engine to determine the distribution information, the problem of inefficiency of database stored procedure technology in the distribution of nuclear power business data is solved, and more accurate and efficient distribution is achieved.
Patent Information
- Application Number
- CN202411667156.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-20
- Publication Date
- 2025-03-25
AI Technical Summary
In the prior art, when database storage process technology realizes the distribution of nuclear power business data, it is difficult to accurately describe complex business processing logic, resulting in distribution errors or timeouts, affecting efficiency.
By obtaining the nuclear power service data to be distributed, matching the distribution rule table in the pre-built rule engine, using the matching distribution rules to determine the corresponding distribution information of the data, and distributing it based on the information.
It improves the distribution efficiency of nuclear power business data, ensures that the distribution logic is more accurate and meets actual business needs, and adapts to complex business processing logic.
Smart Images

Figure CN119690982A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of nuclear power industry technology, and in particular relates to a method, device, electronic equipment, computer-readable storage medium and computer program product for distributing nuclear power business data. Background Art
[0002] With the rapid development of nuclear power projects, the amount of nuclear power business data (such as nuclear power business documents, contracts, correspondence, etc.) during the construction of nuclear power projects is increasing, and the business processing logic of nuclear power business data is becoming more and more complex. It is crucial for the normal construction of nuclear power projects to be able to send nuclear power business data in a timely and accurate manner.
[0003] At present, the distribution of various types of nuclear power business data is mainly achieved through database stored procedure technology. The above database stored procedure technology stores compiled query statement sets (such as SQL statement sets) in the database and implements the distribution logic of various types of nuclear power business data by executing the query statement sets. However, since the database stored procedure technology uses a procedural query language (such as a procedural SQL language), that is, it requires developers to write a large amount of code to implement the operation steps of each process, in the face of increasingly complex business processing logic, the database stored procedure technology often cannot accurately describe the business processing logic, resulting in distribution errors or timeouts, thereby affecting the distribution efficiency of nuclear power business data. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for distributing nuclear power business data, which can solve the problem of low efficiency in distributing nuclear power business data.
[0005] In a first aspect, an embodiment of the present application provides a method for distributing nuclear power business data, including:
[0006] Obtain nuclear power business data to be distributed;
[0007] A distribution rule table in a pre-built rule engine is matched according to the nuclear power business data to be distributed; the distribution rule table includes distribution rules determined according to the historical records of nuclear power business data distribution, and the distribution rules are used to indicate the mapping relationship between the nuclear power business data and the distribution information corresponding to the nuclear power business data;
[0008] When a distribution rule in the distribution rule table is matched, the distribution information corresponding to the nuclear power business data to be distributed is determined using the matched distribution rule, and the nuclear power business data to be distributed is distributed according to the distribution information corresponding to the nuclear power business data to be distributed.
[0009] In a second aspect, an embodiment of the present application provides a distribution device for nuclear power business data, including:
[0010] A data acquisition module, used to acquire nuclear power business data to be distributed;
[0011] A rule matching module, used to match a distribution rule table in a pre-built rule engine according to the nuclear power business data to be distributed; the distribution rule table includes distribution rules determined according to the historical records of nuclear power business data distribution, and the distribution rules are used to indicate the mapping relationship between nuclear power business data and distribution information corresponding to the nuclear power business data;
[0012] The data distribution module is used to determine the distribution information corresponding to the nuclear power business data to be distributed using the matched distribution rule when the distribution rule in the distribution rule table is matched, and distribute the nuclear power business data to be distributed according to the distribution information corresponding to the nuclear power business data to be distributed.
[0013] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for distributing nuclear power business data described in the first aspect when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for distributing nuclear power business data described in the first aspect above are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the method for distributing nuclear power business data as described in any one of the first aspects above.
[0016] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0017] In the embodiment of the present application, the distribution information corresponding to the nuclear power business data to be distributed is determined by using the matched distribution rules, and then the nuclear power business data to be distributed is distributed according to the above distribution information, which can improve the distribution efficiency of the nuclear power business data. Specifically, since the above distribution rules are determined according to the historical distribution records, and the above distribution rules are used to indicate the mapping relationship between the nuclear power business data and the distribution information corresponding to the nuclear power business data, it means that the distribution logic corresponding to the above distribution rules is determined according to the real historical business distribution situation, that is, the above distribution rules can contain more accurate and more practical distribution logic, so as to better adapt to the distribution of nuclear power business data. In addition, since the above rule engine is a component that can separate business processing decisions from the code and write business rules corresponding to business processing decisions through predefined semantic modules, that is, through the above rule engine, the distribution rules that reflect the distribution logic of nuclear power business data can be more accurately defined, so as to be better applicable to nuclear power business data. Therefore, according to the above matched distribution rules, the nuclear power business data to be distributed can be distributed more accurately and timely, and the distribution efficiency of nuclear power business data can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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.
[0019] Figure 1 It is a flowchart of a method for distributing nuclear power business data provided by an embodiment of the present application;
[0020] Figure 2 It is a structural schematic diagram of a nuclear power business data distribution device provided in an embodiment of the present application;
[0021] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0023] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0024] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0025] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0026] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0027] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0028] During the construction of nuclear power projects, nuclear power business data (such as nuclear power business documents, contracts, letters, receipts, etc.) will be generated. These nuclear power business data need to be sent to the relevant persons in charge in a timely and accurate manner to ensure the normal progress of the nuclear power projects.
[0029] The current nuclear power business data distribution system mainly realizes the distribution of various types of nuclear power business data through database stored procedure technology. By executing the query statement set (such as SQL statement set) in the above database stored procedure technology, data distribution with different combination relationships can be realized. For example, through database stored procedure technology, automatic distribution can be performed based on the combination relationship of the sender code, the receiver code and the distribution object. If the receiver code is an engineering company, it will be sent to the to-do list of the engineering company role personnel. If the receiver code is a design company, it will be sent to the to-do list of the project design company role personnel.
[0030] With the continuous increase of business data of nuclear power projects, the business processing logic of nuclear power business data has become more and more complex. For example, it is necessary to distribute data according to a keyword in the file title or a feature of the document encoding. Since the database stored procedure technology adopts a procedural query language (such as a procedural SQL language), there are the following defects: 1. The code readability of the stored procedure is poor and cannot be adjusted in time according to business changes. For example, several important stored procedure codes (such as the code for obtaining the object distribution type and the code for reading the data to be distributed) are more than 300 lines. Although the print method can be used to adjust, it is very difficult to adjust hundreds of lines of stored procedure code in this way. Even if only a simple distribution logic is added, the original code needs to be adjusted again. 2. The adjustment process of the stored procedure code is prone to hidden problems, which affects the distribution efficiency of nuclear power business data. Since code adjustment is relatively professional, it is usually proposed by document distributors. Developers modify the code after understanding the requirements. It is difficult for document distributors to participate in the actual modification of the distribution logic, which greatly reduces the distribution effect. Many incorrect distributions will not be discovered until a long time later. 3. Procedural query languages (such as procedural SQL) cannot be processed in parallel. When the amount of nuclear power business data increases, the operation speed will slow down and the distribution of nuclear power business data cannot be realized in a timely manner. For example, for files with many associations, execution may time out.
[0031] Therefore, the above method cannot distribute the nuclear power business data accurately and timely, resulting in low efficiency in distributing the nuclear power business data.
[0032] In order to improve the distribution efficiency of nuclear power business data, an embodiment of the present application provides a method for distributing nuclear power business data. In this method, a pre-constructed distribution rule table is matched according to the nuclear power business data to be distributed, and when a distribution rule in the pre-constructed distribution rule table is matched, the distribution information corresponding to the above-mentioned nuclear power business data to be distributed is determined by using the matched distribution rule, and the nuclear power business data to be distributed is distributed according to the distribution information corresponding to the above-mentioned nuclear power business data to be distributed.
[0033] Figure 1A flow chart of a method for distributing nuclear power business data provided by an embodiment of the present application is shown, and the details are as follows:
[0034] S11. Obtain nuclear power business data to be distributed.
[0035] Specifically, the nuclear power business data to be distributed may be nuclear power business data sent by different business parties associated with a nuclear power plant. The business parties may include one or more of manufacturers, engineering companies, design companies, suppliers, etc. The nuclear power business data to be distributed may include one or more of nuclear power business documents, contracts, letters, receipts, etc.
[0036] It should be noted that the above-mentioned nuclear power business data to be distributed can be divided into business types according to the business parties, for example, the business parties and business types correspond one to one, the nuclear power business data to be distributed sent by the manufacturer corresponds to the manufacturer class, the nuclear power business data to be distributed sent by the engineering company corresponds to the engineering company class, the nuclear power business data to be distributed sent by the design company corresponds to the design company class, etc. Of course, the above-mentioned nuclear power business data to be distributed can also be divided into business types according to the types of business data, for example, the business types of the above-mentioned nuclear power business data to be distributed can include contract class, document class, correspondence class, etc.
[0037] S12. Match the distribution rule table in the pre-built rule engine according to the nuclear power business data to be distributed; the distribution rule table includes distribution rules determined according to the historical records of nuclear power business data distribution, and the distribution rules are used to indicate the mapping relationship between the nuclear power business data and the distribution information corresponding to the nuclear power business data.
[0038] Among them, the above-mentioned pre-built rule engine is a component that separates business processing decisions from application code and uses predefined semantic modules to write business processing decisions. For example, the above-mentioned pre-built rule engine can be a Drools rule engine, an ILog rule engine, a CKRule rule engine, etc. The above-mentioned distribution rule table can include distribution rules corresponding to nuclear power business data of different business types. For example, the above-mentioned distribution rule table can include distribution rules for manufacturer classes, engineering company classes, and design company classes, and is stored in a rule base in the pre-built rule engine. The above-mentioned historical records include recipient information (for example, recipient information), sender information (for example, sender information), etc. of nuclear power business data distribution over a period of history. The above-mentioned distribution rules can be decision rules including conditional judgment logic. For example, the distribution rules can be "the total price of the purchased equipment is less than 50,000 and does not require review", "the total price of the purchased equipment is between 50,000 and 500,000 and requires review".
[0039] Specifically, the format of the nuclear power business data to be distributed can be converted, and the format-converted nuclear power business data to be distributed can be passed into a pre-built rule engine, and then the distribution rule table in the rule engine can be matched according to the nuclear power business information of the nuclear power business data, wherein the above-mentioned nuclear power business information can include at least one of the following: business type, data attributes (such as title, author, main activity item, sub-activity item, etc.) and other preset information.
[0040] For example, assuming that the preset rule engine is the Drools rule engine, after obtaining the nuclear power business data to be distributed (such as letters, documents, contracts, etc.), the nuclear power business data to be distributed (such as letters, documents, contracts, etc.) can be packaged into a Json object, and then the Json object is converted into a HashMap format and passed into the Drools rule engine, and then the distribution rule table in the Drools rule engine is matched according to the business type and title of the nuclear power business data to be distributed.
[0041] In the embodiment of the present application, the distribution rules can be matched more accurately by matching the nuclear power business information of the nuclear power business data with the distribution rule table in the pre-built rule engine.
[0042] S13. When a distribution rule in the distribution rule table is matched, the distribution information corresponding to the nuclear power business data to be distributed is determined using the matched distribution rule, and the nuclear power business data to be distributed is distributed according to the distribution information corresponding to the nuclear power business data to be distributed.
[0043] The above distribution information may include distribution objects (such as recipient information such as organizer, co-organizer, reader, and outbound recipient), distribution time, etc.
[0044] Specifically, when the distribution rules in the above-mentioned distribution rule table are matched, the conditional judgment logic in the distribution rules can be executed to perform conditional judgment on the above-mentioned nuclear power business data to be distributed. Since the above-mentioned distribution rules are used to indicate the mapping relationship between nuclear power business data and the distribution information corresponding to the nuclear power business data, the result of the conditional judgment is the corresponding distribution information. Then, the nuclear power business data to be distributed is distributed according to the distribution object, distribution time, etc. included in the above-mentioned distribution information.
[0045] In the embodiment of the present application, the distribution information corresponding to the nuclear power business data to be distributed is determined by using the matched distribution rules, and then the nuclear power business data to be distributed is distributed according to the above distribution information, which can improve the distribution efficiency of the nuclear power business data. Specifically, since the above distribution rules are determined according to the historical distribution records, and the above distribution rules are used to indicate the mapping relationship between the nuclear power business data and the distribution information corresponding to the nuclear power business data, it means that the distribution logic corresponding to the above distribution rules is determined according to the real historical business distribution situation, that is, the above distribution rules can contain more accurate and more practical distribution logic, so as to better adapt to the distribution of nuclear power business data. In addition, since the above rule engine is a component that can separate business processing decisions from the code and write business rules corresponding to business processing decisions through predefined semantic modules, that is, through the above rule engine, the distribution rules that reflect the distribution logic of nuclear power business data can be more accurately defined, so as to be better applicable to nuclear power business data. Therefore, according to the above matched distribution rules, the nuclear power business data to be distributed can be distributed more accurately and timely, and the distribution efficiency of nuclear power business data can be improved.
[0046] In another optional embodiment of the present application, before matching the distribution rule table in the pre-built rule engine according to the above-mentioned nuclear power business data to be distributed, it also includes:
[0047] Obtain the historical records of nuclear power business data distribution within a preset time period;
[0048] Determine the distribution information of the above-mentioned nuclear power business data for each business type in the above-mentioned historical records;
[0049] For nuclear power business data of any business type, a distribution rule is determined according to the association relationship between the above distribution information and the above nuclear power business data;
[0050] The distribution rules of the above-mentioned nuclear power business data of each business type are stored to obtain the above-mentioned distribution rule table.
[0051] Specifically, assuming that the business types are divided according to the business parties, the historical records of the distribution of nuclear power business data in a preset time period (for example, the past year) can be obtained from the nuclear power business distribution system in the nuclear power plant, and then the distribution information of the nuclear power business data corresponding to each business party in the historical records (such as the recipient information such as the sponsor, co-sponsor, reader, and outbound) is determined by data mining, and then the association relationship between the above distribution information and the above nuclear power business data is determined by the data association analysis method. If the association relationship is large, the distribution rules of the distribution information and the nuclear power business data are constructed, otherwise, the distribution rules are not constructed. Finally, the distribution rules corresponding to each business party are stored to obtain the above pre-constructed distribution rule table. Of course, the business types can also be divided according to the types of business data (such as contracts, documents, correspondence, etc.), and the corresponding distribution rule table is determined in a similar way, which will not be repeated here.
[0052] Exemplarily, a preset data mining tool (such as Kettle tool, etc.) may be used to perform data mining and data association analysis on historical records.
[0053] It should be noted that after the distribution rule table is constructed, a rule confirmation process can be generated, through which the distribution rule table is sent to the document staff for manual review. If the review fails, the document staff can modify and adjust it until it passes the review and is imported into the rule engine (such as the Drools rule engine) for operation.
[0054] In the embodiment of the present application, data mining and data association analysis of historical records are performed through pre-built data mining tools (such as Kettle tools), which can improve the accuracy and efficiency of distribution rule generation. In addition, since the above distribution rules can indicate the mapping relationship between nuclear power business data and distribution information corresponding to nuclear power business data, the readability is strong, so document personnel can better participate in the generation and modification process of distribution rules, thereby improving the accuracy of distribution rules.
[0055] Correspondingly, after determining the distribution rule table according to the business type, the distribution rule table in the pre-built rule engine is matched according to the nuclear power business data to be distributed, including:
[0056] The distribution rules included in the distribution rule table in the above-mentioned pre-built rule engine are matched according to the business type of the above-mentioned nuclear power business data to be distributed.
[0057] For example, if the business type of the nuclear power business data to be distributed is a supplier type, the distribution rules of the supplier type can be matched.
[0058] In some embodiments, since the nuclear power business data includes more content, in order to improve the accuracy and efficiency of determining the distribution rule, the distribution rule is determined according to the association between the distribution information and the nuclear power business data, including:
[0059] Determine the data attributes of the above-mentioned nuclear power business data, construct the association relationship between the above-mentioned data attributes and the above-mentioned distribution information, and determine the distribution rules corresponding to the above-mentioned nuclear power business data according to the probability of the above-mentioned association relationship.
[0060] Specifically, a preset number of data attributes can be determined from the above-mentioned nuclear power business data, and then the attribute keywords of each data attribute can be extracted, and the association relationship between the attribute keywords and the distribution information can be established through the data association analysis method, and the probability of the association relationship can be output, and the distribution rules of the nuclear power business data can be constructed according to the attribute keywords and distribution information whose probabilities are greater than or equal to the preset probability threshold. At the same time, it should be noted that for nuclear power business data of different business types, the corresponding data attributes and the number of data attributes can be the same or different.
[0061] For example, assuming that the nuclear power business data is a supplier class, four data attributes can be determined from the nuclear power business data through data mining tools (such as Kettle tools): main activity items, authors, sub-activity items and titles, and then the attribute keywords of each data attribute are extracted: main activity item code, author code, sub-activity item code and title keywords, etc., and then the probability value of the association relationship between each attribute keyword and distribution information (such as recipient information such as sponsor, co-sponsor, reader, and outbound) is output through the above data mining tool, and the attribute keyword and distribution information are determined according to the relationship between the output probability value and the preset probability threshold to construct a distribution rule. Exemplarily, assuming that the probability value of the association relationship between the title keyword "performance test" and the recipient information "on-site installation team" is greater than the preset probability threshold, the corresponding distribution rule can be "the sponsor of the file whose title keyword includes "performance test" is "on-site installation team"".
[0062] In the embodiment of the present application, the distribution rules are constructed by the association between the above-mentioned data attributes and the above-mentioned distribution information, so that the distribution rules can be determined in a more fine-grained manner, thereby improving the flexibility and accuracy of determining the distribution rules.
[0063] In some embodiments, the above-mentioned using the matched distribution rule to determine the distribution information corresponding to the above-mentioned nuclear power business data to be distributed includes:
[0064] The matched distribution rules are sorted according to their priorities, and the sorted distribution rules are used to determine the first distribution information corresponding to the nuclear power business data to be distributed, wherein the first distribution information includes the distribution object determined according to the matched distribution rules.
[0065] Specifically, the priority of the above distribution rules is used to indicate the execution order of the distribution rules. When n (n≥2) distribution rules are matched, the matched distribution rules can be sorted according to the above priority to obtain a distribution rule queue, and then the preset rule engine will execute the distribution rules in the distribution rule queue in sequence, that is, match the data attributes of the nuclear power business data to be distributed according to the above distribution rules. If the match is successful, the execution result output according to the distribution rule is returned, and the distribution object, distribution time, etc. corresponding to the nuclear power business data to be distributed are determined according to the above execution result to obtain the above first distribution information. Of course, since there may be a situation where the distribution rule fails to match the data attribute, the above preset rule engine will return the execution result of the missed rule at this time, and continue to execute the next distribution rule in the distribution rule queue.
[0066] In the embodiment of the present application, by prioritizing the matching distribution rules, it is possible to avoid missing distribution rules and improve the accuracy of nuclear power business data distribution.
[0067] In another optional embodiment of the present application, due to the long-term nature of nuclear power project construction, there will be nuclear power business data whose distribution objects can be determined in advance during the nuclear power project process. Therefore, in order to improve the distribution efficiency of nuclear power business data, the distribution rules for the nuclear power business data of each business type are stored, before obtaining the distribution rule table, further comprising:
[0068] Acquire nuclear power project index information, and determine, based on the nuclear power project index information, that the data type is nuclear power business data for distributing preset nuclear power business; the preset nuclear power business for distributing is a data type that can configure the distribution object in advance;
[0069] Determine the second distribution information of nuclear power business data whose data type is the above-mentioned distribution of preset nuclear power business, wherein the above-mentioned second distribution information includes a second distribution object determined according to the above-mentioned nuclear power project index information.
[0070] The above-mentioned nuclear power project index information may be an engineering document index information (IED, Index of Engineering Document), which is a detailed list of documents to be submitted compiled by the manufacturer or supplier according to the requirements of the nuclear power project, including the name of the document, the compilation department, the number, the submission time, the version, the submission object, etc. The above-mentioned distribution preset nuclear power business is an IED business.
[0071] Specifically, assuming that the above-mentioned nuclear power project index information is the engineering file index information, the nuclear power business data whose data type is IED type business can be determined in advance according to the engineering file index information, and then the second distribution information of this type of nuclear power business data can be determined according to the submission time, submission object and other information included in the engineering file index information, wherein the above-mentioned submission object is the second distribution object in the second distribution information.
[0072] Correspondingly, after determining that the data type is the second distribution information of the nuclear power business data of the above-mentioned distribution preset nuclear power business, the distribution rules of the above-mentioned nuclear power business data of each business type are stored to obtain the above-mentioned distribution rule table, including:
[0073] The distribution rules of the above-mentioned nuclear power business data of each business type are stored, and the correspondence between the nuclear power business data of the above-mentioned distribution preset nuclear power business type and the above-mentioned second distribution information is stored to obtain the above-mentioned distribution rule table.
[0074] Specifically, the correspondence between the nuclear power business data of the above-mentioned distribution preset nuclear power business type and the above-mentioned second distribution information can be stored in the form of a key-value pair. Alternatively, a distribution preset class distribution rule can be constructed based on the correspondence between the nuclear power business data of the distribution preset class nuclear power business and the above-mentioned second distribution information, that is, a new distribution rule that directly includes the mapping relationship between the data type and the second distribution information. It should be noted that since the second distribution information corresponding to the above-mentioned distribution preset class distribution rule has been determined in advance, the above-mentioned distribution preset class distribution rule does not need to match the data attributes of the nuclear power business data multiple times, and the second distribution information can be directly determined according to the data type, thereby improving the distribution efficiency of the nuclear power business data.
[0075] In an embodiment of the present application, since the above-mentioned pre-constructed distribution rule table includes distribution rules for nuclear power business data of each business type, as well as the correspondence between nuclear power business data of a data type that is a distribution of preset nuclear power business and the second distribution information, it can be more specifically applied to the distribution of different nuclear power business data, thereby improving the accuracy of nuclear power business data distribution.
[0076] In some embodiments, the distribution rule table in the pre-built rule engine is matched according to the nuclear power business data to be distributed, including:
[0077] According to the data type of the nuclear power business data to be distributed, the distribution rule table in the pre-built rule engine is matched to obtain a data type matching result;
[0078] When the data type matching result indicates that the data type matching is unsuccessful, the distribution rules included in the distribution rule table in the pre-built rule engine are matched according to the business type of the nuclear power business data to be distributed.
[0079] Specifically, after obtaining the nuclear power business data to be distributed, its data type can be first used to match the above-mentioned pre-constructed distribution rule table to obtain a data type matching result. The above-mentioned data type matching result is used to determine whether the nuclear power business data to be distributed is a preset type of nuclear power business (for example, IED type business). When the above-mentioned data type matching result indicates that the data type matching is unsuccessful, it indicates that the nuclear power business data to be distributed is not a preset type of nuclear power business (for example, IED type business). Then, the distribution rules in the above-mentioned pre-constructed distribution rule table are matched according to the business type of the nuclear power business data to be distributed. Finally, the corresponding first distribution information is determined according to the successfully matched distribution rule. The process of determining the first distribution information through the distribution rule is similar to the above embodiment and will not be repeated here.
[0080] In an optional embodiment of the present application, when the data type matching result indicates that the data type is successfully matched, the matched second distribution information is determined as the distribution information corresponding to the nuclear power business data to be distributed;
[0081] Distribute the above-mentioned nuclear power business data to be distributed to the second distribution object included in the above-mentioned second distribution information.
[0082] Specifically, when the data type matching result indicates that the data type matching is successful, it indicates that the nuclear power business data to be distributed is a preset type of nuclear power business (such as an IED type of business), and the second distribution information matched at this time is the distribution information corresponding to the nuclear power business data to be distributed. Assuming that the second distribution information includes a distribution time and a second distribution object, when the distribution time arrives, the nuclear power business data to be distributed is distributed to the second distribution object, thereby improving the distribution efficiency of the preset type of nuclear power business (such as an IED type of business).
[0083] In another optional embodiment of the present application, since there is a situation where the distribution rule cannot be matched successfully, the above distribution method further includes:
[0084] In the case where the distribution rule in the distribution rule table is not matched, an alarm is issued and / or the distribution rule table is adjusted.
[0085] Specifically, when the nuclear power business data to be distributed does not match the distribution rules in the pre-built distribution rule table, the document personnel can be prompted through a preset alarm method, and then a manual review process is established, and the review personnel distribute the nuclear power business data to be distributed. Among them, the above-mentioned preset alarm method can include at least one of the following: voice alarm, text alarm, pop-up window alarm, etc. In addition, the distribution rules in the distribution rule table can be adjusted according to the unmatched nuclear power business data to be distributed, so as to continuously improve the above-mentioned distribution rule table.
[0086] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0087] Corresponding to the method for distributing nuclear power business data described in the above embodiment, Figure 2 A structural schematic diagram of a nuclear power business data distribution device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0088] Reference Figure 2 The device may be a nuclear power business data distribution device 21, and the nuclear power business data distribution device 21 may include a data acquisition module 211, a rule matching module 212 and a data distribution module 213.
[0089] Reference Figure 2 The above-mentioned nuclear power business data distribution device 21 includes:
[0090] The data acquisition module 211 is used to acquire the nuclear power business data to be distributed;
[0091] The rule matching module 212 is used to match the distribution rule table in the pre-built rule engine according to the nuclear power business data to be distributed; the distribution rule table includes distribution rules determined according to the historical records of nuclear power business data distribution, and the distribution rules are used to indicate the mapping relationship between the nuclear power business data and the distribution information corresponding to the nuclear power business data;
[0092] The data distribution module 213 is used to determine the distribution information corresponding to the nuclear power business data to be distributed using the matched distribution rule when the distribution rule in the distribution rule table is matched, and distribute the nuclear power business data to be distributed according to the distribution information corresponding to the nuclear power business data to be distributed.
[0093] In another optional embodiment of the present application, the distribution device 21 of the nuclear power business data further includes a rule table construction module, which is used for, before matching the distribution rule table in the pre-constructed rule engine according to the nuclear power business data to be distributed, including:
[0094] Obtain the historical records of nuclear power business data distribution within a preset time period;
[0095] Determine the distribution information of the above-mentioned nuclear power business data for each business type in the above-mentioned historical records;
[0096] For nuclear power business data of any business type, a distribution rule is determined according to the association relationship between the above distribution information and the above nuclear power business data;
[0097] The distribution rules of the above-mentioned nuclear power business data of each business type are stored to obtain the above-mentioned distribution rule table.
[0098] Correspondingly, after determining the distribution rule table according to the business type, the rule matching module 212, when matching the distribution rule table in the pre-built rule engine according to the to-be-distributed nuclear power business data, includes:
[0099] The distribution rules included in the distribution rule table in the above-mentioned pre-built rule engine are matched according to the business type of the above-mentioned nuclear power business data to be distributed.
[0100] In some embodiments, since the nuclear power business data includes more content, in order to improve the accuracy and efficiency of determining the distribution rule, the rule table construction module determines the distribution rule according to the association between the distribution information and the nuclear power business data, including:
[0101] Determine the data attributes of the above-mentioned nuclear power business data, construct the association relationship between the above-mentioned data attributes and the above-mentioned distribution information, and determine the distribution rules corresponding to the above-mentioned nuclear power business data according to the probability of the above-mentioned association relationship.
[0102] In some embodiments, when the data distribution module 213 determines the distribution information corresponding to the to-be-distributed nuclear power business data by using the matched distribution rule, it includes:
[0103] The matched distribution rules are sorted according to their priorities, and the sorted distribution rules are used to determine the first distribution information corresponding to the nuclear power business data to be distributed, wherein the first distribution information includes the distribution object determined according to the matched distribution rules.
[0104] In another optional embodiment of the present application, due to the long-term nature of nuclear power project construction, there will be nuclear power business data whose distribution objects can be determined in advance during the nuclear power project process. Therefore, in order to improve the distribution efficiency of nuclear power business data, the distribution device 21 of the nuclear power business data further includes a preset distribution module for storing the distribution rules of the nuclear power business data of each business type, and before obtaining the distribution rule table, it includes:
[0105] Acquire nuclear power project index information, and determine, based on the nuclear power project index information, that the data type is nuclear power business data for distributing preset nuclear power business; the preset nuclear power business for distributing is a data type that can configure the distribution object in advance;
[0106] Determine the second distribution information of nuclear power business data whose data type is the above-mentioned distribution of preset nuclear power business, wherein the above-mentioned second distribution information includes a second distribution object determined according to the above-mentioned nuclear power project index information.
[0107] Correspondingly, after determining that the data type is the second distribution information of the nuclear power business data of the above-mentioned distribution preset nuclear power business, the above-mentioned rule table construction module stores the distribution rules of the above-mentioned nuclear power business data of each business type to obtain the above-mentioned distribution rule table, including:
[0108] The distribution rules of the above-mentioned nuclear power business data of each business type are stored, and the correspondence between the nuclear power business data of the above-mentioned distribution preset nuclear power business type and the above-mentioned second distribution information is stored to obtain the above-mentioned distribution rule table.
[0109] In some embodiments, when the rule matching module 212 matches the distribution rule table in the pre-built rule engine according to the nuclear power business data to be distributed, it includes:
[0110] According to the data type of the nuclear power business data to be distributed, the distribution rule table in the pre-built rule engine is matched to obtain a data type matching result;
[0111] When the data type matching result indicates that the data type matching is unsuccessful, the distribution rules included in the distribution rule table in the pre-built rule engine are matched according to the business type of the nuclear power business data to be distributed.
[0112] In an optional embodiment of the present application, the data distribution module 213 includes:
[0113] In the case where the data type matching result indicates that the data type is successfully matched, the matched second distribution information is determined as the distribution information corresponding to the nuclear power business data to be distributed;
[0114] Distribute the above-mentioned nuclear power business data to be distributed to the second distribution object included in the above-mentioned second distribution information.
[0115] In another optional embodiment of the present application, since there is a situation where the distribution rule cannot be matched successfully, the distribution device 21 of the nuclear power business data further includes an adjustment module, including:
[0116] In the case where the distribution rule in the distribution rule table is not matched, an alarm is issued and / or the distribution rule table is adjusted.
[0117] It should be noted that the information interaction, execution process, etc. between the devices / units are based on the same concept as the method embodiments of the present application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0118] Figure 3 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 3As shown, the electronic device 3 of this embodiment includes: at least one processor 30 ( Figure 3 The at least one processor 30 includes a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor 30. When the processor 30 executes the computer program 32, the steps in any of the method embodiments are implemented.
[0119] The electronic device 3 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of the electronic device 3 and does not constitute a limitation of the electronic device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include an input sending device, a network access device, a bus, etc.
[0120] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0121] In some embodiments, the memory 31 may be an internal storage unit of the electronic device 3, such as a hard disk or memory of the electronic device 3. The memory 31 may also be an external storage device of the electronic device 3, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 3. Further, the memory 31 may also include both an internal storage unit of the electronic device 3 and an external storage device. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 31 may also be used to temporarily store data that has been sent or is to be sent.
[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the functional units and modules is used as an example. In practical applications, the function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0123] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the method embodiments when executing the computer program.
[0124] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the various method embodiments can be implemented.
[0125] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the various method embodiments when executing the computer program product.
[0126] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0127] In the embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0128] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0129] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0131] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for distributing nuclear power business data, characterized in that: The method comprises: Obtain nuclear power business data to be distributed; A distribution rule table in a pre-built rule engine is matched according to the nuclear power business data to be distributed; the distribution rule table includes distribution rules determined according to the historical records of nuclear power business data distribution, and the distribution rules are used to indicate the mapping relationship between the nuclear power business data and the distribution information corresponding to the nuclear power business data; When a distribution rule in the distribution rule table is matched, the distribution information corresponding to the nuclear power business data to be distributed is determined using the matched distribution rule, and the nuclear power business data to be distributed is distributed according to the distribution information corresponding to the nuclear power business data to be distributed.
2. The method for distributing nuclear power business data according to claim 1, characterized in that: Before matching the distribution rule table in the pre-built rule engine according to the nuclear power business data to be distributed, the method further includes: Obtain the historical records of nuclear power business data distribution within a preset time period; Determine the distribution information of the nuclear power business data for each business type in the historical records; For nuclear power business data of any business type, determining a distribution rule according to the association relationship between the distribution information and the nuclear power business data; Storing the distribution rules of the nuclear power business data of each business type to obtain the distribution rule table; The matching of the distribution rule table in the pre-built rule engine according to the nuclear power business data to be distributed includes: The distribution rules included in the distribution rule table in the pre-built rule engine are matched according to the business type of the nuclear power business data to be distributed.
3. The method for distributing nuclear power business data according to claim 2, characterized in that: The determining of the distribution rule according to the association between the distribution information and the nuclear power business data includes: Determine the data attributes of the nuclear power business data, construct an association relationship between the data attributes and the distribution information, and determine the distribution rules corresponding to the nuclear power business data based on the probability of the association relationship.
4. The method for distributing nuclear power business data according to any one of claims 1 to 3, characterized in that: The determining the distribution information corresponding to the to-be-distributed nuclear power business data by using the matched distribution rule includes: The matched distribution rules are sorted according to their priorities, and the sorted distribution rules are used to determine the first distribution information corresponding to the nuclear power business data to be distributed, wherein the first distribution information includes the distribution object determined according to the matched distribution rules.
5. The method for distributing nuclear power business data according to claim 2 or 3, characterized in that: The storing of the distribution rules of the nuclear power business data of each business type, before obtaining the distribution rule table, also includes: Acquire nuclear power project index information, and determine, according to the nuclear power project index information, that the data type is nuclear power business data for distributing preset nuclear power business; the preset nuclear power business for distributing is a data type that can configure the distribution object in advance; Determine second distribution information of nuclear power business data of the preset distribution type nuclear power business, wherein the second distribution information includes a second distribution object determined according to the nuclear power project index information; The distribution rules of the nuclear power business data of each business type are stored to obtain the distribution rule table, including: The distribution rules of the nuclear power business data of each business type are stored, and the corresponding relationship between the nuclear power business data of the distribution preset nuclear power business type and the second distribution information is stored to obtain the distribution rule table.
6. The method for distributing nuclear power business data according to claim 5, characterized in that: The matching of the distribution rule table in the pre-built rule engine according to the nuclear power business data to be distributed includes: Matching the distribution rule table in the pre-built rule engine according to the data type of the nuclear power business data to be distributed to obtain a data type matching result; When the data type matching result indicates that the data type matching is unsuccessful, the distribution rules included in the distribution rule table in the pre-built rule engine are matched according to the business type of the nuclear power business data to be distributed.
7. The method for distributing nuclear power business data according to claim 6, characterized in that: Also includes: In a case where the data type matching result indicates that the data type is successfully matched, determining the matched second distribution information as the distribution information corresponding to the nuclear power business data to be distributed; Distribute the nuclear power business data to be distributed to the second distribution object included in the second distribution information.
8. The method for distributing nuclear power business data according to any one of claims 1 to 3, characterized in that: Also includes: When a distribution rule in the distribution rule table is not matched, an alarm is issued and / or the distribution rule table is adjusted.
9. A nuclear power business data distribution device, characterized in that: include: A data acquisition module, used to acquire nuclear power business data to be distributed; A rule matching module, used to match a distribution rule table in a pre-built rule engine according to the nuclear power business data to be distributed; the distribution rule table includes distribution rules determined according to the historical records of nuclear power business data distribution, and the distribution rules are used to indicate the mapping relationship between nuclear power business data and distribution information corresponding to the nuclear power business data; The data distribution module is used to determine the distribution information corresponding to the nuclear power business data to be distributed using the matched distribution rule when the distribution rule in the distribution rule table is matched, and distribute the nuclear power business data to be distributed according to the distribution information corresponding to the nuclear power business data to be distributed.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed.