CN115114303A - Service data auditing method, platform and system - Google Patents

Service data auditing method, platform and system Download PDF

Info

Publication number
CN115114303A
CN115114303A CN202110304310.2A CN202110304310A CN115114303A CN 115114303 A CN115114303 A CN 115114303A CN 202110304310 A CN202110304310 A CN 202110304310A CN 115114303 A CN115114303 A CN 115114303A
Authority
CN
China
Prior art keywords
data
service
platform
audited
auditing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110304310.2A
Other languages
Chinese (zh)
Inventor
杨奎
唐海冬
周伟
徐朋朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110304310.2A priority Critical patent/CN115114303A/en
Publication of CN115114303A publication Critical patent/CN115114303A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q50/40

Abstract

The invention provides a service data auditing method, a platform and a system, wherein the method comprises the following steps: receiving data to be audited after data synchronization of any service platform is completed, and uplink storing the data to be audited to the service data of the service platform; and inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in the chain, and determining the auditing result of the data to be audited, wherein the associated service platform is a service platform for performing data synchronization with the service platform. The method, the platform and the system ensure the reliability and the robustness of data synchronization between the audit platform and the service platform. Compared with service data of different service platforms, a trust supplement mechanism is provided among the untrusted platforms, service data auditing is completed, and meanwhile the auditing method can be expanded to adapt to various service auditing scenes without influencing the current service flow, and the method is small in modification on the basis of the existing platform and easy to deploy and implement.

Description

