CN113450114B - Data file acquisition method and device based on block chain - Google Patents

Data file acquisition method and device based on block chain Download PDF

Info

Publication number
CN113450114B
CN113450114B CN202110794022.XA CN202110794022A CN113450114B CN 113450114 B CN113450114 B CN 113450114B CN 202110794022 A CN202110794022 A CN 202110794022A CN 113450114 B CN113450114 B CN 113450114B
Authority
CN
China
Prior art keywords
data source
file
data
data file
new
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.)
Active
Application number
CN202110794022.XA
Other languages
Chinese (zh)
Other versions
CN113450114A (en
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202110794022.XA priority Critical patent/CN113450114B/en
Publication of CN113450114A publication Critical patent/CN113450114A/en
Application granted granted Critical
Publication of CN113450114B publication Critical patent/CN113450114B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/273Asynchronous replication or reconciliation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data file acquisition method and device based on a block chain, and relates to the technical field of block chains, wherein the method comprises the following steps: adding a new data source while checking the old data source to acquire the data file, evaluating the performance of the new data source, and if the evaluation is passed, switching to acquire the data file by using the new data source, wherein the new data source comprises a block chain data source; setting a data file storage path of a new data source, and storing a data file into the data file storage path; and checking the account by using the data file acquired by the new data source. According to the invention, on the basis of keeping the original data source, a new data source is added, the performance of the new data source is evaluated, and then the new data source is switched and utilized to acquire the data file, so that the accuracy and the stability are ensured. The traceability of the block chain data source is utilized to conveniently define responsibility identification of problem data, and problems caused by large file transmission can be reduced.

Description

Data file acquisition method and device based on block chain
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain-based data file acquisition method and apparatus.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Taking account checking files as an example, the traditional account checking file acquisition is generally carried out by adopting an FTP mode, for example, error data appear in the file, and the problem of unclear responsibility identification is easily generated. In addition, as the transaction amount increases, more data is in the reconciliation file, the file is bigger and bigger, and the subsequent reconciliation and other processing of the file are inconvenient. And a new reconciliation data source is directly introduced, so that the correctness and stability are not guaranteed.
Disclosure of Invention
The embodiment of the invention provides a data file acquisition method based on a blockchain, which is used for solving the problems that the existing account checking file acquisition mode is easy to generate the problem of unclear responsibility identification, the problem that the file is too large to facilitate subsequent account checking and other processing of the file, and introducing a new account checking data source, and the accuracy and the stability are not guaranteed, and comprises the following steps:
Adding a new data source while checking the old data source to acquire the data file, evaluating the performance of the new data source, and if the evaluation is passed, switching to acquire the data file by using the new data source, wherein the new data source comprises a block chain data source;
setting a data file storage path of a new data source, and storing a data file into the data file storage path;
And checking the account by using the data file acquired by the new data source.
The embodiment of the invention also provides a data file acquisition device based on a blockchain, which is used for solving the problems that the existing account checking file acquisition mode is easy to generate the problem of unclear responsibility identification, the file is too large to facilitate subsequent account checking and other processing of the file, and a new account checking data source is introduced, so that the accuracy and the stability are not ensured, and the device comprises:
The new data source adding module is used for adding a new data source while checking the old data source acquired data file, and evaluating the performance of the new data source;
The data acquisition module is used for switching and utilizing a new data source to acquire a data file if the evaluation passes, wherein the new data source comprises a block chain data source;
The storage path setting module is used for setting a data file storage path of the new data source;
the file storage module is used for storing the data file to the data file storage path;
and the account checking processing module is used for performing account checking processing by utilizing the data file acquired by the new data source.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the data file acquisition method based on the block chain when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the blockchain-based data file acquisition method described above.
In the embodiment of the invention, compared with the traditional method in the prior art for acquiring the reconciliation file, the problem that responsibility identification is ambiguous is easily generated in the mode of FTP (File transfer protocol), such as error data in the file. In addition, as the transaction amount increases, more data is in the reconciliation file, the file is bigger and bigger, and the subsequent reconciliation and other processing of the file are inconvenient. Compared with the technical scheme that correctness and stability are not guaranteed by directly introducing a new reconciliation data source (such as acquiring a reconciliation file in a blockchain mode), the performance of the new data source is evaluated by adding the new data source while performing reconciliation processing by using the old data source to acquire the data file, and if the evaluation passes, the new data source is switched to acquire the data file, wherein the new data source comprises the blockchain data source; setting a data file storage path of a new data source, and storing a data file into the data file storage path; and checking the account by using the data file acquired by the new data source. According to the invention, a new data source is added on the basis of keeping the original acquired account checking file data source, and the new data source is switched to be utilized to acquire the data file after the performance of the new data source is evaluated, so that the correctness and the stability are not ensured. The traceability of the block chain data source is utilized to conveniently determine responsibility identification of problem data, and the block chain data source is utilized to account for the problem caused by large file transmission can be reduced.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a flowchart of a method for obtaining a data file based on a blockchain in an embodiment of the invention;
FIG. 2 is a flowchart of a second method for obtaining a data file based on a blockchain in an embodiment of the present invention;
FIG. 3 is a flowchart of a method for obtaining a data file based on a blockchain in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart of a block chain based data file acquisition method according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for obtaining a data file based on a blockchain in an embodiment of the present invention;
FIG. 6 is a flowchart of a method for obtaining a data file based on a blockchain in an embodiment of the invention;
FIG. 7 is a flowchart of a method for obtaining a data file based on a blockchain in accordance with an embodiment of the present invention;
FIG. 8 is a flowchart eight of a method for obtaining a blockchain-based data file in accordance with an embodiment of the present invention;
FIG. 9 is a flowchart of a method for obtaining a data file based on a blockchain in accordance with an embodiment of the present invention;
FIG. 10 is a flowchart of a method for obtaining a blockchain-based data file in accordance with an embodiment of the present invention;
FIG. 11 is a block diagram illustrating a block chain based data file acquisition device according to an embodiment of the present invention;
FIG. 12 is a block diagram illustrating a second exemplary architecture of a blockchain-based data file retrieval device in accordance with the present invention;
FIG. 13 is a block diagram III of a block chain based data file acquisition device in accordance with an embodiment of the present invention;
FIG. 14 is a block diagram illustrating a block chain based data file acquisition device according to an embodiment of the present invention;
FIG. 15 is a block diagram of a block chain based data file acquisition device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
FIG. 1 is a flowchart of a block chain based data file acquisition method according to an embodiment of the present invention, as shown in FIG. 1, including:
Step 101: adding a new data source while checking the old data source to acquire the data file, evaluating the performance of the new data source, and if the evaluation is passed, switching to acquire the data file by using the new data source, wherein the new data source comprises a block chain data source;
step 102: setting a data file storage path of a new data source, and storing a data file into the data file storage path;
Step 103: and checking the account by using the data file acquired by the new data source.
Specifically, by evaluating and comparing the data sources which can be added, a proper data source is selected. According to the reconciliation system, the blockchain can be used as a new data source to acquire the reconciliation file.
The new data sources can be two or more, one of the data sources is a blockchain data source, as the transaction amount increases, the data of the account checking file is more and more, the file is larger and larger, the subsequent account checking and other processing of the file are inconvenient, and the problems caused by large file transmission can be reduced by using the blockchain account checking. In the traditional mode of acquiring the reconciliation file through FTP, if the problem that the responsibility identification is ambiguous is easily generated if the error data, the responsibility identification of the problem data can be conveniently and definitely identified by utilizing the traceability of the blockchain.
If a new data source is directly introduced (e.g. a block chain mode is adopted to acquire the account checking file), the correctness and stability are not guaranteed, so that before the new data source is switched, the stable old data source is still used to complete the account checking flow, only the account checking file content acquired by the new data source is compared with the old data source, and the performance of the new data source is evaluated on the premise that the normal operation of the account checking system is not affected, thereby reducing the problems possibly generated after the new data source is switched.
In an embodiment of the present invention, as shown in fig. 2, step 102 sets a data file storage path of a new data source, including:
Step 201: determining a storage path of an old data source for acquiring a data file;
Step 202: and acquiring a data file storage path of the new data source according to the old data source.
In the embodiment of the present invention, as shown in fig. 3, step 202 of obtaining a storage path of a data file according to an old data source and setting a data file storage path of a new data source includes:
Step 301: and storing the data files of the new data source under different folders of the same-level directory of the old data source for obtaining the data files, wherein the file names are consistent or correspond one by one.
Specifically, a new data source is configured to acquire a reconciliation file path: and storing the account checking files acquired by the two (or more) data sources in different folders of the same-level directory, keeping the file names consistent or establishing a corresponding relation, and facilitating the content comparison of the account checking files acquired by the two (or more) data sources by means of timing running scripts and the like in the later period.
In the embodiment of the present invention, as shown in fig. 4, step 101 evaluates performance of a new data source, including:
Step 401: and comparing the contents of the data files acquired by the old data source with the contents of the data files of the new data source, and if the comparison result shows that the contents of the data files acquired by the old data source and the contents of the data files of the new data source are the same, passing the performance evaluation of the new data source.
In an embodiment of the present invention, as shown in fig. 5, step 101 evaluates performance of a new data source, including:
step 501: and comparing the content of the data file acquired by the old data source with the content of the data file of the new data source to generate a result file, checking the result file by sending service personnel, and evaluating the performance of the new data source based on the checking result.
Specifically, two (or more) data source reconciliation file comparison scripts are written: shell scripts can be written, and a comparison result of two (or more) data source reconciliation files is obtained in a timing operation mode. The inconsistent transactions can be output as text files by comparing the information of the amount, the state and the like of each transaction and stored under a specific directory. After a period of time, after the new data source data is determined to be stable, checking can be performed by using the checking file acquired by the new data source.
In an embodiment of the present invention, as shown in fig. 6, the method further includes:
Step 601: a switch is set for the data source, and activation or deactivation of the data source is controlled by the switch.
In an embodiment of the present invention, as shown in fig. 7, the method further includes:
step 701: if one of the data sources acquires the data file and is abnormal, the other data sources are switched by a switch to acquire the data file.
Specifically, a switch is added for each data source, so that the starting or stopping of the data source can be controlled, and the data source can be flexibly switched according to actual conditions. If the data source acquisition file is abnormal caused by the account checking file in the account checking process, the data source acquisition file can be switched to other data source acquisition files to perform account checking, and the normal operation of an account checking system is ensured.
In the embodiment of the present invention, as shown in fig. 8, step 103 performs reconciliation processing using the data file acquired by the new data source, including:
Step 801: carrying out standardization processing on the data file to obtain a standardized data file;
Step 802: and (3) carrying out data comparison based on the standardized data file, recording the comparison result, and exporting the recording result to business personnel for subsequent processing.
Specifically, the accounting documents of both the reference party and the reference party, which need to be checked out, are acquired by two (or more) data sources (the checking is based on the data of the reference party). Specific fields in the reconciliation party files are respectively stored in a reference party table and a reference party table of the database through mapping conversion, and the fields of the two tables should be kept consistent. Screening the data in the reference square table and the reference square table for the same batch, comparing the amount of money and the transaction state according to the fields (such as order number, serial number and the like) for identifying the same transaction, recording inconsistent transactions into an error record table, exporting and delivering to service personnel for subsequent processing.
In an embodiment of the present invention, as shown in fig. 9, the method further includes:
step 901: simultaneously acquiring a data file by using the old data source and the new data source;
Step 902: and performing exclusive OR processing on the result of the old data source acquired data file and the result of the new data source acquired data file, and indicating that the file acquisition fails when the old data source and the new data source fail to acquire the data file.
In an embodiment of the present invention, as shown in fig. 10, the method further includes:
Step 1001: simultaneously acquiring a data file by using the old data source and the new data source;
step 1002: if the new data source fails to acquire the data file and the old data source succeeds in acquiring the data file, the file acquisition is successful.
Specifically, a new data source is added, the flow of acquiring reconciliation data by the old data source is not affected, and file acquisition failure should not be returned because of the new data source failure to acquire the reconciliation file. The old data source obtains the account checking file result; or exclusive or processing is carried out in two modes, and failure is judged as failure only if two modes fail to acquire reconciliation data.
If one data source acquisition file is abnormal, the data source acquisition file can be switched to other data source acquisition files, and the normal operation of the whole reconciliation system can not be influenced as long as one data source can be successfully acquired, so that the high availability of the reconciliation system is ensured.
The embodiment of the invention also provides a data file acquisition device based on the block chain, which is described in the following embodiment. Because the principle of the device for solving the problem is similar to that of the data file acquisition method based on the block chain, the implementation of the device can refer to the implementation of the data file acquisition method based on the block chain, and the repetition is omitted.
FIG. 11 is a block diagram illustrating a block chain-based data file acquiring apparatus according to an embodiment of the present invention, as shown in FIG. 11, the apparatus includes:
A new data source adding module 02, configured to add a new data source while checking the old data source acquired data file, and evaluate performance of the new data source;
a data acquisition module 04, configured to switch to acquire a data file by using a new data source if the evaluation passes, where the new data source includes a blockchain data source;
a storage path setting module 06, configured to set a data file storage path of the new data source;
a file storage module 08 for storing the data file into the data file storage path;
and the reconciliation processing module 10 is used for performing reconciliation processing by using the data file acquired by the new data source.
In the embodiment of the present invention, the storage path setting module 06 is specifically configured to:
determining a storage path of an old data source for acquiring a data file;
and acquiring a data file storage path of the new data source according to the old data source.
In the embodiment of the present invention, the storage path setting module 06 is specifically configured to:
and storing the data files of the new data source under different folders of the same-level directory of the old data source for obtaining the data files, wherein the file names are consistent or correspond one by one.
In the embodiment of the present invention, the new data source adding module 02 is specifically configured to:
And comparing the contents of the data files acquired by the old data source with the contents of the data files of the new data source, and if the comparison result shows that the contents of the data files acquired by the old data source and the contents of the data files of the new data source are the same, passing the performance evaluation of the new data source.
In the embodiment of the present invention, the new data source adding module 02 is specifically configured to:
and comparing the content of the data file acquired by the old data source with the content of the data file of the new data source to generate a result file, checking the result file by sending service personnel, and evaluating the performance of the new data source based on the checking result.
In an embodiment of the present invention, as shown in fig. 12, further includes:
the switch setting module 12 is configured to set a switch for the data source, and control activation or deactivation of the data source through the switch.
In an embodiment of the present invention, as shown in fig. 13, the method further includes:
And the switching module 14 is configured to switch another data source to acquire the data file if one of the data sources acquires the data file abnormally.
In the embodiment of the invention, the reconciliation processing module is specifically configured to:
carrying out standardization processing on the data file to obtain a standardized data file;
And (3) carrying out data comparison based on the standardized data file, recording the comparison result, and exporting the recording result to business personnel for subsequent processing.
In the embodiment of the present invention, the data acquisition module 04 is further configured to: simultaneously acquiring a data file by using the old data source and the new data source;
As shown in fig. 14, further comprising:
The xor processing module 16 is configured to xor the old data source acquired data file result and the new data source acquired data file result, and indicate that the file acquisition fails when both the old data source and the new data source acquire the data file.
In the embodiment of the present invention, the data acquisition module 04 is further configured to: simultaneously acquiring a data file by using the old data source and the new data source;
As shown in fig. 15, further comprising: the file acquisition success/failure determination module 18 is configured to indicate that the acquisition of the file is successful if the new data source fails to acquire the data file and the old data source succeeds in acquiring the data file.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the data file acquisition method based on the block chain when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the blockchain-based data file acquisition method described above.
In the embodiment of the invention, compared with the traditional method in the prior art for acquiring the reconciliation file, the problem that responsibility identification is ambiguous is easily generated in the mode of FTP (File transfer protocol), such as error data in the file. In addition, as the transaction amount increases, more data is in the reconciliation file, the file is bigger and bigger, and the subsequent reconciliation and other processing of the file are inconvenient. Compared with the technical scheme that correctness and stability are not guaranteed by directly introducing a new reconciliation data source (such as acquiring a reconciliation file in a blockchain mode), the performance of the new data source is evaluated by adding the new data source while performing reconciliation processing by using the old data source to acquire the data file, and if the evaluation passes, the new data source is switched to acquire the data file, wherein the new data source comprises the blockchain data source; setting a data file storage path of a new data source, and storing a data file into the data file storage path; and checking the account by using the data file acquired by the new data source. According to the invention, a new data source is added on the basis of keeping the original acquired account checking file data source, and the new data source is switched to be utilized to acquire the data file after the performance of the new data source is evaluated, so that the correctness and the stability are not ensured. The traceability of the block chain data source is utilized to conveniently determine responsibility identification of problem data, and the block chain data source is utilized to account for the problem caused by large file transmission can be reduced.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (12)

1. A blockchain-based data file acquisition method, comprising:
adding a new data source while checking the old data source to acquire the data file, evaluating the performance of the new data source, and if the evaluation passes, acquiring the data file by using the new data source, wherein the new data source comprises a block chain data source;
setting a data file storage path of a new data source, and storing a data file into the data file storage path;
Checking account by using the data file acquired by the new data source;
setting a data file storage path of a new data source, including: determining a storage path of an old data source for acquiring a data file; acquiring a storage path of a data file according to an old data source, and setting a data file storage path of a new data source;
Obtaining a data file storage path of the old data source, and setting a data file storage path of the new data source, wherein the method comprises the following steps: storing the data files of the new data source under different folders of the same-level catalogue of the old data source for obtaining the data files, wherein file names are consistent or correspond to each other one by one;
and checking account processing is carried out by utilizing the data file acquired by the new data source, which comprises the following steps: carrying out standardization processing on the data file to obtain a standardized data file; based on the standardized data file, performing data comparison, recording the comparison result, and exporting the recording result to business personnel for subsequent processing;
evaluating performance of the new data source, comprising:
Comparing the content of the data file acquired by the old data source with the content of the data file of the new data source, and if the comparison result shows that the content of the data file acquired by the old data source is the same as the content of the data file of the new data source, evaluating the performance of the new data source;
or, evaluating the performance of the new data source, including:
and comparing the content of the data file acquired by the old data source with the content of the data file of the new data source to generate a result file, checking the result file by sending service personnel, and evaluating the performance of the new data source based on the checking result.
2. The blockchain-based data file acquisition method of claim 1, further comprising:
A switch is set for the data source, and activation or deactivation of the data source is controlled by the switch.
3. The blockchain-based data file acquisition method of claim 2, further comprising:
If one of the data sources acquires the data file and is abnormal, the other data sources are switched by a switch to acquire the data file.
4. The blockchain-based data file acquisition method of claim 1, further comprising:
simultaneously acquiring a data file by using the old data source and the new data source;
And performing exclusive OR processing on the result of the old data source acquired data file and the result of the new data source acquired data file, and indicating that the file acquisition fails when the old data source and the new data source fail to acquire the data file.
5. The blockchain-based data file acquisition method of claim 1, further comprising:
simultaneously acquiring a data file by using the old data source and the new data source;
if the new data source fails to acquire the data file and the old data source succeeds in acquiring the data file, the file acquisition is successful.
6. A blockchain-based data file acquisition device, comprising:
The new data source adding module is used for adding a new data source while checking the old data source acquired data file, and evaluating the performance of the new data source;
The data acquisition module is used for switching and utilizing a new data source to acquire a data file if the evaluation passes, wherein the new data source comprises a block chain data source;
The storage path setting module is used for setting a data file storage path of the new data source;
the file storage module is used for storing the data file to the data file storage path;
the account checking processing module is used for performing account checking processing by utilizing the data file acquired by the new data source;
The storage path setting module is specifically configured to: determining a storage path of an old data source for acquiring a data file; acquiring a storage path of a data file according to an old data source, and setting a data file storage path of a new data source;
the storage path setting module is specifically configured to: storing the data files of the new data source under different folders of the same-level catalogue of the old data source for obtaining the data files, wherein file names are consistent or correspond to each other one by one;
The new data source adding module is specifically used for: comparing the content of the data file acquired by the old data source with the content of the data file of the new data source, and if the comparison result shows that the content of the data file acquired by the old data source is the same as the content of the data file of the new data source, evaluating the performance of the new data source; or, the new data source adding module is specifically configured to: comparing the content of the data file acquired by the old data source with the content of the data file of the new data source to generate a result file, checking the result file by sending service personnel, and evaluating the performance of the new data source based on the checking result;
The account checking processing module is specifically used for: carrying out standardization processing on the data file to obtain a standardized data file; and (3) carrying out data comparison based on the standardized data file, recording the comparison result, and exporting the recording result to business personnel for subsequent processing.
7. The blockchain-based data file acquisition device of claim 6, further comprising:
the switch setting module is used for setting a switch for the data source and controlling the starting or stopping of the data source through the switch.
8. The blockchain-based data file acquisition device of claim 7, further comprising:
And the switching module is used for switching other data sources to acquire the data file through a switch if one of the data sources acquires the data file abnormally.
9. The blockchain-based data file acquisition device of claim 6, wherein the data acquisition module is further to: simultaneously acquiring a data file by using the old data source and the new data source;
Further comprises:
And the exclusive or processing module is used for exclusive or processing the result of the old data source acquired data file and the result of the new data source acquired data file, and when the old data source and the new data source fail to acquire the data file, the failure of acquiring the file is indicated.
10. The blockchain-based data file acquisition device of claim 6, wherein the data acquisition module is further to: simultaneously acquiring a data file by using the old data source and the new data source;
Further comprises: and the file acquisition success failure determining module is used for indicating that the file acquisition is successful if the new data source fails to acquire the data file and the old data source succeeds in acquiring the data file.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the blockchain-based data file retrieval method of any of claims 1 to 5 when the computer program is executed by the processor.
12. A computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor implements the steps of the blockchain-based data file retrieval method of any of claims 1 to 5.
CN202110794022.XA 2021-07-14 2021-07-14 Data file acquisition method and device based on block chain Active CN113450114B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110794022.XA CN113450114B (en) 2021-07-14 2021-07-14 Data file acquisition method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110794022.XA CN113450114B (en) 2021-07-14 2021-07-14 Data file acquisition method and device based on block chain

Publications (2)

Publication Number Publication Date
CN113450114A CN113450114A (en) 2021-09-28
CN113450114B true CN113450114B (en) 2024-10-25

Family

ID=77816169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110794022.XA Active CN113450114B (en) 2021-07-14 2021-07-14 Data file acquisition method and device based on block chain

Country Status (1)

Country Link
CN (1) CN113450114B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801767A (en) * 2021-01-22 2021-05-14 中信银行股份有限公司 Accounting data processing method and device for newly added channels

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105761139A (en) * 2016-02-04 2016-07-13 上海携程商务有限公司 Account checking system and method
CN109669927A (en) * 2018-11-27 2019-04-23 南京苏宁易付宝网络科技有限公司 A kind of data source switch method and system
CN109743133B (en) * 2018-12-25 2021-05-28 中国联合网络通信集团有限公司 Data reconciliation method and device
CN110287200B (en) * 2019-07-02 2022-03-25 贵阳货车帮科技有限公司 Account checking method, account checking system, computer equipment and storage medium
CN110415095A (en) * 2019-07-24 2019-11-05 深圳乐信软件技术有限公司 A kind of account checking method, device, terminal and storage medium
CN110413428B (en) * 2019-08-06 2022-01-25 中国联合网络通信集团有限公司 Account checking data processing method, electronic equipment and storage medium
CN111159264A (en) * 2019-11-28 2020-05-15 京东数字科技控股有限公司 Data processing method and device
CN112613964A (en) * 2020-12-25 2021-04-06 深圳鼎盛电脑科技有限公司 Account checking method, account checking device, account checking equipment and storage medium
CN112995144A (en) * 2021-02-05 2021-06-18 杭州华橙软件技术有限公司 File processing method and system, readable storage medium and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112801767A (en) * 2021-01-22 2021-05-14 中信银行股份有限公司 Accounting data processing method and device for newly added channels

Also Published As

Publication number Publication date
CN113450114A (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN109474488B (en) Interface testing method and device and computer equipment
CN111209206B (en) Automatic test method and system for software products
CN112307124B (en) Database synchronous verification method, device, equipment and storage medium
US10657028B2 (en) Method for replicating production behaviours in a development environment
CN111767350A (en) Data warehouse testing method and device, terminal equipment and storage medium
CN106557419B (en) Program testing method and device
US20070245313A1 (en) Failure tagging
CN107357721B (en) Method and device for testing system
CN107632909B (en) Method and system for automatically testing device functions
CN107729541A (en) A kind of data processing method, device and computer-readable recording medium
CN110688823A (en) XML file verification method and device
CN111290961A (en) Interface test management method and device and terminal equipment
CN114116505A (en) Code testing method and device
CN113450114B (en) Data file acquisition method and device based on block chain
CN112711563A (en) Method and system for detecting electronic file tetragonality
CN113672278B (en) Service node version control method and device under micro-service architecture
CN110008124B (en) Information processing method and device
CN115203697A (en) File detection method, device and equipment and readable storage medium
CN112597119A (en) Method and device for generating processing log and storage medium
CN113656318A (en) Software version testing method and device and computer equipment
CN116226243A (en) Consumption processing method and system for data
CN108132951B (en) Data access method and data access device
CN113342779A (en) Project updating method and device and computer readable storage medium
CN116340430A (en) Data synchronization verification method and related equipment
CN115686477A (en) Application program creating method and device and electronic 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
GR01 Patent grant
GR01 Patent grant