CN112669002A - Timing function-based data examination method, device and storage medium - Google Patents

Timing function-based data examination method, device and storage medium Download PDF

Info

Publication number
CN112669002A
CN112669002A CN202011561463.7A CN202011561463A CN112669002A CN 112669002 A CN112669002 A CN 112669002A CN 202011561463 A CN202011561463 A CN 202011561463A CN 112669002 A CN112669002 A CN 112669002A
Authority
CN
China
Prior art keywords
block
order
accounting
data
node
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
CN202011561463.7A
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.)
Guangzhou Chenchuang Technology Development Co ltd
Original Assignee
Guangzhou Chenchuang Technology Development 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 Guangzhou Chenchuang Technology Development Co ltd filed Critical Guangzhou Chenchuang Technology Development Co ltd
Priority to CN202011561463.7A priority Critical patent/CN112669002A/en
Publication of CN112669002A publication Critical patent/CN112669002A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a data examination method, a device and a storage medium based on a timing function, comprising the following steps: step S1, receiving the order number submitted by the user in the service system, and returning the order number application certificate to the service system; step S2, regularly inquiring the order processing log of the order number of the service system, and generating the order processing log corresponding to the order number; and step S3, storing and updating the order processing condition of the order number, respectively processing the order processing log and the historical track, generating a block and storing the block in the database. The invention generates the order processing log corresponding to the order number to the block at regular time and stores the order processing log in the database, thereby solving the problem that the order data is not updated timely, and the service privacy of the original service system can be stored without acquiring all the data of the order corresponding to the order number. Only the order processing log and the historical track of the original service system need to be obtained, and the order processing log and the historical track are regularly and uniformly recorded and operated, so that the user can conveniently inquire and manage.

Description

