CN113450114A - Block chain-based data file acquisition method and device - Google Patents

Block chain-based data file acquisition method and device Download PDF

Info

Publication number
CN113450114A
CN113450114A CN202110794022.XA CN202110794022A CN113450114A CN 113450114 A CN113450114 A CN 113450114A CN 202110794022 A CN202110794022 A CN 202110794022A CN 113450114 A CN113450114 A CN 113450114A
Authority
CN
China
Prior art keywords
data source
data
file
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.)
Pending
Application number
CN202110794022.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.)
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/CN113450114A/en
Publication of CN113450114A publication Critical patent/CN113450114A/en
Pending legal-status Critical Current

Links

Images

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 a device based on a block chain, relating to the technical field of the block chain, wherein the method comprises the following steps: adding a new data source while using an old data source to acquire a data file for reconciliation, evaluating the performance of the new data source, and switching to acquire the data file by using the new data source if the evaluation is passed, wherein the new data source comprises a block chain data source; setting a data file storage path of a new data source, and storing the data file to the data file storage path; and carrying out reconciliation processing 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, and the performance of the new data source is evaluated and then the new data source is switched to acquire the data file, so that the correctness and the stability are ensured. By utilizing the traceability of the block chain data source, the responsibility confirmation of problem data can be conveniently determined, and the problems caused by large file transmission can be reduced.

Description

