CN111552989A - Service data processing method, device, equipment and storage medium based on block chain - Google Patents

Service data processing method, device, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN111552989A
CN111552989A CN202010271348.XA CN202010271348A CN111552989A CN 111552989 A CN111552989 A CN 111552989A CN 202010271348 A CN202010271348 A CN 202010271348A CN 111552989 A CN111552989 A CN 111552989A
Authority
CN
China
Prior art keywords
data
service data
newly added
added service
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
CN202010271348.XA
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.)
OneConnect Smart Technology Co Ltd
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202010271348.XA priority Critical patent/CN111552989A/en
Publication of CN111552989A publication Critical patent/CN111552989A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application relates to the field of big data processing, and in particular, to a method, an apparatus, a device, and a storage medium for processing service data based on a block chain. The method comprises the following steps: inquiring whether the block chain node corresponding to each service participant has new service data; when newly added service data exists on a block chain node corresponding to a certain service participant, acquiring an intelligent contract corresponding to the block chain node; acquiring a data identifier of newly added service data, and inquiring the intelligent contract according to the data identifier to obtain a corresponding data rule; auditing the newly added service data through the data rule to obtain an auditing result; and when the newly added service data is judged to be abnormal according to the auditing result, generating early warning information according to the newly added service data, and sending the generated early warning information to an examining terminal. By adopting the method, the data security can be ensured.

Description