Timing function-based data examination method, device and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a data examination method, data examination equipment and a storage medium based on a timing function.
Background
With the development of e-commerce, e-commerce realizes consumer online shopping, online transaction between merchants, online payment and other business transaction activities, and online transaction has become a very popular transaction method. And with the great increase of purchasing power of people, the online transaction amount is increased sharply. The original business system is provided with a plurality of participating channels and processing links, and the participating channels and the processing links are finally gathered into a centralized database.
Because the data of the order state may have different channel sources, are processed differently and may need to be manually entered or confirmed, delay occurs in summary due to delay in a certain link, but the data of the order is not updated. This problem cannot be circumvented by itself, and maintenance personnel can only start maintenance work after user feedback. When the problem data occurs, the tracing work needs to be carried out one by one from the bottommost end to the upstream channel, so that the efficiency is low, and excessive time, labor and material resources are consumed.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to provide a data examination method based on a timing function, which updates the data of a service system at regular time, integrates an order processing log into a database, and is convenient for a user to operate and check the state of an order.
Another object of the present invention is to provide an electronic device, which executes the above-mentioned data auditing method based on timing function, and updates the data of the service system at regular time, integrates the order processing log into the database, and is convenient for the user to operate and check the status of the order.
The present invention also provides a storage medium for executing the above data auditing method based on timing function, which updates the data of the service system at regular time, integrates the order processing log into the database, and facilitates the user to operate and check the order status.
One of the purposes of the invention is realized by adopting the following technical scheme:
a data examination method based on timing function is applied to a data examination system and comprises the following steps:
step S1, receiving the order number submitted by the user in the service system, and returning the order number application certificate to the service system;
step S2, regularly inquiring the order processing log of the order number of the service system, and generating the order processing log corresponding to the order number;
and step S3, storing and updating the order processing condition of the order number, respectively processing the order processing log and the historical track, generating a block and storing the block in the database.
Further, the step of generating a block after processing the order processing log in step S3 includes the following steps:
step S31, obtaining order numbers sent by the service system, after the number of the order numbers reaches a threshold value, classifying and packaging the order numbers according to the classification of the data examination system, and sending a request for entering into an accounting queue to a queuing node;
step S32, after receiving the request of the accounting queue, the queuing node distributes accounting right in sequence according to the queue and sends an accounting start notice; the accounting start notification comprises an available block number and corresponding order processing log data, wherein the available block number is used for generating a block head of a block to be written, and the order processing log data is used for writing a load of the block into a block body;
and step S33, after receiving the accounting start notification, the accounting node constructs a block to be written according to the available block number and the opposite order processing log data and starts the accounting process.
Further, still include: step S34, the accounting node sends the block to be written to the source node request endorsement according to the source node contained in the order processing log; and after the endorsement is finished, the accounting node counts and continues the accounting process.
Further, in step S34, the endorsement generates an endorsement signature credential by using a block hash private key signature, and sends the endorsement signature credential to a billing node.
Further, the step S32 further includes the following steps: after receiving the accounting start notification, the queuing node regularly checks whether accounting queue is queued in the queuing node, and if no accounting queue is queued, the queuing node waits for the next accounting completion notification; and if the queuing of the accounting queue exists, starting an accounting process, and setting the state of the queuing node to be in the process.
Further, in step S35, after the endorsement signature is obtained, the bookkeeping node broadcasts the block chain to be written with the self application certificate and the endorsement signature certificate to other nodes in the data review system, the other nodes verify the signature of the endorsement through the bookkeeping node and the public key respectively, after the verification is passed, the block hash is signed by using the private key, and the signature certificate is returned to the bookkeeping node.
Further, step S4, receiving an inquiry order number input by the user, and inquiring a block stored in the database and containing the order number;
step S5, sending an order processing history query request to the block, wherein the block returns the order processing log and the history track of the order number, integrates the order processing log and the history track and returns a result list to the user.
Further, the step S35 further includes the following steps:
after the accounting node receives the signature voucher, a database of the data examination system verifies the application voucher and the signature voucher of the endorsement in preset time, and submits block header information after passing the verification, if the verification fails, the block header information is lost, and the accounting process is restarted by multiplexing block numbers.
The second purpose of the invention is realized by adopting the following technical scheme:
an apparatus comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing a timing function based data review method as any one of above when executing the computer program.
The third purpose of the invention is realized by adopting the following technical scheme:
a storage medium having a computer program stored thereon, wherein the computer program when executed implements a timing function based data review method as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a data examination method based on a timing function, which solves the problem that order data is not updated timely by generating order processing logs corresponding to order numbers to blocks at regular time and storing the order processing logs in a database, does not need to acquire all data of orders corresponding to the order numbers, and can store the service privacy of an original service system. Only the order processing log and the historical track of the original service system need to be obtained, and the order processing log and the historical track are regularly and uniformly recorded and operated, so that the user can conveniently inquire and manage.
Drawings
Fig. 1 is a schematic flow chart of a data review method based on a timing function according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating step S3 of a timing function-based data review method according to an embodiment of the present invention.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
As shown in fig. 1, the present application provides a data review method based on a timing function, which can be applied to a data review system of a block chain to update data of an order within a preset time. When problem data appears, a worker can quickly acquire information such as a project list participating in order processing, quickly locate the source and the reason of the problem and improve the timeliness of solving the problem.
Specifically, the data review method based on the timing function includes the following steps:
step S1, receiving the order number submitted by the user in the service system, and returning the order number application certificate to the service system; the data review system is independent of the business system. When the data review system needs to be used, the order number submitted by the user in the service system needs to be submitted to the service system first, and the application certificate of the order number is returned to the service system or the user by the service system. The data auditing system obtains the order processing log following the order number by means of the application certificate.
Step S2, periodically inquiring the order processing condition of the order number of the service system, and generating an order processing log corresponding to the order number. Because the order in the business system has a plurality of channels for operation, if the data examination system updates each operation, excessive resources are occupied. Therefore, only the order numbers which exist in the data examination system and are not finished are required to be inquired at regular time, the order processing condition of the order numbers in the preset period is obtained, and the corresponding order processing log is generated according to the order processing condition.
And step S3, storing and updating the order processing log of the order number, respectively processing the order processing log and the historical track, generating a block, and storing the block in the database.
Specifically, as shown in fig. 2, the step of generating a block after processing the order processing log in step S3 includes the following steps:
and step S31, receiving order numbers sent by the service system, after the number of the received order numbers reaches a threshold value, classifying and packaging the order numbers according to the classification of the data examination system, and sending a request for entering into an accounting queue to a queuing node. The queuing node is responsible for maintaining the accounting queue, so that the accounting process is started in a transaction rate queuing mode.
Step S32, after receiving the request of the accounting queue, the queuing node distributes accounting right in sequence according to the queue and sends an accounting start notice; the accounting start notification comprises an available block number and a corresponding order processing log data view number, wherein the available block number is used for generating a block head of a block to be written, and the order processing log data is used for writing a load of the block into the block;
after receiving the accounting start notification, the queuing node regularly checks whether accounting queue is queued in the queuing node, and if no accounting queue is queued, the queuing node waits for the next accounting completion notification; and if the queuing of the accounting queue exists, starting an accounting process, and setting the state of the queuing node to be in the process.
Step S33, after receiving the accounting start notice, the accounting node constructs a block to be written according to the available block number and the corresponding order processing log, and starts the accounting process.
Step S34, the accounting node sends the block to be written to the source node request endorsement according to the source node contained in the order processing log; and after the endorsement is finished, the accounting node counts and continues the accounting process. If the endorsement has errors, discarding the block and queuing again. The endorsement is an endorsement signature certificate generated through block hash private key signature, and the endorsement signature certificate is sent to the accounting node.
Step S35, after obtaining the endorsement signature, the bookkeeping node broadcasts the block chain to be written with the self application certificate and the endorsement signature certificate to other nodes in the data examination system, the other nodes verify the endorsement signature through the bookkeeping node and the public key respectively, after the verification is passed, the block hash is signed by using the private key, and the signature certificate is returned to the bookkeeping node.
After the accounting node receives the signature voucher, a database of the data examination system verifies the application voucher and the endorsement signature voucher within preset time, and submits block header information after the application voucher and the endorsement signature voucher pass the preset time, so that the block headers of the blocks are synchronized in the data examination system, and the data of the block headers are kept consistent. And after all the blocks pass through, the block header information is persisted, and the queuing node is informed to start the next round of accounting. If not, discarding the block number, and restarting the accounting process by multiplexing the block number.
If the user needs to inquire the order through the data examination system, the following steps are executed:
step S4, receiving an inquiry order number input by a user, and inquiring a block which is stored in a database and contains the order number;
step S5, sending an order processing history query request to the block, wherein the block returns the order processing log and the history track of the order number, integrates the order processing log and the history track and returns a result list to the user.
The user only needs to input the order number, the data examination system can integrate the relevant information of the order, the business system only needs to send the order processing information to the data examination system, the data examination system regularly and uniformly records and manages the log, and the data of the order is updated in time. In the process of inter-node communication and historical inquiry of order processing, the order number is only needed to be used, detailed information of the order is not needed to be designed, and the order number is contained in the load of the block body and only needs to be stored locally in the accounting node. When a user inquires through the data inquiry system, only the order number needs to be input, the system automatically searches the node corresponding to the order number, sends an inquiry request to the service system after the address of the node is matched, and the service system inquires local data, returns the result to the data examination system and presents the result to the user. The original service system does not need to give the data authority to the data examination system, thereby ensuring the data security of the user.
When problem data occurs, maintenance personnel can use the specified order number to quickly acquire an order processing log of the order number in the data auditing system. Maintenance personnel can further analyze the source and the reason of the problem according to the classification of the service and the type of the problem data, and the timeliness of solving the problem is improved.
According to the method and the system, the order processing log corresponding to the order number is generated to the block at regular time and stored in the database, the problem that the order data is not updated timely is solved, all data of the order corresponding to the order number do not need to be acquired, and the service privacy of an original service system can be stored. Only the order processing log and the historical track of the original service system need to be obtained, and the order processing log and the historical track are regularly and uniformly recorded and operated, so that the user can conveniently inquire and manage.
In addition, the present invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program realizes the steps of the data examination method based on the timing function when being executed by a processor.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer-readable medium may contain any suitable combination of elements that may be modified in accordance with the requirements of statutory and patent practice in the jurisdiction, for example, in some jurisdictions, computer-readable media may not contain electrical carrier signals or telecommunications signals in accordance with statutory and patent practice.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The present invention also provides an electronic device comprising a memory, a processor, and a program stored in the memory, the program being configured to be executed by the processor, the processor executing the program to implement the steps of the above-mentioned timing function-based data review method.
The apparatus in this embodiment and the method in the foregoing embodiment are based on two aspects of the same inventive concept, and the method implementation process has been described in detail in the foregoing, so that those skilled in the art can clearly understand the apparatus and implementation process in this embodiment according to the foregoing description, and for the sake of brevity of the description, details are not repeated here.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (10)

