CN110928955A - Data interaction method and device, computer equipment and storage medium - Google Patents

Data interaction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110928955A
CN110928955A CN201911249800.6A CN201911249800A CN110928955A CN 110928955 A CN110928955 A CN 110928955A CN 201911249800 A CN201911249800 A CN 201911249800A CN 110928955 A CN110928955 A CN 110928955A
Authority
CN
China
Prior art keywords
data
sending
accounting
sender
packed
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.)
Granted
Application number
CN201911249800.6A
Other languages
Chinese (zh)
Other versions
CN110928955B (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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201911249800.6A priority Critical patent/CN110928955B/en
Publication of CN110928955A publication Critical patent/CN110928955A/en
Application granted granted Critical
Publication of CN110928955B publication Critical patent/CN110928955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a data interaction method, a data interaction device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a data resource acquisition request sent by a data receiver; determining target sending data according to the data resource acquisition request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data; registering the sender accounting data to a sender data resource directory, and sending the packed sending data to the data receiver; wherein the sender accounting data is used for the data receiver to check the received packed sending data. The technical scheme of the embodiment of the invention can ensure the reliability and accuracy of data interaction.

Description

Data interaction method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a data interaction method and device, computer equipment and a storage medium.
Background
With the development of technologies such as mobile internet, big data, cloud computing and 5G, various types of data platforms generate massive heterogeneous data resources, and frequent data interaction exists among the data platforms.
In the data interaction process among different data platforms, data failure conditions such as data loss, data abnormity, data error and the like often occur, the reliability and safety of data interaction are low, and a perfect guarantee mechanism is not established for the data failure in the conventional data interaction mode.
Disclosure of Invention
The embodiment of the invention provides a data interaction method, a data interaction device, computer equipment and a storage medium, so as to ensure the reliability and accuracy of data interaction.
In a first aspect, an embodiment of the present invention provides a data interaction method, including:
receiving a data resource acquisition request sent by a data receiver;
determining target sending data according to the data resource acquisition request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
registering the sender accounting data to a sender data resource directory, and sending the packed sending data to the data receiver;
wherein the sender accounting data is used for the data receiver to check the received packed sending data.
In a second aspect, an embodiment of the present invention further provides a data interaction method, including:
sending a data resource acquisition request to a data sender;
receiving the packed sending data sent by the data sending party, and acquiring sending party accounting data corresponding to the packed sending data;
calculating accounting data of a receiver according to the packed sending data;
checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to a checking result;
wherein, the receiver accounting data is used for the data sender to update the packed sending data.
In a third aspect, an embodiment of the present invention further provides a data interaction method, including:
a data receiving side sends a data resource acquisition request to a data sending side;
the data sender receives a data resource acquisition request sent by the data receiver and determines target sending data according to the data resource acquisition request;
the data sender carries out interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
the data sender registers the sender accounting data to a sender data resource directory and sends the packed sending data to the data receiver;
the data receiving party receives the packed sending data sent by the data sending party and obtains sending party accounting data corresponding to the packed sending data;
the data receiving party calculates accounting data of the receiving party according to the packed sending data;
the data receiver checks the packed sending data according to the sender accounting data and the receiver accounting data, and processes the packed sending data and the receiver accounting data according to the checking result;
and the data sending party updates the packed sending data according to the accounting data of the receiving party.
In a fourth aspect, an embodiment of the present invention further provides a data interaction apparatus, including:
a data resource acquisition request receiving module, configured to receive a data resource acquisition request sent by a data receiving party;
the interactive preprocessing data acquisition module is used for determining target sending data according to the data resource acquisition request and carrying out interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
the data registration sending module is used for registering the accounting data of the sender to a data resource directory of the sender and sending the packed sending data to the data receiver;
wherein the sender accounting data is used for the data receiver to check the received packed sending data.
In a fifth aspect, an embodiment of the present invention further provides a data interaction apparatus, including:
a data resource acquisition request sending module, configured to send a data resource acquisition request to a data sender;
the data receiving and acquiring module is used for receiving the packed sending data sent by the data sending party and acquiring sending party accounting data corresponding to the packed sending data;
the receiver accounting data calculation module is used for calculating receiver accounting data according to the packed sending data;
the data processing module is used for checking the packed sending data according to the sender billing data and the receiver billing data and processing the packed sending data and the receiver billing data according to the checking result;
wherein, the receiver accounting data is used for the data sender to update the packed sending data.
In a sixth aspect, an embodiment of the present invention further provides a data interaction system, including a data sending party and a data receiving party; wherein:
the data receiver is used for sending a data resource acquisition request to the data sender;
the data sender is used for receiving the data resource acquisition request, determining target sending data according to the data resource acquisition request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
the data sender is also used for registering the sender accounting data to a sender data resource directory and sending the packed sending data to the data receiver;
the data receiver is also used for receiving the packed sending data sent by the data sender and acquiring sender accounting data corresponding to the packed sending data; calculating accounting data of a receiver according to the packed sending data; checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to a checking result;
and the data sender is also used for updating the packed sending data according to the accounting data of the receiver.
In a seventh aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the data interaction method of any of the first aspects.
In an eighth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data interaction method described in any of the first aspects.
In a ninth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the data interaction method of any of the second aspects.
In a tenth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data interaction method described in any of the second aspects.
The embodiment of the invention determines the target sending data through the data sending party according to the data resource acquisition request sent by the data receiving party so as to carry out interactive preprocessing on the target sending data to obtain the data such as the packed sending data and the sender accounting data, registers the sender accounting data in the data resource directory of the sending party and sends the packed sending data to the data receiving party. The data receiving party can acquire sender accounting data corresponding to the packed sending data, calculate receiver accounting data according to the packed sending data, check the packed sending data according to the sender accounting data and the receiver accounting data, process the packed sending data and the receiver accounting data according to the checking result, and update the packed sending data according to the receiver accounting data, so that the problems of low data reliability and safety and the like in the existing data interaction mode are solved, and the reliability and accuracy of data interaction are guaranteed.
Drawings
Fig. 1 is a flowchart of a data interaction method according to an embodiment of the present invention;
fig. 2 is a flowchart of a data interaction method according to a second embodiment of the present invention;
fig. 3a is a flowchart of a data interaction method according to a third embodiment of the present invention;
fig. 3b is a schematic flowchart of a data interaction method according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a data interaction apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of a data interaction apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic diagram of a data interaction system according to a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a data interaction method according to an embodiment of the present invention, where the embodiment is applicable to a case where a data sender sends packed data to a data receiver and generates accounting data for the packed data, and the method may be performed by a data interaction device, which may be implemented by software and/or hardware, and may be generally integrated in a computer device and used in cooperation with the computer device for performing a data receiver function. Accordingly, as shown in fig. 1, the method comprises the following operations:
s110, receiving a data resource acquisition request sent by a data receiving party.
Wherein the data receiver may be a data platform for receiving data resources. The data resource acquisition request may be a request for acquiring a target data resource.
Firstly, the technical solution of the present embodiment is mainly applicable to such application scenarios: the data sender and the data receiver can store heterogeneous data resources, and data interaction can be realized between the data sender and the data receiver. The data sending party and the data receiving party may be any type of data platform, such as various types of big data platforms or information system data platforms, and the specific types of the data sending party and the data receiving party are not limited in the embodiments of the present invention. The data interaction may be a mutual data exchange between a data sender and a data receiver, or a unidirectional data interaction process in which a data sender sends interactive data to a data receiver, which is not limited in the embodiments of the present invention.
The data resources may interact in the form of data files. The data file formats may include, but are not limited to, XML (Extensible Markup Language), BCP (internet protocol data reduction), and ZIP (compressed file format). The ZIP file can adopt a standard non-compressed format to effectively organize data description files and entity files of data resources, wherein the data description files comprise a plurality of data description files in an XML or BCP format and entity files corresponding to data description. The file in XML and BCP format is called data description file, which can be used to organize and describe the data content of data resource, record partial structural data content information in data, and is the main carrier of data content. The entity file, also called an unstructured file, can be used for recording content information, such as web page text, e-mail text attachments, instant message chat content, network audio and video data, and the like. The data content of the unstructured file and the structured data content have self-completeness, that is, there is a correlation between the data content of the unstructured file and the structured data content.
In the embodiment of the present invention, the data sending party may receive the data resource obtaining request sent by the data receiving party, so as to send the target data resource required to be obtained by the data receiving party to the data receiving party according to the data resource obtaining request.
In an optional embodiment of the present invention, before receiving the data resource acquisition request sent by the data receiving side, the method may further include: and registering the local data resource to the data resource catalog of the sending party.
Wherein the data resource directory may be used for storing and updating data, optionally, the data resource directory stores and updates data including, but not limited to, data resources (data stored by the data platform) and/or billing data. The data resource catalog of the sending party is the data resource catalog maintained locally by the data sending party.
It should be noted that, the data update mode of the data resource directory (including the sender data resource directory and the receiver data resource directory) may be synchronous update by using the central data node as a media. Wherein the central data node may be adapted to store up-to-date data resources to be updated and/or accounting data. That is, the data sender and/or the data receiver may periodically send the data to be synchronously updated to the central data node. Meanwhile, when the data sender and/or the data receiver synchronously update data (such as local accounting data), the central data node can be regularly accessed to obtain the latest data information to be updated and synchronously update the data in the local data resource directory. That is, the data resource directories respectively maintained by the data sender and the data receiver can realize the unification of the whole network.
In the embodiment of the present invention, optionally, the data sender may register the local data resource in the sender data resource directory in advance. When the data receiver utilizes the central data node to synchronize the data resource catalog of the data receiver, the data transmitter with the target data resource required by the data transmitter can be determined.
It should be noted that the data receiver can also directly determine the data sender by a offline convention manner. If the data sender is determined by adopting an offline agreed mode, the data sender does not need to register the local data resources in the data resource catalog of the sender in advance.
S120, determining target sending data according to the data resource obtaining request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data.
The target sending data is the target data resource which the data receiver needs to obtain. The interactive preprocessing data is data obtained by the data sender through interactive preprocessing on the target sending data. The interactive preprocessing can comprise a packaging processing and a billing processing; the interactive pre-processing data may include packetized send data and sender accounting data. The packed sending data is the data obtained by packing the target sending data by the data sending party; the sender accounting data is data obtained by accounting processing of the data sender on the target sending data, and the accounting processing includes, but is not limited to, data fingerprint calculation, associated information statistics, and the like. The data fingerprint calculation is to encrypt the target transmission data, and the associated information includes, but is not limited to, an accounting date, an XML resource, a BCP resource, a total amount of data resources, and the like.
Correspondingly, after receiving the data resource acquisition request, the data sender can determine target sending data according to the data resource acquisition request, and perform packing processing and accounting processing on the target sending data to obtain packed sending data and sender accounting data.
In an optional embodiment of the present invention, the sender billing data comprises a data resource identifier, a data file name, an administrative division code, a billing date, an XML resource statistic, a BCP resource statistic, a data resource total amount, a data resource billing start date, a data resource billing end date, a data fingerprint type, a data fingerprint, and a reconciliation status; the reconciliation status may be an accounting status.
The data resource identifier can uniquely identify the data resource, the naming mode of the data resource identifier can be set according to actual requirements, and the embodiment of the invention does not limit the naming mode of the data resource identifier as long as the data resource identifier can be uniquely identified. The data file name is the name of the storage data resource file. The billing date is a date for performing billing processing on the target transmission data, and may be a time point or a time period, which is not limited in the embodiment of the present invention. The data resource accounting starting date is the accounting starting date, and correspondingly, the data resource accounting ending date is the accounting ending date. The data fingerprint type is the data encryption type, and the data fingerprint is the cipher text generated by encryption. The reconciliation status can be a different status of the accounting data.
Optionally, the data sending party may calculate information such as an XML resource statistic, a BCP resource statistic, a data resource total amount, a data fingerprint type, and a data fingerprint according to the information such as the statistics accounting date of the packed sending data, the accounting start date of the data resource, the accounting end date of the data resource, and generate corresponding sending party accounting data according to the statistics information and the calculated information.
Illustratively, the tie-up status may include, but is not limited to, an accounting status, and a failure status. The account checking state in the accounting data of the data sending party generated after the accounting processing is finished by the data sending party can be an accounting state; after the data receiver checks the received packed sending data, the generated account checking state of the accounting data of the receiver can be an account canceling state; after the data receiver checks the received packed sending data for errors, the generated account checking state of the accounting data of the receiver can be a failure state. Optionally, other reconciliation states may be set according to actual requirements, and the embodiment of the present invention does not limit the type and content of the reconciliation state.
S130, registering the sender accounting data to a sender data resource directory, and sending the packed sending data to the data receiver.
Wherein the sender accounting data is used for the data receiver to check the received packed sending data.
After the data sender obtains the packed sending data and the sender accounting data, the sender accounting data can be registered in the sender data resource directory for the data receiver to synchronously update the receiver data resource directory, and the packed sending data is sent to the data receiver, so that the data receiver performs subsequent operations such as storage after checking that the packed sending data is correct.
In an optional embodiment of the invention, the data resource acquisition request comprises a specified data storage location; sending the packed sending data to the data receiving side may include: and sending the packed sending data to the designated data storage position of the data receiver.
Wherein the designated data storage location may be a location for storing the packed transmission file by the data receiver.
In the embodiment of the present invention, the data resource acquisition request sent by the data receiver to the data sender may include a specified data storage location. After the data sending party packages the target sending data to obtain the packaged sending data, the packaged sending data can be sent to the specified data storage position of the data receiving party according to the data resource obtaining request including the specified data storage position.
It should be noted that the designated data storage location may also be pre-designated, that is, before data interaction is performed, the data sender and the data receiver may send the packet sending data according to the default designated data storage location.
In an optional embodiment of the present invention, after registering the sender accounting data in a sender data resource directory and sending the packed sending data to the data receiver, the method may further include: synchronizing the reconciliation state of the accounting data of the sender; if the account checking state after synchronization is an account cancellation state, deleting the target sending data; and if the account checking state after synchronization is a failure state, returning to execute interactive preprocessing on the target sending data to obtain the operation of interactive preprocessing data.
In the embodiment of the invention, the data sender can synchronize the reconciliation state in the accounting data of the sender. Specifically, the data sender may periodically access the central data node to obtain the latest receiver accounting data of the data receiver, and synchronously update the reconciliation state in the sender accounting data according to the latest receiver accounting data. Specifically, if the account checking state after synchronization is the account cancellation state, it indicates that the data receiving side checks and confirms that the packed and sent data is correct, that is, it is determined that the data failure conditions such as data loss, data abnormality, data error and the like do not occur in the packed and sent data. At this time, the data transmitting side may delete the target transmission data stored locally. If the account checking state after synchronization is a failure state, the data receiver is indicated to check and confirm that the packed sending data is wrong, namely, the data fault conditions of data loss, data abnormity, data error and the like of the packed sending data are determined. At this time, the data sender may return to perform the operation of performing the interactive preprocessing on the target sending data to obtain the interactive preprocessed data, so as to resend the packed sending data to the data sender.
According to the technical scheme of the embodiment, the data sending party determines the target sending data according to the data resource acquisition request sent by the data receiving party, and performs interactive preprocessing on the target sending data to obtain the packing processing and the accounting processing so as to register the accounting data of the sending party to the data resource directory of the sending party and send the packed sending data to the data receiving party, so that the data receiving party can check the received packed sending data according to the accounting data of the sending party, the problems of low data reliability and safety and the like in the existing data interaction mode are solved, and the reliability and the accuracy of data interaction are ensured.
Example two
Fig. 2 is a flowchart of a data interaction method according to a second embodiment of the present invention, which may be applied to a case where a data receiving side performs a verification process on packed data according to accounting data of a data sending side, and the method may be performed by a data interaction apparatus, which may be implemented by software and/or hardware, and may be generally integrated in a computer device and used in cooperation with a computer device for performing a function of the data sending side. Accordingly, as shown in fig. 2, the method includes the following operations:
s210, sending a data resource acquisition request to a data sending party.
Wherein, the data sender may be a data platform for sending data resources.
In the embodiment of the present invention, the data receiver may send a data resource acquisition request to the data sender, so that the data sender sends the target data resource that the data receiver needs to acquire according to the data resource acquisition request.
In an optional embodiment of the present invention, before sending the data resource acquisition request to the data sender, the method may further include: synchronizing a data resource catalog of a receiving party and determining a data sending party according to a synchronization result; and the data sending party locally stores the data sent by the target.
The data resource catalog of the receiver is a data resource catalog maintained locally by the data receiver.
In the embodiment of the invention, the data receiver can also locally maintain the data resource catalog of the receiver. The data receiver can periodically and synchronously update the data resource catalog of the receiver by using the central data node, so as to determine a data sender with required target data resources (namely target sending data) according to the synchronous result, and send a data resource acquisition request to the data sender.
S220, receiving the packed sending data sent by the data sending party, and obtaining sending party accounting data corresponding to the packed sending data.
Correspondingly, after the data receiver sends the data resource acquisition request to the data sender, the data sender can determine target sending data according to the data resource acquisition request, and perform packing processing and accounting processing on the target sending data to obtain packed sending data and sender accounting data. Then, the data sender may register the sender accounting data in the sender data resource directory, so that the data receiver may update the receiver data resource directory synchronously, and send the packed sending data to the data receiver, and the data receiver may receive the packed sending data and check the packed sending data.
In an optional embodiment of the present invention, obtaining sender accounting data corresponding to the packed sending data may include: and periodically synchronizing the data resource catalog of the receiving party to acquire the accounting data of the sending party corresponding to the packed sending data.
Optionally, the data receiving party may periodically access the central data node to obtain the latest accounting data of the sending party of the data sending party, and synchronously update the data resource directory of the receiving party according to the latest accounting data of the sending party, so as to obtain the accounting data of the sending party corresponding to the packed sending data. Specifically, the data receiving side may query, according to the received data file name of the packed transmission file, sender accounting data registered by the data sending side and stored in the central data node, and the sender accounting data is matched with the data file name, so as to obtain sender accounting data corresponding to the packed transmission data.
And S230, calculating accounting data of the receiving party according to the packed sending data.
The receiver accounting data is data obtained by the data receiver performing accounting processing on the packed and sent data, and the accounting processing includes, but is not limited to, data fingerprint calculation, associated information statistics and the like. The data fingerprint calculation is to encrypt the target transmission data, and the associated information includes, but is not limited to, an accounting date, an XML resource, a BCP resource, a total amount of data resources, and the like.
When checking the packed sending data, the data receiver can calculate accounting data of the receiver according to the received packed sending data.
In an optional embodiment of the present invention, the recipient billing data may include a data resource identifier, a data file name, an administrative division code, a billing date, an XML resource statistic, a BCP resource statistic, a total amount of data resources, a data resource billing start date, a data resource billing end date, a data fingerprint type, a data fingerprint, and a reconciliation status.
Optionally, the data receiving party may count information such as a billing date, a data resource billing start date, and a data resource billing end date according to the received packed sending data, and calculate information such as XML resource statistics, BCP resource statistics, a total amount of data resources, a data fingerprint type, and a data fingerprint, so as to generate corresponding receiving party billing data according to the statistical information and the calculated information.
S240, checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to the checking result.
Specifically, the data receiving side may check the packed transmission data according to the calculated receiver accounting data and the acquired sender accounting data, and perform subsequent processing on the packed transmission data and the receiver accounting data according to a result of the check. The receiver accounting data calculated by the data receiver can also be used for updating the packet transmission data by the data transmitter.
In an optional embodiment of the present invention, the processing the packed transmission data and the recipient accounting data according to the checking result may include: if the checking result is that the account checking is successful, the packed sending data is stored, and the account checking state of the accounting data of the receiving party is changed into an account cancellation state; and if not, deleting the packed sending data and changing the account checking state of the accounting data of the receiving party into a failure state.
Wherein, the successful account checking can indicate that the packed sending data is checked without error. Correspondingly, the accounting cancellation state can represent the state of accounting data after the error of the packed sending data is checked; the failure status may represent the status of the accounting data after checking for errors in the packet transmission data.
Specifically, if the data receiving side determines that the accounting data of the sending side is consistent with the accounting data of the receiving side, it can be determined that the packed sending data is correct to check, and data failure conditions such as data loss, data abnormality and data error do not occur in the packed sending data, that is, the checking result is successful to check account. At this time, the data receiving party may store the packed sending data to perform subsequent processing on the packed sending data, and change the reconciliation state of the accounting data of the receiving party into the cancellation state. If the data receiving party determines that the accounting data of the sending party is inconsistent with the accounting data of the receiving party, the data receiving party can determine that the packed sending data is checked wrongly, and data failure conditions such as data loss, data abnormity or data error occur, namely the checking result is account checking failure. At this time, the data receiving side may delete the packed sending data with data failure, and change the reconciliation state of the accounting data of the receiving side to a failure state. Optionally, whether the sender billing data and the receiver billing data are consistent or not is determined, and whether all the billing dates, data resource billing start dates, data resource billing end dates, calculation XML resource statistics, BCP resource statistics, data resource total amounts, data fingerprint types, data fingerprints and the like included in the sender billing data and the receiver billing data are consistent or not can be determined respectively.
Optionally, after processing the packed sending data and the receiving-side accounting data according to the checking result, the method may further include: and registering the accounting data of the receiving party to the data resource directory of the receiving party.
In order to enable the data sender to synchronously acquire the accounting data of the receiver, the data receiver can register the accounting data of the receiver into a data resource directory of the receiver after generating the accounting data of the receiver and processing the packed sending data and the accounting data of the receiver according to the checking result of the packed sending data.
According to the technical scheme of the embodiment, the data receiving party calculates the accounting data of the receiving party according to the packed sending data sent by the data sending party, and obtains the accounting data of the sending party corresponding to the packed sending data, so that the packed sending data is checked according to the accounting data of the sending party and the accounting data of the receiving party, and the packed sending data and the accounting data of the receiving party are processed according to the checking result, the problems of low data reliability and safety and the like in the existing data interaction mode are solved, and the reliability and accuracy of data interaction are guaranteed.
EXAMPLE III
Fig. 3a is a flowchart of a data interaction method according to a third embodiment of the present invention, which is applicable to a case where a data sender and a data receiver perform data interaction according to accounting data. Accordingly, as shown in fig. 3a, the method comprises the following operations:
s310, the data receiving side sends a data resource acquisition request to a data sending side.
Optionally, before the data receiving side receives the data resource acquisition request sent by the data receiving side, the method may further include: and the data sender registers the local data resource to the data resource catalog of the sender. The data receiver synchronizes the data resource catalog of the receiver and determines the data transmitter according to the synchronization result; and the data sending party locally stores the data sent by the target.
S320, the data sender receives the data resource acquisition request sent by the data receiver and determines target sending data according to the data resource acquisition request.
S330, the data sender carries out interactive preprocessing on the target sending data to obtain interactive preprocessing data.
Wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data.
Optionally, the sender billing data includes a data resource identifier, a data file name, an administrative division code, a billing date, XML resource statistics, BCP resource statistics, a total amount of data resources, a data resource billing start date, a data resource billing end date, a data fingerprint type, a data fingerprint, and a reconciliation status; the account checking state is an accounting state.
S340, the data sender registers the sender accounting data to a sender data resource directory and sends the packed sending data to the data receiver.
Optionally, the data resource obtaining request includes a specified data storage location; the sending of the data packet to the receiving side by the data sender may include: and the data sending party sends the packed sending data to the specified data storage position of the data receiving party.
And S350, the data receiving party receives the packed sending data sent by the data sending party and obtains sending party accounting data corresponding to the packed sending data.
Optionally, the obtaining, by the data receiving side, the sender accounting data corresponding to the packed sending data may include: and periodically synchronizing the data resource catalog of the receiving party to acquire the accounting data of the sending party corresponding to the packed sending data.
And S360, the data receiving party calculates accounting data of the receiving party according to the packed sending data.
Optionally, the receiver billing data includes a data resource identifier, a data file name, an administrative division code, a billing date, XML resource statistics, BCP resource statistics, a total amount of data resources, a data resource billing start date, a data resource billing end date, a data fingerprint type, a data fingerprint, and a reconciliation status.
S370, the data receiving party checks the packed sending data according to the sender accounting data and the receiving party accounting data, and processes the packed sending data and the receiving party accounting data according to the checking result.
Optionally, the processing, by the data receiving side, of the packed sending data and the receiving side billing data according to the checking result may include: if the checking result is that the account checking is successful, the packed sending data is stored, and the account checking state of the accounting data of the receiving party is changed into an account cancellation state; and if not, deleting the packed sending data and changing the account checking state of the accounting data of the receiving party into a failure state.
And S380, the data sending party updates the packed sending data according to the accounting data of the receiving party.
Optionally, the updating, by the data sender, the packed sending data according to the receiver accounting data may include: synchronizing the reconciliation state of the accounting data of the sender; if the account checking state after synchronization is an account cancellation state, deleting the target sending data; and if the account checking state after synchronization is a failure state, returning to execute interactive preprocessing on the target sending data to obtain the operation of interactive preprocessing data.
Fig. 3b is a schematic flowchart of a data interaction method according to a third embodiment of the present invention, and in a specific example, as shown in fig. 3b, a data sending party may register a local data resource in a data resource directory (not shown in fig. 3 b) of the sending party, and a data receiving party may synchronize the data resource directory of the receiving party, and send a data resource acquisition request to the data sending party after querying that the data sending party has a target data resource required by itself. And after receiving the data resource acquisition request, the data sender packs the target data resource according to the standard format, performs accounting, and generates packed sending data and sender accounting data. Then, the data sender can register the sender billing data to the sender data resource directory, that is, the data sender registers the bill, and at this time, the reconciliation state of the sender billing data corresponding to the target data resource is the billing state. And the data sending party transmits the packed sending data to a specified data storage position of the data receiving party through a data transmission channel. The data receiver can periodically and synchronously update the data resource catalog of the receiver to acquire the account checking information of the target data resource: sender accounting data. After the data receiver receives the packed sending data sent by the data sender, calculating the bill information of the packed sending data: and accounting data of the receiving party and accounting data of the sending party synchronized with the data sending party are checked. If the account checking of the data receiver is successful, the account checking is put into a warehouse, namely the packed sending data is stored, and the bill state of the accounting data of the receiver is the account cancellation state; and if the account checking fails, deleting the packed sending data, and updating the bill state of the accounting data of the receiver into a failure state. And the data sending party synchronizes the bill state of the accounting data of the receiving party, deletes the local target data resource in the account canceling state, and resends the packed sending data in the failure state.
The embodiment of the invention determines the target sending data through the data sending party according to the data resource acquisition request sent by the data receiving party so as to carry out interactive preprocessing on the target sending data to obtain the data such as the packed sending data and the sender accounting data, registers the sender accounting data in the data resource directory of the sending party and sends the packed sending data to the data receiving party. The data receiving party can acquire sender accounting data corresponding to the packed sending data, calculate receiver accounting data according to the packed sending data, check the packed sending data according to the sender accounting data and the receiver accounting data, process the packed sending data and the receiver accounting data according to the checking result, and update the packed sending data according to the receiver accounting data, so that the problems of low data reliability and safety and the like in the existing data interaction mode are solved, and the reliability and accuracy of data interaction are guaranteed.
It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
Example four
Fig. 4 is a schematic diagram of a data interaction apparatus according to a fourth embodiment of the present invention, and as shown in fig. 4, the apparatus includes: a data resource acquisition request receiving module 410, an interactive preprocessing data acquisition module 420 and a data registration sending module 430, wherein:
a data resource obtaining request receiving module 410, configured to receive a data resource obtaining request sent by a data receiving side;
an interactive preprocessing data obtaining module 420, configured to determine target sending data according to the data resource obtaining request, and perform interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
a data registration sending module 430, configured to register the sender accounting data in a sender data resource directory, and send the packed sending data to the data receiver;
wherein the sender accounting data is used for the data receiver to check the received packed sending data.
According to the technical scheme of the embodiment, the data sending party determines the target sending data according to the data resource acquisition request sent by the data receiving party, and performs interactive preprocessing on the target sending data to obtain the packing processing and the accounting processing so as to register the accounting data of the sending party to the data resource directory of the sending party and send the packed sending data to the data receiving party, so that the data receiving party can check the received packed sending data according to the accounting data of the sending party, the problems of low data reliability and safety and the like in the existing data interaction mode are solved, and the reliability and the accuracy of data interaction are ensured.
Optionally, the apparatus further comprises: and the data resource registration module is used for registering the local data resources to the data resource catalog of the sender.
Optionally, the data resource obtaining request includes a specified data storage location; a data registration sending module 430, configured to send the packed sending data to the specified data storage location of the data receiving party.
Optionally, the sender billing data includes a data resource identifier, a data file name, an administrative division code, a billing date, XML resource statistics, BCP resource statistics, a total amount of data resources, a data resource billing start date, a data resource billing end date, a data fingerprint type, a data fingerprint, and a reconciliation status; the account checking state is an accounting state.
Optionally, the apparatus further comprises: the account checking state synchronization module is used for synchronizing the account checking state of the accounting data of the sender; the target sending data deleting module is used for deleting the target sending data if the account checking state after synchronization is an account cancellation state; and the return execution module is used for returning and executing the interactive preprocessing of the target sending data to obtain the operation of interactive preprocessing data if the account checking state after synchronization is a failure state.
The data interaction device can execute the data interaction method provided by the first embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technology that are not described in detail in this embodiment, reference may be made to the data interaction method provided in the first embodiment of the present invention.
Since the data interaction device described above is a device capable of executing the data interaction method in the first embodiment of the present invention, based on the data interaction method described in the first embodiment of the present invention, a person skilled in the art can understand the specific implementation manner of the data interaction device in the present embodiment and various variations thereof, and therefore, how the data interaction device implements the data interaction method in the first embodiment of the present invention is not described in detail herein. As long as the device used by those skilled in the art to implement the data interaction method in the first embodiment of the present invention falls within the scope of the present application.
EXAMPLE five
Fig. 5 is a schematic diagram of a data interaction apparatus according to a fifth embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a data resource obtaining request sending module 510, a data receiving obtaining module 520, a receiving party billing data calculating module 530 and a data processing module 540, wherein:
a data resource obtaining request sending module 510, configured to send a data resource obtaining request to a data sender;
a data receiving and acquiring module 520, configured to receive the packed sending data sent by the data sender, and acquire sender accounting data corresponding to the packed sending data;
a receiver accounting data calculation module 530, configured to calculate receiver accounting data according to the packed sending data;
a data processing module 540, configured to check the packed sending data according to the sender billing data and the receiver billing data, and process the packed sending data and the receiver billing data according to a check result;
wherein, the receiver accounting data is used for the data sender to update the packed sending data.
According to the technical scheme of the embodiment, the data receiving party calculates the accounting data of the receiving party according to the packed sending data sent by the data sending party, and obtains the accounting data of the sending party corresponding to the packed sending data, so that the packed sending data is checked according to the accounting data of the sending party and the accounting data of the receiving party, and the packed sending data and the accounting data of the receiving party are processed according to the checking result, the problems of low data reliability and safety and the like in the existing data interaction mode are solved, and the reliability and accuracy of data interaction are guaranteed.
Optionally, the apparatus further comprises: the data sender determining module is used for synchronizing the data resource catalog of the receiver and determining the data sender according to the synchronizing result; and the data sending party locally stores the data sent by the target.
Optionally, the data receiving and acquiring module 520 is specifically configured to synchronize the data resource directory of the receiving party periodically to acquire sender accounting data corresponding to the packed sending data.
Optionally, the receiver billing data includes a data resource identifier, a data file name, an administrative division code, a billing date, XML resource statistics, BCP resource statistics, a total amount of data resources, a data resource billing start date, a data resource billing end date, a data fingerprint type, a data fingerprint, and a reconciliation status.
Optionally, the data processing module 540 is specifically configured to, if the checking result is that the checking is successful, store the packed sending data, and change the checking state of the receiver accounting data to an account cancellation state; and if not, deleting the packed sending data and changing the account checking state of the accounting data of the receiving party into a failure state.
The data interaction device can execute the data interaction method provided by the second embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the data interaction method provided in the second embodiment of the present invention, reference may be made to the technical details not described in detail in the present embodiment.
Since the data interaction device described above is a device capable of executing the data interaction method in the second embodiment of the present invention, based on the data interaction method described in the second embodiment of the present invention, a person skilled in the art can understand the specific implementation manner of the data interaction device in the present embodiment and various variations thereof, and therefore, how to implement the data interaction method in the second embodiment of the present invention by the data interaction device is not described in detail herein. As long as the device used by those skilled in the art to implement the data interaction method in the second embodiment of the present invention belongs to the protection scope of the present application.
EXAMPLE six
Fig. 6 is a schematic diagram of a data interaction system according to a sixth embodiment of the present invention, and as shown in fig. 6, the system includes: a data sender 610 and a data receiver 620, wherein:
the data receiver 620 is configured to send a data resource acquisition request to the data sender;
the data sender 610 is configured to receive the data resource acquisition request, determine target sending data according to the data resource acquisition request, and perform interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
the data sender 610 is further configured to register the sender accounting data in a sender data resource directory, and send the packed sending data to the data receiver;
the data receiver 620 is further configured to receive the packed transmission data sent by the data sender, and obtain sender accounting data corresponding to the packed transmission data; calculating accounting data of a receiver according to the packed sending data; checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to a checking result;
the data sender 610 is further configured to update the packet-sent data according to the receiver accounting data.
The embodiment of the invention determines the target sending data through the data sending party according to the data resource acquisition request sent by the data receiving party so as to carry out interactive preprocessing on the target sending data to obtain the data such as the packed sending data and the sender accounting data, registers the sender accounting data in the data resource directory of the sending party and sends the packed sending data to the data receiving party. The data receiving party can acquire sender accounting data corresponding to the packed sending data, calculate receiver accounting data according to the packed sending data, check the packed sending data according to the sender accounting data and the receiver accounting data, process the packed sending data and the receiver accounting data according to the checking result, and update the packed sending data according to the receiver accounting data, so that the problems of low data reliability and safety and the like in the existing data interaction mode are solved, and the reliability and accuracy of data interaction are guaranteed.
EXAMPLE seven
Fig. 7 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 7 illustrates a block diagram of a computer device 712 suitable for use to implement embodiments of the present invention. The computer device 712 shown in fig. 7 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention. Computer device 712 is typically a computing device that assumes the functionality of a data sender.
As shown in fig. 7, computer device 712 is embodied in the form of a general purpose computing device. Components of computer device 712 may include, but are not limited to: one or more processors 716, a storage device 728, and a bus 718 that couples the various system components (including the storage device 728 and the processors 716).
Bus 718 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 712 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 712 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 728 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 730 and/or cache Memory 732. Computer device 712 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 734 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 718 by one or more data media interfaces. Storage 728 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 736 having a set (at least one) of program modules 726, which may include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, storage 728. Program modules 726 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
Computer device 712 may also communicate with one or more external devices 714 (e.g., keyboard, pointing device, camera, display 724, etc.), with one or more devices that enable a user to interact with computer device 712, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 712 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 722. Further, computer device 712 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 720. As shown, network adapter 720 communicates with the other modules of computer device 712 via bus 718. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with computer device 712, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 716 executes various functional applications and data processing by executing programs stored in the storage device 728, for example, to implement the data interaction method provided by the above-described embodiment of the present invention.
That is, the processing unit implements, when executing the program: receiving a data resource acquisition request sent by a data receiver; determining target sending data according to the data resource acquisition request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data; registering the sender accounting data to a sender data resource directory, and sending the packed sending data to the data receiver; wherein the sender accounting data is used for the data receiver to check the received packed sending data.
Example eight
An eighth embodiment of the present invention is an apparatus for executing the data interaction method provided by the second embodiment of the present invention, where the apparatus is typically a computing apparatus that bears a function of a data receiving party, and the apparatus includes: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the data interaction method provided by the second embodiment of the invention: sending a data resource acquisition request to a data sender; receiving the packed sending data sent by the data sending party, and acquiring sending party accounting data corresponding to the packed sending data; calculating accounting data of a receiver according to the packed sending data; checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to a checking result; wherein, the receiver accounting data is used for the data sender to update the packed sending data. The specific structure and the details thereof can be referred to fig. 7 and the seventh embodiment.
Example nine
An embodiment ninth of the present invention further provides a computer storage medium storing a computer program, where the computer program is used to execute the data interaction method according to any one of the above embodiments of the present invention when executed by a computer processor: receiving a data resource acquisition request sent by a data receiver; determining target sending data according to the data resource acquisition request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data; registering the sender accounting data to a sender data resource directory, and sending the packed sending data to the data receiver; wherein the sender accounting data is used for the data receiver to check the received packed sending data.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Example ten
An embodiment tenth 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, can implement the data interaction method described in the second embodiment: sending a data resource acquisition request to a data sender; receiving the packed sending data sent by the data sending party, and acquiring sending party accounting data corresponding to the packed sending data; calculating accounting data of a receiver according to the packed sending data; checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to a checking result; wherein, the receiver accounting data is used for the data sender to update the packed sending data. The details thereof are described with reference to example nine.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (16)

1. A method for data interaction, comprising:
receiving a data resource acquisition request sent by a data receiver;
determining target sending data according to the data resource acquisition request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
registering the sender accounting data to a sender data resource directory, and sending the packed sending data to the data receiver;
wherein the sender accounting data is used for the data receiver to check the received packed sending data.
2. The method of claim 1, before receiving the data resource acquisition request sent by the data receiver, further comprising:
and registering the local data resource to the data resource catalog of the sending party.
3. The method of claim 1, wherein the data resource acquisition request includes a specified data storage location;
sending the packed sending data to the data receiver, including:
and sending the packed sending data to the designated data storage position of the data receiver.
4. The method of any of claims 1-3, wherein the sender billing data comprises data resource identifiers, data file names, administrative division codes, billing dates, XML resource statistics, BCP resource statistics, total amount of data resources, data resource billing start dates, data resource billing end dates, data fingerprint types, data fingerprints, and reconciliation status;
the account checking state is an accounting state.
5. The method of claim 4, further comprising, after registering the sender billing data with a sender data resource directory and sending the packetized send data to the data recipient:
synchronizing the reconciliation state of the accounting data of the sender;
if the account checking state after synchronization is an account cancellation state, deleting the target sending data;
and if the account checking state after synchronization is a failure state, returning to execute interactive preprocessing on the target sending data to obtain the operation of interactive preprocessing data.
6. A method for data interaction, comprising:
sending a data resource acquisition request to a data sender;
receiving the packed sending data sent by the data sending party, and acquiring sending party accounting data corresponding to the packed sending data;
calculating accounting data of a receiver according to the packed sending data;
checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to a checking result;
wherein, the receiver accounting data is used for the data sender to update the packed sending data.
7. The method of claim 6, further comprising, before sending the data resource acquisition request to the data sender:
synchronizing a data resource catalog of a receiving party and determining a data sending party according to a synchronization result;
and the data sending party locally stores the data sent by the target.
8. The method of claim 6, wherein obtaining sender accounting data corresponding to the packed sending data comprises:
and periodically synchronizing the data resource catalog of the receiving party to acquire the accounting data of the sending party corresponding to the packed sending data.
9. The method of any of claims 6-8, wherein the recipient billing data comprises a data resource identifier, a data file name, an administrative division code, a billing date, an XML resource statistic, a BCP resource statistic, a total amount of data resources, a data resource billing start date, a data resource billing end date, a data fingerprint type, a data fingerprint, and a reconciliation status.
10. The method of claim 9, wherein processing the packetized transmission data and the receiver billing data based on the result of the reconciliation comprises:
if the checking result is that the account checking is successful, the packed sending data is stored, and the account checking state of the accounting data of the receiving party is changed into an account cancellation state;
and if not, deleting the packed sending data and changing the account checking state of the accounting data of the receiving party into a failure state.
11. A method for data interaction, comprising:
a data receiving side sends a data resource acquisition request to a data sending side;
the data sender receives a data resource acquisition request sent by the data receiver and determines target sending data according to the data resource acquisition request;
the data sender carries out interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
the data sender registers the sender accounting data to a sender data resource directory and sends the packed sending data to the data receiver;
the data receiving party receives the packed sending data sent by the data sending party and obtains sending party accounting data corresponding to the packed sending data;
the data receiving party calculates accounting data of the receiving party according to the packed sending data;
the data receiver checks the packed sending data according to the sender accounting data and the receiver accounting data, and processes the packed sending data and the receiver accounting data according to the checking result;
and the data sending party updates the packed sending data according to the accounting data of the receiving party.
12. A data interaction device, comprising:
a data resource acquisition request receiving module, configured to receive a data resource acquisition request sent by a data receiving party;
the interactive preprocessing data acquisition module is used for determining target sending data according to the data resource acquisition request and carrying out interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
the data registration sending module is used for registering the accounting data of the sender to a data resource directory of the sender and sending the packed sending data to the data receiver;
wherein the sender accounting data is used for the data receiver to check the received packed sending data.
13. A data interaction device, comprising:
a data resource acquisition request sending module, configured to send a data resource acquisition request to a data sender;
the data receiving and acquiring module is used for receiving the packed sending data sent by the data sending party and acquiring sending party accounting data corresponding to the packed sending data;
the receiver accounting data calculation module is used for calculating receiver accounting data according to the packed sending data;
the data processing module is used for checking the packed sending data according to the sender billing data and the receiver billing data and processing the packed sending data and the receiver billing data according to the checking result;
wherein, the receiver accounting data is used for the data sender to update the packed sending data.
14. A data interaction system is characterized by comprising a data sending party and a data receiving party; wherein:
the data receiver is used for sending a data resource acquisition request to the data sender;
the data sender is used for receiving the data resource acquisition request, determining target sending data according to the data resource acquisition request, and performing interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein the interactive preprocessing comprises packaging processing and accounting processing; the interactive preprocessing data comprises packed sending data and sender accounting data;
the data sender is also used for registering the sender accounting data to a sender data resource directory and sending the packed sending data to the data receiver;
the data receiver is also used for receiving the packed sending data sent by the data sender and acquiring sender accounting data corresponding to the packed sending data; calculating accounting data of a receiver according to the packed sending data; checking the packed sending data according to the sender accounting data and the receiver accounting data, and processing the packed sending data and the receiver accounting data according to a checking result;
and the data sender is also used for updating the packed sending data according to the accounting data of the receiver.
15. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data interaction method as claimed in any one of claims 1-5, or to implement a data interaction method as claimed in any one of claims 6-10.
16. A computer storage medium having a computer program stored thereon, the program, when being executed by a processor, implementing a data interaction method as claimed in any one of claims 1 to 5, or implementing a data interaction method as claimed in any one of claims 6 to 10.
CN201911249800.6A 2019-12-09 2019-12-09 Data interaction method and device, computer equipment and storage medium Active CN110928955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911249800.6A CN110928955B (en) 2019-12-09 2019-12-09 Data interaction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911249800.6A CN110928955B (en) 2019-12-09 2019-12-09 Data interaction method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110928955A true CN110928955A (en) 2020-03-27
CN110928955B CN110928955B (en) 2022-11-15

Family

ID=69858454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911249800.6A Active CN110928955B (en) 2019-12-09 2019-12-09 Data interaction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110928955B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364040A (en) * 2020-12-01 2021-02-12 北京锐安科技有限公司 Data correction method, device, medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137027A (en) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 Reliable data transmission method and device thereof
CN103685145A (en) * 2012-09-03 2014-03-26 中国银联股份有限公司 Security information interaction system, security information interaction device and security information interaction method
CN105721895A (en) * 2014-12-02 2016-06-29 北京天籁传音数字技术有限公司 Data interaction method and data interaction system
US9412103B1 (en) * 2012-10-29 2016-08-09 Intuit Inc. Methods systems and computer program products for managing access to customer data
CN107395600A (en) * 2017-07-25 2017-11-24 金在(北京)金融信息服务有限公司 Business datum verification method, service platform and mobile terminal
CN109885412A (en) * 2019-01-23 2019-06-14 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium based on H5
CN109995527A (en) * 2019-04-12 2019-07-09 上海巨微集成电路有限公司 Code key exchange method, device, host computer, slave computer and storage medium
CN110245504A (en) * 2019-05-20 2019-09-17 阿里巴巴集团控股有限公司 The receipt storage method and node limited in conjunction with the condition of polymorphic type dimension

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137027A (en) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 Reliable data transmission method and device thereof
CN103685145A (en) * 2012-09-03 2014-03-26 中国银联股份有限公司 Security information interaction system, security information interaction device and security information interaction method
US9412103B1 (en) * 2012-10-29 2016-08-09 Intuit Inc. Methods systems and computer program products for managing access to customer data
CN105721895A (en) * 2014-12-02 2016-06-29 北京天籁传音数字技术有限公司 Data interaction method and data interaction system
CN107395600A (en) * 2017-07-25 2017-11-24 金在(北京)金融信息服务有限公司 Business datum verification method, service platform and mobile terminal
CN109885412A (en) * 2019-01-23 2019-06-14 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium based on H5
CN109995527A (en) * 2019-04-12 2019-07-09 上海巨微集成电路有限公司 Code key exchange method, device, host computer, slave computer and storage medium
CN110245504A (en) * 2019-05-20 2019-09-17 阿里巴巴集团控股有限公司 The receipt storage method and node limited in conjunction with the condition of polymorphic type dimension

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112364040A (en) * 2020-12-01 2021-02-12 北京锐安科技有限公司 Data correction method, device, medium and electronic equipment
CN112364040B (en) * 2020-12-01 2024-05-10 北京锐安科技有限公司 Data checking method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN110928955B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN108923908B (en) Authorization processing method, device, equipment and storage medium
CN109522363B (en) Cloud platform synchronization method, system, equipment and storage medium based on block chain
CN109818962B (en) Service data processing method and device, electronic equipment and storage medium
CN103428627A (en) Method for transferring data in internet of things, internet of things system and corresponding device
CN110554930B (en) Data storage method and related equipment
CN108920257B (en) Transaction processing method, device, equipment and storage medium
CN111158933A (en) Distributed transaction processing method and system based on message queue
CN110969417B (en) Government affair item synchronization method, device, system, computer equipment and storage medium
CN113760565A (en) Data processing platform, data processing method, storage medium and electronic equipment
CN106603635B (en) A kind of platform data remote backup method
US20220382637A1 (en) Snapshotting hardware security modules and disk metadata stores
CN111338834B (en) Data storage method and device
CN114531289A (en) System interaction method based on artificial intelligence and related equipment
CN110928955B (en) Data interaction method and device, computer equipment and storage medium
CN101022473A (en) Method for automatic, identifying plate card configration and generating local data in exchanger
CN111679892A (en) Distributed transaction processing method, device, equipment and medium
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN102523205A (en) Determination method and device for content checksum
CN104022948A (en) Type X message transmission system and method
CN114202332A (en) Digital currency wallet management method, device and system
CN110750424B (en) Resource inspection method and device
CN113283891A (en) Information processing method and device and electronic equipment
CN112256714A (en) Data synchronization method and device, electronic equipment and computer readable medium
CN111552907A (en) Message processing method, device, equipment and storage medium
CN113133107B (en) Method and device for synchronizing information

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