Block chain-based data file acquisition method and device
Technical Field
The present invention relates to the field of block chain technologies, and in particular, to a method and an apparatus for acquiring a data file based on a block chain.
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 conventional method for acquiring account checking files is generally implemented in an FTP manner, and if error data occurs in the files, the problem of uncertain responsibility confirmation is easily caused. In addition, with the increase of the transaction amount, more and more data and larger files are in the account checking file, and subsequent account checking and other processing on the files are not convenient. And a new account checking data source is directly introduced, so that the correctness and the stability can not be ensured.
Disclosure of Invention
The embodiment of the invention provides a block chain-based data file acquisition method, which is used for solving the problems that the existing account checking file acquisition mode is easy to generate uncertain responsibility confirmation, the file is too large and is inconvenient for subsequent account checking and other processing of the file, a new account checking data source is introduced, and the correctness and the stability cannot be ensured, and the method comprises the following steps:
adding a new data source while using an old data source to acquire a data file for reconciliation, evaluating the performance of the new data source, and switching to acquire the data file by using the new data source if the evaluation is passed, wherein the new data source comprises a block chain data source;
setting a data file storage path of a new data source, and storing the data file to the data file storage path;
and carrying out reconciliation processing by using the data file acquired by the new data source.
The embodiment of the invention also provides a block chain-based data file acquisition device, which is used for solving the problems that the existing account checking file acquisition mode is easy to generate uncertain responsibility confirmation, the file is too large and is inconvenient for subsequent account checking and other processing of the file, a new account checking data source is introduced, and the correctness and the stability can not be ensured, and the device comprises:
the new data source adding module is used for adding a new data source while using the old data source to acquire the data file for reconciliation, 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 the data file if the evaluation is passed, 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 a new data source;
the file storage module is used for storing the data file to a data file storage path;
and the account checking processing module is used for performing account checking processing on 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 which is stored on the memory and can run on the processor, wherein the processor realizes the data file acquisition method based on the block chain when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above-mentioned data file acquisition method based on a block chain.
In the embodiment of the invention, the account checking file is obtained in a FTP mode compared with the traditional mode in the prior art, and if error data occurs in the file, the problem of uncertain responsibility confirmation is easily caused. In addition, with the increase of the transaction amount, more and more data and larger files are in the account checking file, and subsequent account checking and other processing on the files are not convenient. Compared with the technical scheme that a new account checking data source is directly introduced (such as account checking files are acquired in a block chain mode), the method has the advantages that the accuracy and the stability cannot be guaranteed, the performance of the new data source is evaluated by adding the new data source while the old data source is used for acquiring the data files for account checking, and if the evaluation is passed, the new data source is switched to be used for acquiring the data files, wherein the new data source comprises the block chain data source; setting a data file storage path of a new data source, and storing the data file to the data file storage path; and carrying out reconciliation processing by using the data file acquired by the new data source. According to the invention, on the basis of keeping the original data source for acquiring the reconciliation file, a new data source is added, and the performance of the new data source is evaluated and then the new data source is switched to acquire the data file, so that the correctness and the stability are not ensured. The responsibility confirmation of problem data can be conveniently determined by utilizing the traceability of the block chain data source, and the problems caused by large file transmission can be reduced by utilizing the account checking of the block chain data source.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a first flowchart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 4 is a flow chart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 5 is a flow chart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 6 is a flowchart of a block chain-based data file acquisition method according to a sixth embodiment of the present invention;
FIG. 7 is a seventh flowchart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 8 is a flow chart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 9 is a flowchart of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 10 is a flowchart ten of a block chain-based data file acquisition method according to an embodiment of the present invention;
FIG. 11 is a block diagram of a block chain-based data file retrieving apparatus according to an embodiment of the present invention;
FIG. 12 is a block diagram of a block chain-based data file retrieving apparatus according to an embodiment of the present invention;
FIG. 13 is a block diagram of a block chain-based data file retrieving apparatus according to an embodiment of the present invention;
FIG. 14 is a block diagram of a block chain-based data file retrieving apparatus according to an embodiment of the present invention;
fig. 15 is a block diagram of a block chain-based data file acquiring apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Fig. 1 is a first flowchart of a block chain-based data file acquisition method in an embodiment of the present invention, as shown in fig. 1, including:
step 101: adding a new data source while using an old data source to acquire a data file for reconciliation, evaluating the performance of the new data source, and switching to acquire the data file by using the new data source if the evaluation is passed, 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 the data file to the data file storage path;
step 103: and carrying out reconciliation processing by using the data file acquired by the new data source.
Specifically, the appropriate data source is selected by evaluating and comparing the data sources which can be added. The reconciliation system can adopt the block chain as a new data source to acquire the reconciliation file.
The number of the new data sources can be two or more, one of the data sources is a blockchain data source, with the increase of transaction amount, the account checking files have more and more data and larger files, so that subsequent account checking and other processing on the files are inconvenient, and the problem caused by transmission of large files can be reduced by using the blockchain account checking. In the traditional mode of acquiring the account checking file through the FTP, if error data easily causes the problem of uncertain responsibility confirmation, the responsibility confirmation of the problem data can be conveniently determined by utilizing the traceability of a block chain.
If a new data source is directly introduced (for example, account checking files are acquired in a block chain mode), the correctness and the stability cannot be guaranteed, so that before the new data source is switched, a stable old data source is still used for completing an account checking process, only the account checking file contents acquired by the new data source are compared with the contents acquired by the old data source, and the performance of the new data source is evaluated on the premise of not influencing the normal operation of an account checking system, so that the problem possibly generated after the new data source is switched is solved.
In this 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 setting a data file storage path of the new data source according to the storage path of the data file acquired by the old data source.
In this embodiment of the present invention, as shown in fig. 3, step 202 sets a data file storage path of a new data source according to a storage path of an old data source acquiring a data file, where the data file storage path includes:
step 301: and storing the data files of the new data source in different folders of the same-level directory of the data files acquired by the old data source, wherein the file names are kept consistent or in one-to-one correspondence.
Specifically, configuring a new data source to obtain a reconciliation file path: the account checking files acquired by the two (or more) data sources are stored in different folders of the same-level directory, the file names are kept consistent or a corresponding relation is established, and content comparison of the account checking files acquired by the two (or more) data sources is facilitated in a later stage through modes of running scripts at regular time and the like.
In the embodiment of the present invention, as shown in fig. 4, step 101 evaluates the performance of the new data source, including:
step 401: and comparing the contents of the data file acquired by the old data source with the contents of the data file of the new data source, and if the comparison result shows that the contents of the data file acquired by the old data source are the same as the contents of the data file of the new data source, the performance evaluation of the new data source is passed.
In the embodiment of the present invention, as shown in fig. 5, step 101 evaluates the performance of the new data source, including:
step 501: 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 to generate a result file, sending the result file to a service person for checking, and evaluating the performance of the new data source based on the checking result.
Specifically, two (or more) data source account file comparison scripts are written: the shell script can be compiled, and the comparison result of the reconciliation files of the two (or more) data sources can be obtained in a timing operation mode. By comparing the information of the amount, the state and the like of each transaction, inconsistent transactions can be output into a text file and stored in a specific directory. After a period of time, after the data of the new data source is determined to be stable, the account checking file acquired by the new data source can be used for checking accounts.
In the embodiment of the present invention, as shown in fig. 6, the method further includes:
step 601: and setting a switch for the data source, and controlling the activation or the deactivation of the data source through the switch.
In the embodiment of the present invention, as shown in fig. 7, the method further includes:
step 701: if one data source obtains the data file abnormally, the other data sources are switched through the switch to obtain the data file.
Specifically, a switch is added for each data source, so that the data source can be controlled to be started or stopped, and the switching can be flexibly performed according to actual conditions. If the abnormality caused by the account checking file occurs in the account checking process of the data source acquisition file, the data source acquisition file can be switched to the file acquired by other data sources for account checking, and the normal operation of an account checking system is ensured.
In this embodiment of the present invention, as shown in fig. 8, the performing, in step 103, reconciliation processing on the data file acquired by the new data source includes:
step 801: standardizing the data file to obtain a standardized data file;
step 802: and comparing data based on the standardized data file, recording a comparison result, and exporting a recording result to a service worker for subsequent processing.
Specifically, account checking files of a benchmark party and a reference party which need to be checked are obtained through two (or more) data sources (the account checking is based on the benchmark party data). And mapping and converting specific fields in the files of both reconciliation parties, and respectively storing the specific fields in a reference party table and a reference party table of the database, wherein the fields of the two tables are consistent. The data in the reference square table and the reference square table are respectively screened for the same batch, the money amount, the transaction state and the like are compared one by one according to the fields (such as order numbers, serial numbers and the like) for identifying the same transaction, inconsistent transactions are recorded in an error recording table, and the inconsistent transactions are exported and handed to business personnel for subsequent processing.
In the embodiment of the present invention, as shown in fig. 9, the method further includes:
step 901: simultaneously acquiring data files by using an old data source and a new data source;
step 902: and carrying out exclusive OR processing on the result of acquiring the data file by the old data source and the result of acquiring the data file by the new data source, and indicating that the file acquisition is failed when the data files acquired by the old data source and the new data source fail.
In the embodiment of the present invention, as shown in fig. 10, the method further includes:
step 1001: simultaneously acquiring data files by using an old data source and a new data source;
step 1002: and 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 the old data source for acquiring the reconciliation data is not affected, and file acquisition failure caused by failure of acquiring the reconciliation file by the new data source is avoided. The result of the account checking file acquired by the old data source is used as a standard; or the two modes are subjected to exclusive OR processing, and the failure is judged only when the account checking data acquired by the two modes fail.
If one data source acquisition file is abnormal, the data source acquisition file can be switched to other data source acquisition files, and as long as one data source can be successfully acquired, the normal operation of the whole account checking system cannot be influenced, so that the high availability of the account checking system is ensured.
The embodiment of the present invention further provides a device for acquiring a data file based on a block chain, as described in the following embodiments. Because the principle of the device for solving the problems is similar to the block chain-based data file acquisition method, the implementation of the device can refer to the implementation of the block chain-based data file acquisition method, and repeated parts are not repeated.
Fig. 11 is a block diagram of a first block chain-based data file acquiring apparatus according to an embodiment of the present invention, as shown in fig. 11, the apparatus includes:
the new data source adding module 02 is used for adding a new data source while obtaining the data file by using the old data source for reconciliation, and evaluating the performance of the new data source;
the data acquisition module 04 is configured to, if the evaluation is passed, switch to acquire a data file by using a new data source, 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 a new data source;
the file storage module 08 is used for storing the data file to a data file storage path;
and the reconciliation processing module 10 is configured to perform reconciliation processing on 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 setting a data file storage path of the new data source according to the storage path of the data file acquired by 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 in different folders of the same-level directory of the data files acquired by the old data source, wherein the file names are kept consistent or in one-to-one correspondence.
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 file acquired by the old data source with the contents of the data file of the new data source, and if the comparison result shows that the contents of the data file acquired by the old data source are the same as the contents of the data file of the new data source, the performance evaluation of the new data source is passed.
In the embodiment of the present invention, the new data source adding module 02 is specifically configured to:
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 to generate a result file, sending the result file to a service person for checking, and evaluating the performance of the new data source based on the checking result.
In the embodiment of the present invention, as shown in fig. 12, the method further includes:
and the switch setting module 12 is used for setting a switch for the data source, and controlling the activation or the deactivation of the data source through the switch.
In the embodiment of the present invention, as shown in fig. 13, the method further includes:
and the switching module 14 is configured to, if one of the data sources obtains the data file abnormally, switch the other data sources through the switch to obtain the data file.
In the embodiment of the present invention, the reconciliation processing module is specifically configured to:
standardizing the data file to obtain a standardized data file;
and comparing data based on the standardized data file, recording a comparison result, and exporting a recording result to a service worker for subsequent processing.
In this embodiment of the present invention, the data obtaining module 04 is further configured to: simultaneously acquiring data files by using an old data source and a new data source;
as shown in fig. 14, the method further includes:
and the exclusive-or processing module 16 is configured to perform exclusive-or processing on the result of acquiring the data file by the old data source and the result of acquiring the data file by the new data source, and indicate that file acquisition fails when the data files acquired by the old data source and the new data source both fail.
In this embodiment of the present invention, the data obtaining module 04 is further configured to: simultaneously acquiring data files by using an old data source and a new data source;
as shown in fig. 15, the method further includes: and the file acquisition success and failure determining module 18 is configured to indicate 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.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the data file acquisition method based on the block chain when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above-mentioned data file acquisition method based on a block chain.
In the embodiment of the invention, the account checking file is obtained in a FTP mode compared with the traditional mode in the prior art, and if error data occurs in the file, the problem of uncertain responsibility confirmation is easily caused. In addition, with the increase of the transaction amount, more and more data and larger files are in the account checking file, and subsequent account checking and other processing on the files are not convenient. Compared with the technical scheme that a new account checking data source is directly introduced (such as account checking files are acquired in a block chain mode), the method has the advantages that the accuracy and the stability cannot be guaranteed, the performance of the new data source is evaluated by adding the new data source while the old data source is used for acquiring the data files for account checking, and if the evaluation is passed, the new data source is switched to be used for acquiring the data files, wherein the new data source comprises the block chain data source; setting a data file storage path of a new data source, and storing the data file to the data file storage path; and carrying out reconciliation processing by using the data file acquired by the new data source. According to the invention, on the basis of keeping the original data source for acquiring the reconciliation file, a new data source is added, and the performance of the new data source is evaluated and then the new data source is switched to acquire the data file, so that the correctness and the stability are not ensured. The responsibility confirmation of problem data can be conveniently determined by utilizing the traceability of the block chain data source, and the problems caused by large file transmission can be reduced by utilizing the account checking of the block chain data source.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (22)