1. A data examination method based on timing function is characterized in that the method is applied to a data examination system and comprises the following steps:
step S1, receiving an order number submitted by a user in a service system, and returning an application certificate of the order number to the service system;
step S2, regularly inquiring the order processing log of the order number of the service system, and generating the order processing log corresponding to the order number;
and step S3, storing and updating the order processing condition of the order number, respectively processing the order processing log and the historical track, generating a block and storing the block in the database.
2. The method for data audit based on timing function as claimed in claim 1 wherein the step of generating blocks after processing the order processing log in step S3 includes the following steps:
step S31, obtaining order numbers sent by the service system, after the number of the order numbers reaches a threshold value, classifying and packaging the order numbers according to the classification of the data examination system, and sending a request for entering into an accounting queue to a queuing node;
step S32, after receiving the request of the accounting queue, the queuing node distributes accounting right in sequence according to the queue and sends an accounting start notice; the accounting start notification comprises an available block number and corresponding order processing log data, wherein the available block number is used for generating a block head of a block to be written, and the order processing log data is used for writing a load of the block into a block body;
and step S33, after receiving the accounting start notification, the accounting node constructs a block to be written according to the available block number and the opposite order processing log data and starts the accounting process.
3. The timing function based data review method of claim 2, further comprising:
step S34, the accounting node sends the block to be written to the source node request endorsement according to the source node contained in the order processing log; and after the endorsement is finished, the accounting node counts and continues the accounting process.
4. The method for data inspection based on timing function as claimed in claim 3, wherein in step S34, the endorsement generates an endorsement signature credential for signing by a block hash private key and sends the endorsement signature credential to an accounting node.
5. The timing function based data inspection method according to claim 4, wherein the step S32 further comprises the steps of: after receiving the accounting start notification, the queuing node regularly checks whether accounting queue is queued in the queuing node, and if no accounting queue is queued, the queuing node waits for the next accounting completion notification; and if the queuing of the accounting queue exists, starting an accounting process, and setting the state of the queuing node to be in the process.
6. The timing function based data review method of claim 5,
step S35, after obtaining the endorsement signature, the bookkeeping node broadcasts the block chain to be written with the self application certificate and the endorsement signature certificate to other nodes in the data examination system, the other nodes verify the endorsement signature through the bookkeeping node and the public key respectively, after the verification is passed, the block hash is signed by using the private key, and the signature certificate is returned to the bookkeeping node.
7. The method for reviewing data based on timing function as claimed in claim 1, wherein step S4, receiving the query order number inputted by the user, querying the block stored in the database containing the order number;
step S5, sending an order processing history query request to the block, wherein the block returns the order processing log and the history track of the order number, integrates the order processing log and the history track and returns a result list to the user.
8. The timing function based data review method of claim 6, wherein the step S35 further comprises the steps of:
after the accounting node receives the signature voucher, a database of the data examination system verifies the application voucher and the signature voucher of the endorsement in preset time, and submits block header information after passing the verification, if the verification fails, the block header information is lost, and the accounting process is restarted by multiplexing block numbers.
9. An apparatus comprising a processor, a memory, and a computer program stored in the memory and operable on the processor, wherein the processor executes the computer program to implement a timing function based data auditing method according to any one of claims 1-8.
10. A storage medium having a computer program stored thereon, wherein the computer program is executed to implement the timing function based data auditing method according to any one of claims 1-8.
CN202011561463.7A 2020-12-25 2020-12-25 Timing function-based data examination method, device and storage medium Pending CN112669002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561463.7A CN112669002A (en) 2020-12-25 2020-12-25 Timing function-based data examination method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561463.7A CN112669002A (en) 2020-12-25 2020-12-25 Timing function-based data examination method, device and storage medium

