Business data auditing method and device, computing device, and storage medium
By recording business data changes on the blockchain network and leveraging its immutability, the problem of unauthorized alterations to business data in the source business database is solved, thus achieving efficient business data auditing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LIAONING MOBILE COMM
- Filing Date
- 2021-04-09
- Publication Date
- 2026-06-02
Smart Images

Figure CN115203316B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of computer technology, and in particular relates to a business data auditing method, apparatus, computing device and storage medium. Background Technology
[0002] In some situations, users may want to change business data. In such cases, business forms can be used to process the changes. For example, if a user wants to change their mobile phone plan, staff can manipulate the business form and call backend code to modify the business data in the source business database to achieve the change.
[0003] The aforementioned method of using business forms to process changes to user business data is legal. However, if illegal means are used to directly modify business data in the source business database to change user business data, then no trace will be left except for the operation logs of the source business database.
[0004] When auditing business data in the source business database, although the operation logs can be used to determine whether the business data in the source business database has been modified, the large volume of data in the operation logs makes it difficult to detect unauthorized modifications to the business data in the source business database during actual auditing. Summary of the Invention
[0005] This application provides a business data auditing method, apparatus, computing device, and storage medium, which can solve the technical problem that it is difficult to detect illegal alteration of business data in the source business database when actually auditing business data.
[0006] On the one hand, embodiments of this application provide a business data auditing method, including:
[0007] Obtain the target business data of the fields to be audited from the source business database;
[0008] The target business data is matched with the business data change records of the fields to be audited stored in the blockchain network to obtain a matching result. The data stored in the blockchain network includes business data change records of at least one field when processing business through a business form.
[0009] Based on the matching results, business data audit results are generated.
[0010] On the other hand, embodiments of this application provide a business data auditing device, including:
[0011] The first acquisition module is used to acquire the target business data of the fields to be audited in the source business database;
[0012] The matching module is used to match the target business data with the business data change records of the field to be audited stored in the blockchain network to obtain a matching result. The data stored in the blockchain network includes business data change records of at least one field when processing business through a business form.
[0013] The generation module is used to generate business data audit results based on the matching results.
[0014] In another aspect, embodiments of this application provide a computing device, the device including: a processor and a memory storing computer program instructions; the processor implements the business data auditing method when executing the computer program instructions.
[0015] In another aspect, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the aforementioned business data auditing method.
[0016] The business data auditing method, apparatus, computing device, and storage medium of this application embodiment store data change records when business changes are processed through business forms in a blockchain network. Since processing business through business forms is a legitimate means of business processing, and the blockchain network possesses the characteristic of immutability, the data change records stored in the blockchain network are reliable. Auditing of business data in the source business database can be performed based on these data change records. Specifically, the target business data of the field to be audited in the source business database can be obtained first; then, the target business data can be matched with the business data change records of the field to be audited stored in the blockchain network, and a business data audit result can be generated based on the matching result. In this way, it is relatively easy to detect whether the business data in the source business database has been illegally modified. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating an embodiment of a business data auditing method provided in this application.
[0019] Figure 2 This is a schematic diagram of an embodiment of a business data auditing system provided in this application.
[0020] Figure 3 This is a flowchart illustrating another embodiment of a business data auditing method provided in this application.
[0021] Figure 4 This is a schematic diagram of an embodiment of an on-chain information format provided in this application.
[0022] Figure 5 This is a schematic diagram of one embodiment of a business data auditing device provided in this application.
[0023] Figure 6 This is a schematic diagram of the hardware structure of one embodiment of a computing device provided in this application. Detailed Implementation
[0024] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0025] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0026] To modify business data, business forms can be used to process changes for users. This involves operations on the front-end business form, which then calls back-end code to modify the business data in the source database. For example, if a user wants to change their mobile phone plan, they can do so at a telecom service center. Specifically, the user first informs the staff of their business data modification request, and then the staff modifies the business form to implement the change.
[0027] In the operation of some complex business systems, anomalies may occur. For example, logical errors may cause problems with data changes, or changes to business data via the backend may lead to anomalies. To handle these anomalies, the business system has a corresponding data maintenance process to process them. Specifically, for changes to business data in case of anomalies, approval must first be obtained through the data maintenance process. Then, staff can directly connect to the source business database through a backend business form to modify the business data.
[0028] It is evident that staff can directly connect to the source business database to modify business data. If staff privately connect to the source business database to modify business data without going through the front-end business processing procedure or the back-end data maintenance procedure, no trace will be left except for the operation logs of the source business database. Modifying data such as time, amount, and package level in the source business database will significantly jeopardize business compliance.
[0029] Directly connecting to the source business database is a legal and compliant method if approved through the data maintenance process. However, operations that illegally connect to the source business database are often mixed in with massive amounts of operation logs. Auditing these logs using traditional methods makes it very difficult to detect unauthorized modifications to business data in the source business database.
[0030] Faced with the aforementioned technical problems, the inventors of this application conceived of blockchain technology. As a decentralized distributed database, blockchain technology has been widely used in the financial industry, especially due to its high-strength chain-based encryption of transaction records, making it the core infrastructure of decentralized electronic currencies.
[0031] In fact, blockchain technology is not a technology dedicated to electronic cryptocurrencies such as Bitcoin and Ethereum or smart contracts. Its characteristics can be applied to any scenario that requires traceable, tamper-proof, and forgery-proof data records.
[0032] From the perspective of "blockchain data structure", blockchain is a chain-like data structure that combines data blocks in a sequential manner according to time order. It is a distributed ledger that is cryptographically guaranteed to be immutable and unforgeable. Therefore, this "robust" and "stable" chain-like data structure can securely store specific data sequences. Any alteration to any record on the chain will destroy the verifiability of the entire chain-like data structure. Thus, the chain-like data structure of blockchain has excellent anti-tampering characteristics.
[0033] Most blockchain technology integrations focus on the application of the "distributed ledger" feature, and the application of the blockchain's chain-like data structure, especially in data auditing, is still in a certain exploratory stage.
[0034] Based on the above description of blockchain technology, this application provides a business data auditing method based on blockchain technology. In this method, business data change records when processing business through business forms are uploaded to the blockchain network in advance. Since processing business through business forms is a legitimate means of processing business, and the blockchain network has the characteristic of being tamper-proof, the data change records stored in the blockchain network are reliable. Therefore, business data in the source business database can be audited based on the data change records stored in the blockchain network.
[0035] Specifically, the process can begin by retrieving the target business data for the fields to be audited from the source business database. Then, the target business data is matched against the business data change records for the fields to be audited stored in the blockchain network, and a business data audit result is generated based on the matching results. This makes it relatively easy to detect whether the business data in the source business database has been illegally altered.
[0036] The following description, in conjunction with the accompanying drawings, explains the business data auditing method provided in this application.
[0037] Figure 1 This is a flowchart illustrating an embodiment of a business data auditing method provided in this application. Figure 1 As shown, the business data auditing method 100 includes:
[0038] S102, Obtain the target business data of the fields to be audited from the source business database.
[0039] The source business database is used to store business data. Because relational databases have a fast response time, the source business database can be a relational database, allowing for quick response. Specifically, the source business database can be the source business database of a telecommunications operator.
[0040] The fields to be audited can be any field corresponding to business data in the source business database, or they can be preset key fields. For example, key fields can include at least one of sensitive fields such as time, amount, and package level.
[0041] Business data auditing method 100 also includes:
[0042] S104, Match the target business data with the business data change records of the fields to be audited stored in the blockchain network to obtain the matching result. The data stored in the blockchain network includes business data change records of at least one field when processing business through a business form.
[0043] As an example, S104 may include: when multiple data change records of fields to be audited are stored in the blockchain network, matching the target business data with the most recently generated data change record to obtain a matching result. Specifically, the most recently generated data change record can be obtained based on the timestamps of each data change record.
[0044] When matching target business data with data change records, specifically, it can be determined whether the target business data is consistent with the changed business data in the data change records. If they are consistent, it means that the target business data matches the data change records; if they are inconsistent, it means that the target business data does not match the data change records.
[0045] It should be noted that when processing business through business forms, the business data change records generated will not only be uploaded to the blockchain network, but will also update the business data in the source business database based on the business data change records, so that the source business database has the latest business data.
[0046] Therefore, when business is conducted through legitimate means, the same field in the source business database and the blockchain network will contain identical business data. Conversely, when business is conducted through illegitimate means, the same field in the source business database and the blockchain network will contain different data. Therefore, business data can be audited based on the data matching results for the same field between the source business database and the blockchain network.
[0047] The business forms may include at least one of the following: forms for processing business on the front end and forms for maintaining business data in the back end.
[0048] Forms used for front-end business processing can refer to form pages operated by staff in telecommunications service halls or form pages on applications. These forms typically refer to the workflow forms used for front-end business processing, also known as business processing workflow forms. Users can manipulate these forms to perform operations such as adding, deleting, modifying, and querying business data. After performing these operations, backend code can be invoked to update the business data in the source business database.
[0049] The form used for maintaining business data in the background is also known as a data maintenance process form. It can refer to the form through which maintenance personnel directly connect to the source business database after the data maintenance process has been approved. The form can be used to update the business data in the source business database.
[0050] For example, if data errors occur due to problems in the front-end business processing procedures, the business data in the source business database can be updated through the back-end.
[0051] For example, if a user's mobile phone number level is upgraded but the user's mobile phone plan cannot be changed through the front end, then the business of changing the user's mobile phone plan can be approved through a data maintenance process. After the approval is completed, the maintenance personnel can directly connect to the source business database to change the user's mobile phone plan.
[0052] Business data auditing method 100 also includes:
[0053] S106, Based on the matching results, generate business data audit results.
[0054] As an example, S106 may include:
[0055] If the matching result shows that the target business data does not match the business data change record of the field to be audited stored in the blockchain network, an audit result indicating that the target business data is abnormal will be generated. In this case, a warning message indicating that the target business data is abnormal can also be output so that staff can promptly detect anomalies in the source business database.
[0056] If the matching result shows that the target business data matches the business data change record of the field to be audited stored in the blockchain network, a business data audit result indicating that the target business data is normal is generated.
[0057] In this way, the audit results of business data can be used to determine whether business data in the source business database has been illegally altered. Since the audit is not conducted on massive amounts of database logs, but rather by matching relevant data for the same field in the source business database with data in the blockchain network, and obtaining such data is relatively easy, even if business data in the source business database has been illegally tampered with, it is relatively easy to detect whether the data has been illegally altered.
[0058] To avoid impacting the performance of the source business database when acquiring target business data, in one or more embodiments of this application, S102 may include:
[0059] Call the intermediate database table, which stores business data of at least one key field extracted from the source business database;
[0060] Retrieve the target business data of the field to be audited from the intermediate table of the database, wherein the field to be audited is a field from at least one key field.
[0061] As an example, the intermediate table in the database stores the latest business data, including at least one key field extracted from the source business database.
[0062] In this embodiment of the application, the business data of key fields in the source business database are stored in the intermediate table of the database in advance. When auditing business data, the target business data of the field to be audited is obtained from the intermediate table of the database instead of from the source business database. In this way, the performance of the source business database can be avoided.
[0063] In one or more embodiments of this application, the business data auditing method 100 may further include:
[0064] Monitor whether the business data of each key field in the source business database has changed;
[0065] If any change is detected in the business data of the first key field in the source business database, update the business data of the first key field in the intermediate database table to make the business data of the first key field in the intermediate database table consistent with the changed business data of the first key field in the source business database.
[0066] It should be noted that monitoring whether the business data of each key field in the source business database has changed can be performed before or after calling the intermediate table. The specific execution order of this step is not limited here.
[0067] Through the embodiments of this application, when a change in the business data of the first key field in the source business database is detected, the business data of the first key field in the intermediate database table is updated in a timely manner, ensuring that the business data in the intermediate database table is consistent with the business data in the source business database. This guarantees that the intermediate database table stores the latest business data, leading to more accurate audit results when auditing business data based on the intermediate database table.
[0068] In one or more embodiments of this application, monitoring whether the business data of various key fields in the source business database has changed may include:
[0069] By deploying at least one of the following in the source business database: triggers, long connections, and monitoring interfaces, monitor whether the business data of each key field in the source business database has changed.
[0070] To achieve synchronized updates of data in the source business database and the blockchain network, in one or more embodiments of this application, before S102, the business data auditing method 100 may further include:
[0071] If business data for a field is successfully changed on a business form, retrieve the data change record for the changed field;
[0072] Based on the data change records, update the business data of the changed fields in the source business database; and generate on-chain information including the data change records, and store the on-chain information in the blockchain network.
[0073] Through the embodiments of this application, when business data of a field is changed, not only is the business data of the changed field in the source business database updated, but also on-chain information including data change records is generated to upload the data change records to the blockchain. In this way, synchronous updates of data in the source business database and the blockchain network can be achieved.
[0074] In order to promptly detect whether there are any anomalies in the business data in the source business database, in one or more embodiments of this application, obtaining the target business data of the field to be audited in the source business database may include:
[0075] If the business data of the second field in the source business database changes, the second field will be used as the audit field, and the changed business data of the audit field in the source business database will be obtained.
[0076] or,
[0077] At predetermined intervals, retrieve business data for the fields to be audited from the source business database.
[0078] Through the embodiments of this application, auditing of business data in the source business database can be performed when changes occur, and auditing of business data in the source business database can also be performed periodically. This allows for timely detection of any anomalies in the business data within the source business database.
[0079] The following is based on Figure 2 Taking the business data audit system shown as an example, for Figure 3 The business data auditing methods shown are explained.
[0080] exist Figure 2 Since the record collection module is embedded in the business processing form or data maintenance form, when business data is changed through the business processing form or data maintenance form, the record collection module can obtain the data change record.
[0081] like Figure 3As shown, business data auditing method 200 includes:
[0082] S202, Receive business data change operations submitted based on business processing process forms or data maintenance process forms. The business data change operations can be operations that modify a certain package based on the front-end business processing process forms, or business data change operations can be application and approval operations based on the back-end data maintenance process forms for modifying a package for a user in offline business.
[0083] S204, the data change record of the changed field is obtained through the record collection module; the data change record includes information such as the changed database-table-field-data code (Identity document, ID) and the changed value; after obtaining the data change record, the data change record can be pushed to the blockchain application module through the interface;
[0084] S206, the blockchain application module receives data change records pushed by the record collection module, and generates on-chain information in a predetermined format based on the data change records. The specific format of the on-chain information can be... Figure 4 The format shown;
[0085] S208, the blockchain node module stores the information on the blockchain, specifically storing the information on the blockchain into each blockchain node module in the blockchain network;
[0086] S210, if the business data change operation is based on the front-end business processing procedure, receive the submission operation of the instance of the business processing procedure; or, if the business data change operation is based on the back-end data maintenance procedure, the back-end data maintenance procedure enters the approval stage.
[0087] S212, when the business data change operation is based on the front-end business processing procedure, the business data in the source business database is changed by calling the back-end code through the front-end business processing procedure form; or, when the business data change operation is based on the back-end data maintenance procedure, after the approval is completed and the maintenance personnel directly connect to the source business database, the business data in the source business database is changed according to the maintenance personnel's operation on the source business database.
[0088] S214, The data change monitoring module monitors whether the business data of each key field in the source business database has changed. If the business data of any first key field in the source business database has changed, the database intermediate table is updated to make the business data stored in the database intermediate table consistent with the business data stored in the source business database.
[0089] S216, The data change audit module matches the relevant data of the same field in the source business database with the data in the intermediate database table to find abnormal data in the source business database. It should be noted that the matching of the relevant data of the same field in the source business database with the intermediate database table can be performed when the intermediate database table is changed, or the matching of the relevant data of each key field in the source business database with the intermediate database table can be performed periodically.
[0090] S218, through the data change audit module, sends alarms to the front-end application for any anomalies found; in the case of periodic audits, an audit report can be generated so that technical personnel can query the database operation logs to locate the cause of non-compliant operations based on the anomaly.
[0091] In the aforementioned business data auditing method 200, a record collection module is first embedded in the front-end business processing flow and the back-end data maintenance flow. After a process instance is completed, the record collection module will collect the business data change records involved in the process instance, form a formatted on-chain record through the blockchain application module, and record it in the blockchain data area of the blockchain node module.
[0092] After each front-end business processing workflow and back-end data maintenance workflow completes a workflow instance, the business data in the source business database is modified automatically or manually. The data change monitoring module monitors the business data of sensitive fields using triggers. When the business data of a sensitive field changes, the trigger updates the modified business data of the sensitive field to the intermediate database table used for data auditing. The data change auditing module reads the latest business data change records of the fields to be audited from the blockchain data area and matches these records with the business data of the fields to be audited in the intermediate database table. This determines whether the business data in the intermediate database table was modified through a workflow instance of the front-end business processing workflow or the back-end data maintenance workflow, thereby enabling the auditing, identification, and early warning of illegal operations on business data.
[0093] Corresponding to the business data auditing method provided in this application, this application provides a business data auditing apparatus. Figure 5 This is a schematic diagram of the structure of one embodiment of a business data auditing device provided in this application. Figure 5 As shown, the business data auditing device 300 includes:
[0094] The first acquisition module 302 is used to acquire the target business data of the fields to be audited in the source business database;
[0095] The matching module 304 is used to match the target business data with the business data change records of the fields to be audited stored in the blockchain network to obtain the matching result. The data stored in the blockchain network includes business data change records of at least one field when processing business through a business form.
[0096] The generation module 306 is used to generate business data audit results based on the matching results.
[0097] Through the embodiments of this application, it is possible to discover whether business data in the source business database has been illegally modified based on the results of business data audits. Since the audit of business data is not conducted on massive database logs, but rather by matching relevant data of the same field in the source business database with data in the blockchain network, and obtaining relevant data of the same field in the source business database and the blockchain network is relatively easy, even if the business data in the source business database has been illegally tampered with, it is relatively easy to detect whether the business data in the source business database has been illegally modified.
[0098] In one or more embodiments of this application, the first acquisition module 302 may include:
[0099] The calling unit is used to call the intermediate database table, which stores business data of at least one key field extracted from the source business database.
[0100] The first acquisition unit is used to acquire target business data of the field to be audited from the intermediate table of the database, wherein the field to be audited is a field from at least one key field.
[0101] In this embodiment of the application, the business data of key fields in the source business database are stored in the intermediate table of the database in advance. When auditing business data, the target business data of the field to be audited is obtained from the intermediate table of the database instead of from the source business database. In this way, the performance of the source business database can be avoided.
[0102] In one or more embodiments of this application, the business data auditing device 300 may further include:
[0103] The monitoring module is used to monitor whether the business data of each key field in the source business database has changed;
[0104] The first update module is used to update the business data of the first key field in the intermediate database table when any change in the business data of the first key field in the source business database is detected, so that the business data of the first key field in the intermediate database table is consistent with the changed business data of the first key field in the source business database.
[0105] Through the embodiments of this application, when a change in the business data of the first key field in the source business database is detected, the business data of the first key field in the intermediate database table is updated in a timely manner, ensuring that the business data in the intermediate database table is consistent with the business data in the source business database. This guarantees that the intermediate database table stores the latest business data, leading to more accurate audit results when auditing business data based on the intermediate database table.
[0106] In one or more embodiments of this application, the monitoring module may specifically be used for:
[0107] By deploying at least one of the following in the source business database: triggers, long connections, and monitoring interfaces, monitor whether the business data of each key field in the source business database has changed.
[0108] In one or more embodiments of this application, the business data auditing device 300 may further include:
[0109] The second acquisition module is used to acquire the data change record of the changed field when the business data of the field is successfully changed through the business form;
[0110] The second update module is used to update the business data of the changed fields in the source business database based on the data change records;
[0111] The on-chain module is used to generate on-chain information, including data change records, and store the on-chain information in the blockchain network.
[0112] Through the embodiments of this application, when business data of a field is changed, not only is the business data of the changed field in the source business database updated, but also on-chain information including data change records is generated to upload the data change records to the blockchain. In this way, synchronous updates of data in the source business database and the blockchain network can be achieved.
[0113] In one or more embodiments of this application, the first acquisition module 302 may include:
[0114] The second acquisition unit is used to, when the business data of the second field in the source business database changes, use the second field as the field to be audited and acquire the changed business data of the field to be audited in the source business database.
[0115] The third acquisition unit is used to acquire business data of the fields to be audited from the source business database at predetermined intervals.
[0116] Through the embodiments of this application, auditing of business data in the source business database can be performed when changes occur, and auditing of business data in the source business database can also be performed periodically. This allows for timely detection of any anomalies in the business data within the source business database.
[0117] In one or more embodiments of this application, the business form includes at least one of the following: a form for processing business at the front end and a form for maintaining business data in the back end.
[0118] This application also provides a computing device, which includes a processor and a memory storing computer program instructions. When the processor executes the computer program instructions, it implements the steps of any embodiment of the business data auditing method.
[0119] Figure 6 This is a schematic diagram of the hardware structure of one embodiment of a computing device provided in this application.
[0120] like Figure 6 As shown, the computing device may include a processor 401 and a memory 402 storing computer program instructions.
[0121] Specifically, the processor 401 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0122] Memory 402 may include mass storage for data or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 402 may include removable or non-removable (or fixed) media. Where appropriate, memory 402 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 402 is non-volatile solid-state memory.
[0123] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.
[0124] The processor 401 implements the steps in any embodiment of the business data auditing method by reading and executing computer program instructions stored in the memory 402.
[0125] In one example, the computing device may also include a communication interface 403 and a bus 410. Wherein, as... Figure 6 As shown, the processor 401, memory 402, and communication interface 403 are connected through bus 410 and complete communication with each other.
[0126] The communication interface 403 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0127] Bus 410 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 410 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0128] Furthermore, in conjunction with the business data auditing methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the business data auditing methods in the above embodiments.
[0129] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0130] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Machine-readable media can include non-transitory computer-readable storage media, such as electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, and can also include radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0131] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0132] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0133] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A business data auditing method, characterized in that, include: If business data for a field is successfully changed on a business form, retrieve the data change record for the changed field; Based on the data change record, update the business data of the changed field in the source business database; and generate on-chain information including the data change record, and store the on-chain information in the blockchain network; wherein, the business form includes at least one of the following: a form for handling business at the front end and a form for maintaining business data in the back end, and the business form is a legitimate channel for handling business data changes; Obtain the target business data of the fields to be audited from the source business database; The target business data is matched with the business data change records of the field to be audited stored in the blockchain network to obtain a matching result. The data stored in the blockchain network includes business data change records of at least one field when processing business through the business form. The business data change records stored in the blockchain network are composed of business data change records generated when processing business through the business form. Based on the matching results, generate business data audit results; The step of obtaining the target business data of the fields to be audited from the source business database includes: The database intermediate table is invoked, and the database intermediate table stores business data of at least one key field extracted from the source business database; The target business data of the field to be audited is obtained from the intermediate table of the database, wherein the field to be audited is a field among the at least one key field.
2. The method according to claim 1, characterized in that, The method further includes: Monitor whether the business data of each key field in the source business database has changed; If a change is detected in the business data of any first key field in the source business database, the business data of the first key field in the intermediate database table is updated to make the business data of the first key field in the intermediate database table consistent with the changed business data of the first key field in the source business database.
3. The method according to claim 2, characterized in that, The monitoring of whether the business data of each key field in the source business database has changed includes: By using at least one of the triggers, long connections, and monitoring interfaces deployed in the source business database, monitor whether the business data of each key field in the source business database has changed.
4. The method according to any one of claims 1 to 3, characterized in that, The step of obtaining the target business data of the fields to be audited from the source business database includes: If the business data of the second field in the source business database changes, the second field is used as the audit field, and the changed business data of the audit field in the source business database is obtained. or, At predetermined intervals, retrieve business data of the fields to be audited from the source business database.
5. A business data auditing device, characterized in that, include: The second acquisition module is used to acquire the data change record of the changed field when the business data of the field is successfully changed through the business form; The second update module is used to update the business data of the changed field in the source business database according to the data change record; and to generate on-chain information including the data change record and store the on-chain information in the blockchain network; wherein, the business form includes at least one of the following: a form for handling business at the front end and a form for maintaining business data in the back end, and the business form is a legitimate channel for handling business data changes; The first acquisition module is used to acquire the target business data of the fields to be audited in the source business database; The matching module is used to match the target business data with the business data change records of the field to be audited stored in the blockchain network to obtain a matching result. The data stored in the blockchain network includes business data change records of at least one field when processing business through the business form. The business data change records stored in the blockchain network are composed of business data change records generated when processing business through the business form. The generation module is used to generate business data audit results based on the matching results; The first acquisition module includes: The calling unit is used to call a database intermediate table, which stores business data of at least one key field extracted from the source business database; The first acquisition unit is used to acquire the target business data of the field to be audited from the intermediate table of the database, wherein the field to be audited is a field among the at least one key field.
6. A computing device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the business data auditing method as described in any one of claims 1-4.
7. A computer storage medium, characterized in that, The computer storage medium stores computer program instructions, which, when executed by a processor, implement the business data auditing method as described in any one of claims 1-4.