Data voucher generation and business data restoration method and system
By generating and filling in data vouchers containing process information, the problem of reproducing the real business process across systems is solved, and the integrity of data records and accurate restoration of business processes is achieved.
Patent Information
- Application Number
- CN202411141221.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-20
AI Technical Summary
The prior art is difficult to reproduce the real process of services across systems through data credentials, and ignores the process relationship between business data.
By obtaining the business data and process encoding after the current steps of the business process is completed, the process encoding of the preset steps is determined, the voucher template is obtained and filled in the voucher template library, the data voucher is generated, and the business data is restored. Restore business processes using process information in the data credentials.
Ensure the integrity of data records, be able to reproduce the real development process of business across systems, form data credentials with native first-hand data characteristics, and have self-consistent capabilities.
Smart Images

Figure CN118656877B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital identification technology, and in particular to a method and system for generating data vouchers and restoring business data. Background Art
[0002] Business data, as a record of business behavior, business process and business results in the information system, can reflect the real process of business development. The traditional data processing method stores the process information of business data in the database of the business data generation system. When realizing cross-system data flow, data vouchers, as the carrier of business data, often ignore the process relationship between business data, which makes it difficult for cross-system data vouchers to reproduce the real process of the business through data. Summary of the invention
[0003] The present invention provides a method and system for generating data vouchers and restoring business data, so as to solve the technical problem that it is difficult to reproduce the real business process across systems through data vouchers in the prior art.
[0004] In order to solve the above technical problems, an embodiment of the present invention provides a data voucher generation method applied to a data voucher generation system, comprising:
[0005] Acquire the business data generated after the current step of the business process is executed and the first process code of the current step; wherein the business process includes several steps;
[0006] Determine the second process codes of all preceding steps of the current step according to preset business process information;
[0007] According to the business data, a corresponding voucher template is obtained from a preset voucher template library;
[0008] Fill in the voucher template according to the business data, the first process code and the second process code to obtain the data voucher corresponding to the current step.
[0009] As a preferred solution, the business process information includes the process code, data to be processed and generated business data of each step in the business process; the data to be processed refers to the data to be processed when the step is executed;
[0010] Determining the second process codes of all preceding steps of the current step according to the preset business process information includes:
[0011] Determine, according to the business process information, a number of to-be-processed data of the current step;
[0012] For each data to be processed, searching for a step in which the business data generated in the business process information is the data to be processed as a preceding step of the current step;
[0013] According to the preceding steps corresponding to all the data to be processed, all the preceding steps of the current step are obtained, and according to the business process information, the second process code of each preceding step is determined.
[0014] As a preferred solution, the acquiring a corresponding voucher template from a preset voucher template library according to the business data includes:
[0015] Determine all the keywords in the business data according to a preset keyword dictionary;
[0016] According to all the keywords, a voucher template containing all the keywords is obtained from the voucher template library.
[0017] As a preferred solution, the voucher template includes business information and process information to be filled in; the process information includes current step process information and previous step process information;
[0018] Filling in the voucher template according to the business data, the first process code and the second process code includes:
[0019] According to each keyword, extracting business information corresponding to the keyword from the business data;
[0020] Fill in the corresponding business information in the voucher template according to the business information corresponding to each keyword;
[0021] Fill in the current step process information in the voucher template according to the first process code;
[0022] According to all the second process codes, fill in the preceding step process information in the voucher template.
[0023] As a preferred solution, after obtaining the data voucher corresponding to the current step, the process further includes:
[0024] Processing the data voucher according to a preset MAC algorithm and the first process code to generate a first digital summary;
[0025] The first digital summary is encrypted according to the private key to generate a digital signature.
[0026] Based on the above embodiment, another embodiment of the present invention provides a business data restoration method applied to a business data restoration system, comprising:
[0027] Batch obtain all data vouchers corresponding to a business process; wherein the data voucher is generated by the data voucher generation method according to claim 1, including business information and process information; the process information includes current step process information and previous step process information;
[0028] Restore the execution order of the steps of the business process according to the process information of all the data vouchers;
[0029] According to the business information of each of the data vouchers, the business data generated in each step of the business process is obtained.
[0030] As a preferred solution, before batch acquiring all data vouchers corresponding to a business process, the following is also included:
[0031] Sending a data voucher acquisition request to a data voucher generation system, so that the data voucher generation system responds to the data voucher acquisition request, determines the corresponding target business process according to the data voucher acquisition request, and returns all data vouchers corresponding to the target business process and the digital signature corresponding to each data voucher to the business data restoration system;
[0032] A number of data vouchers and corresponding digital signatures are obtained from the data voucher generation system.
[0033] As a preferred solution, after obtaining a number of data vouchers and corresponding digital signatures from the data voucher generation system, the method further includes:
[0034] For each data voucher, determine the current step process information of the step corresponding to the data voucher, and further determine the current step process code; process the data voucher according to the preset MAC algorithm and the current step process code to generate a second digital summary; decrypt the digital signature corresponding to the data voucher according to the public key to obtain a third digital summary; determine whether the second digital summary and the third digital summary are consistent, if so, continue to execute subsequent steps, if not, stop executing subsequent steps;
[0035] Among them, the public key and the private key used by the data certificate generation system are the same pair of keys.
[0036] Based on the above embodiment, another embodiment of the present invention provides a data voucher generation system, including:
[0037] Data acquisition module, pre-process determination module, voucher template acquisition module and data voucher generation module;
[0038] The data acquisition module is used to acquire the business data generated after the current step of the business process is executed and the first process code of the current step; wherein the business process includes several steps;
[0039] The preceding process determination module is used to determine the second process codes of all preceding steps of the current step according to preset business process information;
[0040] The voucher template acquisition module is used to acquire the corresponding voucher template from a preset voucher template library according to the business data;
[0041] The data voucher generation module is used to fill in the voucher template according to the business data, the first process code and the second process code to obtain the data voucher corresponding to the current step.
[0042] Based on the above embodiment, another embodiment of the present invention provides a business data restoration system, including: a data credential acquisition module, a business process restoration module and a business data restoration module;
[0043] The data voucher acquisition module is used to batch acquire all data vouchers corresponding to a business process; wherein the data voucher is generated by the data voucher generation method according to claim 1, and includes business information and process information; the process information includes current step process information and previous step process information;
[0044] The business process restoration module is used to restore the execution order of the steps of the business process according to the process information of all the data vouchers;
[0045] The business data restoration module is used to obtain the business data generated in each step of the business process according to the business information of each data voucher.
[0046] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0047] In the process of generating data vouchers, the present invention not only embeds business data into the voucher template, but also records the business process information into the data voucher, thereby ensuring the integrity of the data record. In the process of restoring business data, the present invention also restores the entire business process through the process information in the data voucher, which can reflect the real process of the business. Since the data voucher is formed while the business is being carried out, such data has the characteristics of native first-hand data. The first-hand native data carried by the data voucher can be separated from the information system and become a complete data object with self-consistency, which can reproduce the real process of the business across systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1It is a flowchart of a method for generating a data voucher provided by an embodiment of the present invention;
[0049] Figure 2 It is a flowchart of a method for restoring business data provided by an embodiment of the present invention;
[0050] Figure 3 It is a structural diagram of a data voucher generation system provided by an embodiment of the present invention;
[0051] Figure 4 It is a structural diagram of a business data restoration system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0054] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "several" is two or more, unless otherwise clearly and specifically defined.
[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] Embodiment 1
[0058] Please refer to Figure 1 , is a flow chart of a data voucher generation method applied to a data voucher generation system provided by an embodiment of the present invention, comprising:
[0059] S101. Obtain business data generated after the current step of a business process is executed and the first process code of the current step; wherein the business process includes several steps.
[0060] It should be noted that the business process can reflect the actual process of the business. The business process includes all possible links that may be carried out and is advanced in the form of steps. The present invention sets a process code for each step in the business process, and the process code is a randomly generated string of numbers, characters, or a combination of numbers and characters.
[0061] In step S101, the business process reaches a certain step, which is the current step. The business data generated after the current step is executed and the first process code of the current step are obtained.
[0062] S102: Determine the second process codes of all preceding steps of the current step according to preset business process information.
[0063] In a preferred embodiment, the business process information includes the process code, data to be processed and generated business data of each step in the business process; the data to be processed refers to the data to be processed when the step is executed;
[0064] Determining the second process codes of all preceding steps of the current step according to the preset business process information includes:
[0065] Determine, according to the business process information, a number of to-be-processed data of the current step;
[0066] For each data to be processed, searching for a step in which the business data generated in the business process information is the data to be processed as a preceding step of the current step;
[0067] According to the preceding steps corresponding to all the data to be processed, all the preceding steps of the current step are obtained, and according to the business process information, the second process code of each preceding step is determined.
[0068] It should be noted that, except for the initial step, each step inherits one or more preceding steps, which is reflected in the data processing using the business data generated by the preceding steps. In order to reproduce the real process of the business across systems, the problem to be solved is how to determine the sequence relationship between different steps across systems. The present invention determines it through the business data inheritance relationship between the steps directly connected before and after.
[0069] The business process information records the process code of each step in the business process, the information of the data to be processed and the information of the generated business data, where the data to be processed can be one or more, and the generated business data can be one or more. For example, the process code of a certain step is aB3#f9&2k, the data to be processed is the order data, and the generated business data is the bill data. The work to be completed in this step is to generate the corresponding bill data based on the order data.
[0070] In this embodiment, according to the business process information, by querying the data item whose process code is the first process code, the information of the data to be processed in the current step can be obtained, and a number of data to be processed can be obtained.
[0071] For each data to be processed, according to the business process information, the data item including the data to be processed is searched in the generated business data, and a previous step of the current step can be obtained. After processing all the data to be processed, all the previous steps of the current step can be obtained, and further according to the business process information, the process code of each previous step can be queried to obtain, which is the second process code.
[0072] S103: According to the business data, a corresponding voucher template is obtained from a preset voucher template library.
[0073] In step S103, the business data is an item to be filled in the voucher template. By searching whether the items to be filled in related to the business data of each voucher template correspond, the corresponding voucher template can be obtained.
[0074] In a preferred embodiment, obtaining a corresponding voucher template from a preset voucher template library according to the business data includes:
[0075] Determine all the keywords in the business data according to a preset keyword dictionary;
[0076] According to all the keywords, a voucher template containing all the keywords is obtained from the voucher template library.
[0077] It should be noted that the keyword dictionary records the keywords of each type of business data. For example, the keywords of product data may include product number, product name and product unit price, etc. The keywords of order data may include order number, product number, product unit price, product quantity and discount information, etc. The keywords of bill data may include bill number, bill date and payment information, etc.
[0078] The voucher template library contains a variety of voucher templates corresponding to various types of business data. Each type of business data can correspond to multiple voucher templates, and a unique voucher template can be determined based on the specific content of the business data.
[0079] In this embodiment, all keywords in the business data are determined according to a preset keyword dictionary, and several candidate voucher templates including all keywords are searched according to the keywords, and then the voucher template with the least keywords is selected from all the candidate voucher templates.
[0080] S104. Fill in the voucher template according to the business data, the first process code and the second process code to obtain the data voucher corresponding to the current step.
[0081] In a preferred embodiment, the voucher template includes business information and process information to be filled in; the process information includes current step process information and previous step process information;
[0082] Filling in the voucher template according to the business data, the first process code and the second process code includes:
[0083] According to each keyword, extracting business information corresponding to the keyword from the business data;
[0084] Fill in the corresponding business information in the voucher template according to the business information corresponding to each keyword;
[0085] Fill in the current step process information in the voucher template according to the first process code;
[0086] According to all the second process codes, fill in the preceding step process information in the voucher template.
[0087] It should be noted that data vouchers not only need to fill in business-related information, i.e. business information, but also process-related information, i.e. process information. Process information includes current step process information and previous step process information. Because data vouchers are the carrier for cross-system data flow, encapsulating process information in data vouchers can reproduce the real process of business processes across systems through process information in data vouchers.
[0088] In this embodiment, according to each keyword, the business information corresponding to the keyword is extracted from the business data. For example, if the keyword is the unit price of the product, the corresponding business information may be 1.99 yuan. Then the business information corresponding to each keyword is filled in the corresponding position of the voucher template. Finally, the first process code is filled in the position of the current step process information in the voucher template, and all the second process codes are filled in the position of the previous step process information in the voucher template.
[0089] In a preferred embodiment, after obtaining the data voucher corresponding to the current step, the method further includes:
[0090] Processing the data voucher according to a preset MAC algorithm and the first process code to generate a first digital summary;
[0091] The first digital summary is encrypted according to the private key to generate a digital signature.
[0092] In this embodiment, after the data voucher of the current step is generated, the data voucher is encrypted using a digital signature technology. First, the data voucher is encrypted using a shared key through a message authentication code generation algorithm (MAC algorithm) to generate a first digital summary. The shared key used is the process code of the current step, that is, the first process code. Then, the first digital summary is encrypted using a private key to generate a digital signature.
[0093] It should be noted that the data credential generation system has obtained the private key in advance and saved it locally.
[0094] Embodiment 2
[0095] Please refer to Figure 2 , is a flow chart of a business data restoration method applied to a business data restoration system provided by an embodiment of the present invention, including:
[0096] S201. Batch obtain all data vouchers corresponding to a business process; wherein the data vouchers are generated by the data voucher generation method as described in claim 1, including business information and process information; the process information includes current step process information and previous step process information.
[0097] In step S201, all data vouchers belonging to the same business process are obtained in batches.
[0098] In a preferred embodiment, before batch acquiring all data vouchers corresponding to a business process, the method further includes:
[0099] Sending a data voucher acquisition request to a data voucher generation system, so that the data voucher generation system responds to the data voucher acquisition request, determines the corresponding target business process according to the data voucher acquisition request, and returns all data vouchers corresponding to the target business process and the digital signature corresponding to each data voucher to the business data restoration system;
[0100] A number of data vouchers and corresponding digital signatures are obtained from the data voucher generation system.
[0101] Before step S201, the business data restoration system sends a data voucher acquisition request to the data voucher generation system. The data voucher generation system responds to the data voucher acquisition request, determines the target business process for which the data voucher acquisition request is used, and returns all data vouchers generated by the target business process, as well as the digital signature corresponding to each data voucher, to the business data restoration system. The business data restoration system obtains several data vouchers and digital signatures returned by the data voucher generation system.
[0102] In a preferred embodiment, after obtaining a number of data certificates and corresponding digital signatures from the data certificate generation system, the method further includes:
[0103] For each data voucher, determine the current step process information of the step corresponding to the data voucher, and further determine the current step process code; process the data voucher according to the preset MAC algorithm and the current step process code to generate a second digital summary; decrypt the digital signature corresponding to the data voucher according to the public key to obtain a third digital summary; determine whether the second digital summary and the third digital summary are consistent, if so, continue to execute subsequent steps, if not, stop executing subsequent steps;
[0104] Among them, the public key and the private key used by the data certificate generation system are the same pair of keys.
[0105] It should be noted that the method for generating the second data summary is consistent with the method for generating the first digital summary in the data voucher generation system, that is, for the same data voucher, the generated first data summary and second data summary should be the same.
[0106] The business data restoration system has obtained the public key in advance and saved it locally. The public key is the same pair of keys as the private key used by the data certificate generation system.
[0107] In this embodiment, after obtaining the data voucher and digital signature returned by the data voucher generation system, the business data restoration system first determines the current step process information according to the data voucher for each data voucher, that is, for each step in the business process, as the shared key required for the subsequent decoding process. Then the data voucher is processed to generate a second digital summary. Then the digital signature corresponding to the data voucher is decrypted according to the public key to obtain a third digital summary. Finally, it is determined whether the second digital summary and the third digital summary are consistent. If they are consistent, it means that the data has not been destroyed or tampered with during the transmission process, and the subsequent steps are continued. If they are inconsistent, it means that the data has been destroyed or tampered with during the transmission process, and the subsequent steps are stopped.
[0108] After stopping the execution of subsequent steps, you can resend the data credential acquisition request to the data credential generation system.
[0109] It should also be noted that the integrity and validity of information are guaranteed by encrypting data credentials using digital signature technology.
[0110] S202. Restore the execution order of the steps of the business process according to the process information of all the data vouchers.
[0111] In step S202, for each data voucher, the preceding step of the step corresponding to the data voucher is determined according to the preceding step process information of the process information. The preceding steps of all the steps corresponding to the data vouchers are determined in sequence, and then the execution order between all the steps of the business process is restored.
[0112] S203: Obtain the business data generated in each step of the business process according to the business information of each data voucher.
[0113] In step S203, the business data of each step is obtained based on the business information of the data voucher and the restored business process, thereby realizing the real process of restoring the business process across systems.
[0114] Embodiment 3
[0115] Please refer to Figure 3 , is a structural diagram of a data voucher generation system provided by an embodiment of the present invention, the device comprises: a data acquisition module, a pre-process determination module, a voucher template acquisition module and a data voucher generation module;
[0116] The data acquisition module is used to acquire the business data generated after the current step of the business process is executed and the first process code of the current step; wherein the business process includes several steps;
[0117] The preceding process determination module is used to determine the second process codes of all preceding steps of the current step according to preset business process information;
[0118] The voucher template acquisition module is used to acquire the corresponding voucher template from a preset voucher template library according to the business data;
[0119] The data voucher generation module is used to fill in the voucher template according to the business data, the first process code and the second process code to obtain the data voucher corresponding to the current step.
[0120] Embodiment 4
[0121] Please refer to Figure 4 , is a structural diagram of a business data restoration system provided by an embodiment of the present invention, the device comprises: a data credential acquisition module, a business process restoration module and a business data restoration module;
[0122] The data voucher acquisition module is used to batch acquire all data vouchers corresponding to a business process; wherein the data voucher is generated by the data voucher generation method according to claim 1, and includes business information and process information; the process information includes current step process information and previous step process information;
[0123] The business process restoration module is used to restore the execution order of the steps of the business process according to the process information of all the data vouchers;
[0124] The business data restoration module is used to obtain the business data generated in each step of the business process according to the business information of each data voucher.
[0125] It should be noted that the system embodiment described above is merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the system embodiment provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative work.
[0126] Those skilled in the art can clearly understand that for the sake of convenience and brevity, the specific working process of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0127] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for generating a data voucher, It is characterized in that Applied to a data voucher generation system, the data voucher generation method comprises: Acquire the business data generated after the current step of the business process is executed and the first process code of the current step; wherein the business process includes several steps; Determine the second process codes of all preceding steps of the current step according to preset business process information; According to the business data, a corresponding voucher template is obtained from a preset voucher template library; Fill in the voucher template according to the business data, the first process code and the second process code to obtain the data voucher corresponding to the current step; Processing the data voucher according to a preset MAC algorithm and the first process code to generate a first digital summary; Encrypt the first digital summary according to the private key to generate a digital signature; The business process information includes the process code, data to be processed and generated business data of each step in the business process; the data to be processed refers to the data to be processed when the step is executed; the voucher template includes the business information and process information to be filled in; the process information includes the current step process information and the previous step process information; Determining the second process codes of all preceding steps of the current step according to the preset business process information includes: Determine, according to the business process information, a number of to-be-processed data of the current step; For each data to be processed, searching for a step in which the business data generated in the business process information is the data to be processed as a preceding step of the current step; According to the preceding steps corresponding to all the data to be processed, all preceding steps of the current step are obtained, and according to the business process information, the second process code of each preceding step is determined; Filling in the voucher template according to the business data, the first process code and the second process code includes: According to each keyword, extracting business information corresponding to the keyword from the business data; Fill in the corresponding business information in the voucher template according to the business information corresponding to each keyword; Fill in the current step process information in the voucher template according to the first process code; According to all the second process codes, fill in the preceding step process information in the voucher template.
2. The data voucher generation method according to claim 1, It is characterized in that The acquiring a corresponding voucher template from a preset voucher template library according to the business data includes: Determine all the keywords in the business data according to a preset keyword dictionary; According to all the keywords, a voucher template containing all the keywords is obtained from the voucher template library.
3. A method for restoring business data, It is characterized in that Applied to a business data restoration system, the business data restoration method comprises: Batch obtain all data vouchers corresponding to a business process; wherein the data voucher is generated by the data voucher generation method according to claim 1, including business information and process information; the process information includes current step process information and previous step process information; Restore the execution order of the steps of the business process according to the process information of all the data vouchers; According to the business information of each data voucher, the business data generated in each step of the business process is obtained; Before batch acquiring all data vouchers corresponding to a business process, the following steps are also included: Sending a data voucher acquisition request to a data voucher generation system, so that the data voucher generation system responds to the data voucher acquisition request, determines the corresponding target business process according to the data voucher acquisition request, and returns all data vouchers corresponding to the target business process and the digital signature corresponding to each data voucher to the business data restoration system; Obtaining a number of data vouchers and corresponding digital signatures from the data voucher generation system; After obtaining a number of data certificates and corresponding digital signatures from the data certificate generation system, the method further includes: For each data voucher, determine the current step process information of the step corresponding to the data voucher, and further determine the current step process code; process the data voucher according to the preset MAC algorithm and the current step process code to generate a second digital summary; decrypt the digital signature corresponding to the data voucher according to the public key to obtain a third digital summary; determine whether the second digital summary and the third digital summary are consistent, if so, continue to execute subsequent steps, if not, stop executing subsequent steps; wherein the public key and the private key used by the data voucher generation system are the same pair of keys.
4. A data voucher generation system, It is characterized in that include: Data acquisition module, pre-process determination module, voucher template acquisition module and data voucher generation module; The data acquisition module is used to acquire the business data generated after the current step of the business process is executed and the first process code of the current step; wherein the business process includes several steps; The preceding process determination module is used to determine the second process codes of all preceding steps of the current step according to preset business process information; The voucher template acquisition module is used to acquire the corresponding voucher template from a preset voucher template library according to the business data; The data voucher generation module is used to fill in the voucher template according to the business data, the first process code and the second process code to obtain the data voucher corresponding to the current step; process the data voucher according to a preset MAC algorithm and the first process code to generate a first digital summary; encrypt the first digital summary according to a private key to generate a digital signature; The business process information includes the process code, data to be processed and generated business data of each step in the business process; the data to be processed refers to the data to be processed when the step is executed; the voucher template includes the business information and process information to be filled in; the process information includes the current step process information and the previous step process information; Determining the second process codes of all preceding steps of the current step according to the preset business process information includes: Determine, according to the business process information, a number of to-be-processed data of the current step; For each data to be processed, searching for a step in which the business data generated in the business process information is the data to be processed as a preceding step of the current step; According to the preceding steps corresponding to all the data to be processed, all preceding steps of the current step are obtained, and according to the business process information, the second process code of each preceding step is determined; Filling in the voucher template according to the business data, the first process code and the second process code includes: According to each keyword, extracting business information corresponding to the keyword from the business data; Fill in the corresponding business information in the voucher template according to the business information corresponding to each keyword; Fill in the current step process information in the voucher template according to the first process code; According to all the second process codes, fill in the preceding step process information in the voucher template.
5. A business data restoration system, It is characterized in that include: Data credential acquisition module, business process restoration module and business data restoration module; The data voucher acquisition module is used to batch acquire all data vouchers corresponding to a business process; wherein the data voucher is generated by the data voucher generation method according to claim 1, and includes business information and process information; the process information includes current step process information and previous step process information; The business process restoration module is used to restore the execution order of the steps of the business process according to the process information of all the data vouchers; The business data restoration module is used to obtain the business data generated in each step of the business process according to the business information of each data voucher; Before batch acquiring all data vouchers corresponding to a business process, the following steps are also included: Sending a data voucher acquisition request to a data voucher generation system, so that the data voucher generation system responds to the data voucher acquisition request, determines the corresponding target business process according to the data voucher acquisition request, and returns all data vouchers corresponding to the target business process and the digital signature corresponding to each data voucher to the business data restoration system; Obtaining a number of data vouchers and corresponding digital signatures from the data voucher generation system; After obtaining a number of data certificates and corresponding digital signatures from the data certificate generation system, the method further includes: For each data voucher, determine the current step process information of the step corresponding to the data voucher, and further determine the current step process code; process the data voucher according to the preset MAC algorithm and the current step process code to generate a second digital summary; decrypt the digital signature corresponding to the data voucher according to the public key to obtain a third digital summary; determine whether the second digital summary and the third digital summary are consistent, if so, continue to execute subsequent steps, if not, stop executing subsequent steps; wherein the public key and the private key used by the data voucher generation system are the same pair of keys.