Publications (1)

Publication Number Publication Date
CN112669002A true CN112669002A (en) 2021-04-16

Family

ID=75408952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561463.7A Pending CN112669002A (en) 2020-12-25 2020-12-25 Timing function-based data examination method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112669002A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114880365A (en) * 2022-04-29 2022-08-09 北京合思信息技术有限公司 Payment log processing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818431A (en) * 2016-09-14 2018-03-20 北京京东尚科信息技术有限公司 A kind of method and system that order track data is provided
CN108846752A (en) * 2018-06-06 2018-11-20 北京京东金融科技控股有限公司 Data processing method, system, block platform chain and readable storage medium storing program for executing
CN109522747A (en) * 2018-11-12 2019-03-26 杭州趣链科技有限公司 A kind of anti-tamper diary record system and method based on block chain

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107818431A (en) * 2016-09-14 2018-03-20 北京京东尚科信息技术有限公司 A kind of method and system that order track data is provided
CN108846752A (en) * 2018-06-06 2018-11-20 北京京东金融科技控股有限公司 Data processing method, system, block platform chain and readable storage medium storing program for executing
CN109522747A (en) * 2018-11-12 2019-03-26 杭州趣链科技有限公司 A kind of anti-tamper diary record system and method based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李俊达: "基于区块链技术的订单数据追踪问题的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 7, 15 July 2020 (2020-07-15), pages 138 - 403 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114880365A (en) * 2022-04-29 2022-08-09 北京合思信息技术有限公司 Payment log processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109255084B (en) Electronic bill query method, device, storage medium and computer equipment
CN107180350B (en) Method, device and system for multi-party sharing transaction metadata based on block chain
US11962513B2 (en) Verification of data processes in a network of computing resources
CN109191272B (en) Data processing method, device, storage medium and equipment for electronic bill
US11481375B2 (en) Point-to-point distributed decentralized system
EP3260979B1 (en) Verification of data processes in a network of computing resources
US11880478B2 (en) Distribution management apparatus, distribution management system, and distribution management method
CN109961292A (en) Block chain identifying code application method, equipment and storage medium
US9712327B1 (en) System and method for remote storage auditing
JP2002108824A (en) System/method for auditing electronic business and recording medium with electronic business auditing program recorded thereon
US20040215501A1 (en) Method and system for automated marketing
CN113407954A (en) Data management method and device based on block chain
CN111488372A (en) Data processing method, device and storage medium
CN106022706A (en) Holographic presentation system of E-contract main body and correlation execution process information
CN113821810A (en) Data processing method and system, storage medium and electronic device
JP2019192190A (en) Cloud scraping system and method using pre-scraped big data, and computer program therefor
CN112669002A (en) Timing function-based data examination method, device and storage medium
US10970741B2 (en) Method and system for integrating audience data with a social media site
CN105051769A (en) A method and system for transferring data
CN117435606A (en) Certificate inquiry system
CN110598479B (en) Data processing method, device and computer readable storage medium
CN115065682A (en) Product tracing full life cycle management system based on industrial internet identification analysis
JP6119101B2 (en) Aggregation device, aggregation method, and aggregation system
CN115759893B (en) Cross-chain logistics service management method and device and electronic equipment
US20230412387A1 (en) Tracking data throughout an asset lifecycle

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