1. A block chain-based data file acquisition method is characterized by comprising the following steps:
adding a new data source while using an old data source to acquire a data file for reconciliation, evaluating the performance of the new data source, and acquiring the data file by using the new data source if the evaluation is passed, wherein the new data source comprises a block chain data source;
setting a data file storage path of a new data source, and storing the data file to the data file storage path;
and carrying out reconciliation processing by using the data file acquired by the new data source.
2. The block chain-based data file acquisition method according to claim 1, wherein setting a data file storage path of a new data source comprises:
determining a storage path of an old data source for acquiring a data file;
and setting a data file storage path of the new data source according to the storage path of the data file acquired by the old data source.
3. The block chain-based data file acquisition method according to claim 2, wherein setting the data file storage path of the new data source according to the storage path of the data file acquired by the old data source comprises:
and storing the data files of the new data source in different folders of the same-level directory of the data files acquired by the old data source, wherein the file names are kept consistent or in one-to-one correspondence.
4. The blockchain-based data file retrieval method of claim 3, wherein evaluating the performance of the new data source comprises:
and comparing the contents of the data file acquired by the old data source with the contents of the data file of the new data source, and if the comparison result shows that the contents of the data file acquired by the old data source are the same as the contents of the data file of the new data source, the performance evaluation of the new data source is passed.
5. The blockchain-based data file retrieval method of claim 3, wherein evaluating the performance of the new data source comprises:
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 to generate a result file, sending the result file to a service person for checking, and evaluating the performance of the new data source based on the checking result.
6. The block chain-based data file acquisition method according to claim 1, further comprising:
and setting a switch for the data source, and controlling the activation or the deactivation of the data source through the switch.
7. The block chain-based data file acquisition method according to claim 6, further comprising:
if one data source obtains the data file abnormally, the other data sources are switched through the switch to obtain the data file.
8. The method for acquiring the data file based on the blockchain according to claim 1, wherein the reconciliation processing of the data file acquired by using the new data source comprises:
standardizing the data file to obtain a standardized data file;
and comparing data based on the standardized data file, recording a comparison result, and exporting a recording result to a service worker for subsequent processing.
9. The block chain-based data file acquisition method according to claim 1, further comprising:
simultaneously acquiring data files by using an old data source and a new data source;
and carrying out exclusive OR processing on the result of acquiring the data file by the old data source and the result of acquiring the data file by the new data source, and indicating that the file acquisition is failed when the data files acquired by the old data source and the new data source fail.
10. The block chain-based data file acquisition method according to claim 1, further comprising:
simultaneously acquiring data files by using an old data source and a new data source;
and 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.
11. A block chain-based data file acquisition apparatus, comprising:
the new data source adding module is used for adding a new data source while using the old data source to acquire the data file for reconciliation, 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 the data file if the evaluation is passed, 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 a new data source;
the file storage module is used for storing the data file to a data file storage path;
and the account checking processing module is used for performing account checking processing on the data file acquired by the new data source.
12. The device for acquiring a data file based on a block chain according to claim 11, wherein the storage path setting module is specifically configured to:
determining a storage path of an old data source for acquiring a data file;
and setting a data file storage path of the new data source according to the storage path of the data file acquired by the old data source.
13. The device for acquiring a data file based on a block chain according to claim 12, wherein the storage path setting module is specifically configured to:
and storing the data files of the new data source in different folders of the same-level directory of the data files acquired by the old data source, wherein the file names are kept consistent or in one-to-one correspondence.
14. The block chain-based data file acquisition apparatus according to claim 13, wherein the new data source adding module is specifically configured to:
and comparing the contents of the data file acquired by the old data source with the contents of the data file of the new data source, and if the comparison result shows that the contents of the data file acquired by the old data source are the same as the contents of the data file of the new data source, the performance evaluation of the new data source is passed.
15. The block chain-based data file acquisition apparatus according to claim 13, wherein the new data source adding module is specifically configured to:
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 to generate a result file, sending the result file to a service person for checking, and evaluating the performance of the new data source based on the checking result.
16. The block chain-based data file acquiring apparatus according to claim 11, further comprising:
and 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.
17. The blockchain-based data file acquiring apparatus according to claim 16, further comprising:
and the switching module is used for switching other data sources to acquire the data file through a switch if the data file acquired by one data source is abnormal.
18. The device for acquiring a data file based on a blockchain according to claim 11, wherein the reconciliation processing module is specifically configured to:
standardizing the data file to obtain a standardized data file;
and comparing data based on the standardized data file, recording a comparison result, and exporting a recording result to a service worker for subsequent processing.
19. The blockchain-based data file retrieving apparatus of claim 11, wherein the data retrieving module is further configured to: simultaneously acquiring data files by using an old data source and a new data source;
further comprising:
and the XOR processing module is used for carrying out XOR processing on the data file acquisition result of the old data source and the data file acquisition result of the new data source, and when the data files acquired by the old data source and the new data source fail, the file acquisition failure is indicated.
20. The blockchain-based data file retrieving apparatus of claim 11, wherein the data retrieving module is further configured to: simultaneously acquiring data files by using an old data source and a new data source;
further comprising: and the file acquisition success and 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.
21. 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 one of claims 1 to 10 when executing the computer program.
22. 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 block chain based data file retrieving method according to any one of claims 1 to 10.
CN202110794022.XA 2021-07-14 2021-07-14 Block chain-based data file acquisition method and device Pending CN113450114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110794022.XA CN113450114A (en) 2021-07-14 2021-07-14 Block chain-based data file acquisition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110794022.XA CN113450114A (en) 2021-07-14 2021-07-14 Block chain-based data file acquisition method and device