Service data processing method, device, equipment and storage medium based on block chain
Technical Field
The present application relates to the field of big data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing service data based on a block chain.
Background
With the rapid development of technology, the blockchain technology is more and more emphasized. The block chain technology (distributed ledger technology) is a decentralized distributed database technology and has the characteristics of openness, transparency, no tampering, trustiness and the like.
When the conventional checking terminal performs data checking, an applicant provides various service data, and then performs data checking, wherein when the applicant provides various service data, only one party, for example, a seller provides all data information, so that when the applicant provides various service data, whether the data are consistent or not can be judged in advance, and the data can be uploaded after the data are consistent, that is, the possibility of modifying the data in advance exists, and the data provided to the checking terminal is inaccurate.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, an apparatus, a device and a storage medium for processing service data based on a block chain, which can ensure data security.
A service data processing method based on a block chain, the method comprises:
inquiring whether the block chain node corresponding to each service participant has new service data;
when newly added service data exists on a block chain node corresponding to a certain service participant, acquiring an intelligent contract corresponding to the block chain node;
acquiring a data identifier of newly added service data, and inquiring the intelligent contract according to the data identifier to obtain a corresponding data rule;
auditing the newly added service data through the data rule to obtain an auditing result;
and when the newly added service data is judged to be abnormal according to the auditing result, generating early warning information according to the newly added service data, and sending the generated early warning information to an examining terminal.
In one embodiment, the auditing the newly added service data according to the data rule to obtain an auditing result includes:
grouping the data rules to obtain unilateral data rules audited by a unilateral and cross audited multi-party data rules;
calling a single-party data rule through a first thread to audit the newly added service data to obtain a first audit result; calling a cross auditing rule through a second thread to audit the newly added service data to obtain a second auditing result;
and when the first audit result or the second audit result is judged to be abnormal, generating an audit result indicating that the newly added service data is abnormal.
In one embodiment, the auditing the newly added service data according to the data rule to obtain an auditing result includes:
acquiring a corresponding data identifier in the data rule, and positioning the position of the data identifier in the data rule;
replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier;
and executing the replaced data rule to obtain an auditing result.
In one embodiment, after the sending the generated warning information to the checking terminal, the method further includes:
receiving a data processing result returned by the checking terminal;
and when the data on the line is judged to be abnormal according to the data processing result, sending auditing information of data abnormality to a participant terminal corresponding to the corresponding block chain link point, wherein the auditing information is used for indicating the participant terminal to inquire the non-uploaded service data associated with the abnormal newly-added service data and uploading the non-uploaded service data to the block chain.
In one embodiment, the method further comprises:
downloading newly added service data from the block link points;
inquiring the associated block link node according to the newly added service data and obtaining corresponding associated service data;
and generating a declaration form according to the newly added service data and the associated service data, and sending the declaration form to an inspection terminal.
A device for processing service data based on block chains, the device comprising:
the query module is used for querying whether newly added service data exists on the block chain node corresponding to each service participant;
the intelligent contract acquisition module is used for acquiring an intelligent contract corresponding to a block link point when newly added service data exists on the block link point corresponding to a certain service participant;
the data rule obtaining module is used for obtaining a data identifier of the newly added service data and inquiring the intelligent contract according to the data identifier to obtain a corresponding data rule;
the auditing module is used for auditing the newly added service data through the data rule to obtain an auditing result;
and the sending module is used for generating early warning information according to the newly added service data and sending the generated early warning information to the checking terminal when the newly added service data is judged to be abnormal according to the auditing result.
In one embodiment, the audit module comprises:
the grouping unit is used for grouping the data rules to obtain unilateral data rules audited by a unilateral and cross audited multiparty data rules;
the first auditing unit is used for invoking a single-party data rule through a first thread to audit the newly added service data to obtain a first auditing result;
the second auditing unit is used for invoking a cross auditing rule through a second thread to audit the newly added service data to obtain a second auditing result;
and the auditing result generating unit is used for generating an auditing result which indicates that the newly added service data is abnormal when the first auditing result or the second auditing result is judged to be abnormal.
In one embodiment, the audit module comprises:
the positioning unit is used for acquiring a corresponding data identifier in the data rule and positioning the position of the data identifier in the data rule;
the replacing unit is used for replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier;
and the execution unit is used for executing the replaced data rule to obtain an audit result.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above.
According to the business data processing method, device, equipment and storage medium based on the block chain, data are uploaded to the block chain by each party, so that when auditing is needed, the data of each party is obtained instead of only one party providing data, the source of the data is improved, the diversity and the safety of the data are ensured, and in addition, the stability of the data can be ensured by auditing through an intelligent contract on the block chain.
Drawings
Fig. 1 is an application scenario diagram of a service data processing method based on a block chain in an embodiment;
fig. 2 is a schematic flow chart of a service data processing method based on a block chain in an embodiment;
FIG. 3 is a flowchart of step S208 in the embodiment shown in FIG. 2;
FIG. 4 is a block diagram of a device for processing service data based on block chains according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The service data processing method based on the block chain can be applied to the application environment shown in fig. 1. Wherein the ping terminal 102 and the blockchain 106 communicate with the server 104 over a network. The server 104 may query whether new service data exists on a block chain node corresponding to each service participant, and if yes, obtain an intelligent contract corresponding to the block chain node, obtain a data identifier of the new service data, query the intelligent contract according to the data identifier to obtain a corresponding data rule, and audit the new service data through the data rule to obtain an audit result; and when judging that the newly added service data is abnormal according to the auditing result, generating early warning information according to the newly added service data, and sending the generated early warning information to the checking terminal. Therefore, when the customs needs to be audited, the data of each party is obtained instead of only one participant providing the data, the source of the data is improved, the diversity and the safety of the data are guaranteed, and in addition, the auditing is carried out through the intelligent contract on the block chain, so that the stability of the data can be guaranteed. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a method for processing service data based on a block chain is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
s202: and inquiring whether the block chain node corresponding to each service participant has new service data.
Specifically, each participant (including roles of warehousing enterprises, processing enterprises, logistics companies and the like) of the business in the special supervision area is added into the supply chain financing system based on the block chain, the system construction party deploys block chain nodes for each participant, and each participant completes the real-name authentication of the enterprise and acquires the electronic signature.
The service participants upload the service data generated in the special supervision area to the bonded area management system based on the block chain, including various static service data and dynamic service data, such as: static data: BOM, bin location information, etc.; dynamic data: warehousing bills, work orders, material picking orders, ex-warehouse bills, shipping orders and the like. And the information is uploaded in a mode of supporting manual input and system docking. And all the uploaded service data are provided with the electronic signatures of the respective uploaders.
Optionally, if the enterprise does not want to disclose its own business data, each participant can encrypt the data, link the ciphertext data to other nodes and synchronize the ciphertext data to other nodes, and directionally grant the decryption key to the customs in the supervision position. And after the customs obtains the data of the node, the customs can decrypt the data according to the directional authorization key to obtain the original service data, and the original service data is compared with the data on the declaration form to complete the verification of the declaration form.
Specifically, the block link node may store newly added service data uploaded by each participant, and add a newly added identifier during storage, so that when the server queries the newly added identifier, it may be determined that newly added data exists on the block link node.
S204: and when newly added service data exists on the block chain node corresponding to a certain service participant, acquiring an intelligent contract corresponding to the block chain node.
Specifically, the inspection terminal, for example, the customs terminal may compile rules into an intelligent contract based on the supervised rules and issue the intelligent contract onto the block chain, and the customs terminal first compiles codes of the intelligent contract, including dividing the intelligent contract into a single-party data rule and a cross data rule according to types, and setting a data identifier for data to be filled in each data rule to determine the type of corresponding data, and finally stores the compiled data.
When new service data exists on the server, the server can read the data with the new identifier from the block chain. After reading the corresponding new data, the server may further determine a block link point corresponding to the new data, and then acquire an intelligent contract corresponding to the block link point, for example, if the block link point corresponds to a logistics party, the intelligent contract corresponding to the logistics party needs to be acquired. And if the payment party is the payer, acquiring an intelligent contract corresponding to the payment and the like.
S206: and acquiring a data identifier of the newly added service data, and inquiring the intelligent contract according to the data identifier to obtain a corresponding data rule.
In particular, the data identification refers to identification of a data type, such as time, BOM, and the like. After the server obtains the intelligent contract, it needs to determine which data rules in the intelligent contract to audit the newly added service data. Specifically, the server may obtain a data identifier of newly added service data, and then match the data identifier with a data rule in the intelligent contract, so as to obtain a data rule meeting requirements.
S208: and auditing the newly added service data through the data rule to obtain an auditing result.
Specifically, after the server obtains the data rule, whether the newly added service data meets the data rule is judged, if yes, it is indicated that the newly added service data has no problem, otherwise, the newly added service data has a problem. Optionally, there may be multiple data rules acquired by the server, so that it is necessary to determine whether the newly added service data satisfies all the data rules, and if there is an unsatisfied data rule, directly outputting an audit result of the newly added service data that has a problem, and recording the unsatisfied data rule.
S210: and when judging that the newly added service data is abnormal according to the auditing result, generating early warning information according to the newly added service data, and sending the generated early warning information to the checking terminal.
Specifically, when determining that the newly added service data has a problem, the server generates early warning information according to the newly added service data, for example, associates the newly added service data with an unsatisfied data rule to obtain early warning information, and sends the early warning information to the inspection terminal.
According to the block chain-based business data processing method, data are uploaded to the block chain by each party, so that when customs needs to be audited, the data of each party is obtained instead of only one participant providing data, the source of the data is improved, the diversity and the safety of the data are guaranteed, and in addition, the auditing is carried out through an intelligent contract on the block chain, so that the stability of the data can be guaranteed.
In one embodiment, please refer to fig. 3, fig. 3 is a flowchart of step S208 in the embodiment shown in fig. 2, in this embodiment, the step S208, that is, auditing the newly added service data through the data rule to obtain an audit result, includes:
s302: and grouping the data rules to obtain unilateral data rules audited by a unilateral and cross audited multiparty data rules.
Specifically, when the data rule in each intelligent contract is written, an identifier, that is, a single-party data rule or a cross data rule, can be determined, and after the server acquires the data rule for auditing the newly added service data, the server performs grouping processing on the data rule according to the identifier.
S304: the new business data is audited by calling a single-party data rule through the first thread to obtain a first audit result; and calling a cross auditing rule through the second thread to audit the newly added service data to obtain a second auditing result.
S306: and when the first audit result or the second audit result is judged to be abnormal, generating an audit result representing that the newly added service data is abnormal.
Specifically, after grouping is completed, the server sets two threads to process the newly added service data respectively so as to improve the processing efficiency, that is, the first thread calls a single-party data rule to audit the newly added service data to obtain a first audit result, and the second thread calls a cross audit rule to audit the newly added service data to obtain a second audit result, so that the first audit result and the second audit result are combined to obtain a final audit result.
For example, a single data rule may include: and the goods are not reported 14 days after entering the district: which batch of goods of which enterprise has not been reported after entering the district on which day. For example, after the enterprise operates the ex-warehouse service, the inventory quantity is smaller than 0. The cross-data rules may include: whether the transportation quantity of the transportation company is equal to the ex-warehouse quantity of the warehousing enterprise. The server may execute the unilateral data rule by one thread and the cross data rule by another thread.
In the embodiment, the data rules are distinguished according to the unilateral audit rule and the cross audit rule, and the audit rules are executed simultaneously, so that the efficiency can be improved.
In one embodiment, the auditing the newly added service data through the data rule to obtain the auditing result includes: acquiring a corresponding data identifier in the data rule, and locating the position of the data identifier in the data rule; replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier; and executing the replaced data rule to obtain an auditing result.
Specifically, the server first obtains the data identifier at the position to be filled in the data rule, so as to extract corresponding data from the newly added service data according to the data identifier, and then fills the extracted corresponding data into the corresponding position to be filled in, so that after the data replacement is completed, the data rule has individuality, and the server can obtain the code of the corresponding data rule and then execute the code, that is, the server directly executes the data rule after the replacement is completed, so as to obtain the auditing result.
In the above embodiment, the data identifier refers to an identifier of each data in the newly added service data, such as a type of the data and a name of the data, and the server determines, according to the data identifier, a position of each data in the newly added service data corresponding to the data rule, and fills the newly added service data in the corresponding position, so that the server directly executes the data rule after the replacement is completed, and an audit result can be obtained, thereby improving the audit efficiency.
In one embodiment, after the sending the generated warning information to the checking terminal, the method further includes: receiving a data processing result returned by the checking terminal, wherein the data processing result is obtained by checking the goods of the corresponding service under the customs line; and when the data on the line is judged to be abnormal according to the data processing result, sending auditing information of the data abnormality to the participant terminal corresponding to the corresponding block chain link point, wherein the auditing information is used for indicating the participant terminal to inquire the non-uploaded service data associated with the abnormal newly-added service data and uploading the non-uploaded service data to the block chain.
Specifically, the embodiment mainly aims at the processing step of the newly added service data with problems, that is, when the newly added service data has problems, the newly added service data is sent to the inspection terminal, so that corresponding customs processing personnel can inspect the goods of the corresponding service offline to obtain a corresponding data processing result, when the data processing result is inconsistent with the online data, that is, when the online data has problems, the inspection terminal sends the data processing result to the server, the server can send abnormal data auditing information to the participant terminal corresponding to the corresponding block link point, so that the participant terminal inquires the non-uploaded service data associated with the newly added service data with problems, and uploads the non-uploaded service data to the block link, thereby ensuring the integrity of the data of each participant to prevent the problem that the participant fails to upload the complete data, and because the operations of uploading and modifying data of each participant are recorded on the block chain, the data counterfeiting of each participant is prevented.
In the above embodiment, when the newly added service data has a problem, whether the newly added service data really has a problem can be judged according to offline inspection of customs personnel, and if yes, the corresponding participant can upload the service data which is not uploaded, so that the integrity of the data is ensured.
In one embodiment, the method for processing service data based on a block chain may further include: downloading newly added service data from the block link points; inquiring the associated block link node according to the newly added service data and obtaining corresponding associated service data; and generating a declaration form according to the newly added service data and the associated service data, and sending the declaration form to the checking terminal.
Specifically, the automatic making process of the declaration form is related to, namely, the server can download the newly added service data from the block chain, and then inquire the associated block chain node according to the newly added service data and obtain the corresponding associated service data; generating a declaration form according to the newly added service data and the associated service data, and sending the declaration form to the checking terminal, so that the subsequent verification process of the declaration form can include: and acquiring corresponding data on the block chain nodes according to the declaration form, comparing the acquired data with the data on the declaration form, if the comparison is successful, the declaration form is approved, and otherwise, the declaration form is not approved.
In the embodiment, after the integrity of the data on the block chain is ensured, the declaration form is made, so that the accuracy of the declaration form is improved.
The technical solutions of the embodiments related to the block chain-based service data processing method are not limited to customs application scenarios, and can also be applied to other scenarios where inspection can be performed according to multi-party data to improve inspection accuracy.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a service data processing apparatus based on a block chain, including: the system comprises a query module 100, an intelligent contract acquisition module 200, a data rule acquisition module 300, an auditing module 400 and a sending module 500, wherein:
the query module 100 is configured to query whether new service data exists on the block link node corresponding to each service participant.
The intelligent contract obtaining module 200 is configured to obtain an intelligent contract corresponding to a block link node when new service data exists on the block link node corresponding to a certain service participant.
And the data rule obtaining module 300 is configured to obtain a data identifier of the newly added service data, and query the intelligent contract according to the data identifier to obtain a corresponding data rule.
And the auditing module 400 is configured to audit the newly added service data according to the data rule to obtain an auditing result.
And a sending module 500, configured to generate, when it is determined that the newly added service data is abnormal according to the audit result, early warning information according to the newly added service data, and send the generated early warning information to the inspection terminal.
In one embodiment, the audit module 400 includes:
and the grouping unit is used for grouping the data rules to obtain unilateral data rules audited by a unilateral and cross-audited multiparty data rules.
And the first auditing unit is used for invoking the unilateral data rule through the first thread to audit the newly-added service data to obtain a first auditing result.
And the second auditing unit is used for invoking the cross auditing rule through the second thread to audit the newly-added service data to obtain a second auditing result.
And the auditing result generating unit is used for generating an auditing result which indicates that the newly added service data is abnormal when the first auditing result or the second auditing result is judged to be abnormal.
In one embodiment, the audit module 400 includes:
and the positioning unit is used for acquiring the corresponding data identifier in the data rule and positioning the position of the data identifier in the data rule.
And the replacing unit is used for replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier.
And the execution unit is used for executing the replaced data rule to obtain an audit result.
In one embodiment, the device for processing service data based on a block chain may further include:
and the receiving module is used for receiving a data processing result returned by the checking terminal, wherein the data processing result is obtained by checking the corresponding goods of the service under the customs line.
The sending module 500 is configured to send audit information of data abnormality to the participant terminal corresponding to the corresponding block link point when the data on the line is judged to be abnormal according to the data processing result, where the audit information is used to instruct the participant terminal to query the non-uploaded service data associated with the abnormal newly-added service data, and upload the non-uploaded service data to the block chain.
In one embodiment, the device for processing service data based on a block chain may further include:
and the downloading module is used for downloading the newly added service data from the block link points.
And the association query module is used for querying the association block link node according to the newly added service data and obtaining corresponding association service data.
And the declaration form generation module is used for generating a declaration form according to the newly added service data and the associated service data and sending the declaration form to the inspection terminal.
For specific limitations of the device for processing service data based on a block chain, reference may be made to the above limitations of the method for processing service data based on a block chain, and details are not described herein again. The modules in the device for processing service data based on block chains may be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing business data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a block chain based traffic data processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program: inquiring whether the block chain node corresponding to each service participant has new service data; when newly added service data exists on a block chain node corresponding to a certain service participant, acquiring an intelligent contract corresponding to the block chain node; acquiring a data identifier of newly added service data, and inquiring an intelligent contract according to the data identifier to obtain a corresponding data rule; auditing the newly added service data through the data rule to obtain an auditing result; and when judging that the newly added service data is abnormal according to the auditing result, generating early warning information according to the newly added service data, and sending the generated early warning information to the checking terminal.
In one embodiment, the auditing the newly added service data according to the data rule to obtain the auditing result when the processor executes the computer program includes: grouping the data rules to obtain unilateral data rules audited by a unilateral and cross audited multiparty data rules; the new business data is audited by calling a single-party data rule through the first thread to obtain a first audit result; calling a cross auditing rule through a second thread to audit the newly added service data to obtain a second auditing result; and when the first audit result or the second audit result is judged to be abnormal, generating an audit result representing that the newly added service data is abnormal.
In one embodiment, the auditing the newly added service data according to the data rule to obtain the auditing result when the processor executes the computer program includes: acquiring a corresponding data identifier in the data rule, and locating the position of the data identifier in the data rule; replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier; and executing the replaced data rule to obtain an auditing result.
In one embodiment, the processor, when executing the computer program, further comprises, after sending the generated warning information to the pinging terminal: receiving a data processing result returned by the checking terminal, wherein the data processing result is obtained by checking the goods of the corresponding service under the customs line; and when the data on the line is judged to be abnormal according to the data processing result, sending auditing information of the data abnormality to the participant terminal corresponding to the corresponding block chain link point, wherein the auditing information is used for indicating the participant terminal to inquire the non-uploaded service data associated with the abnormal newly-added service data and uploading the non-uploaded service data to the block chain.
In one embodiment, the processor, when executing the computer program, further performs the steps of: downloading newly added service data from the block link points; inquiring the associated block link node according to the newly added service data and obtaining corresponding associated service data; and generating a declaration form according to the newly added service data and the associated service data, and sending the declaration form to the checking terminal.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: inquiring whether the block chain node corresponding to each service participant has new service data; when newly added service data exists on a block chain node corresponding to a certain service participant, acquiring an intelligent contract corresponding to the block chain node; acquiring a data identifier of newly added service data, and inquiring an intelligent contract according to the data identifier to obtain a corresponding data rule; auditing the newly added service data through the data rule to obtain an auditing result; and when judging that the newly added service data is abnormal according to the auditing result, generating early warning information according to the newly added service data, and sending the generated early warning information to the checking terminal.
In one embodiment, the auditing the newly added service data by the data rule to obtain the auditing result when the computer program is executed by the processor includes: grouping the data rules to obtain unilateral data rules audited by a unilateral and cross audited multiparty data rules; the new business data is audited by calling a single-party data rule through the first thread to obtain a first audit result; calling a cross auditing rule through a second thread to audit the newly added service data to obtain a second auditing result; and when the first audit result or the second audit result is judged to be abnormal, generating an audit result representing that the newly added service data is abnormal.
In one embodiment, the auditing the newly added service data by the data rule to obtain the auditing result when the computer program is executed by the processor includes: acquiring a corresponding data identifier in the data rule, and locating the position of the data identifier in the data rule; replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier; and executing the replaced data rule to obtain an auditing result.
In one embodiment, the computer program when executed by the processor, after sending the generated early warning information to the pinging terminal, further comprises: receiving a data processing result returned by the checking terminal, wherein the data processing result is obtained by checking the goods of the corresponding service under the customs line; and when the data on the line is judged to be abnormal according to the data processing result, sending auditing information of the data abnormality to the participant terminal corresponding to the corresponding block chain link point, wherein the auditing information is used for indicating the participant terminal to inquire the non-uploaded service data associated with the abnormal newly-added service data and uploading the non-uploaded service data to the block chain.
In one embodiment, the computer program when executed by the processor further performs the steps of: downloading newly added service data from the block link points; inquiring the associated block link node according to the newly added service data and obtaining corresponding associated service data; and generating a declaration form according to the newly added service data and the associated service data, and sending the declaration form to the checking terminal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A service data processing method based on a block chain, the method comprises:
inquiring whether the block chain node corresponding to each service participant has new service data;
when newly added service data exists on a block chain node corresponding to a certain service participant, acquiring an intelligent contract corresponding to the block chain node;
acquiring a data identifier of newly added service data, and inquiring the intelligent contract according to the data identifier to obtain a corresponding data rule;
auditing the newly added service data through the data rule to obtain an auditing result;
and when the newly added service data is judged to be abnormal according to the auditing result, generating early warning information according to the newly added service data, and sending the generated early warning information to an examining terminal.
2. The method according to claim 1, wherein the auditing the newly added service data by the data rule to obtain an audit result includes:
grouping the data rules to obtain unilateral data rules audited by a unilateral and cross audited multi-party data rules;
calling a single-party data rule through a first thread to audit the newly added service data to obtain a first audit result; calling a cross auditing rule through a second thread to audit the newly added service data to obtain a second auditing result;
and when the first audit result or the second audit result is judged to be abnormal, generating an audit result indicating that the newly added service data is abnormal.
3. The method according to claim 2, wherein the auditing the newly added service data by the data rule to obtain an audit result includes:
acquiring a corresponding data identifier in the data rule, and positioning the position of the data identifier in the data rule;
replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier;
and executing the replaced data rule to obtain an auditing result.
4. The method according to any one of claims 1 to 3, wherein after sending the generated warning message to the verification terminal, the method further comprises:
receiving a data processing result returned by the checking terminal;
and when the data on the line is judged to be abnormal according to the data processing result, sending auditing information of data abnormality to a participant terminal corresponding to the corresponding block chain link point, wherein the auditing information is used for indicating the participant terminal to inquire the non-uploaded service data associated with the abnormal newly-added service data and uploading the non-uploaded service data to the block chain.
5. A method according to any one of claims 1 to 3, characterized in that the method further comprises:
downloading newly added service data from the block link points;
inquiring the associated block link node according to the newly added service data and obtaining corresponding associated service data;
and generating a declaration form according to the newly added service data and the associated service data, and sending the declaration form to an inspection terminal.
6. An apparatus for processing service data based on block chains, the apparatus comprising:
the query module is used for querying whether newly added service data exists on the block chain node corresponding to each service participant;
the intelligent contract acquisition module is used for acquiring an intelligent contract corresponding to a block link point when newly added service data exists on the block link point corresponding to a certain service participant;
the data rule obtaining module is used for obtaining a data identifier of the newly added service data and inquiring the intelligent contract according to the data identifier to obtain a corresponding data rule;
the auditing module is used for auditing the newly added service data through the data rule to obtain an auditing result;
and the sending module is used for generating early warning information according to the newly added service data and sending the generated early warning information to the checking terminal when the newly added service data is judged to be abnormal according to the auditing result.
7. The apparatus of claim 6, wherein the audit module comprises:
the grouping unit is used for grouping the data rules to obtain unilateral data rules audited by a unilateral and cross audited multiparty data rules;
the first auditing unit is used for invoking a single-party data rule through a first thread to audit the newly added service data to obtain a first auditing result;
the second auditing unit is used for invoking a cross auditing rule through a second thread to audit the newly added service data to obtain a second auditing result;
and the auditing result generating unit is used for generating an auditing result which indicates that the newly added service data is abnormal when the first auditing result or the second auditing result is judged to be abnormal.
8. The apparatus of claim 6, wherein the audit module comprises:
the positioning unit is used for acquiring a corresponding data identifier in the data rule and positioning the position of the data identifier in the data rule;
the replacing unit is used for replacing the data identifier at the corresponding position in the data rule by the newly added service data corresponding to the data identifier;
and the execution unit is used for executing the replaced data rule to obtain an audit result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN202010271348.XA 2020-04-08 2020-04-08 Service data processing method, device, equipment and storage medium based on block chain Pending CN111552989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010271348.XA CN111552989A (en) 2020-04-08 2020-04-08 Service data processing method, device, equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010271348.XA CN111552989A (en) 2020-04-08 2020-04-08 Service data processing method, device, equipment and storage medium based on block chain