Service data auditing method, platform and system
Technical Field
The invention relates to the technical field of computers, in particular to a business data auditing method, platform and system.
Background
In a telecommunication operation scenario, a service support system needs to synchronize service data among multiple systems and platforms in many cases, where the service data may include a user status, a user subscription relationship, and the like. If the service data synchronization fails and the data between the related systems and platforms are inconsistent, many problems may be caused, for example, the front and back end data of the charging system are inconsistent, which often causes the problems of inaccurate charging, incapability of handling the service of the user, and the like.
At present, for the problem of inconsistent service data on different systems and platforms, an offline audit comparison mode is usually adopted for remedy, and the specific operation mode is as follows: when any platform acquires the data of another platform, the platform stores the data into a local database, and performs record comparison with a table corresponding to the local, and performs local data updating after finding the difference.
However, the above auditing methods are different in related services, and different in comparison methods and mechanisms between different platforms and systems, and there is no unified auditing specification and support system.
Disclosure of Invention
The invention provides a business data auditing method, a platform and a system, which are used for solving the problems of low efficiency and poor reliability of the existing business data auditing method.
The invention provides a business data auditing method, which is applied to an auditing platform based on a block chain, and comprises the following steps:
receiving data to be audited after data synchronization of any service platform is completed, and uploading the data to be audited to the service data of any service platform;
and inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in the chain, and determining the auditing result of the data to be audited, wherein the associated service platform is a service platform which performs data synchronization with any service platform.
According to the service data auditing method provided by the invention, the chain inquires whether the service data of the associated service platform contains data consistent with the data to be audited, and the auditing result of the data to be audited is determined, wherein the method comprises the following steps:
based on an auditing intelligent contract, inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in a chain;
if yes, determining that the audit result is normal, otherwise, determining that the audit result is abnormal.
According to the service data auditing method provided by the invention, the uplink storage of the data to be audited in the service data of any service platform comprises the following steps:
and based on a uplink intelligent contract, uplink storing the data to be audited into the service data of any service platform.
According to the service data auditing method provided by the invention, the determination of the auditing result of the data to be audited further comprises the following steps:
if the audit result is normal, sending an audit normal notice to any service platform and the associated service platform so that any service platform and the associated service platform update the data to be audited into normal data;
and if the audit result is abnormal, sending an audit abnormal notification to any service platform so that the service platform can update the data to be audited into abnormal data.
The invention provides a service data auditing method, which is applied to a service platform and comprises the following steps:
carrying out data synchronization with the associated service platform to obtain data to be audited after the data synchronization is finished;
and sending the data to be audited to an auditing platform based on a block chain so as to trigger the auditing platform to uplink and store the data to be audited to the business data of the business platform, and to chain inquire whether the business data of the associated business platform contains data consistent with the data to be audited, and determining an auditing result of the data to be audited.
According to the service data auditing method provided by the invention, the data to be audited is sent to an auditing platform based on a block chain, and then the method further comprises the following steps:
if an audit normal notification returned by the audit platform when the audit result is normal is received, updating the data to be audited into normal data;
and if an audit exception notification returned by the audit platform when the audit result is abnormal is received, updating the data to be audited into abnormal data.
The service data auditing method provided by the invention further comprises the following steps:
and updating the exception log based on the exception data stored locally at preset time intervals.
The invention provides an auditing platform based on a block chain, which comprises:
the system comprises a cochain storage unit, a data synchronization unit and a data synchronization unit, wherein the cochain storage unit is used for receiving data to be audited after data synchronization of any service platform is completed, and cochain storing the data to be audited into the service data of any service platform;
and the on-chain query unit is used for querying whether the service data of the associated service platform contains data consistent with the data to be audited in a chain manner, and determining the auditing result of the data to be audited, wherein the associated service platform is a service platform which performs data synchronization with any service platform.
The invention provides a service platform, comprising:
the data synchronization unit is used for carrying out data synchronization with the associated service platform to obtain to-be-audited data after the data synchronization is finished;
and the synchronous uploading unit is used for sending the data to be audited to an auditing platform based on a block chain, so as to trigger the auditing platform to uplink store the data to be audited to the service data of the service platform, and to chain inquire whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine the auditing result of the data to be audited.
The invention provides a service data auditing system which comprises the above auditing platform based on block chains and a plurality of service platforms.
The service data auditing method, the service data auditing platform and the service data auditing system synchronize the service data of each service platform to the block chain through the application of the auditing platform based on the block chain, thereby ensuring the reliability and the robustness of data synchronization between the auditing platform and the service platform. Compared with service data of different service platforms in a chain, a trust supplement mechanism is provided between the untrusted platforms, service data audit is completed, meanwhile, the audit method can be expanded and adapted to various service audit scenes, the current service flow is not influenced, the change is small on the basis of the existing platform, and the deployment and implementation are easy.
Drawings
In order to more clearly illustrate the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flowchart illustrating a business data auditing method according to an embodiment of the present invention;
FIG. 2 is a second flowchart illustrating a business data auditing method according to the present invention;
FIG. 3 is a third schematic flow chart of a business data auditing method according to the present invention;
FIG. 4 is a fourth flowchart illustrating a business data auditing method according to the present invention;
FIG. 5 is a schematic structural diagram of a block chain-based auditing platform according to the present invention;
FIG. 6 is a schematic structural diagram of a service platform provided by the present invention;
FIG. 7 is a schematic structural diagram of a business data auditing system provided by the present invention;
fig. 8 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The existing auditing modes are different due to different related services, and the comparison modes and mechanisms between different platforms and systems are different, so that a unified auditing specification and a supporting system are not provided. In addition, manual participation is usually required, and results are analyzed and audit differences are processed through script comparison manually.
The reason for the inconsistency of the service data among the platforms is deeply analyzed, the service data synchronization mainly has the following scenes, the service data synchronization of a plurality of platforms exists, and the two platforms are simply taken as an example:
scene A: the platform A sends a service synchronization message to the platform B, the platform B responds and processes successfully, the situation that service data are inconsistent generally cannot occur in the scene, the special situation is that after the platform B returns and processes successfully, the back end is an asynchronous processing mechanism, and the situation that the service data of the platform A are inconsistent with the service data of the platform B can be caused due to the fact that asynchronous processing fails.
Scene B: the platform A sends a service synchronization message to the platform B, the platform B responds to the failure of service level processing, and under the scene, the problem of service data inconsistency can be solved by retrying through the platform A.
Scene C: the platform A sends a service synchronization message to the platform B, the platform B responds to system level failure, and if the platform B does not receive a synchronization request, the platform B can retry; if platform B receives the request and the process is successful, but a system level failure occurs back to A, then platform A cannot retry.
Scene D: the platform A sends the service synchronization message to the platform B, and the platform B does not receive the response message, so that the timeout is caused. The scenario may be that the message is not sent to platform B, resulting in timeout, or that platform B fails to return the message to platform a after processing, and a fails to receive a response message, resulting in timeout.
The above B, C, D scenario may result in inconsistent platform a and platform B traffic data. Aiming at the problems in various scenes, the embodiment of the invention provides a service data auditing method. Fig. 1 is a schematic flow diagram of a service data auditing method provided by the present invention, and as shown in fig. 1, an execution subject of the method is an auditing platform based on a block chain, and the method includes:
step 110, receiving data to be audited after data synchronization of any service platform is completed, and uplink storing the data to be audited to the service data of any service platform.
Specifically, the auditing platform is independent of each service platform and is used for auditing service data. The auditing platform established based on the block chain technology has the characteristic that the block chain is not tampered, and the integrity and the credibility of the data stored on the auditing platform can be ensured through a specific consensus algorithm of the block chain.
Data transmission channels are established between the auditing platform and each service platform, for example, each service platform can perform data interaction with the auditing platform through DAAPP (centralized application).
For any service platform, the service platform may synchronize data with the rest service platforms and confirm that the data synchronization is completed, for example, the service platform synchronizes the service data to another service platform, and after receiving a successful response returned by another service platform, the service platform may confirm that the data synchronization is completed, for example, the service platform receives the service data of another service platform and performs service processing, and after the processing is completed, the service platform notifies the other service platform that the processing is successful, and at this time, the service platform may confirm that the data synchronization is completed.
After the service platform confirms that the data synchronization is completed, the service data after the data synchronization can be sent to the auditing platform as the data to be audited so as to request the auditing platform to audit the data to be audited. The service data here may specifically be user status, user subscription relationship, etc.
After receiving the data to be audited, the auditing platform can store the data to be audited in the service data of the service platform in an uplink mode. Here, the service data of each service platform locally stored by the audit platform is stored in a block form. After the auditing platform receives new data sent by any service platform, the newly received data is stored in a block corresponding to the service data of the service platform, so that the service data stored in the auditing platform and the service data of the service platform can be synchronized.
And 120, inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in a chain, and determining the auditing result of the data to be audited, wherein the associated service platform is a service platform for performing data synchronization with any service platform.
Specifically, after receiving the data to be audited sent by the service platform, the auditing platform needs to determine the associated service platform of the service platform, that is, the service platform in which data synchronization occurs with the service platform, where the associated service platform may be one or more. Based on the distributed architecture capability of the block chain, the auditing platform can support service data auditing among multiple platforms.
After determining the associated service platform, the auditing platform may query whether the service data of the associated service platform stored on the block chain includes data consistent with the data to be audited. If yes, the associated service platform completes data synchronization, and the service data after the data synchronization of the associated service platform and the service platform are consistent, so that the audit result is determined to be normal; if not, the related service platform does not complete data synchronization, and the service data after the data synchronization of the related service platform and the related service platform are different, so that the audit result is determined to be abnormal.
After that, the audit platform may directly notify the relevant personnel of the audit result, or may return the audit result to the corresponding service platform, which is not limited in the embodiment of the present invention.
The method provided by the embodiment of the invention synchronizes the service data of each service platform to the block chain through the application of the audit platform based on the block chain, thereby ensuring the reliability and the robustness of data synchronization between the audit platform and the service platform. Compared with service data of different service platforms in a chain, a trust supplement mechanism is provided between the untrusted platforms, service data audit is completed, meanwhile, the audit method can be expanded and adapted to various service audit scenes, the current service flow is not influenced, the change is small on the basis of the existing platform, and the deployment and implementation are easy.
Based on the above embodiment, step 120 includes:
based on an auditing intelligent contract, continuously inquiring whether service data of a relevant service platform contains data consistent with the data to be audited;
if yes, determining the audit result to be normal, otherwise determining the audit result to be abnormal.
In particular, intelligent contracts are certain code running on a blockchain that, once deployed at a blockchain link point, automatically triggers execution when a contract trigger condition occurs. A virtual machine mechanism is usually adopted in a block chain for realizing an intelligent contract, an intelligent contract code runs in a virtual machine, and the intelligent contract code is stored on the block chain to ensure consistency and be not tampered. External input data and events trigger conditions and rules in the contract, generating new actions. Interaction between the external part and the blockchain can be realized through intelligent contracts, and data can be saved in the blockchain or inquired from the blockchain.
The auditing intelligent contract is realized based on the intelligent contract technology of the block chain, is responsible for auditing and comparing the service data of a plurality of service platforms, and can also be responsible for timely notifying the relevant platforms and systems of the comparison result for processing. The execution of step 120 can be implemented under a predetermined audit intelligence contract.
Based on any of the above embodiments, in step 110, uplink storing the data to be audited to the service data of any service platform includes:
and based on a uplink intelligent contract, uplink storing the data to be audited into the service data of any service platform.
Specifically, the uplink intelligent contract is implemented based on an intelligent contract technology of a block chain, and is responsible for storing service data into the block chain in the service data sent by the service platform. The uplink storage of the data to be audited can be realized based on the uplink intelligent contract.
Based on any of the above embodiments, step 120 further includes:
if the audit result is normal, sending an audit normal notification to any service platform and the associated service platform so that the any service platform and the associated service platform update the data to be audited into normal data;
and if the audit result is abnormal, sending an audit abnormal notification to any service platform so that the service platform can update the data to be audited into abnormal data.
Specifically, after obtaining the audit result, the audit platform may return a notification to a different object according to whether the audit result is normal:
when the audit result is normal, the data synchronization is successful, the audit normal notification is sent to the service platform and the related service platform, and the service platform receiving the audit normal notification can determine the service data indicated by the audit normal notification as normal data;
when the audit result is abnormal, the data synchronization abnormality can be determined, the audit abnormality notification is sent to the service platform, and the service platform receiving the audit abnormality notification can determine the service data indicated by the audit abnormality notification as abnormal data.
Further, considering that the completion time of data synchronization between different service platforms may be different, the service platforms and their associated service platforms may respectively upload data that is completed in data synchronization to the audit platform after completing the data synchronization, and accordingly, the time for the audit platform to update the service data of each service platform may be different, and when the audit platform receives the update data of the service platform, the update data of the associated service platforms may not be completed. At the moment, the result of auditing is abnormal, the service platform determines the service data as abnormal data, and then the service platform triggers service data auditing again after uploading updated data, at the moment, the result of auditing is normal, and the service platform updates the abnormal data as normal data.
Based on any of the above embodiments, fig. 2 is a second schematic flow chart of the business data auditing method provided by the present invention, as shown in fig. 2, an execution subject of the method is a business platform, and the method includes:
and step 210, performing data synchronization with the associated service platform to obtain the data to be audited after the data synchronization is completed.
Specifically, for any one service platform, the service platform may perform data synchronization with the associated service platform, and confirm that the data synchronization is completed. Here, the associated service platform is a service platform with which data synchronization occurs, and the associated service platform may be one or more.
For example, after the service platform synchronizes the service data to another service platform and receives a successful response returned by another service platform, the service platform may confirm that the data synchronization is completed, and for example, after the service platform receives the service data of another service platform and performs service processing, the service platform notifies the other service platform that the processing is successful after the processing is completed, and at this time, the service platform may confirm that the data synchronization is completed.
After the service platform confirms that the data synchronization is completed, the service data after the data synchronization can be used as the data to be audited. The service data may specifically be a user status, a user subscription relationship, and the like.
Step 220, sending the data to be audited to an auditing platform based on a block chain, so as to trigger the auditing platform to uplink store the data to be audited to the service data of the service platform, and to chain query whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine an auditing result of the data to be audited.
Specifically, the auditing platform is a platform independent from each service platform and used for auditing service data. The auditing platform established based on the block chain technology has the characteristic that the block chain is not tampered, and the integrity and the credibility of the data stored on the auditing platform can be ensured through a specific consensus algorithm of the block chain.
Data transmission channels are established between the auditing platform and each service platform, for example, each service platform can perform data interaction with the auditing platform through DAAPP.
After the service platform confirms that the data synchronization is completed, the service data after the data synchronization can be sent to the auditing platform as the data to be audited so as to request the auditing platform to audit the data to be audited.
After receiving the data to be audited, the auditing platform can store the data to be audited in the service data of the service platform in an uplink mode. Here, the service data of each service platform locally stored by the audit platform is stored in a block form. After the auditing platform receives new data sent by any service platform, the newly received data is stored in a block corresponding to the service data of the service platform, so that the service data stored in the auditing platform and the service data of the service platform can be synchronized.
After finishing the uplink storage, the auditing platform can inquire whether the service data of the associated service platform stored on the block chain contains data consistent with the data to be audited. If yes, the associated service platform completes data synchronization, and the service data after the data synchronization of the associated service platform and the service platform are consistent, so that the audit result is determined to be normal; if not, the related service platform does not complete data synchronization, and the service data after the data synchronization of the related service platform and the related service platform are different, so that the audit result is determined to be abnormal.
After that, the audit platform may directly notify the relevant personnel of the audit result, or may return the audit result to the corresponding service platform, which is not limited in the embodiment of the present invention.
The method provided by the embodiment of the invention synchronizes the service data of each service platform to the block chain through the application of the audit platform based on the block chain, thereby ensuring the reliability and the robustness of data synchronization between the audit platform and the service platform. Compared with service data of different service platforms in a chain, a trust supplement mechanism is provided between the untrusted platforms, service data audit is completed, meanwhile, the audit method can be expanded and adapted to various service audit scenes, the current service flow is not influenced, the change is small on the basis of the existing platform, and the deployment and implementation are easy.
Based on any of the above embodiments, step 220 further includes:
if an audit normal notice returned by the audit platform when the audit result is normal is received, updating the data to be audited into normal data;
and if an audit exception notification returned by the audit platform when the audit result is abnormal is received, updating the data to be audited into abnormal data.
Specifically, after obtaining the audit result, the audit platform may return a notification to a different object according to whether the audit result is normal:
when the audit result is normal, the data synchronization is successful, the audit normal notification is sent to the service platform and the related service platform, and the service platform receiving the audit normal notification can determine the service data indicated by the audit normal notification as normal data;
when the audit result is abnormal, the data synchronization abnormality can be determined, the audit abnormality notification is sent to the service platform, and the service platform receiving the audit abnormality notification can determine the service data indicated by the audit abnormality notification as abnormal data.
Further, considering that the completion time of data synchronization between different service platforms may be different, the service platforms and their associated service platforms may respectively upload data that is completed in data synchronization to the audit platform after completing the data synchronization, and accordingly, the time for the audit platform to update the service data of each service platform may be different, and when the audit platform receives the update data of the service platform, the update data of the associated service platforms may not be completed. At the moment, the result of auditing is abnormal, the service platform determines the service data as abnormal data, and then the service platform triggers service data auditing again after uploading updated data, at the moment, the result of auditing is normal, and the service platform updates the abnormal data as normal data.
Based on any of the above embodiments, the method further comprises:
and updating the exception log based on the exception data stored locally at preset time intervals.
The abnormal data is the abnormal data determined after receiving the audit exception notification sent by the audit platform. And aiming at the abnormal data, a timing task can be set, and all abnormal data with abnormal audit results on the platform are recorded at preset time intervals so as to update the abnormal log and inform operation and maintenance personnel to process.
Based on any of the above embodiments, fig. 3 is a third schematic flow chart of the service data auditing method provided by the present invention, and as shown in fig. 3, the service data auditing flow based on the service platform a is as follows:
firstly, after the service platform A generates service data, the service data is synchronized to the service platform B, if the service platform A receives the response message of the service platform B, the service platform A fails, retry is started until success is achieved.
And after receiving the successful response of the service platform B, the service platform A sends the service data synchronously sent to the service platform B to the auditing platform as the data to be audited.
And then, the auditing platform checks whether the service platform B has service data consistent with the received data to be audited through an intelligent contract, and if so, the service platform A and the service platform B are informed that the data auditing result is normal.
If the service platform B does not inquire the service data, the service platform A is informed that the service data auditing result is abnormal.
In addition, the service platform A can set a timing task, regularly process all abnormal data of the service data auditing result in the service platform A, record logs if the abnormal data exceeds the set time state, and inform operation and maintenance personnel to process the logs.
Based on any of the above embodiments, fig. 4 is a fourth schematic flow chart of the business data auditing method provided by the present invention, and as shown in fig. 4, the business data auditing flow based on the business platform B is as follows:
firstly, the service platform B receives the service data of the service platform A, performs service processing, and notifies the processing result to the service platform A.
If the service processing fails, the service platform A is informed of the failure of the service processing, so that the service platform A can retry conveniently;
if the system level fails and the local failure is successful, notifying the service platform A of the system level failure, so that the service platform A can retry conveniently;
if the local processing is successful, the service data is locally stored, the service platform A is informed that the processing is successful, and meanwhile, the service data is sent to the auditing platform as the data to be audited.
After receiving the service data of the service platform B, the auditing platform judges whether the service platform A has the service data, if so, the auditing platform informs the service platform A and the service platform B that the auditing of the service data is normal, and the service platform A and the service platform B update the auditing state of the data;
if the service platform A is not found to have the service data, the auditing platform informs the service platform B that the service data is abnormal in auditing.
And the service platform B processes all abnormal data of the service data audit result in the platform B at regular time by task, records logs if the abnormal data exceeds the set time state, and informs operation and maintenance personnel to process the logs.
Based on any of the above embodiments, fig. 5 is a schematic structural diagram of an audit platform based on a block chain provided in the present invention, as shown in fig. 5, the audit platform includes:
a cochain storage unit 510, configured to receive data to be audited after data synchronization of any service platform is completed, and cochain-store the data to be audited in the service data of any service platform;
and the on-chain query unit 520 is configured to query in a chain whether service data of a related service platform includes data consistent with the data to be audited, and determine an audit result of the data to be audited, where the related service platform is a service platform performing data synchronization with any service platform.
The auditing platform provided by the embodiment of the invention synchronizes the service data of each service platform to the block chain, thereby ensuring the reliability and robustness of data synchronization between the auditing platform and the service platforms. Compared with service data of different service platforms, a trust supplement mechanism is provided among the untrusted platforms, service data auditing is completed, and meanwhile the auditing method can be expanded to adapt to various service auditing scenes without influencing the current service flow, and the method is small in modification on the basis of the existing platform and easy to deploy and implement.
Based on any of the above embodiments, the on-chain querying unit 520 is configured to:
based on an auditing intelligent contract, inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in a chain;
if yes, determining the audit result to be normal, otherwise determining the audit result to be abnormal.
Based on any of the above embodiments, the uplink storage unit 510 is configured to:
and based on a uplink intelligent contract, uplink storing the data to be audited into the service data of any service platform.
Based on any of the above embodiments, the audit platform further includes a result returning unit, configured to:
if the audit result is normal, sending an audit normal notification to any service platform and the associated service platform so that the any service platform and the associated service platform update the data to be audited into normal data;
and if the audit result is abnormal, sending an audit abnormal notification to any service platform so that the service platform can update the data to be audited into abnormal data.
Based on any of the above embodiments, fig. 6 is a schematic structural diagram of a service platform provided by the present invention, and as shown in fig. 6, the service platform includes:
the data synchronization unit 610 is configured to perform data synchronization with the associated service platform to obtain to-be-audited data after the data synchronization is completed;
and the synchronous uploading unit 620 is used for sending the data to be audited to an auditing platform based on a block chain so as to trigger the auditing platform to uplink and store the data to be audited to the service data of the service platform, and to chain inquire whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine an auditing result of the data to be audited.
The service platform provided by the embodiment of the invention ensures the reliability and the robustness of data synchronization between the audit platform and the service platform by synchronizing the service data to the block chain. Compared with service data of different service platforms in a chain, a trust supplement mechanism is provided between the untrusted platforms, service data audit is completed, meanwhile, the audit method can be expanded and adapted to various service audit scenes, the current service flow is not influenced, the change is small on the basis of the existing platform, and the deployment and implementation are easy.
Based on any of the above embodiments, the service platform further includes a data updating unit, configured to:
if an audit normal notification returned by the audit platform when the audit result is normal is received, updating the data to be audited into normal data;
and if an audit exception notification returned by the audit platform when the audit result is abnormal is received, updating the data to be audited into abnormal data.
Based on any of the above embodiments, the service platform further includes a log update unit, configured to:
and updating the exception log based on the exception data stored locally at preset time intervals.
Based on any of the above embodiments, fig. 7 is a schematic structural diagram of a service data auditing system provided by the present invention, and as shown in fig. 7, the system includes an auditing platform 710 based on a block chain, and a plurality of service platforms 720.
The auditing system 710 is constructed based on a block chain, a bottom platform of the block chain is responsible for data packaging and block output, a chaining intelligent contract is responsible for data chaining, and the auditing intelligent contract conforms to auditing on the data chain. And the service platform interacts with the block chain-based auditing system through the DAAPP and the intelligent contract.
Fig. 8 illustrates a physical structure diagram of an electronic device, and as shown in fig. 8, the electronic device may include: a processor (processor)810, a communication Interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication Interface 820 and the memory 830 communicate with each other via the communication bus 840. The processor 810 can call logic instructions in the memory 830 to perform a method of auditing business data, the method comprising: receiving data to be audited after data synchronization of any service platform is completed, and uplink-storing the data to be audited to the service data of any service platform; and inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in the chain, and determining the auditing result of the data to be audited, wherein the associated service platform is a service platform which performs data synchronization with any service platform.
The processor 810 may also call logic instructions in the memory 830 to perform a method of auditing business data, the method comprising: carrying out data synchronization with the associated service platform to obtain data to be audited after the data synchronization is finished; and sending the data to be audited to an auditing platform based on a block chain so as to trigger the auditing platform to uplink store the data to be audited to the service data of the service platform, and to chain inquire whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine the auditing result of the data to be audited.
In addition, the logic instructions in the memory 830 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the business data auditing method provided by the above methods, the method including: receiving data to be audited after data synchronization of any service platform is completed, and uploading the data to be audited to the service data of any service platform; and querying whether service data of a related service platform contains data consistent with the data to be audited or not in a chain, and determining an auditing result of the data to be audited, wherein the related service platform is a service platform for performing data synchronization with any service platform.
The present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method for auditing business data provided by the above methods, the method comprising: carrying out data synchronization with the associated service platform to obtain data to be audited after the data synchronization is finished; and sending the data to be audited to an auditing platform based on a block chain so as to trigger the auditing platform to uplink store the data to be audited to the service data of the service platform, and to chain inquire whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine the auditing result of the data to be audited.
In yet another aspect, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the provided service data auditing methods, the method comprising: receiving data to be audited after data synchronization of any service platform is completed, and uploading the data to be audited to the service data of any service platform; and inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in the chain, and determining the auditing result of the data to be audited, wherein the associated service platform is a service platform which performs data synchronization with any service platform.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the provided service data auditing methods, the method comprising: carrying out data synchronization with the associated service platform to obtain data to be audited after the data synchronization is finished; and sending the data to be audited to an auditing platform based on a block chain so as to trigger the auditing platform to uplink store the data to be audited to the service data of the service platform, and to chain inquire whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine the auditing result of the data to be audited.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A business data auditing method is applied to an auditing platform based on a block chain, and comprises the following steps:
receiving data to be audited after data synchronization of any service platform is completed, and uplink-storing the data to be audited to the service data of any service platform;
and querying whether service data of a related service platform contains data consistent with the data to be audited or not in a chain, and determining an auditing result of the data to be audited, wherein the related service platform is a service platform for performing data synchronization with any service platform.
2. The method for auditing service data according to claim 1, wherein said chain querying whether service data of an associated service platform contains data consistent with the data to be audited to determine an audit result of the data to be audited includes:
based on an auditing intelligent contract, inquiring whether the service data of the associated service platform contains data consistent with the data to be audited or not in a chain;
if yes, determining the audit result to be normal, otherwise determining the audit result to be abnormal.
3. The method for auditing service data according to claim 1, wherein the uplink storing of the data to be audited in the service data of any service platform comprises:
and based on a uplink intelligent contract, uplink storing the data to be audited into the service data of any service platform.
4. The method for auditing service data according to any one of claims 1 to 3, wherein said determining the auditing result of the data to be audited further comprises:
if the audit result is normal, sending an audit normal notification to any service platform and the associated service platform so that the any service platform and the associated service platform update the data to be audited into normal data;
and if the audit result is abnormal, sending an audit abnormal notification to any service platform so that the service platform can update the data to be audited into abnormal data.
5. A business data auditing method is applied to a business platform and comprises the following steps:
carrying out data synchronization with the associated service platform to obtain data to be audited after the data synchronization is finished;
and sending the data to be audited to an auditing platform based on a block chain so as to trigger the auditing platform to uplink store the data to be audited to the service data of the service platform, and to chain inquire whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine the auditing result of the data to be audited.
6. The method for auditing service data according to claim 5, where sending the data to be audited to an auditing platform based on a block chain further comprises:
if an audit normal notification returned by the audit platform when the audit result is normal is received, updating the data to be audited into normal data;
and if an audit exception notification returned by the audit platform when the audit result is abnormal is received, updating the data to be audited into abnormal data.
7. The business data auditing method of claim 6, characterized by further comprising:
and updating the exception log based on the exception data stored locally at preset time intervals.
8. An audit platform based on block chains, comprising:
the system comprises a cochain storage unit, a data synchronization unit and a data synchronization unit, wherein the cochain storage unit is used for receiving data to be audited after data synchronization of any service platform is completed, and cochain storing the data to be audited into the service data of any service platform;
and the on-chain query unit is used for on-chain querying whether the service data of the associated service platform contains data consistent with the data to be audited and determining the auditing result of the data to be audited, wherein the associated service platform is a service platform for performing data synchronization with any service platform.
9. A service platform, comprising:
the data synchronization unit is used for carrying out data synchronization with the associated service platform to obtain data to be audited after the data synchronization is finished;
and the synchronous uploading unit is used for sending the data to be audited to an auditing platform based on a block chain, so as to trigger the auditing platform to uplink store the data to be audited to the service data of the service platform, and to chain inquire whether the service data of the associated service platform contains data consistent with the data to be audited, so as to determine the auditing result of the data to be audited.
10. A service data auditing system comprising a block chaining based auditing platform according to claim 8 and a plurality of service platforms according to claim 9.
CN202110304310.2A 2021-03-22 2021-03-22 Service data auditing method, platform and system Pending CN115114303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110304310.2A CN115114303A (en) 2021-03-22 2021-03-22 Service data auditing method, platform and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110304310.2A CN115114303A (en) 2021-03-22 2021-03-22 Service data auditing method, platform and system

