CN110928955B - A data interaction method, device, computer equipment and storage medium - Google Patents
A data interaction method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110928955B CN110928955B CN201911249800.6A CN201911249800A CN110928955B CN 110928955 B CN110928955 B CN 110928955B CN 201911249800 A CN201911249800 A CN 201911249800A CN 110928955 B CN110928955 B CN 110928955B
- Authority
- CN
- China
- Prior art keywords
- data
- sender
- receiver
- packaged
- accounting
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/215—Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
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)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种数据交互方法、装置、计算机设备及存储介质,方法包括:接收数据接收方发送的数据资源获取请求;根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;其中,所述发送方记账数据用于所述数据接收方对接收的所述打包发送数据进行核对。本发明实施例的技术方案能够保证数据交互的可靠性和准确性。
The embodiment of the present invention discloses a data interaction method, device, computer equipment, and storage medium. The method includes: receiving a data resource acquisition request sent by a data receiver; determining a target to send data according to the data resource acquisition request, and Interaction preprocessing is performed on the target sending data to obtain interactive preprocessing data; wherein, the interactive preprocessing includes packaging processing and accounting processing; the interactive preprocessing data includes packaging sending data and sender accounting data; the sending Registering the billing data of the sending party to the sender's data resource directory, and sending the packaged sending data to the data receiver; wherein, the sending party's billing data is used by the data receiver to receive the packaged sending The data is checked. The technical solutions of the embodiments of the present invention can ensure the reliability and accuracy of data interaction.
Description
技术领域technical field
本发明实施例涉及数据处理技术领域,尤其涉及一种数据交互方法、装置、计算机设备及存储介质。The embodiments of the present invention relate to the technical field of data processing, and in particular, to a data interaction method, device, computer equipment, and storage medium.
背景技术Background technique
随着移动互联网、大数据、云计算及5G等技术的发展,各种类型的数据平台产生了海量异构的数据资源,各数据平台之间存在频繁的数据交互。With the development of technologies such as mobile Internet, big data, cloud computing, and 5G, various types of data platforms have generated massive heterogeneous data resources, and there are frequent data interactions between various data platforms.
在不同数据平台之间的数据交互过程中,经常出现数据丢失、数据异常和数据错误等数据故障情况,数据交互的可靠性和安全性较低,且现有的数据交互方式并没有针对上述数据故障制定完善的保障机制。In the process of data interaction between different data platforms, data failures such as data loss, data anomalies, and data errors often occur. The reliability and security of data interaction are low, and the existing data interaction methods do not address the above data. Failure to develop a sound protection mechanism.
发明内容Contents of the invention
本发明实施例提供一种数据交互方法、装置、计算机设备及存储介质,以保证数据交互的可靠性和准确性。Embodiments of the present invention provide a data interaction method, device, computer equipment, and storage medium to ensure the reliability and accuracy of data interaction.
第一方面,本发明实施例提供了一种数据交互方法,包括:In the first aspect, the embodiment of the present invention provides a data interaction method, including:
接收数据接收方发送的数据资源获取请求;Receive the data resource acquisition request sent by the data receiver;
根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;Determine the 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 includes packaging processing and accounting processing; the interactive preprocessing Data includes packaged sending data and sender accounting data;
将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;registering the sender accounting data in the sender data resource directory, and sending the packaged sending data to the data receiver;
其中,所述发送方记账数据用于所述数据接收方对接收的所述打包发送数据进行核对。Wherein, the sender accounting data is used by the data receiver to check the received packaged sending data.
第二方面,本发明实施例还提供了一种数据交互方法,包括:In the second aspect, the embodiment of the present invention also provides a data interaction method, including:
向数据发送方发送数据资源获取请求;Send a data resource acquisition request to the data sender;
接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;receiving the packaged sending data sent by the data sender, and acquiring the sender accounting data corresponding to the packaged sending data;
根据所述打包发送数据计算接收方记账数据;calculating the receiver's billing data according to the packaged and sent data;
根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;Checking the packaged and sent data according to the accounting data of the sender and the accounting data of the receiver, and processing the packaged and sent data and the accounting data of the receiver according to the checking result;
其中,所述接收方记账数据用于所述数据发送方对所述打包发送数据进行更新处理。Wherein, the accounting data of the receiver is used for the data sender to update the packaged and sent data.
第三方面,本发明实施例还提供了一种数据交互方法,包括:In the third aspect, the embodiment of the present invention also provides a data interaction method, including:
数据接收方向数据发送方发送数据资源获取请求;The data receiver sends a data resource acquisition request to the data sender;
所述数据发送方接收所述数据接收方发送的数据资源获取请求,并根据所述数据资源获取请求确定目标发送数据;The data sender receives the data resource acquisition request sent by the data receiver, and determines the target sending data according to the data resource acquisition request;
所述数据发送方对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;The data sender performs interactive preprocessing on the target sending data to obtain interactive preprocessing data; wherein, the interactive preprocessing includes packaging processing and accounting processing; the interactive preprocessing data includes packaging and sending data and sender accounting data;
所述数据发送方将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;The data sender registers the sender's billing data in the sender's data resource directory, and sends the packaged sending data to the data receiver;
所述数据接收方接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;The data receiver receives the packaged data sent by the data sender, and obtains the sender accounting data corresponding to the packaged data;
所述数据接收方根据所述打包发送数据计算接收方记账数据;The data receiver calculates the receiver's accounting data according to the packaged and sent data;
所述数据接收方根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;The data receiver checks the packaged and sent data according to the accounting data of the sender and the accounting data of the receiver, and processes the packaged and sent data and the accounting data of the receiver according to the checking result ;
所述数据发送方根据所述接收方记账数据对所述打包发送数据进行更新处理。The data sender performs update processing on the packaged and sent data according to the receiver's billing data.
第四方面,本发明实施例还提供了一种数据交互装置,包括:In the fourth aspect, the embodiment of the present invention also provides a data interaction device, including:
数据资源获取请求接收模块,用于接收数据接收方发送的数据资源获取请求;The data resource acquisition request receiving module is used to receive the data resource acquisition request sent by the data receiver;
交互预处理数据获取模块,用于根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;The interactive preprocessing data acquisition module is used to determine the 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 includes packaging processing and Accounting processing; the interactive preprocessing data includes packaging and sending data and sender accounting data;
数据注册发送模块,用于将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;A data registration sending module, configured to register the sender's billing data in the sender's data resource directory, and send the packaged sending data to the data receiver;
其中,所述发送方记账数据用于所述数据接收方对接收的所述打包发送数据进行核对。Wherein, the sender accounting data is used by the data receiver to check the received packaged sending data.
第五方面,本发明实施例还提供了一种数据交互装置,包括:In the fifth aspect, the embodiment of the present invention also provides a data interaction device, including:
数据资源获取请求发送模块,用于向数据发送方发送数据资源获取请求;A data resource acquisition request sending module, configured to send a data resource acquisition request to the data sender;
数据接收获取模块,用于接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;A data receiving and obtaining module, configured to receive the packaged data sent by the data sender, and obtain the accounting data of the sender corresponding to the packaged data;
接收方记账数据计算模块,用于根据所述打包发送数据计算接收方记账数据;The receiver's accounting data calculation module is used to calculate the receiver's accounting data according to the packaged and sent data;
数据处理模块,用于根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;A data processing module, configured to check the packaged and sent data according to the accounting data of the sender and the accounting data of the receiver, and check the packaged and sent data and the accounting data of the receiver according to the checking result deal with;
其中,所述接收方记账数据用于所述数据发送方对所述打包发送数据进行更新处理。Wherein, the accounting data of the receiver is used for the data sender to update the packaged and sent data.
第六方面,本发明实施例还提供了一种数据交互系统,包括数据发送方和数据接收方;其中:In the sixth aspect, the embodiment of the present invention also provides a data interaction system, including a data sender and a data receiver; wherein:
所述数据接收方用于向所述数据发送方发送数据资源获取请求;The data receiver is used to send a data resource acquisition request to the data sender;
所述数据发送方用于接收所述数据资源获取请求,根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;The data sender is configured to receive the data resource acquisition request, determine the target transmission data according to the data resource acquisition request, and perform interactive preprocessing on the target transmission data to obtain interactive preprocessing data; wherein, the interaction The preprocessing includes packaging processing and accounting processing; the interactive preprocessing data includes packaging and sending data and sender accounting data;
所述数据发送方还用于将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;The data sender is also used to register the sender's billing data in the sender's data resource directory, and send the packaged data to the data receiver;
所述数据接收方还用于接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;根据所述打包发送数据计算接收方记账数据;根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;The data receiver is also used to receive the packaged sending data sent by the data sender, and obtain the sender accounting data corresponding to the packaged sending data; calculate the receiver's accounting data according to the packaged sending data; The sender's accounting data and the receiver's accounting data check the packaged sending data, and process the packaged sending data and the receiver's accounting data according to the check result;
所述数据发送方还用于根据所述接收方记账数据对所述打包发送数据进行更新处理。The data sender is further configured to update the packaged and sent data according to the receiver's billing data.
第七方面,本发明实施例还提供了一种计算机设备,所述计算机设备包括:In the seventh aspect, the embodiment of the present invention also provides a computer device, the computer device comprising:
一个或多个处理器;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 are made to implement any data interaction method described in the first aspect.
第八方面,本发明实施例还提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现第一方面中任意所述的数据交互方法。In an eighth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, any data interaction method described in the first aspect is implemented.
第九方面,本发明实施例还提供了一种计算机设备,所述计算机设备包括:In a ninth aspect, an embodiment of the present invention further provides a computer device, the computer device comprising:
一个或多个处理器;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 are made to implement any data interaction method described in the second aspect.
第十方面,本发明实施例还提供了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现第二方面中任意所述的数据交互方法。In a tenth aspect, the embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, any data interaction method described in the second aspect is implemented.
本发明实施例通过数据发送方根据数据接收方发送的数据资源获取请求确定目标发送数据,以对目标发送数据进行交互预处理,得到打包发送数据和发送方记账数据等数据,并将发送方记账数据注册到发送方数据资源目录,将打包发送数据发送至数据接收方。数据接收方可以获取打包发送数据对应的发送方记账数据,并根据打包发送数据计算接收方记账数据,以根据发送方记账数据和接收方记账数据对打包发送数据进行核对,并根据核对结果对打包发送数据和接收方记账数据进行处理,数据发送方还可以根据接收方记账数据对打包发送数据进行更新处理,解决现有数据交互方式存在的数据可靠性和安全性较低等问题,从而保证数据交互的可靠性和准确性。In the embodiment of the present invention, the data sender determines the target sending data according to the data resource acquisition request sent by the data receiver, so as to perform interactive preprocessing on the target sending data, obtain data such as packaged sending data and sender accounting data, and send the sender Accounting data is registered to the data resource directory of the sender, and the packaged sending data is sent to the data receiver. The data receiver can obtain the sender's billing data corresponding to the packaged data, and calculate the receiver's billing data based on the packaged data, so as to check the packaged data according to the sender's billing data and the receiver's billing data, and according to Check the results to process the packaged sending data and the receiver’s accounting data, and the data sender can also update the packaged sending data according to the receiver’s accounting data, so as to solve the problem of low data reliability and security in the existing data interaction mode And other issues, so as to ensure the reliability and accuracy of data interaction.
附图说明Description of drawings
图1是本发明实施例一提供的一种数据交互方法的流程图;FIG. 1 is a flowchart of a data interaction method provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的一种数据交互方法的流程图;FIG. 2 is a flowchart of a data interaction method provided by Embodiment 2 of the present invention;
图3a是本发明实施例三提供的一种数据交互方法的流程图;Fig. 3a is a flowchart of a data interaction method provided by Embodiment 3 of the present invention;
图3b是本发明实施例三提供的一种数据交互方法的流程示意图;Fig. 3b is a schematic flowchart of a data interaction method provided by Embodiment 3 of the present invention;
图4是本发明实施例四提供的一种数据交互装置的示意图;FIG. 4 is a schematic diagram of a data interaction device provided in Embodiment 4 of the present invention;
图5是本发明实施例五提供的一种数据交互装置的示意图;FIG. 5 is a schematic diagram of a data interaction device provided in Embodiment 5 of the present invention;
图6是本发明实施例六提供的一种数据交互系统的示意图;FIG. 6 is a schematic diagram of a data interaction system provided by Embodiment 6 of the present invention;
图7为本发明实施例六提供的一种计算机设备的结构示意图。FIG. 7 is a schematic structural diagram of a computer device provided by Embodiment 6 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
实施例一Embodiment one
图1是本发明实施例一提供的一种数据交互方法的流程图,本实施例可适用于数据发送方向数据接收方发送打包处理数据并针对打包处理数据生成记账数据的情况,该方法可以由数据交互装置来执行,该装置可以由软件和/或硬件的方式来实现,并一般可集成在计算机设备中,与用于完成数据接收方功能的计算机设备配合使用。相应的,如图1所示,该方法包括如下操作:Figure 1 is a flow chart of a data interaction method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the data sender sends packaged data to the data receiver and generates accounting data for the packaged data. The method can It is executed by a data interaction device, which can be realized by software and/or hardware, and generally can be integrated into a computer device, and used in cooperation with the computer device used to complete the function of the data receiver. Correspondingly, as shown in Figure 1, the method includes the following operations:
S110、接收数据接收方发送的数据资源获取请求。S110. Receive a data resource acquisition request sent by the data receiver.
其中,数据接收方可以是用于接收数据资源的数据平台。数据资源获取请求可以是用于获取目标数据资源的请求。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.
首先,本实施例的技术方案主要适用于这样的应用场景:数据发送方和数据接收方可以存储异构数据资源,并且数据发送方可数据接收方之间可以实现数据交互。其中,数据发送方和数据接收方可以是任意类型的数据平台,如各类型的大数据平台或信息系统数据平台等,本发明实施例并不对数据发送方和数据接收方的具体类型进行限定。数据交互可以是数据发送方和数据接收方之间互相交换数据,也可以是数据发送方向数据接收方发送交互数据的单向数据交互过程,本发明实施例对此并不进行限制。First of all, the technical solution of this embodiment is mainly applicable to such an application scenario: the data sender and the data receiver can store heterogeneous data resources, and the data sender and the data receiver can realize data interaction. Wherein, the data sender and the data receiver can be any type of data platform, such as various types of big data platforms or information system data platforms, etc. The embodiment of the present invention does not limit the specific types of the data sender and data receiver. Data interaction may be data exchange between a data sender and a data receiver, or a one-way data interaction process in which a data sender sends interactive data to a data receiver, which is not limited in this embodiment of the present invention.
数据资源可以采用数据文件形式进行交互。数据文件格式可以包括但不限于XML(Extensible Markup Language,可扩展标记语言)、BCP(互联网协议数据还原)和ZIP(压缩文件格式)。ZIP文件可以采用标准非压缩格式,对数据资源的数据描述文件及实体文件进行有效组织,其中包括多个XML或BCP格式的数据描述文件,以及数据描述对应的实体文件。XML及BCP格式的文件叫做数据描述文件,可以用于对数据资源的数据内容进行组织描述,记录数据中的部分结构化数据内容信息,是数据内容的主要载体。实体文件,也叫非结构化文件,可以用于记录内容信息,如网页正文、电子邮件正文附件、即时消息聊天内容以及网络音视频数据等。非结构化文件的数据内容与结构化数据内容具备自完备性,也即,非结构化文件的数据内容与结构化数据内容之间存在相关联系。Data resources can interact in the form of data files. The data file format may include but not limited to XML (Extensible Markup Language, Extensible Markup Language), BCP (Internet Protocol Data Recovery) and ZIP (compressed file format). ZIP files can adopt standard non-compressed format to effectively organize data description files and entity files of data resources, including multiple data description files in XML or BCP format, and entity files corresponding to data descriptions. Files in XML and BCP formats are called data description files, which can be used to organize and describe the data content of data resources, record part of the structured data content information in the data, and are the main carrier of data content. Entity files, also called unstructured files, can be used to record content information, such as web page text, email body attachments, instant message chat content, and network audio and video data. The data content of the unstructured file and the structured data content are self-complete, 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 sender may receive the data resource acquisition request sent by the data receiver, so as to send the data receiver 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 receiving the data resource acquisition request sent by the data receiver, it may further include: registering the local data resource with the data resource directory of the sender.
其中,数据资源目录可以用于存储和更新数据,可选的,数据资源目录存储和更新的数据包括但不限于数据资源(数据平台存储的数据)和/或记账数据。发送方数据资源目录即为数据发送方本地维护的数据资源目录。Wherein, the data resource directory can be used to store and update data. Optionally, the data stored and updated by the data resource directory includes but not limited to data resources (data stored on the data platform) and/or billing data. The sender's data resource directory is the data resource directory locally maintained by the data sender.
需要说明的是,数据资源目录(包括发送方数据资源目录和接收方数据资源目录)的数据更新方式可以是利用中心数据节点做媒介进行同步更新。其中,中心数据节点可以用于存储最新的待更新数据资源和/或记账数据。也即,数据发送方和/或数据接收方可以定期将待同步更新的数据发送至中心数据节点。同时,数据发送方和/或数据接收方对数据(如本地的记账数据)进行同步更新时,可以定期访问中心数据节点,以获取最新待更新数据信息并对本地数据资源目录中的数据进行同步更新。也即,数据发送方和数据接收方分别维护的数据资源目录可以实现全网统一。It should be noted that the data resource directory (including the data resource directory of the sender and the data resource directory of the receiver) can be updated synchronously by using the central data node as a medium. Among them, the central data node can be used to store the latest data resources to be updated and/or accounting data. That is, the data sender and/or the data receiver can periodically send the data to be updated synchronously to the central data node. At the same time, when the data sender and/or data receiver synchronously updates the data (such as local accounting data), they can regularly access the central data node to obtain the latest data information to be updated and update the data in the local data resource directory. Synchronization Update. That is to say, the data resource directories maintained by the data sender and the data receiver respectively can realize the unification of the whole network.
在本发明实施例中,可选的,数据发送方可以预先将本地数据资源注册到发送方数据资源目录中。当数据接收方利用中心数据节点同步数据接收方的数据资源目录时,可以确定拥有自己所需目标数据资源的数据发送方。In this embodiment of the present invention, optionally, the data sender may pre-register the local data resource in the sender's data resource directory. When the data receiver uses the central data node to synchronize the data resource directory of the data receiver, it can determine the data sender that owns the target data resource it needs.
需要说明的是,数据接收方还可以通过线下约定的方式直接确定数据发送方。如果采用线下约定的方式确定数据发送方,则数据发送方无需预先将本地数据资源注册到发送方数据资源目录中。It should be noted that the data receiver can also directly determine the data sender through an offline agreement. If the data sender is determined by means of an offline agreement, the data sender does not need to register the local data resource in the sender's data resource directory in advance.
S120、根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据。S120. 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.
其中,目标发送数据即为数据接收方需要获取的目标数据资源。交互预处理数据即为数据发送方对目标发送数据进行交互预处理得到的数据。所述交互预处理可以包括打包处理和记账处理;所述交互预处理数据可以包括打包发送数据和发送方记账数据。打包发送数据则为数据发送方对目标发送数据进行打包处理得到的数据;发送方记账数据则为数据发送方对目标发送数据进行记账处理得到的数据,记账处理包括但不限于数据指纹计算及关联信息统计等。其中,数据指纹计算也即对目标发送数据进行加密处理,关联信息包括但不限于记账日期、XML资源、BCP资源及数据资源总量等。Wherein, the target sending data is the target data resource that the data receiver needs to acquire. The interactive preprocessing data is the data obtained by the data sender performing interactive preprocessing on the data sent by the target. The interaction preprocessing may include packaging processing and accounting processing; the interaction preprocessing data may include packaging sending data and sender accounting data. Packed sending data is the data obtained by the data sender packaging the target sent data; the sender accounting data is the data obtained by the data sender performing accounting processing on the target sent data, accounting processing includes but not limited to data fingerprints Calculation and related information statistics, etc. Among them, the data fingerprint calculation is to encrypt the data sent by the target, and the associated information includes but not limited to the accounting date, XML resources, BCP resources, and the total amount of data resources.
相应的,数据发送方接收到数据资源获取请求后,可以根据数据资源获取请求确定目标发送数据,并对目标发送数据进行打包处理和记账处理,得到打包发送数据和发送方记账数据。Correspondingly, after receiving the data resource acquisition request, the data sender can determine the target data to be sent according to the data resource acquisition request, and package and bill the target data to obtain the packaged data and sender billing data.
在本发明的一个可选实施例中,所述发送方记账数据包括数据资源标识符、数据文件名称、行政区划代码、记账日期、XML资源统计量、BCP资源统计量、数据资源总量、数据资源记账开始日期、数据资源记账结束日期、数据指纹类型、数据指纹及对账状态;所述对账状态可以为记账状态。In an optional embodiment of the present invention, the accounting data of the sender includes data resource identifier, data file name, administrative division code, accounting date, XML resource statistics, BCP resource statistics, and total amount of data resources . Data resource billing start date, data resource billing end date, data fingerprint type, data fingerprint and reconciliation status; the reconciliation status may be a billing status.
其中,数据资源标识符可以唯一标识数据资源,数据资源标识符的命名方式可以根据实际需求设定,只要能够对数据资源唯一标识即可,本发明实施例并不对数据资源标识符的命名方式进行限定。数据文件名称即为存储数据资源文件的名称。记账日期即为对目标发送数据进行记账处理的日期,可以是一个时间点,也可以是时间段,本发明实施例对此并不进行限制。数据资源记账开始日期即为开始记账的日期,相应的,数据资源记账结束日期即为记账结束的日期。数据指纹类型即为数据加密的类型,数据指纹即为加密生成的密文。对账状态可以是记账数据的不同状态。Among them, the data resource identifier can uniquely identify the data resource, and the naming method of the data resource identifier can be set according to actual needs, as long as the data resource can be uniquely identified, the embodiment of the present invention does not specify the naming method of the data resource identifier. limited. The data file name is the name of the data resource file. The billing date is the date on which the data sent by the target is billed, and may be a point in time or a period of time, which is not limited in this embodiment of the present invention. The start date of data resource billing is the date when billing starts, and correspondingly, the end date of data resource billing is the date when billing ends. The data fingerprint type is the type of data encryption, and the data fingerprint is the ciphertext generated by encryption. The reconciliation state can be different states of the accounting data.
可选的,数据发送方可以根据打包发送数据统计记账日期、数据资源记账开始日期、数据资源记账结束日期等信息,并计算XML资源统计量、BCP资源统计量、数据资源总量、数据指纹类型和数据指纹等信息,以根据统计信息和计算得到的信息生成对应的发送方记账数据。Optionally, the data sender can calculate XML resource statistics, BCP resource statistics, total data resources, Information such as data fingerprint type and data fingerprint, so as to generate corresponding sender accounting data according to statistical information and calculated information.
示例性的,对账状态可以包括但不限于记账状态、销账状态和失败状态。其中,数据发送方完成记账处理后生成的发送方记账数据中的对账状态可以为记账状态;数据接收方对接收的打包发送数据核对无误后,生成的接收方记账数据的对账状态可以为销账状态;数据接收方对接收的打包发送数据核对确认数据有误后,生成的接收方记账数据的对账状态可以为失败状态。可选的,还可以根据实际需求设定其他的对账状态,本发明实施例并不对对账状态的类型和内容进行限定。Exemplarily, the reconciliation status may include but not limited to accounting status, cancellation status and failure status. Among them, the reconciliation state in the sender’s accounting data generated after the data sender completes the accounting processing can be the accounting state; The account status can be a write-off status; after the data receiver checks and confirms that there is an error in the received packaged and sent data, the generated account reconciliation status of the receiver's accounting data can be a failure status. Optionally, other account reconciliation states can also be set according to actual needs, and the embodiment of the present invention does not limit the type and content of the account reconciliation states.
S130、将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方。S130. Register the sender's billing data in the sender's data resource directory, and send the packaged send data to the data receiver.
其中,所述发送方记账数据用于所述数据接收方对接收的所述打包发送数据进行核对。Wherein, the sender accounting data is used by the data receiver to check the received packaged sending data.
数据发送方得到打包发送数据和发送方记账数据后,可以将发送方记账数据注册到发送方数据资源目录,以用于数据接收方对接收方数据资源目录进行同步更新,并将打包发送数据发送至数据接收方,以使数据接收方在核对打包发送数据无误后进行存储等后续操作。After the data sender obtains the packaged sending data and the sender's billing data, it can register the sender's billing data to the sender's data resource directory, so that the data receiver can synchronously update the receiver's data resource directory, and send the packaged The data is sent to the data receiver, so that the data receiver can perform subsequent operations such as storage after checking that the packaged and sent data is correct.
在本发明的一个可选实施例中,所述数据资源获取请求包括指定数据存储位置;将所述打包发送数据发送至所述数据接收方,可以包括:将所述打包发送数据发送至所述数据接收方的所述指定数据存储位置。In an optional embodiment of the present invention, the data resource acquisition request includes specifying a data storage location; sending the packaged data to the data receiver may include: sending the packaged data to the The designated data storage location of the data recipient.
其中,指定数据存储位置可以是数据接收方用于存储打包发送文件的位置。Wherein, the designated data storage location may be a location used by the data receiver to store the packaged and sent file.
在本发明实施例中,数据接收方向数据发送方发送的数据资源获取请求中可以包括指定数据存储位置。当数据发送方对目标发送数据进行打包处理得到打包发送数据后,可以根据数据资源获取请求包括指定数据存储位置,将打包发送数据发送至数据接收方的指定数据存储位置。In the embodiment of the present invention, the data resource acquisition request sent by the data receiver to the data sender may include a designated data storage location. After the data sender packs the target sending data to obtain the packaged data, it can send the packaged data to the designated data storage location of the data receiver according to the data resource acquisition request including the specified data storage location.
需要说明的是,指定数据存储位置也可以预先指定,也即,数据发送方和数据接收方在进行数据交互之前,可以根据默认的指定数据存储位置发送打包发送数据。It should be noted that the specified data storage location can also be specified in advance, that is, the data sender and the data receiver can send packaged data according to the default specified data storage location before data interaction.
在本发明的一个可选实施例中,在将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方之后,还可以包括:对所述发送方记账数据的对账状态进行同步;如果同步后的对账状态为销账状态,则删除所述目标发送数据;如果所述同步后的对账状态为失败状态,则返回执行对所述目标发送数据进行交互预处理,得到交互预处理数据的操作。In an optional embodiment of the present invention, after registering the sender's billing data in the sender's data resource directory and sending the packaged send data to the data receiver, it may further include: Synchronize the reconciliation status of the account data of the sender; if the reconciliation status after synchronization is a cancellation status, delete the target sending data; if the reconciliation status after synchronization is a failure status, then return to execute The target sends data to perform interactive preprocessing, and obtains the operation of interactive preprocessing data.
在本发明实施例中,数据发送方可以对发送方记账数据中的对账状态进行同步。具体的,数据发送方可以定期访问中心数据节点获取数据接收方最新的接收方记账数据,并根据最新的接收方记账数据同步更新发送方记账数据中的对账状态。具体的,如果同步后的对账状态为销账状态,表明数据接收方以核对确认打包发送数据无误,也即,确定打包发送数据没有出现数据丢失、数据异常和数据错误等数据故障情况。此时,数据发送方可以删除本地存储的目标发送数据。如果同步后的对账状态为失败状态,表明数据接收方以核对确认打包发送数据有误,也即,确定打包发送数据出现数据丢失、数据异常或数据错误等数据故障情况。此时,数据发送方可以返回执行对目标发送数据进行交互预处理,得到交互预处理数据的操作,以对数据发送方重新发送打包发送数据。In the embodiment of the present invention, the data sender can synchronize the reconciliation status in the sender's accounting data. Specifically, the data sender can regularly access the central data node to obtain the latest receiver's billing data of the data receiver, and synchronously update the reconciliation status in the sender's billing data according to the latest receiver's billing data. Specifically, if the reconciliation status after synchronization is the cancellation status, it means that the data receiver confirms that the packaged and sent data is correct by checking, that is, confirms that there is no data failure such as data loss, data abnormality, or data error in the packaged and sent data. At this time, the data sender can delete the target sending data stored locally. If the reconciliation status after synchronization is failed, it means that the data receiver confirms that there is an error in the packaged and sent data by checking, that is, it is determined that the packaged and sent data has data failures such as data loss, data abnormality, or data error. At this point, the data sender can return to perform the interactive preprocessing on the target sending data to obtain the interactive preprocessing data, so as to resend the packaged sending data to the data sender.
本实施例的技术方案,通过数据发送方根据数据接收方发送的数据资源获取请求确定目标发送数据,并对目标发送数据进行交互预处理得到打包处理和记账处理,以将发送方记账数据注册到发送方数据资源目录,并将打包发送数据发送至数据接收方,可以使数据接收方根据发送方记账数据对接收的打包发送数据进行核对,解决现有数据交互方式存在的数据可靠性和安全性较低等问题,从而保证数据交互的可靠性和准确性。In the technical solution of this embodiment, the data sender determines the target sending data according to the data resource acquisition request sent by the data receiver, and performs interactive preprocessing on the target sending data to obtain packaging processing and accounting processing, so that the sending party's accounting data Register to the data resource directory of the sender, and send the packaged data to the data receiver, so that the data receiver can check the received packaged data according to the accounting data of the sender, and solve the data reliability existing in the existing data interaction mode And low security issues, so as to ensure the reliability and accuracy of data interaction.
实施例二Embodiment two
图2是本发明实施例二提供的一种数据交互方法的流程图,本实施例可适用于数据接收方根据数据发送方的记账数据对打包处理数据进行核对处理的情况,该方法可以由数据交互装置来执行,该装置可以由软件和/或硬件的方式来实现,并一般可集成在计算机设备中,与用于完成数据发送方功能的计算机设备配合使用。相应的,如图2所示,该方法包括如下操作:Fig. 2 is a flow chart of a data interaction method provided by Embodiment 2 of the present invention. This embodiment is applicable to the case where the data receiver checks the packaged data according to the accounting data of the data sender. This method can be implemented by Data interaction means, which can be implemented by software and/or hardware, and can generally be integrated in computer equipment, and used in conjunction with the computer equipment used to complete the function of the data sender. Correspondingly, as shown in Figure 2, the method includes the following operations:
S210、向数据发送方发送数据资源获取请求。S210. Send a data resource acquisition request to the data sender.
其中,数据发送方可以是用于发送数据资源的数据平台。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, it may also include: synchronizing the receiver's data resource directory, and determining the data sender according to the synchronization result; wherein, the The data sender locally stores the data sent by the target.
其中,接收方数据资源目录即为数据接收方本地维护的数据资源目录。Wherein, the receiver data resource directory is the data resource directory locally maintained by the data receiver.
在本发明实施例中,数据接收方也可以在本地维护接收方数据资源目录。数据接收方可以利用中心数据节点定期同步更新接收方数据资源目录,以根据同步结果确定拥有所需目标数据资源(也即目标发送数据)的数据发送方,并向数据发送方发送数据资源获取请求。In the embodiment of the present invention, the data receiver may also maintain the receiver's data resource directory locally. The data receiver can use the central data node to periodically update the receiver's data resource directory to determine the data sender who owns the required target data resource (that is, the target data) according to the synchronization result, and send a data resource acquisition request to the data sender .
S220、接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据。S220. Receive the packaged sending data sent by the data sender, and acquire the sender accounting data corresponding to the packaged sending data.
相应的,数据接收方在向数据发送方发送数据资源获取请求之后,数据发送方可以根据据资源获取请求确定目标发送数据,并对目标发送数据进行打包处理和记账处理,得到打包发送数据和发送方记账数据。然后,数据发送方可以将发送方记账数据注册到发送方数据资源目录,以用于数据接收方对接收方数据资源目录进行同步更新,并将打包发送数据发送至数据接收方,数据接收方可以接收打包发送数据并打包发送数据进行核对。Correspondingly, after the data receiver sends a data resource acquisition request to the data sender, the data sender can determine the target data according to the resource acquisition request, and package and bill the target data to obtain the packaged data and Sender accounting data. Then, the data sender can register the sender’s billing data to the sender’s data resource directory, so that the data receiver can synchronize and update the receiver’s data resource directory, and send the packaged data to the data receiver, and the data receiver It can receive packaged and sent data and check the packaged and sent data.
在本发明的一个可选实施例中,获取所述打包发送数据对应的发送方记账数据,可以包括:对所述接收方数据资源目录定期同步,以获取所述打包发送数据对应的发送方记账数据。In an optional embodiment of the present invention, obtaining the accounting data of the sending party corresponding to the packaged sending data may include: periodically synchronizing the data resource directory of the receiving party to obtain the sender accounting data corresponding to the packaged sending data accounting data.
可选的,数据接收方可以定期访问中心数据节点获取数据发送方最新的发送方记账数据,并根据最新的发送方记账数据同步更新接收方数据资源目录,从而获取打包发送数据对应的发送方记账数据。具体的,数据接收方可以根据接收到的打包发送文件的数据文件名称,查询中心数据节点中存储的与该数据文件名称匹配的数据发送方注册的发送方记账数据,从而获取打包发送数据对应的发送方记账数据。Optionally, the data receiver can regularly access the central data node to obtain the latest accounting data of the data sender, and synchronously update the data resource directory of the receiver according to the latest accounting data of the sender, so as to obtain the sending data corresponding to the packaged sending data. Party accounting data. Specifically, according to the data file name of the received packaged and sent file, the data receiver can query the sender accounting data registered by the data sender that matches the data file name stored in the central data node, so as to obtain the packaged and sent data corresponding The accounting data of the sender.
S230、根据所述打包发送数据计算接收方记账数据。S230. Calculate receiver billing data according to the packaged and sent data.
其中,接收方记账数据则为数据接收方对打包发送数据进行记账处理得到的数据,记账处理包括但不限于数据指纹计算及关联信息统计等。其中,数据指纹计算也即对目标发送数据进行加密处理,关联信息包括但不限于记账日期、XML资源、BCP资源及数据资源总量等。Among them, the receiver's billing data is the data obtained by the data receiver's billing process on the packaged and sent data, and the billing process includes but is not limited to data fingerprint calculation and related information statistics. Among them, the data fingerprint calculation is to encrypt the data sent by the target, and the associated information includes but not limited to the accounting date, XML resources, BCP resources, and the total amount of data resources.
数据接收方在对打包发送数据进行核对时,可以根据接收的打包发送数据计算接收方记账数据。When the data receiver checks the packaged and sent data, it can calculate the recipient's accounting data according to the received packaged and sent data.
在本发明的一个可选实施例中,所述接收方记账数据可以包括数据资源标识符、数据文件名称、行政区划代码、记账日期、XML资源统计量、BCP资源统计量、数据资源总量、数据资源记账开始日期、数据资源记账结束日期、数据指纹类型、数据指纹及对账状态。In an optional embodiment of the present invention, the receiver's billing data may include data resource identifier, data file name, administrative division code, billing date, XML resource statistics, BCP resource statistics, data resource total amount, data resource billing start date, data resource billing end date, data fingerprint type, data fingerprint and reconciliation status.
可选的,数据接收方可以根据收到的打包发送数据统计记账日期、数据资源记账开始日期、数据资源记账结束日期等信息,并计算XML资源统计量、BCP资源统计量、数据资源总量、数据指纹类型和数据指纹等信息,以根据统计信息和计算得到的信息生成对应的接收方记账数据。Optionally, the data receiver can count information such as the accounting date, data resource accounting start date, and data resource accounting end date based on the received packaged and sent data, and calculate XML resource statistics, BCP resource statistics, and data resource statistics. Total amount, data fingerprint type, and data fingerprint information to generate corresponding receiver accounting data based on statistical information and calculated information.
S240、根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理。S240. Check the packaged sending data according to the accounting data of the sender and the accounting data of the receiver, and process the packaged sending data and the accounting data of the receiver according to the checking result.
具体的,数据接收方可以根据计算得到的接收方记账数据和获取的发送方记账数据对打包发送数据进行核对,并根据核对结果对打包发送数据和接收方记账数据进行后续处理。数据接收方计算得到的接收方记账数据还可以用于数据发送方对打包发送数据进行更新处理。Specifically, the data receiver can check the packaged and sent data according to the calculated accounting data of the receiver and the acquired accounting data of the sender, and perform subsequent processing on the packaged and sent data and the receiver's accounting data according to the checking result. The receiver's billing data calculated by the data receiver can also be used by the data sender to update the packaged and sent data.
在本发明的一个可选实施例中,根据核对结果对所述打包发送数据和所述接收方记账数据进行处理,可以包括:如果核对结果为对账成功,则保存所述打包发送数据,并更改所述接收方记账数据的对账状态为销账状态;否则,删除所述打包发送数据,并更改所述接收方记账数据的对账状态为失败状态。In an optional embodiment of the present invention, processing the packaged sending data and the receiver's accounting data according to the checking result may include: if the checking result shows that the account reconciliation is successful, saving the packaged sending data, And change the account reconciliation status of the receiver's accounting data to a cancellation status; otherwise, delete the packaged and sent data, and change the account reconciliation status of the receiver's accounting data to a failure status.
其中,对账成功可以表示打包发送数据核对无误。相应的,销账状态可以表示对打包发送数据核对无误后记账数据的状态;失败状态可以表示对打包发送数据核对有误后记账数据的状态。Among them, the successful reconciliation may indicate that the packaged and sent data has been checked correctly. Correspondingly, the write-off status may indicate the status of the accounting data after the packaged and sent data is checked correctly; the failure status may indicate the status of the accounting data after the packaged and sent data is checked incorrectly.
具体的,数据接收方如果确定发送方记账数据和接收方记账数据一致,则可以确定打包发送数据核对无误,打包发送数据没有出现数据丢失、数据异常和数据错误等数据故障情况,也即核对结果为对账成功。此时,数据接收方可以保存打包发送数据,以对打包发送数据进行后续处理,同时更改接收方记账数据的对账状态为销账状态。数据接收方如果确定发送方记账数据和接收方记账数据不一致,则可以确定打包发送数据核对有误,出现数据丢失、数据异常或数据错误等数据故障情况,也即核对结果为对账失败。此时,数据接收方可以删除存在数据故障的打包发送数据,同时更改接收方记账数据的对账状态为失败状态。可选的,确定发送方记账数据和接收方记账数据是否一致,可以分别确定发送方记账数据和接收方记账数据包括的记账日期、数据资源记账开始日期、数据资源记账结束日期计算XML资源统计量、BCP资源统计量、数据资源总量、数据指纹类型和数据指纹等是否全部一致。Specifically, if the data receiver determines that the accounting data of the sender and the accounting data of the receiver are consistent, it can be sure that the packaged and sent data has been checked correctly, and there are no data failures such as data loss, data anomalies, and data errors in the packaged and sent data, that is, The verification result is that the reconciliation is successful. At this point, the data receiver can save the packaged and sent data to perform subsequent processing on the packaged and sent data, and at the same time change the reconciliation status of the receiver's accounting data to the write-off status. If the data receiver determines that the accounting data of the sender is inconsistent with the accounting data of the receiver, it can be determined that there is an error in the verification of the packaged and sent data, data failures such as data loss, data abnormality, or data error, that is, the verification result is a reconciliation failure . At this point, the data receiver can delete the packaged and sent data with data faults, and at the same time change the reconciliation status of the receiver's accounting data to a failure status. Optionally, to determine whether the billing data of the sender and the billing data of the receiver are consistent, you can respectively determine the billing date included in the billing data of the sender and the billing data of the receiver, the start date of data resource billing, and the data resource billing date. End date calculation XML resource statistics, BCP resource statistics, total data resources, data fingerprint types, and data fingerprints are all consistent.
可选的,在根据核对结果对所述打包发送数据和所述接收方记账数据进行处理之后,还可以包括:将接收方记账数据注册到接收方数据资源目录。Optionally, after processing the packaged sending data and the receiver's billing data according to the checking result, the method may further include: registering the receiver's billing data into the receiver's data resource directory.
为了能够使数据发送方同步获取接收方记账数据,数据接收方在生成接收方记账数据,并根据打包发送数据的核对结果对打包发送数据和接收方记账数据处理完成后,可以将接收方记账数据注册到接收方数据资源目录。In order to enable the data sender to obtain the receiver’s accounting data synchronously, the data receiver can generate the receiver’s accounting data and process the packaged sending data and the receiver’s accounting data according to the verification results of the packaged sending data. The party's accounting data is registered to the receiver's data resource directory.
本实施例的技术方案,通过数据接收方根据数据发送方发送的打包发送数据计算接收方记账数据,并获取打包发送数据对应的发送方记账数据,以根据发送方记账数据和接收方记账数据对打包发送数据进行核对,并根据核对结果对打包发送数据和接收方记账数据进行处理,解决现有数据交互方式存在的数据可靠性和安全性较低等问题,从而保证数据交互的可靠性和准确性。In the technical solution of this embodiment, the data receiver calculates the accounting data of the receiving party according to the packaged sending data sent by the data sender, and obtains the accounting data of the sending party corresponding to the packaged sending data, so as to calculate the accounting data of the receiving party according to the accounting data of the sending party and the receiving party. The accounting data checks the packaged and sent data, and processes the packaged and sent data and the receiver’s accounting data according to the check result, so as to solve the problems of low data reliability and security in the existing data interaction mode, so as to ensure data interaction reliability and accuracy.
实施例三Embodiment Three
图3a是本发明实施例三提供的一种数据交互方法的流程图,本实施例可适用于数据发送方和数据接收方根据记账数据进行数据交互的情况。相应的,如图3a所示,该方法包括如下操作:Fig. 3a is a flow chart of a data interaction method provided by Embodiment 3 of the present invention. This embodiment is applicable to a situation where a data sender and a data receiver perform data interaction based on billing data. Correspondingly, as shown in Figure 3a, the method includes the following operations:
S310、数据接收方向数据发送方发送数据资源获取请求。S310. The data receiver sends a data resource acquisition request to the data sender.
可选的,在数据接收方接收数据接收方发送的数据资源获取请求之前,还可以包括:数据发送方将本地数据资源注册到所述发送方数据资源目录。数据接收方对接收方数据资源目录进行同步,并根据同步结果确定所述数据发送方;其中,所述数据发送方本地存储目标发送数据。Optionally, before the data receiver receives the data resource acquisition request sent by the data receiver, the method may further include: the data sender registers the local data resources in the sender data resource directory. The data receiver synchronizes the receiver's data resource directory, and determines the data sender according to the synchronization result; wherein, the data sender locally stores the target sending data.
S320、所述数据发送方接收所述数据接收方发送的数据资源获取请求,并根据所述数据资源获取请求确定目标发送数据。S320. The data sender receives the data resource acquisition request sent by the data receiver, and determines target data to send according to the data resource acquisition request.
S330、所述数据发送方对所述目标发送数据进行交互预处理,得到交互预处理数据。S330. The data sender performs interactive preprocessing on the target data to obtain interactive preprocessing data.
其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据。Wherein, the interaction preprocessing includes packing processing and billing processing; the interactive preprocessing data includes packing sending data and sender billing data.
可选的,所述发送方记账数据包括数据资源标识符、数据文件名称、行政区划代码、记账日期、XML资源统计量、BCP资源统计量、数据资源总量、数据资源记账开始日期、数据资源记账结束日期、数据指纹类型、数据指纹及对账状态;所述对账状态为记账状态。Optionally, the accounting data of the sender includes data resource identifier, data file name, administrative division code, accounting date, XML resource statistics, BCP resource statistics, total data resources, and data resource accounting start date . Data resource accounting end date, data fingerprint type, data fingerprint and account reconciliation status; the account reconciliation status is the accounting status.
S340、所述数据发送方将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方。S340. The data sender registers the sender billing data in the sender data resource directory, and sends the packaged sending data to the data receiver.
可选的,所述数据资源获取请求包括指定数据存储位置;数据发送方将所述打包发送数据发送至所述数据接收方,可以包括:数据发送方将所述打包发送数据发送至所述数据接收方的所述指定数据存储位置。Optionally, the data resource acquisition request includes a specified data storage location; the data sender sending the packaged data to the data receiver may include: the data sender sends the packaged data to the data The designated data storage location of the receiver.
S350、所述数据接收方接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据。S350. The data receiver receives the packaged and sent data sent by the data sender, and acquires the accounting data of the sender corresponding to the packaged and sent data.
可选的,数据接收方获取所述打包发送数据对应的发送方记账数据,可以包括:对所述接收方数据资源目录定期同步,以获取所述打包发送数据对应的发送方记账数据。Optionally, obtaining the accounting data of the sending party corresponding to the packaged sending data by the data receiver may include: periodically synchronizing the data resource directory of the receiving party to obtain the accounting data of the sending party corresponding to the packaged sending data.
S360、所述数据接收方根据所述打包发送数据计算接收方记账数据。S360. The data receiver calculates the receiver's billing data according to the packaged and sent data.
可选的,所述接收方记账数据包括数据资源标识符、数据文件名称、行政区划代码、记账日期、XML资源统计量、BCP资源统计量、数据资源总量、数据资源记账开始日期、数据资源记账结束日期、数据指纹类型、数据指纹及对账状态。Optionally, the receiver’s accounting data includes data resource identifier, data file name, administrative division code, accounting date, XML resource statistics, BCP resource statistics, total data resources, and data resource accounting start date , data resource bookkeeping end date, data fingerprint type, data fingerprint and reconciliation status.
S370、所述数据接收方根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理。S370. The data receiver checks the packaged and sent data according to the accounting data of the sender and the accounting data of the receiver, and checks the packaged and sent data and the accounting data of the receiver according to the checking result to process.
可选的,数据接收方根据核对结果对所述打包发送数据和所述接收方记账数据进行处理,可以包括:如果核对结果为对账成功,则保存所述打包发送数据,并更改所述接收方记账数据的对账状态为销账状态;否则,删除所述打包发送数据,并更改所述接收方记账数据的对账状态为失败状态。Optionally, the data receiver processes the packaged sending data and the receiver’s accounting data according to the verification result, which may include: if the verification result is that the account reconciliation is successful, then saving the packaged sending data, and changing the The account reconciliation status of the receiver's accounting data is a cancellation status; otherwise, delete the packaged and sent data, and change the account reconciliation status of the receiver's accounting data to a failure status.
S380、所述数据发送方根据所述接收方记账数据对所述打包发送数据进行更新处理。S380. The data sender performs update processing on the packaged and sent data according to the receiver's billing data.
可选的,数据发送方根据所述接收方记账数据对所述打包发送数据进行更新处理,可以包括:对所述发送方记账数据的对账状态进行同步;如果同步后的对账状态为销账状态,则删除所述目标发送数据;如果所述同步后的对账状态为失败状态,则返回执行对所述目标发送数据进行交互预处理,得到交互预处理数据的操作。Optionally, the data sender updates the packaged and sent data according to the receiver’s accounting data, which may include: synchronizing the account reconciliation status of the sender’s accounting data; if the synchronized account reconciliation status If it is in the cancellation state, delete the target sending data; if the synchronized reconciliation state is a failure state, then return to perform the interactive preprocessing of the target sending data to obtain the interactive preprocessing data.
图3b是本发明实施例三提供的一种数据交互方法的流程示意图,在一个具体的例子中,如图3b所示,数据发送方可以将本地的数据资源注册到发送方数据资源目录(图3b中未示出),数据接收方可以同步接收方数据资源目录,查询到数据发送方拥有自己所需的目标数据资源后,向数据发送方发送数据资源获取请求。数据发送方收到数据资源获取请求后,将目标数据资源按照标准格式打包,并进行记账,生成打包发送数据和发送方记账数据。然后,数据发送方可以将发送方记账数据注册到发送方数据资源目录,也即数据发送方注册账单,此时该目标数据资源对应的发送方记账数据的对账状态为记账状态。数据发送方将打包发送数据通过数据传输通道传输到数据接收方的指定数据存储位置。数据接收方可以定期同步更新接收方数据资源目录,以获取目标数据资源的对账信息:发送方记账数据。当数据接收方收到数据发送方发送的打包发送数据后,计算打包发送数据的账单信息:接收方记账数据,与数据发送方同步的发送方记账数据进行对账。数据接收方对账成功,则对账入库,即保存打包发送数据,并更该接收方记账数据的账单状态为销账状态;对账失败,则删除打包发送数据,并更新接收方记账数据的账单状态为失败状态。数据发送方同步接收方记账数据的账单状态,销账状态则删除本地目标数据资源,失败状态则重新发送打包发送数据。Fig. 3b is a schematic flow diagram of a data interaction method provided by Embodiment 3 of the present invention. In a specific example, as shown in Fig. 3b, the data sender can register the local data resource to the sender's data resource directory (Fig. 3b), the data receiver can synchronize the data resource directory of the receiver, and after finding out that the data sender has the target data resources it needs, send a data resource acquisition request to the data sender. After receiving the data resource acquisition request, the data sender packs the target data resource according to the standard format, and performs accounting to generate packaged sending data and sender accounting data. Then, the data sender can register the sender's billing data to the sender's data resource directory, that is, the data sender registers the bill, and at this time, the reconciliation state of the sender's billing data corresponding to the target data resource is the billing state. The data sender transmits the packaged and sent data to the designated data storage location of the data receiver through the data transmission channel. The data receiver can periodically update the receiver's data resource directory synchronously to obtain the reconciliation information of the target data resource: the sender's accounting data. When the data receiver receives the packaged data sent by the data sender, it calculates the billing information of the packaged data: the receiver's billing data, and the sender's billing data synchronized with the data sender for reconciliation. If the reconciliation of the data receiver is successful, the reconciliation will be stored in the warehouse, that is, the packaged and sent data will be saved, and the billing status of the receiver's accounting data will be changed to the cancellation status; if the reconciliation fails, the packaged and sent data will be deleted and the receiver's record will be updated. The billing status of the billing data is failed. The data sender synchronizes the billing status of the receiver's billing data, the cancellation status deletes the local target data resource, and the failure status resends the packaged data.
本发明实施例通过数据发送方根据数据接收方发送的数据资源获取请求确定目标发送数据,以对目标发送数据进行交互预处理,得到打包发送数据和发送方记账数据等数据,并将发送方记账数据注册到发送方数据资源目录,将打包发送数据发送至数据接收方。数据接收方可以获取打包发送数据对应的发送方记账数据,并根据打包发送数据计算接收方记账数据,以根据发送方记账数据和接收方记账数据对打包发送数据进行核对,并根据核对结果对打包发送数据和接收方记账数据进行处理,数据发送方还可以根据接收方记账数据对打包发送数据进行更新处理,解决现有数据交互方式存在的数据可靠性和安全性较低等问题,从而保证数据交互的可靠性和准确性。In the embodiment of the present invention, the data sender determines the target sending data according to the data resource acquisition request sent by the data receiver, so as to perform interactive preprocessing on the target sending data, obtain data such as packaged sending data and sender accounting data, and send the sender Accounting data is registered to the data resource directory of the sender, and the packaged sending data is sent to the data receiver. The data receiver can obtain the sender's billing data corresponding to the packaged data, and calculate the receiver's billing data based on the packaged data, so as to check the packaged data according to the sender's billing data and the receiver's billing data, and according to Check the results to process the packaged sending data and the receiver’s accounting data, and the data sender can also update the packaged sending data according to the receiver’s accounting data, so as to solve the problem of low data reliability and security in the existing data interaction mode And other issues, so as to ensure the reliability and accuracy of data interaction.
需要说明的是,以上各实施例中各技术特征之间的任意排列组合也属于本发明的保护范围。It should be noted that any permutation and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.
实施例四Embodiment four
图4是本发明实施例四提供的一种数据交互装置的示意图,如图4所示,所述装置包括:数据资源获取请求接收模块410、交互预处理数据获取模块420以及数据注册发送模块430,其中:Fig. 4 is a schematic diagram of a data interaction device provided by Embodiment 4 of the present invention. As shown in Fig. 4, the device includes: a data resource acquisition
数据资源获取请求接收模块410,用于接收数据接收方发送的数据资源获取请求;A data resource acquisition
交互预处理数据获取模块420,用于根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;The interactive preprocessing
数据注册发送模块430,用于将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;A data
其中,所述发送方记账数据用于所述数据接收方对接收的所述打包发送数据进行核对。Wherein, the sender accounting data is used by the data receiver to check the received packaged sending data.
本实施例的技术方案,通过数据发送方根据数据接收方发送的数据资源获取请求确定目标发送数据,并对目标发送数据进行交互预处理得到打包处理和记账处理,以将发送方记账数据注册到发送方数据资源目录,并将打包发送数据发送至数据接收方,可以使数据接收方根据发送方记账数据对接收的打包发送数据进行核对,解决现有数据交互方式存在的数据可靠性和安全性较低等问题,从而保证数据交互的可靠性和准确性。In the technical solution of this embodiment, the data sender determines the target sending data according to the data resource acquisition request sent by the data receiver, and performs interactive preprocessing on the target sending data to obtain packaging processing and accounting processing, so that the sending party's accounting data Register to the data resource directory of the sender, and send the packaged data to the data receiver, so that the data receiver can check the received packaged data according to the accounting data of the sender, and solve the data reliability existing in the existing data interaction mode And low security issues, so as to ensure the reliability and accuracy of data interaction.
可选的,所述装置还包括:数据资源注册模块,用于将本地数据资源注册到所述发送方数据资源目录。Optionally, the device further includes: a data resource registration module, configured to register the local data resource with the data resource directory of the sender.
可选的,所述数据资源获取请求包括指定数据存储位置;数据注册发送模块430,具体用于将所述打包发送数据发送至所述数据接收方的所述指定数据存储位置。Optionally, the data resource acquisition request includes a designated data storage location; the data
可选的,所述发送方记账数据包括数据资源标识符、数据文件名称、行政区划代码、记账日期、XML资源统计量、BCP资源统计量、数据资源总量、数据资源记账开始日期、数据资源记账结束日期、数据指纹类型、数据指纹及对账状态;所述对账状态为记账状态。Optionally, the accounting data of the sender includes data resource identifier, data file name, administrative division code, accounting date, XML resource statistics, BCP resource statistics, total data resources, and data resource accounting start date . Data resource accounting end date, data fingerprint type, data fingerprint and account reconciliation status; the account reconciliation status is the accounting status.
可选的,所述装置还包括:对账状态同步模块,用于对所述发送方记账数据的对账状态进行同步;目标发送数据删除模块,用于如果同步后的对账状态为销账状态,则删除所述目标发送数据;返回执行模块,用于如果所述同步后的对账状态为失败状态,则返回执行对所述目标发送数据进行交互预处理,得到交互预处理数据的操作。Optionally, the device further includes: an account reconciliation status synchronization module, configured to synchronize the account reconciliation status of the sender's accounting data; Account status, then delete the target sending data; return to the execution module, if the reconciliation status after the synchronization is a failed state, then return to execute the interactive preprocessing of the target sending data to obtain the interactive preprocessing data operate.
上述数据交互装置可执行本发明实施例一所提供的数据交互方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例一提供的数据交互方法。The above-mentioned data interaction device can execute the data interaction method provided in Embodiment 1 of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, refer to the data interaction method provided in Embodiment 1 of the present invention.
由于上述所介绍的数据交互装置为可以执行本发明实施例一中的数据交互方法的装置,故而基于本发明实施例一中所介绍的数据交互方法,本领域所属技术人员能够了解本实施例的数据交互装置的具体实施方式以及其各种变化形式,所以在此对于该数据交互装置如何实现本发明实施例一中的数据交互方法不再详细介绍。只要本领域所属技术人员实施本发明实施例一中数据交互方法所采用的装置,都属于本申请所欲保护的范围。Since the data interaction device described above is a device that can execute the data interaction method in Embodiment 1 of the present invention, based on the data interaction method introduced in Embodiment 1 of the present invention, those skilled in the art can understand the The specific implementation of the data interaction device and its various variations, so how the data interaction device implements the data interaction method in Embodiment 1 of the present invention will not be described in detail here. As long as a person skilled in the art implements the device used by the data interaction method in Embodiment 1 of the present invention, it all falls within the scope of protection intended by the present application.
实施例五Embodiment five
图5是本发明实施例五提供的一种数据交互装置的示意图,如图5所示,所述装置包括:数据资源获取请求发送模块510、数据接收获取模块520、接收方记账数据计算模块530以及数据处理模块540,其中:Fig. 5 is a schematic diagram of a data interaction device provided by Embodiment 5 of the present invention. As shown in Fig. 5, the device includes: a data resource acquisition
数据资源获取请求发送模块510,用于向数据发送方发送数据资源获取请求;A data resource acquisition
数据接收获取模块520,用于接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;A data receiving and acquiring
接收方记账数据计算模块530,用于根据所述打包发送数据计算接收方记账数据;The recipient's billing
数据处理模块540,用于根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;A
其中,所述接收方记账数据用于所述数据发送方对所述打包发送数据进行更新处理。Wherein, the accounting data of the receiver is used for the data sender to update the packaged and sent data.
本实施例的技术方案,通过数据接收方根据数据发送方发送的打包发送数据计算接收方记账数据,并获取打包发送数据对应的发送方记账数据,以根据发送方记账数据和接收方记账数据对打包发送数据进行核对,并根据核对结果对打包发送数据和接收方记账数据进行处理,解决现有数据交互方式存在的数据可靠性和安全性较低等问题,从而保证数据交互的可靠性和准确性。In the technical solution of this embodiment, the data receiver calculates the accounting data of the receiving party according to the packaged sending data sent by the data sender, and obtains the accounting data of the sending party corresponding to the packaged sending data, so as to calculate the accounting data of the receiving party according to the accounting data of the sending party and the receiving party. The accounting data checks the packaged and sent data, and processes the packaged and sent data and the receiver’s accounting data according to the check result, so as to solve the problems of low data reliability and security in the existing data interaction mode, so as to ensure data interaction reliability and accuracy.
可选的,所述装置还包括:数据发送方确定模块,用于对接收方数据资源目录进行同步,并根据同步结果确定所述数据发送方;其中,所述数据发送方本地存储目标发送数据。Optionally, the device further includes: a data sender determining module, configured to synchronize the receiver's data resource directory, and determine the data sender according to the synchronization result; wherein, the data sender locally stores the target sending data .
可选的,数据接收获取模块520,具体用于对所述接收方数据资源目录定期同步,以获取所述打包发送数据对应的发送方记账数据。Optionally, the data receiving and acquiring
可选的,所述接收方记账数据包括数据资源标识符、数据文件名称、行政区划代码、记账日期、XML资源统计量、BCP资源统计量、数据资源总量、数据资源记账开始日期、数据资源记账结束日期、数据指纹类型、数据指纹及对账状态。Optionally, the receiver’s accounting data includes data resource identifier, data file name, administrative division code, accounting date, XML resource statistics, BCP resource statistics, total data resources, and data resource accounting start date , data resource bookkeeping end date, data fingerprint type, data fingerprint and reconciliation status.
可选的,数据处理模块540,具体用于如果核对结果为对账成功,则保存所述打包发送数据,并更改所述接收方记账数据的对账状态为销账状态;否则,删除所述打包发送数据,并更改所述接收方记账数据的对账状态为失败状态。Optionally, the
上述数据交互装置可执行本发明实施例二所提供的数据交互方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本发明实施例二提供的数据交互方法。The above-mentioned data interaction device can execute the data interaction method provided in Embodiment 2 of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, refer to the data interaction method provided in Embodiment 2 of the present invention.
由于上述所介绍的数据交互装置为可以执行本发明实施例二中的数据交互方法的装置,故而基于本发明实施例二中所介绍的数据交互方法,本领域所属技术人员能够了解本实施例的数据交互装置的具体实施方式以及其各种变化形式,所以在此对于该数据交互装置如何实现本发明实施例二中的数据交互方法不再详细介绍。只要本领域所属技术人员实施本发明实施例二中数据交互方法所采用的装置,都属于本申请所欲保护的范围。Since the data interaction device described above is a device that can execute the data interaction method in Embodiment 2 of the present invention, based on the data interaction method described in Embodiment 2 of the present invention, those skilled in the art can understand the The specific implementation of the data interaction device and its various variants, so how the data interaction device realizes the data interaction method in the second embodiment of the present invention will not be described in detail here. As long as those skilled in the art implement the device used by the data interaction method in Embodiment 2 of the present invention, they all fall within the scope of protection intended by this application.
实施例六Embodiment six
图6是本发明实施例六提供的一种数据交互系统的示意图,如图6所示,所述系统包括:数据发送方610以及数据接收方620,其中:FIG. 6 is a schematic diagram of a data interaction system provided by Embodiment 6 of the present invention. As shown in FIG. 6, the system includes: a
数据接收方620用于向所述数据发送方发送数据资源获取请求;The
数据发送方610用于接收所述数据资源获取请求,根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;The
数据发送方610还用于将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;The
数据接收方620还用于接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;根据所述打包发送数据计算接收方记账数据;根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;The
数据发送方610还用于根据所述接收方记账数据对所述打包发送数据进行更新处理。The
本发明实施例通过数据发送方根据数据接收方发送的数据资源获取请求确定目标发送数据,以对目标发送数据进行交互预处理,得到打包发送数据和发送方记账数据等数据,并将发送方记账数据注册到发送方数据资源目录,将打包发送数据发送至数据接收方。数据接收方可以获取打包发送数据对应的发送方记账数据,并根据打包发送数据计算接收方记账数据,以根据发送方记账数据和接收方记账数据对打包发送数据进行核对,并根据核对结果对打包发送数据和接收方记账数据进行处理,数据发送方还可以根据接收方记账数据对打包发送数据进行更新处理,解决现有数据交互方式存在的数据可靠性和安全性较低等问题,从而保证数据交互的可靠性和准确性。In the embodiment of the present invention, the data sender determines the target sending data according to the data resource acquisition request sent by the data receiver, so as to perform interactive preprocessing on the target sending data, obtain data such as packaged sending data and sender accounting data, and send the sender Accounting data is registered to the data resource directory of the sender, and the packaged sending data is sent to the data receiver. The data receiver can obtain the sender's billing data corresponding to the packaged data, and calculate the receiver's billing data based on the packaged data, so as to check the packaged data according to the sender's billing data and the receiver's billing data, and according to Check the results to process the packaged sending data and the receiver’s accounting data, and the data sender can also update the packaged sending data according to the receiver’s accounting data, so as to solve the problem of low data reliability and security in the existing data interaction mode And other issues, so as to ensure the reliability and accuracy of data interaction.
实施例七Embodiment seven
图7为本发明实施例六提供的一种计算机设备的结构示意图。图7示出了适于用来实现本发明实施方式的计算机设备712的框图。图7显示的计算机设备712仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。计算机设备712典型的是承担数据发送方功能的计算设备。FIG. 7 is a schematic structural diagram of a computer device provided by Embodiment 6 of the present invention. Figure 7 shows a block diagram of a
如图7所示,计算机设备712以通用计算设备的形式表现。计算机设备712的组件可以包括但不限于:一个或者多个处理器716,存储装置728,连接不同系统组件(包括存储装置728和处理器716)的总线718。As shown in FIG. 7,
总线718表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(Industry StandardArchitecture,ISA)总线,微通道体系结构(Micro Channel Architecture,MCA)总线,增强型ISA总线、视频电子标准协会(Video Electronics Standards Association,VESA)局域总线以及外围组件互连(Peripheral Component Interconnect,PCI)总线。
计算机设备712典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备712访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。
存储装置728可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(Random Access Memory,RAM)730和/或高速缓存存储器732。计算机设备712可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统734可以用于读写不可移动的、非易失性磁介质(图7未显示,通常称为“硬盘驱动器”)。尽管图7中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如只读光盘(Compact Disc-Read Only Memory,CD-ROM)、数字视盘(Digital Video Disc-Read Only Memory,DVD-ROM)或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线718相连。存储装置728可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。The
具有一组(至少一个)程序模块726的程序736,可以存储在例如存储装置728中,这样的程序模块726包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块726通常执行本发明所描述的实施例中的功能和/或方法。A
计算机设备712也可以与一个或多个外部设备714(例如键盘、指向设备、摄像头、显示器724等)通信,还可与一个或者多个使得用户能与该计算机设备712交互的设备通信,和/或与使得该计算机设备712能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(Input/Output,I/O)接口722进行。并且,计算机设备712还可以通过网络适配器720与一个或者多个网络(例如局域网(Local Area Network,LAN),广域网Wide Area Network,WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器720通过总线718与计算机设备712的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备712使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、磁盘阵列(Redundant Arraysof Independent Disks,RAID)系统、磁带驱动器以及数据备份存储系统等。The
处理器716通过运行存储在存储装置728中的程序,从而执行各种功能应用以及数据处理,例如实现本发明上述实施例所提供的数据交互方法。The
也即,所述处理单元执行所述程序时实现:接收数据接收方发送的数据资源获取请求;根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;其中,所述发送方记账数据用于所述数据接收方对接收的所述打包发送数据进行核对。That is, when the processing unit executes the program, it realizes: receiving the data resource acquisition request sent by the data receiver; determining the target transmission data according to the data resource acquisition request, and performing interactive preprocessing on the target transmission data to obtain Interactive preprocessing data; wherein, the interactive preprocessing includes packaging processing and accounting processing; the interactive preprocessing data includes packaging sending data and sender accounting data; registering the sending party accounting data to the sender data resource directory, and send the packaged sending data to the data receiver; wherein, the sender accounting data is used by the data receiver to check the received packaged sending data.
实施例八Embodiment Eight
本实施例八是本发明实施例提供的一种用于执行本发明实施例二所提供的数据交互方法的设备,该设备典型的是承担数据接收方功能的计算设备,该设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本发明实施例二所提供的数据交互方法:向数据发送方发送数据资源获取请求;接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;根据所述打包发送数据计算接收方记账数据;根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;其中,所述接收方记账数据用于所述数据发送方对所述打包发送数据进行更新处理。其具体结构以及细节内容可参照图7和实施例七。Embodiment 8 of the present invention is a device for executing the data interaction method provided by Embodiment 2 of the present invention. The device is typically a computing device that assumes the function of a data receiver, and the device includes: one or A plurality of processors; a storage device 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 realize the implementation of the present invention The data interaction method provided in Example 2: send a data resource acquisition request to the data sender; receive the packaged data sent by the data sender, and obtain the sender accounting data corresponding to the packaged data; Send data to calculate receiver's accounting data; check the packaged sending data according to the sender's accounting data and the receiver's accounting data, and check the packaged sending data and the receiver's accounting data according to the check result accounting data; wherein, the receiver’s accounting data is used by the data sender to update the packaged and sent data. Its specific structure and details can refer to FIG. 7 and Embodiment 7.
实施例九Embodiment nine
本发明实施例九还提供一种存储计算机程序的计算机存储介质,所述计算机程序在由计算机处理器执行时用于执行本发明上述实施例任一所述的数据交互方法:接收数据接收方发送的数据资源获取请求;根据所述数据资源获取请求确定目标发送数据,并对所述目标发送数据进行交互预处理,得到交互预处理数据;其中,所述交互预处理包括打包处理和记账处理;所述交互预处理数据包括打包发送数据和发送方记账数据;将所述发送方记账数据注册到发送方数据资源目录,并将所述打包发送数据发送至所述数据接收方;其中,所述发送方记账数据用于所述数据接收方对接收的所述打包发送数据进行核对。Embodiment 9 of the present invention also provides a computer storage medium storing a computer program, the computer program is used to execute the data interaction method described in any one of the above embodiments of the present invention when executed by a computer processor: A data resource acquisition request; determine the 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 includes packaging processing and accounting processing ; The interactive preprocessing data includes packaged sending data and sender accounting data; registering the sender accounting data to the sender data resource directory, and sending the packaged sending data to the data receiver; wherein , the sender accounting data is used by the data receiver to check the received packaged sending data.
本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(Read Only Memory,ROM)、可擦式可编程只读存储器((Erasable Programmable ReadOnly Memory,EPROM)或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may use 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more conductors, portable computer disks, hard disks, Random Access Memory (RAM), Read Only Memory (Read Only Memory) , ROM), erasable programmable read-only memory ((Erasable Programmable ReadOnly Memory, EPROM) or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or the above any suitable combination. In this document, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal carrying computer readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于无线、电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言——诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present invention may be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural programming language - such as "C" or a similar programming language. 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 cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
实施例十Embodiment ten
本发明实施例十还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时可实现上述实施例二所述的数据交互方法:向数据发送方发送数据资源获取请求;接收所述数据发送方发送的打包发送数据,并获取所述打包发送数据对应的发送方记账数据;根据所述打包发送数据计算接收方记账数据;根据所述发送方记账数据和所述接收方记账数据对所述打包发送数据进行核对,并根据核对结果对所述打包发送数据和所述接收方记账数据进行处理;其中,所述接收方记账数据用于所述数据发送方对所述打包发送数据进行更新处理。其具体的细节内容描述可参照实施例九。Embodiment 10 of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the data interaction method described in Embodiment 2 above can be implemented: sending data resources to the data sender Obtain a request; receive the packaged sending data sent by the data sender, and obtain the sender accounting data corresponding to the packaged sending data; calculate the receiving party accounting data according to the packaged sending data; data and the receiver’s accounting data to check the packaged and sent data, and process the packaged and sent data and the receiver’s accounting data according to the check result; wherein the receiver’s accounting data is used for The data sender performs update processing on the packaged and sent data. Its specific details can be described with reference to the ninth embodiment.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911249800.6A CN110928955B (en) | 2019-12-09 | 2019-12-09 | A data interaction method, 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 | A data interaction method, device, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110928955A CN110928955A (en) | 2020-03-27 |
| CN110928955B true CN110928955B (en) | 2022-11-15 |
Family
ID=69858454
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911249800.6A Expired - Fee Related CN110928955B (en) | 2019-12-09 | 2019-12-09 | A data interaction method, device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110928955B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112364040B (en) * | 2020-12-01 | 2024-05-10 | 北京锐安科技有限公司 | Data checking method, device, medium and electronic equipment |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102137027A (en) * | 2011-05-03 | 2011-07-27 | 厦门市美亚柏科信息股份有限公司 | Reliable data transmission method and device |
| 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 | 深圳壹账通智能科技有限公司 | H5-based data interaction method, device, computer equipment and storage medium |
| 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 |
-
2019
- 2019-12-09 CN CN201911249800.6A patent/CN110928955B/en not_active Expired - Fee Related
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102137027A (en) * | 2011-05-03 | 2011-07-27 | 厦门市美亚柏科信息股份有限公司 | Reliable data transmission method and device |
| 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 | 深圳壹账通智能科技有限公司 | H5-based data interaction method, device, computer equipment and storage medium |
| 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 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110928955A (en) | 2020-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6745884B2 (en) | Data synchronization method, device and system | |
| US12135612B2 (en) | Snapshotting hardware security modules and disk metadata stores | |
| CN111225012A (en) | Transaction processing method, apparatus and apparatus | |
| EP3362901A1 (en) | Telemetry response system | |
| CN113127108B (en) | Business request processing method and device, storage medium and electronic device | |
| CN111309747A (en) | Data synchronization method, system and device | |
| CN109445841B (en) | Interface document management method, device, server and storage medium | |
| CN113760565A (en) | A data processing platform, data processing method, storage medium and electronic device | |
| CN111338834B (en) | Data storage method and device | |
| CN112689020B (en) | A message transmission method, message middleware, electronic equipment and storage medium | |
| CN114780519A (en) | DBC file generation method, device, equipment and medium based on CAN communication | |
| CN111327680B (en) | Authentication data synchronization method, device, system, computer equipment and storage medium | |
| CN110928955B (en) | A data interaction method, device, computer equipment and storage medium | |
| CN111435323B (en) | Information transmission method, device, terminal, server and storage medium | |
| CN101997851B (en) | Method for accessing directory of server side, client side, server side and system | |
| CN115052003A (en) | Data synchronization method, related device and medium | |
| CN102523205A (en) | Determination method and device for content checksum | |
| CN112416981A (en) | Data processing method and device based on block chain, electronic equipment and storage medium | |
| CN112131611A (en) | Data correctness verification method, device, equipment, system and storage medium | |
| CN115695587B (en) | A business data processing system, method, device and storage medium | |
| CN115985099A (en) | Rail transit data unloading method and device | |
| CN106990992A (en) | service configuration method, device, server and storage medium | |
| CN113133107A (en) | Method and device for synchronizing information | |
| CN113283891A (en) | Information processing method and device and electronic equipment | |
| CN116560756B (en) | Service arrangement method, electronic device, and computer-readable storage medium |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20221115 |