Publications (1)

Publication Number Publication Date
CN111552989A true CN111552989A (en) 2020-08-18

Family

ID=72002934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010271348.XA Pending CN111552989A (en) 2020-04-08 2020-04-08 Service data processing method, device, equipment and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN111552989A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
CN115774760A (en) * 2022-12-12 2023-03-10 益智(广州)信息技术有限公司 Data processing and data analysis system based on artificial intelligence and block chain

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778329A (en) * 2016-11-28 2017-05-31 中国银行股份有限公司 A kind of block chain intelligence contract template dynamic updating method, apparatus and system
CN109003192A (en) * 2018-07-27 2018-12-14 深圳市元征科技股份有限公司 A kind of insurance underwriting method and relevant device based on block chain
CN109993628A (en) * 2019-03-05 2019-07-09 浙江牧猪人智慧农业科技有限公司 A kind of plantation product, cultivation product supply and demand management system and the method for the multiterminal interconnection based on block chain
CN110246044A (en) * 2019-04-16 2019-09-17 阿里巴巴集团控股有限公司 Project auditing system, method, calculating equipment and storage medium based on block chain
CN110389985A (en) * 2019-06-18 2019-10-29 深圳壹账通智能科技有限公司 Verification of data method, apparatus, computer equipment and storage medium
CN110597837A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Service data processing method, device, storage medium and computer equipment
CN110610094A (en) * 2019-07-25 2019-12-24 温州医科大学 College data increment treatment system based on block chain
US20200007311A1 (en) * 2018-06-28 2020-01-02 International Business Machines Corporation Audit trail configuration in a blockchain
CN110751351A (en) * 2018-07-24 2020-02-04 国网辽宁招标有限公司 Signing method of electric power material supply electronic document based on block chain deposit certificate
CN110941674A (en) * 2019-11-26 2020-03-31 北京海益同展信息科技有限公司 Block chain-based compliance audit method, device, system and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778329A (en) * 2016-11-28 2017-05-31 中国银行股份有限公司 A kind of block chain intelligence contract template dynamic updating method, apparatus and system
US20200007311A1 (en) * 2018-06-28 2020-01-02 International Business Machines Corporation Audit trail configuration in a blockchain
CN110751351A (en) * 2018-07-24 2020-02-04 国网辽宁招标有限公司 Signing method of electric power material supply electronic document based on block chain deposit certificate
CN109003192A (en) * 2018-07-27 2018-12-14 深圳市元征科技股份有限公司 A kind of insurance underwriting method and relevant device based on block chain
CN109993628A (en) * 2019-03-05 2019-07-09 浙江牧猪人智慧农业科技有限公司 A kind of plantation product, cultivation product supply and demand management system and the method for the multiterminal interconnection based on block chain
CN110246044A (en) * 2019-04-16 2019-09-17 阿里巴巴集团控股有限公司 Project auditing system, method, calculating equipment and storage medium based on block chain
CN110389985A (en) * 2019-06-18 2019-10-29 深圳壹账通智能科技有限公司 Verification of data method, apparatus, computer equipment and storage medium
CN110610094A (en) * 2019-07-25 2019-12-24 温州医科大学 College data increment treatment system based on block chain
CN110597837A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Service data processing method, device, storage medium and computer equipment
CN110941674A (en) * 2019-11-26 2020-03-31 北京海益同展信息科技有限公司 Block chain-based compliance audit method, device, system and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907243A (en) * 2021-02-09 2021-06-04 工银科技有限公司 Block chain transaction auditing method and device
CN115774760A (en) * 2022-12-12 2023-03-10 益智(广州)信息技术有限公司 Data processing and data analysis system based on artificial intelligence and block chain
CN115774760B (en) * 2022-12-12 2023-08-22 北京辰极智程信息技术股份有限公司 Data processing and data analysis system based on artificial intelligence and blockchain