Publications (1)

Publication Number Publication Date
CN115114303A true CN115114303A (en) 2022-09-27

Family

ID=83323088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110304310.2A Pending CN115114303A (en) 2021-03-22 2021-03-22 Service data auditing method, platform and system

Country Status (1)

Country Link
CN (1) CN115114303A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812510B (en) * 2022-10-17 2023-08-11 可立可資安股份有限公司 Blockchain audit system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI812510B (en) * 2022-10-17 2023-08-11 可立可資安股份有限公司 Blockchain audit system

Similar Documents

Publication Publication Date Title
US20100174807A1 (en) System and method for providing configuration synchronicity
CN111314422A (en) Kafka-based message processing method and system, storage medium and computer equipment
CN111475576A (en) Block chain based distributed database storage method and system
CN110611603B (en) Cluster network card monitoring method and device
CN110708196A (en) Data processing method and device
CN116107828A (en) Main node selection method, distributed database and storage medium
CN112650812A (en) Data fragment storage method and device, computer equipment and storage medium
CN111352943A (en) Method and device for realizing data consistency, server and terminal
CN115114303A (en) Service data auditing method, platform and system
CN117130730A (en) Metadata management method for federal Kubernetes cluster
EP2416526B1 (en) Task switching method, server node and cluster system
CN107463390B (en) Software upgrading method and upgrading server
CN113779153A (en) Data synchronization method and device, electronic equipment and storage medium
EP4060514A1 (en) Distributed database system and data disaster backup drilling method
CN114297182A (en) Industrial model data management method, device, equipment and readable storage medium
CN114328033A (en) Method and device for keeping service configuration consistency of high-availability equipment group
CN104158906A (en) Server agent manipulation system and manipulation method
CN110032601B (en) Method, device and storage medium for real-time data synchronization
CN112799879A (en) Node fault processing method, device, equipment and storage medium
CN112711466A (en) Hanging affair inspection method and device, electronic equipment and storage medium
CN112130889A (en) Resource management method and device, storage medium and electronic device
CN112787868A (en) Information synchronization method and device
CN110780903B (en) Software upgrading method, device, equipment and computer storage medium
CN116582618B (en) Method and device for realizing high availability of electric pin, machine room management platform and computer
JP2015057685A (en) Monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination