Data two-way evidence storage method and system, readable storage medium and equipment
By calling the certificate storage service in the database, generating a certificate storage system and recording data operations, it solves the problem of data being unable to be traced, realizes two-way data storage and traceability, and ensures data integrity.
Patent Information
- Application Number
- CN202410627470.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, arbitrary modification of data in the database leads to the problem that the data cannot be traced back.
By calling the certificate storage service, a certificate storage system with a unique identification of business data is generated, recording the addition, deletion, modification and query operations of data, and establishing an association between the unique identification of the certificate data and the unique identification of business data to achieve two-way storage of data. and traceability.
It effectively solves the problem of random modification of database data resulting in data being unable to be traced, ensuring the integrity and traceability of the data.
Smart Images

Figure CN118535547A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of bidirectional data evidence storage, and in particular, relates to a bidirectional data evidence storage method, system, readable storage medium and device. Background Art
[0002] When developing a business system, the business data generated is saved in a two-dimensional table database. It often happens that on-site implementation personnel directly modify the data in the database in order to meet temporary needs or temporarily deal with problems in the program. This causes the program to be unusable or the modified data to be unable to be tracked. Over time, such data will become dirty data. Summary of the invention
[0003] Based on this, the embodiments of the present invention provide a bidirectional data evidence method, system, readable storage medium and device to solve the problem in the prior art that data in the database can be modified arbitrarily, resulting in the inability to trace the data.
[0004] A first aspect of an embodiment of the present invention provides a bidirectional data evidence storage method, the method comprising:
[0005] When the data operation requirements are obtained, the evidence storage service is called to generate an evidence storage system with a unique business data identifier that coexists with the original business system to store and preserve subsequent data evidence. The unique business data identifier is the business code;
[0006] After calling the evidence storage service, the evidence storage service will return the unique identifier of the evidence data currently stored, and synchronously save the unique identifier of the evidence data to the original business system, and establish an association with the unique identifier of the business data to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is globally unique data in the evidence storage system;
[0007] After receiving the call parameters, the evidence storage service performs preset data processing according to the operation type in the call parameters, and the preset data processing includes adding, deleting, modifying and querying data;
[0008] When the preset data processing is data addition, the evidence storage service will generate a new XML format file and record the node data corresponding to this operation in the file;
[0009] When the preset data processing is data deletion, modification and query, the evidence storage service will query the previously saved XML format file according to the unique identifier of the business data, and record the node data corresponding to this operation after the node data that already exists in the previously saved XML format file;
[0010] After receiving the call parameters, the evidence storage service performs the preset data processing according to the operation type in the call parameters, including:
[0011] Obtain the unique identifier of the evidence data synchronized in the original business system, and obtain the data processing time and corresponding data in the evidence system based on the unique identifier of the evidence data;
[0012] Inferring the corresponding data according to the order of data processing time to obtain inferred data, and determining whether the inferred data is consistent with the corresponding data in the original business system;
[0013] If not, an alarm is issued to indicate that the data in the original business system has been manually modified.
[0014] Furthermore, the step of obtaining the unique identifier of the evidence data synchronized in the original business system and obtaining the data processing time and corresponding data in the evidence system according to the unique identifier of the evidence data includes:
[0015] Automatically obtain the unique identifier of the business data in the original business system according to the preset rules, and determine the corresponding evidence service data according to the unique identifier of the business data, where the evidence service data is the data obtained by performing the preset data processing;
[0016] Arrange the evidence service data in order, and output the corresponding unique identifier of the evidence data based on the sorting result.
[0017] Furthermore, the step of automatically obtaining the unique identifier of the business data in the original business system according to the preset rules includes:
[0018] Obtain the unique identifier of each business data, and obtain the corresponding evidence service data based on the unique identifier of the business data;
[0019] Count the number of each operation type in the evidence storage service data, and multiply them by the corresponding weight coefficient to obtain the evaluation index;
[0020] The evaluation indexes are sorted by size, and based on the sorting results, the corresponding unique identifier of the business data in the original business system is obtained.
[0021] Furthermore, in the step of arranging the evidence service data in order and outputting the corresponding unique identifier of the evidence data according to the sorting result, the amount of single business data under each preset operation type is obtained, and the evidence service data is arranged according to the amount of single business data under each preset operation type.
[0022] A second aspect of an embodiment of the present invention provides a bidirectional data evidence storage system, which is used to implement the bidirectional data evidence storage method as described in the first aspect, and the system includes:
[0023] The calling module is used to call the evidence storage service when the data operation requirements are obtained, and generate an evidence storage system with a unique business data identifier coexisting with the original business system to store and save subsequent data evidence. The unique business data identifier is the business code;
[0024] The synchronization module is used to call the evidence storage service, and the evidence storage service will return the unique identifier of the evidence data currently stored, and synchronize and save the unique identifier of the evidence data to the original business system, and establish an association with the unique identifier of the business data to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is the globally unique data in the evidence storage system;
[0025] A data processing module, which is used for the evidence storage service to perform preset data processing according to the operation type in the call parameters after receiving the call parameters, and the preset data processing includes adding, deleting, modifying and querying data;
[0026] When the preset data processing is data addition, the evidence storage service will generate a new XML format file and record the node data corresponding to this operation in the file;
[0027] When the preset data processing is data deletion, modification and query, the evidence storage service will query the previously saved XML format file based on the unique identifier of the business data, and record the node data corresponding to this operation after the existing node data in the previously saved XML format file.
[0028] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the bidirectional data evidence storage method provided by the first aspect.
[0029] The fourth aspect of an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the bidirectional data evidence storage method provided in the first aspect is implemented.
[0030] A bidirectional data evidence method, system, readable storage medium and device provided in the embodiments of the present invention, when the operation requirements of data are obtained, calls the evidence service to generate an evidence system with a unique business data identifier that coexists with the original business system to store and preserve subsequent data evidence; after calling the evidence service, the evidence service will return the unique identifier of the evidence data currently stored, and synchronously save the unique identifier of the evidence data to the original business system, and establish an association with the unique identifier of the business data to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is globally unique data in the evidence system; after receiving the calling parameters, the evidence service performs preset data processing according to the operation type in the calling parameters, and the preset data processing includes data addition, deletion, modification and query. Specifically, the final data and data trace evidence storage methods are used to coexist and record data, which effectively solves the problem of arbitrary modification of data in the database resulting in data untraceability. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flowchart of a method for bidirectional data storage provided in accordance with the first embodiment of the present invention;
[0032] Figure 2 A structural block diagram of a bidirectional data evidence storage system provided in Embodiment 3 of the present invention;
[0033] Figure 3 This is a structural block diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0034] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0035] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0037] Embodiment 1
[0038] See also Figure 1 , Figure 1 A bidirectional data evidence storage method provided in the first embodiment of the present invention is shown, which specifically includes steps S01 to S03.
[0039] Step S01, when the data operation requirements are obtained, the evidence storage service is called to generate an evidence storage system with a unique business data identifier that coexists with the original business system to store subsequent data evidence.
[0040] The unique identifier of the business data is the business code. When the certificate system is generated, the corresponding business code is automatically generated. It can be understood that when the business data is saved, the original business process is not modified. It only needs to call the certificate service at the same time to save the data, such as: http: / / 127.0.0.1:6789 / saveCertificate. The input parameter format of the certificate service is as follows:
[0041]
[0042]
[0043] The specific parameter explanation is shown in Table 1:
[0044] Table 1
[0045] Parameter name Parameter Description UserCode Operator Number UserName Operator Name BusinessCode Unique identification of business data, which facilitates the association of business data with evidence data Type Operation type: add (A), delete (D), modify (M), query (Q) System System module name, such as HIS, EMR, LIS, PACS, etc. Date Operation time Datas Operation-related business data collection Data Single business data
[0046] Step S02, after calling the evidence service, the evidence service will return the unique identifier of the evidence data currently stored, and synchronously save the unique identifier of the evidence data to the original business system, and establish an association with the unique identifier of the business data to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is globally unique data in the evidence system.
[0047] Step S03, after receiving the call parameters, the evidence storage service performs preset data processing according to the operation type in the call parameters, and the preset data processing includes adding, deleting, modifying and querying data.
[0048] When the preset data processing is data addition, the evidence storage service will generate a new XML format file and record the node data corresponding to this operation in the file;
[0049] When the preset data processing is data deletion, modification and query, the evidence storage service will query the previously saved XML format file based on the unique identifier of the business data, and record the node data corresponding to this operation after the existing node data in the previously saved XML format file.
[0050] For example, when the operation type is A, that is, when adding data, the evidence storage service will generate a new XML file and record the relevant node data:
[0051]
[0052]
[0053] The node description is shown in Table 2:
[0054] Table 2
[0055] Node & Attribute Names Parameter Description Certificate Evidence Data Master Node BusinessCode Unique identification of business data, which facilitates the association of business data with evidence data System System module name, such as HIS, EMR, LIS, PACS, etc. A Operation type: add (A), delete (D), modify (M), query (Q) Id Unique identifier of the evidence data, generated by the evidence service according to the sequence, globally unique UserCode Operator Number UserName Operator Name Date Operation time Datas Operation-related business data collection Data Single business data
[0056] The operation type is D, that is, when deleting data, the evidence service will query the previously saved XML format file according to the BusinessCode and record the relevant node data. When deleting data, the evidence data will not be deleted, but only the deletion operation will be recorded:
[0057]
[0058] When the operation type is M, that is, when modifying data, the evidence storage service will query the previously saved XML format file according to the BusinessCode and record the relevant node data:
[0059]
[0060] The operation type is Q, that is, when querying data, the evidence storage service will query the previously saved XML format file according to the BusinessCode and record the relevant node data:
[0061]
[0062]
[0063] It can be found that the evidence data will be superimposed after multiple operations and will not be deleted or overwritten. In addition, after each evidence service operation is completed, the unique ID data in the XML document will be returned to the calling client, and the client will save it to facilitate future data tracing.
[0064] In summary, the bidirectional data evidence method in the above-mentioned embodiment of the present invention, when the operation requirements of data are obtained, calls the evidence service to generate an evidence system with a unique business data identifier that coexists with the original business system to store and preserve subsequent data evidence; after calling the evidence service, the evidence service will return the unique identifier of the evidence data currently stored, and synchronously save the unique identifier of the evidence data to the original business system, and establish an association with the unique identifier of the business data to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is globally unique data in the evidence system; after receiving the calling parameters, the evidence service performs preset data processing according to the operation type in the calling parameters, and the preset data processing includes data addition, deletion, modification and query. Specifically, the final data and data trace evidence storage method are used to coexist and record data, which effectively solves the problem of arbitrary modification of data in the database resulting in data untraceability.
[0065] Embodiment 2
[0066] The second embodiment of the present invention also provides a bidirectional data evidence storage method, which is different from the first embodiment in that data tracing or verification can be performed through evidence data. Specifically, after receiving the call parameters, the evidence storage service performs the preset data processing step according to the operation type in the call parameters, and includes:
[0067] Obtain the unique identifier of the evidence data synchronized in the original business system, and obtain the data processing time and corresponding data in the evidence system based on the unique identifier of the evidence data. For example, if the unique identifier of the evidence data is "001", obtain the data processing time and corresponding data in "001" before the current time;
[0068] According to the sequence of data processing time, the corresponding data is inferred to obtain the inferred data, and it is determined whether the inferred data is consistent with the corresponding data in the original business system. It can be understood that the current data is inferred according to the sequence of changes in the timeline, and the data in the business system is verified to be consistent with the current inferred data. When others manually modify the data in the business system, there will be no change record in the evidence storage system, so the data between them will be inconsistent;
[0069] If not, an alarm is issued to indicate that the data in the original business system has been manually modified.
[0070] It should be noted that the above operation is only to perform data tampering check by manually inputting the unique identifier of the evidence data. If the data can be self-checked, it is possible to detect data tampering in time to avoid the generation of dirty data. Specifically, the step of obtaining the unique identifier of the evidence data synchronized in the original business system and obtaining the data processing time and corresponding data in the evidence system according to the unique identifier of the evidence data includes:
[0071] Automatically obtain the unique identifier of the business data in the original business system according to the preset rules, and determine the corresponding evidence service data according to the unique identifier of the business data, where the evidence service data is data obtained by performing preset data processing, wherein the step of automatically obtaining the unique identifier of the business data in the original business system according to the preset rules includes:
[0072] Obtain a unique identifier for each business data, and obtain the corresponding evidence service data based on the unique identifier of the business data; count the number of each operation type in the evidence service data, and multiply them by the corresponding weight coefficients to obtain an evaluation index. In this embodiment, the operation types include addition, deletion, modification, and query, wherein the weight coefficients can be set in descending order, namely, modification has the largest weight coefficient, and query has the smallest weight coefficient; sort the evaluation indexes by size, and obtain the corresponding unique identifier of the business data in the original business system based on the sorting result; arrange the evidence service data in order, and output the corresponding unique identifier of the evidence data based on the sorting result.
[0073] More specifically, in the step of arranging the evidence service data in order and outputting the corresponding evidence data unique identifier according to the sorting result, the amount of single business data under each preset operation type is obtained, and the evidence service data is arranged according to the amount of single business data under each preset operation type. It can be seen from the example in the first embodiment that "data" represents a single business data, and the amount of single business data under the preset operation type can be determined by identifying the number of "data" occurrences. Specifically, since "data" generally appears in pairs, the number of "data" is counted and divided by 2 to obtain the number of single business data. The data is sorted from most to least according to the number of single business data, and the corresponding evidence data unique identifier is output according to the sorting result, that is, the single business data with the largest number is given priority to output the corresponding evidence data unique identifier. The output evidence data unique identifier is used for subsequent data calculation and comparison. It can be understood that by counting the operation type and the amount of business data, the importance of a certain data and whether it is frequently used or concerned can be understood. The above operation is to perform self-inspection on more important data, which ensures the security of the data to a certain extent.
[0074] Embodiment 3
[0075] See also Figure 2 , Figure 2 2 is a structural block diagram of a bidirectional data evidence storage system 200 provided in Embodiment 3 of the present invention. The bidirectional data evidence storage system 200 includes: a calling module 21, a synchronization module 22 and a data processing module 23, wherein:
[0076] The calling module 21 is used to call the evidence storage service when the data operation requirements are obtained, and generate an evidence storage system with a unique business data identifier coexisting with the original business system to store and save subsequent data evidence, and the unique business data identifier is the business code;
[0077] Synchronization module 22, used for returning the unique identifier of the evidence data of the current evidence after calling the evidence storage service, and synchronously saving the unique identifier of the evidence data to the original business system, and establishing an association with the unique identifier of the business data, so as to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is globally unique data in the evidence storage system;
[0078] The data processing module 23 is used for the evidence storage service to perform preset data processing according to the operation type in the call parameters after receiving the call parameters. The preset data processing includes adding, deleting, modifying and querying data;
[0079] When the preset data processing is data addition, the evidence storage service will generate a new XML format file and record the node data corresponding to this operation in the file;
[0080] When the preset data processing is data deletion, modification and query, the evidence storage service will query the previously saved XML format file based on the unique identifier of the business data, and record the node data corresponding to this operation after the existing node data in the previously saved XML format file.
[0081] Furthermore, in some optional embodiments of the present invention, the bidirectional data evidence storage system 200 further includes:
[0082] The first acquisition module is used to obtain the unique identifier of the evidence data synchronized in the original business system, and obtain the data processing time and corresponding data in the evidence system according to the unique identifier of the evidence data;
[0083] A first judgment module is used to infer the corresponding data according to the order of data processing time to obtain inferred data, and to judge whether the inferred data is consistent with the corresponding data in the original business system;
[0084] The alarm module is used to issue an alarm when it is determined that the estimated data is inconsistent with the corresponding data in the original business system, so as to prompt that the data in the original business system has been manually modified.
[0085] Furthermore, in some optional embodiments of the present invention, the bidirectional data evidence storage system 200 further includes:
[0086] The second acquisition module is used to automatically acquire the unique identifier of the business data in the original business system according to the preset rules, and determine the corresponding evidence service data according to the unique identifier of the business data, where the evidence service data is the data obtained by performing the preset data processing;
[0087] The arrangement module is used to arrange the evidence service data in order and output the corresponding unique identifier of the evidence data according to the sorting result, wherein the amount of single business data under each preset operation type is obtained, and the evidence service data is arranged according to the amount of single business data under each preset operation type.
[0088] Further, in some optional embodiments of the present invention, the second acquisition module includes:
[0089] An acquisition unit, used to acquire a unique identifier of each business data, and acquire corresponding evidence storage service data according to the unique identifier of the business data;
[0090] A calculation unit, used to count the number of each operation type in the evidence storage service data, and multiply it by the corresponding weight coefficient to obtain an evaluation index;
[0091] The sorting unit is used to sort the evaluation indexes according to size, and obtain the corresponding unique identifier of the business data in the original business system according to the sorting result.
[0092] Embodiment 4
[0093] Another aspect of the present invention provides an electronic device, see Figure 3 , shown is an electronic device in Embodiment 4 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein when the processor 10 executes the computer program 30, the bidirectional data evidence storage method as described above is implemented.
[0094] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.
[0095] Among them, the memory 20 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 20 may be an internal storage unit of an electronic device in some embodiments, such as a hard disk of the electronic device. The memory 20 may also be an external storage device of an electronic device in other embodiments, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 20 may also include both an internal storage unit and an external storage device of the electronic device. The memory 20 may be used not only to store application software and various types of data of the electronic device, but also to temporarily store data that has been output or is to be output.
[0096] It should be pointed out that Figure 3 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than those shown in the figure, or combine certain components, or arrange the components differently.
[0097] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned bidirectional data evidence storage method.
[0098] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0099] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0100] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0101] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0102] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.
Claims
1. A bidirectional data evidence storage method, characterized in that: The method comprises: When the data operation requirements are obtained, the evidence storage service is called to generate an evidence storage system with a unique business data identifier that coexists with the original business system to store and preserve subsequent data evidence. The unique business data identifier is the business code; After calling the evidence storage service, the evidence storage service will return the unique identifier of the evidence data currently stored, and synchronously save the unique identifier of the evidence data to the original business system, and establish an association with the unique identifier of the business data to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is globally unique data in the evidence storage system; After receiving the call parameters, the evidence storage service performs preset data processing according to the operation type in the call parameters, and the preset data processing includes adding, deleting, modifying and querying data; When the preset data processing is data addition, the evidence storage service will generate a new XML format file and record the node data corresponding to this operation in the file; When the preset data processing is data deletion, modification and query, the evidence storage service will query the previously saved XML format file according to the unique identifier of the business data, and record the node data corresponding to this operation after the node data that already exists in the previously saved XML format file; After receiving the call parameters, the evidence storage service performs the preset data processing according to the operation type in the call parameters, including: Obtain the unique identifier of the evidence data synchronized in the original business system, and obtain the data processing time and corresponding data in the evidence system based on the unique identifier of the evidence data; Inferring the corresponding data according to the order of data processing time to obtain inferred data, and determining whether the inferred data is consistent with the corresponding data in the original business system; If not, an alarm is issued to indicate that the data in the original business system has been manually modified.
2. The bidirectional data evidence storage method according to claim 1 is characterized in that: The step of obtaining the unique identifier of the evidence data synchronized in the original business system and obtaining the data processing time and corresponding data in the evidence system according to the unique identifier of the evidence data includes: Automatically obtain the unique identifier of the business data in the original business system according to the preset rules, and determine the corresponding evidence service data according to the unique identifier of the business data, where the evidence service data is the data obtained by performing the preset data processing; Arrange the evidence service data in order, and output the corresponding unique identifier of the evidence data based on the sorting result.
3. The bidirectional data evidence storage method according to claim 2 is characterized in that: The step of automatically obtaining the unique identifier of the business data in the original business system according to the preset rules includes: Obtain the unique identifier of each business data, and obtain the corresponding evidence service data based on the unique identifier of the business data; Count the number of each operation type in the evidence storage service data, and multiply them by the corresponding weight coefficient to obtain the evaluation index; The evaluation indexes are sorted by size, and based on the sorting results, the corresponding unique identifier of the business data in the original business system is obtained.
4. The bidirectional data evidence storage method according to claim 3 is characterized in that: In the step of arranging the evidence service data in order and outputting the corresponding unique identifier of the evidence data according to the sorting result, the amount of single business data under each preset operation type is obtained, and the evidence service data is arranged according to the amount of single business data under each preset operation type.
5. A bidirectional data evidence storage system, characterized in that: Used to implement the bidirectional data evidence storage method according to any one of claims 1 to 4, the system comprises: The calling module is used to call the evidence storage service when the data operation requirements are obtained, and generate an evidence storage system with a unique business data identifier coexisting with the original business system to store and save subsequent data evidence. The unique business data identifier is the business code; The synchronization module is used to call the evidence storage service, and the evidence storage service will return the unique identifier of the evidence data currently stored, and synchronize and save the unique identifier of the evidence data to the original business system, and establish an association with the unique identifier of the business data to facilitate subsequent data tracing, wherein the unique identifier of the evidence data is the globally unique data in the evidence storage system; A data processing module, which is used for the evidence storage service to perform preset data processing according to the operation type in the call parameters after receiving the call parameters, and the preset data processing includes adding, deleting, modifying and querying data; When the preset data processing is data addition, the evidence storage service will generate a new XML format file and record the node data corresponding to this operation in the file; When the preset data processing is data deletion, modification and query, the evidence storage service will query the previously saved XML format file based on the unique identifier of the business data, and record the node data corresponding to this operation after the existing node data in the previously saved XML format file.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the bidirectional data evidence storage method as described in any one of claims 1 to 4 is implemented.
7. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for bidirectional data storage as claimed in any one of claims 1 to 4 is implemented.