Similar Documents

Publication Publication Date Title
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN110602239B (en) Block chain information storage method and related equipment
CN109656778B (en) Data acquisition method and device, computer equipment and storage medium
US11196564B2 (en) Hierarchical distributed ledger
CN111090581B (en) Intelligent contract testing method, intelligent contract testing device, computer equipment and storage medium
WO2020233092A1 (en) Smart contract calling method and apparatus, device, and storage medium
CN110599267B (en) Electronic invoice issuing method and device, computer readable storage medium and computer equipment
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
CN111010282B (en) Block chain-based information processing method, related device and storage medium
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
CN111488372A (en) Data processing method, device and storage medium
CN111552989A (en) Service data processing method, device, equipment and storage medium based on block chain
CN112099972A (en) Office file processing method, device, equipment and storage medium based on RPA robot
CN111340483A (en) Data management method based on block chain and related equipment
CN112527357A (en) Service hot loading updating method and device, computer equipment and storage medium
CN108366132B (en) Method and device for managing service between servers, computer equipment and storage medium
CN112508534A (en) Personnel information management method and device based on block chain and related equipment
CN113515322B (en) Application program loading method and device, computer equipment and readable storage medium
CN114115967A (en) Service data processing method and device, computer equipment and storage medium
WO2021012903A1 (en) Data storage method and apparatus, computer device, and storage medium
CN110908801B (en) Data processing method and device based on block chain, computer equipment and storage medium
CN111524009A (en) Transaction verification method and device for blockchain system and hardware equipment
CN111131329A (en) Data consensus method and device for block chain system and hardware equipment

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