Publications (1)

Publication Number Publication Date
CN113450114A true CN113450114A (en) 2021-09-28

Family

ID=77816169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110794022.XA Pending CN113450114A (en) 2021-07-14 2021-07-14 Block chain-based data file acquisition method and device

Country Status (1)

Country Link
CN (1) CN113450114A (en)

Citations (10)

* 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
CN109743133A (en) * 2018-12-25 2019-05-10 中国联合网络通信集团有限公司 Data account checking method and device
CN110287200A (en) * 2019-07-02 2019-09-27 江苏满运软件科技有限公司 Account checking method, 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
CN110413428A (en) * 2019-08-06 2019-11-05 中国联合网络通信集团有限公司 Processing method, electronic equipment and the storage medium of reconciliation data
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
CN112801767A (en) * 2021-01-22 2021-05-14 中信银行股份有限公司 Accounting data processing method and device for newly added channels
CN112995144A (en) * 2021-02-05 2021-06-18 杭州华橙软件技术有限公司 File processing method and system, readable storage medium and electronic device

Patent Citations (10)

* 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
CN109743133A (en) * 2018-12-25 2019-05-10 中国联合网络通信集团有限公司 Data account checking method and device
CN110287200A (en) * 2019-07-02 2019-09-27 江苏满运软件科技有限公司 Account checking method, 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
CN110413428A (en) * 2019-08-06 2019-11-05 中国联合网络通信集团有限公司 Processing method, electronic equipment and the storage medium of reconciliation data
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
CN112801767A (en) * 2021-01-22 2021-05-14 中信银行股份有限公司 Accounting data processing method and device for newly added channels
CN112995144A (en) * 2021-02-05 2021-06-18 杭州华橙软件技术有限公司 File processing method and system, readable storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN102831052B (en) Test exemple automation generating apparatus and method
CN112306855B (en) Interface automation test method, device, terminal and storage medium
US20170228220A1 (en) Self-healing automated script-testing tool
US10579513B2 (en) Test run control method and apparatus
CN111209206B (en) Automatic test method and system for software products
US10657028B2 (en) Method for replicating production behaviours in a development environment
CN115080398A (en) Automatic interface test system and method
CN107357721B (en) Method and device for testing system
CN111125067A (en) Data maintenance method and device
CN114116505A (en) Code testing method and device
CN111694724B (en) Test method and device of distributed form system, electronic equipment and storage medium
CN110147313B (en) Log output method and device
CN113450114A (en) Block chain-based data file acquisition method and device
CN110620800B (en) Method and device for synchronously processing configuration data of power secondary system across safety zones
CN114756623A (en) Non-homologous database synchronization method and device
CN114546749A (en) Chip random test case regression method, device, equipment and readable medium
CN111143229A (en) Software testing method and device, computer equipment and computer readable storage medium
CN111090638A (en) Method and device for comparing transaction functions in database migration
CN112015463A (en) Configuration version management device and working method thereof
CN112783954A (en) Data access method and device and server
CN110736920A (en) card testing method and system based on engineering management test script
CN112433738B (en) Firmware update test method, system, equipment and medium
CN114900531B (en) Data synchronization method, device and system
CN112256554B (en) Method and equipment for testing based on scene test cases
CN115202843A (en) Data loading method and device

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