A data synchronization method, device, apparatus, and storage medium

By creating cross-network data attribute templates and utilizing network gateway transmission technology, the problems of inaccurate attribute control and low synchronization timeliness in cross-network data synchronization have been solved, enabling precise management and incremental synchronization of cross-network data, and improving data security and synchronization efficiency.

CN119383195BActive Publication Date: 2025-11-07CETC CYBERSPACE SECURITY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411597940.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-11-07
Estimated Expiration
2044-11-11

AI Technical Summary

Technical Problem

The existing intranet architecture service system cannot meet the data synchronization needs of mobile office scenarios, and the cross-network data attribute control is not precise, which makes it difficult to manage the export of sensitive data and incremental export, and the synchronization timeliness is low.

Method used

By acquiring information from external network systems, cross-network data attribute templates are created, target cross-network data is generated, and data transmission and synchronization are performed using preset gateways. Synchronous and asynchronous gateway modes are supported, enabling precise control and incremental export of cross-network data attributes.

Benefits of technology

It enables precise control over cross-network data attributes, enhances data security and synchronization timeliness, and meets the stability and timeliness requirements of cross-network data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383195B_ABST
    Figure CN119383195B_ABST
Patent Text Reader

Abstract

The application discloses a data synchronization method and device, equipment and storage medium, and relates to the technical field of communication. The method comprises the following steps: acquiring external network system information of an external network system, creating a cross-network data attribute template according to the external network system information, generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sending the target cross-network data to a preset gateway; transmitting the target cross-network data to the external network system through the preset gateway, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset gateway; and then confirming a data synchronization state of the target cross-network data in the external network system according to the data synchronization result. In this way, the cross-network data attribute can be accurately controlled, and the cross-network data can be incrementally exported when there is new data.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of communication technology, in particular to a data synchronization method, device, equipment and storage medium. BACKGROUND

[0002] The existing internal network architecture service system can only meet the office of the e-government internal network, and cannot meet the mobile office scenario. At this time, it is necessary to synchronize the data in the e-government internal network to the mobile office network, so as to meet the normal office business operation of the same personnel in the e-government internal network and the mobile office network.

[0003] At present, the network between the e-government internal network and the mobile office network cannot be directly reached, that is, there is an isolation gateway or other manufacturer's data single export device between the e-government internal network and the mobile office network. The required data is exported from the e-government internal network and then imported into the mobile office network. First, the data attributes exported are not controlled in detail, so that whether the data attributes are needed or not, sensitive data attributes will be exported. Secondly, the exported data records and incremental exported data cannot be effectively managed. Finally, in the existing scheme, the exported and imported data cannot be synchronized online through the adaptation of the interface of the isolation device. In terms of operation ease and timeliness, it cannot be compared with the online mode.

[0004] From the above, how to accurately control the cross-network data attributes and incrementally export the cross-network data when there is new data is a problem to be solved. SUMMARY

[0005] Therefore, the purpose of the present application is to provide a data synchronization method, device, equipment and storage medium, which can accurately control the cross-network data attributes and incrementally export the cross-network data when there is new data. The specific scheme is as follows:

[0006] In a first aspect, the present application provides a data synchronization method applied to an internal network system, comprising:

[0007] Obtaining external network system information of an external network system, to create a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sending the target cross-network data to a preset gateway;

[0008] Transmitting the target cross-network data to the external network system through the preset gateway, so that the external network system saves the target cross-network data to the local, and feeds back the corresponding data synchronization result to the preset gateway;

[0009] If the preset gateway is a synchronous gateway, a data synchronization result actively fed back by the synchronous gateway is received to confirm a data synchronization state of the target cross-network data in the external network system according to the data synchronization result;

[0010] If the preset gateway is an asynchronous gateway, the data synchronization result is obtained from the asynchronous gateway to confirm the data synchronization state of the target cross-network data in the external network system according to the data synchronization result.

[0011] Optionally, the external network system information of the external network system is obtained to create a cross-network data attribute template according to the external network system information, and the cross-network data attribute template includes:

[0012] The external network system information of the external network system is obtained to determine data attributes of data to be transmitted according to the external network system information;

[0013] The cross-network data attribute template is created based on the data attributes.

[0014] Optionally, the preset cross-network data generation strategy is a generation strategy of target cross-network data corresponding to the cross-network data attribute template after conversion of a target format resource file; wherein the target format resource file is a file obtained after conversion of a resource file in the internal network system into a target format.

[0015] Optionally, after the external network system information of the external network system is obtained to create a cross-network data attribute template according to the external network system information, and target cross-network data corresponding to the cross-network data attribute template is generated based on a preset cross-network data generation strategy, the method further includes:

[0016] If the current internal network system is in an offline state, the target cross-network data is saved into an offline cross-network data list, and a corresponding cross-network data file is generated, so that after the external network system obtains the cross-network data file, the cross-network data file is parsed, and the target cross-network data obtained by parsing is saved to the local.

[0017] Optionally, after the external network system information of the external network system is obtained to create a cross-network data attribute template according to the external network system information, and target cross-network data corresponding to the cross-network data attribute template is generated based on a preset cross-network data generation strategy, the method further includes:

[0018] If there is new data in the local, new cross-network data corresponding to the cross-network data attribute template is generated based on the preset cross-network data generation strategy, and the new cross-network data is sent to the preset gateway;

[0019] If the preset network barrier successfully sends the added cross-network data to the external network system, a data cross-network record corresponding to the added cross-network data is generated.

[0020] Optionally, the target cross-network data is transmitted to the external network system through the preset network barrier, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset network barrier, including:

[0021] If the preset network barrier is a synchronous network barrier, the target cross-network data is sent to the external network system through the synchronous network barrier, so that the external network system saves the target cross-network data locally and feeds back a first data synchronization result to the synchronous network barrier.

[0022] If the preset network barrier is an asynchronous network barrier, the target cross-network data is saved to the asynchronous network barrier, and a data sending result corresponding to the target cross-network data returned by the asynchronous network barrier is received, so that the external network system obtains the target cross-network data saved by the asynchronous network barrier, saves the target cross-network data locally, and feeds back a second data synchronization result to the asynchronous network barrier.

[0023] Optionally, if the preset network barrier is an asynchronous network barrier, the data synchronization result is obtained from the asynchronous network barrier, and a data synchronization state of the target cross-network data in the external network system is confirmed according to the data synchronization result, including:

[0024] If the preset network barrier is an asynchronous network barrier, a synchronization result query request is generated based on the data sending result, and the synchronization result query request is sent to the asynchronous network barrier, so that the asynchronous network barrier returns the second data synchronization result based on the synchronization result query request.

[0025] The second data synchronization result returned by the asynchronous network barrier is received, and a data synchronization state of the target cross-network data in the external network system is confirmed according to the second data synchronization result.

[0026] In a second aspect, the present application provides a data synchronization device applied to an internal network system, including:

[0027] A cross-network data generation module is configured to obtain external network system information of an external network system, create a cross-network data attribute template according to the external network system information, generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and send the target cross-network data to a preset network barrier.

[0028] a cross-network data transmission module, configured to transmit the target cross-network data to the external network system through the preset network barrier, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset network barrier;

[0029] a first data synchronization state confirmation module, configured to, if the preset network barrier is a synchronous network barrier, receive the data synchronization result actively fed back by the synchronous network barrier, and confirm a data synchronization state of the target cross-network data in the external network system according to the data synchronization result;

[0030] a second data synchronization state confirmation module, configured to, if the preset network barrier is an asynchronous network barrier, acquire the data synchronization result from the asynchronous network barrier, and confirm a data synchronization state of the target cross-network data in the external network system according to the data synchronization result.

[0031] In a third aspect, the present application provides an electronic device, comprising:

[0032] a memory, configured to save a computer program;

[0033] a processor, configured to execute the computer program to implement the data synchronization method.

[0034] In a fourth aspect, the present application provides a computer readable storage medium, configured to save a computer program, wherein the computer program is executed by a processor to implement the data synchronization method.

[0035] The present application first acquires external network system information of an external network system, creates a cross-network data attribute template according to the external network system information, generates target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sends the target cross-network data to a preset network barrier; transmits the target cross-network data to the external network system through the preset network barrier, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset network barrier; if the preset network barrier is a synchronous network barrier, receives the data synchronization result actively fed back by the synchronous network barrier, and confirms a data synchronization state of the target cross-network data in the external network system according to the data synchronization result; if the preset network barrier is an asynchronous network barrier, acquires the data synchronization result from the asynchronous network barrier, and confirms a data synchronization state of the target cross-network data in the external network system according to the data synchronization result.

[0036] From the above, the application can generate corresponding cross-network data by creating a cross-network data attribute template, can accurately control the attributes of the exported cross-network data, can enhance the security of the cross-network data, and can generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy. When new data appears, the internal network system can incrementally generate new cross-network data according to the cross-network data generation strategy, and incrementally synchronize the cross-network data. BRIEF DESCRIPTION OF DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of the provided drawings.

[0038] Figure 1 A data synchronization method flow chart disclosed by the present application;

[0039] Figure 2 A data synchronization method timing chart in a synchronous gateway case disclosed by the present application;

[0040] Figure 3 A data synchronization method timing chart in an asynchronous gateway case disclosed by the present application;

[0041] Figure 4 A specific data synchronization method flow chart disclosed by the present application;

[0042] Figure 5 A data synchronization device structure schematic diagram disclosed by the present application;

[0043] Figure 6 An electronic equipment structure diagram disclosed by the present application. DETAILED DESCRIPTION

[0044] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.

[0045] Currently, there is an isolation gateway or other manufacturer's data single guide device between the e-government intranet and the mobile office network. The required data is exported from the e-government intranet and then imported into the mobile office network. First, the data attributes exported from the e-government intranet have not been controlled in a fine-grained manner, so that the time efficiency of the entire process of data synchronization between the e-government intranet and the mobile office network is very low. Whether the data attributes are needed or not, sensitive data attributes will be exported. Secondly, the exported data records and incremental exported data cannot be effectively managed, and the time efficiency of the entire process of data synchronization between the e-government intranet and the mobile office network is very low. Therefore, the present application provides a data synchronization scheme, which can accurately control cross-network data attributes and incrementally export cross-network data when there is new data.

[0046] Referring to Figure 1 As shown in the figure, the embodiment of the present application discloses a data synchronization method, comprising:

[0047] Step S11, obtaining the external system information of the external system, to create a cross-network data attribute template according to the external system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, to send the target cross-network data to a preset gateway.

[0048] In this embodiment, the external system information of the external system that establishes a communication connection with the intranet system is obtained, to create a cross-network data attribute template according to the external system information. The intranet system can be pre-connected with multiple external systems. The external system is any one of the multiple external systems that establish a communication connection with the intranet system. The external system information includes but is not limited to the identity authentication information, IP address information (Internet Protocol Address), system permission information and data attribute information of the data to be transmitted of the external system, which can be determined according to the actual application scenario. Specifically, the external system information of the external system is obtained, to create a cross-network data attribute template according to the external system information, including obtaining the identity authentication information, IP address information and system permission information of the external system, and creating a cross-network data attribute template based on the data attribute of the data to be transmitted in the external system information. Through the cross-network data attribute template, the cross-network data attribute can be accurately controlled, and the security of cross-network data is enhanced.

[0049] In the embodiment, the target cross-network data corresponding to the cross-network data attribute template is generated based on a preset cross-network data generation strategy. The preset cross-network data generation strategy is a generation strategy of converting a target format resource file to obtain the target cross-network data corresponding to the cross-network data attribute template. The target format resource file is a file obtained by converting a resource file in the internal network system into a target format. In a specific implementation, the target cross-network data corresponding to the cross-network data attribute template is generated based on the preset cross-network data generation strategy, including: converting the resource file in the internal network system into a file in a JSON (JavaScript Object Notation, a lightweight data exchange format) format, and converting the obtained file in the JSON format into the target cross-network data corresponding to the cross-network data attribute template. Further, the data generation strategy can be used to incrementally generate cross-network data when there is new data locally, and generate a corresponding data cross-network record. In a specific implementation, the external network system information of the external network system is obtained, the cross-network data attribute template is created according to the external network system information, and the target cross-network data corresponding to the cross-network data attribute template is generated based on the preset cross-network data generation strategy. After the target cross-network data is sent to the preset gateway, it further includes: if there is new data locally, converting the new resource file in the internal network system into a file in the JSON format, and converting the obtained file in the JSON format into new cross-network data corresponding to the cross-network data attribute template. And send the new cross-network data to the preset gateway; if the new cross-network data is successfully sent to the external network system through the preset gateway, the new resource file is assigned a corresponding data cross-network record identifier. It can be understood that the data cross-network record identifier is used to determine whether the resource file in the internal network system is a new resource file. If the resource file is not assigned the data cross-network record identifier, the resource file is a new resource file. If the resource file is assigned the data cross-network record identifier, the resource file is not a new resource file.

[0050] In step S12, the target cross-network data is transmitted to the external network system through the preset gateway, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset gateway.

[0051] In this embodiment, the target cross-network data is transmitted to the external network system through the preset gateway, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset gateway. It should be noted that the external network system needs to select different data acquisition modes according to the type of the preset gateway. Specifically, in one specific implementation, if the preset gateway is a synchronous gateway, the target cross-network data is actively sent to the external network system through the synchronous gateway, so that the external network system saves the target cross-network data locally and feeds back a first data synchronization result to the synchronous gateway at a first time. That is, if the preset gateway is a synchronous gateway, the target cross-network data can be actively sent to the external network system to ensure the timeliness of the target cross-network data. In another specific implementation, if the preset gateway is an asynchronous gateway, the target cross-network data is saved to the asynchronous gateway, and a data sending result corresponding to the target cross-network data returned by the asynchronous gateway is received, so that the external network system acquires the target cross-network data saved by the asynchronous gateway, saves the target cross-network data locally, and feeds back a second data synchronization result to the asynchronous gateway. That is, if the preset gateway is an asynchronous gateway, the asynchronous gateway feeds back a data sending result corresponding to the target cross-network data at a first time after saving the target cross-network data locally, and the data sending result is used to indicate whether the target cross-network data is successfully saved to the asynchronous gateway, so that the external network system acquires the target cross-network data at any time through a preset acquisition instruction. By returning the data sending result, the internal network system can know the synchronization state of the current target cross-network data, and the stability of the data synchronization process can be ensured.

[0052] In step S13, if the preset gateway is a synchronous gateway, a data synchronization result actively fed back by the synchronous gateway is received, and a data synchronization state of the target cross-network data in the external network system is confirmed according to the data synchronization result.

[0053] In this embodiment, if the preset gateway is a synchronous gateway, after the external network system feeds back a data synchronization result to the synchronous gateway, the data synchronization result is fed back to the internal network system, so that a data synchronization state of the target cross-network data in the external network system is confirmed according to the data synchronization result. The data synchronization result is used to indicate whether the target cross-network data is successfully synchronized to the external network system.

[0054] In step S14, if the preset gateway is an asynchronous gateway, the data synchronization result is acquired from the asynchronous gateway, and a data synchronization state of the target cross-network data in the external network system is confirmed according to the data synchronization result.

[0055] In the embodiment, if the preset gateway is an asynchronous gateway, a data sending result corresponding to the target cross-network data returned by the asynchronous gateway is received, a synchronous result query request is generated based on the data sending result, and then the synchronous result query request is sent to the asynchronous gateway, so that the asynchronous gateway returns a data synchronization result fed back by the external network system to the synchronous gateway based on the synchronous result query request; the second data synchronization result returned by the asynchronous gateway is received, and a data synchronization state of the target cross-network data in the external network system is confirmed according to the data synchronization result.

[0056] As can be seen from the above, the embodiments of the application can generate corresponding cross-network data by creating a cross-network data attribute template, can accurately control the attributes of the exported cross-network data, can be compatible with various isolated gateway devices, can enhance the security of cross-network data on the premise of meeting the timeliness of cross-network data, and can meet the cross-network data needs between different network systems. And based on the preset cross-network data generation strategy, the target cross-network data corresponding to the cross-network data attribute template is generated, when new data appears, the internal network system can incrementally generate new cross-network data according to the cross-network data generation strategy, and incrementally synchronize the cross-network data.

[0057] Referring to Figure 2 As shown in the figure, for the synchronous gateway, the application provides a data synchronization method, which comprises:

[0058] In the embodiment, the mobile office target system information corresponding to the mobile office network system is added in the e-government internal network system, and the corresponding cross-network data attribute template for the mobile office network system is created in the e-government internal network system according to the mobile office target system information. Create a cross-network data generation strategy, and generate cross-network data according to the cross-network data generation strategy and the cross-network data attribute template, and then send the generated cross-network data to the synchronous gateway. The cross-network data is sent to the mobile office network system through the synchronous gateway, so that the mobile office network system processes the received cross-network data, and returns the processing result to the synchronous gateway. The corresponding synchronization result is returned to the e-government internal network system through the synchronous gateway, so as to complete the data synchronization process. It can be understood that when there is new data, the system in the e-government internal network will incrementally generate new cross-network data according to the cross-network data generation strategy, and synchronize the new cross-network data to the mobile office network system based on the synchronous gateway.

[0059] From the above, the embodiment of the application can generate corresponding cross-domain data by creating a cross-network data attribute template, can accurately control the attributes of the exported cross-network data, can meet the timeliness of cross-network data based on a synchronous gateway device, and can generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy. When new data appears, the internal network system can incrementally generate new cross-network data according to the cross-network data generation strategy and incrementally synchronize the cross-network data.

[0060] Referring to Figure 3 As shown in the figure, for an asynchronous gateway, the application provides a data synchronization method, which includes:

[0061] In the embodiment, the mobile office destination system information corresponding to the mobile office network system is added in the e-government internal network system, and the corresponding cross-network data attribute template is created for the mobile office network system in the e-government internal network system according to the mobile office destination system information. A cross-network data generation strategy is created, and cross-network data is generated according to the cross-network data generation strategy and the cross-network data attribute template, and then the generated cross-network data is sent to the asynchronous gateway. After receiving the cross-network data, the asynchronous gateway returns the processing result for the cross-network data to the e-government internal network system, and saves the cross-network data to the local, so that the mobile office network system obtains the cross-network data from the asynchronous gateway and processes the cross-network data to obtain the corresponding processing result. After the asynchronous gateway receives the processing result returned by the mobile office network system, the e-government internal network system can actively query the synchronization state of the cross-network data from the asynchronous gateway, so that the asynchronous gateway returns the corresponding data synchronization state, to complete the data synchronization process. It can be understood that when there is new data, the system in the e-government internal network will incrementally generate new cross-network data according to the cross-network data generation strategy, and synchronize the new cross-network data to the mobile office network system based on the asynchronous gateway.

[0062] From the above, the embodiment of the application can generate corresponding cross-domain data by creating a cross-network data attribute template, can accurately control the attributes of the exported cross-network data, can meet the timeliness of cross-network data based on a synchronous gateway device, and can generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy. When new data appears, the internal network system can incrementally generate new cross-network data according to the cross-network data generation strategy and incrementally synchronize the cross-network data.

[0063] Referring to Figure 4 As shown in the figure, in order to avoid the situation that data cannot be synchronized due to the internal network system being in an offline state, the embodiment of the application provides a data synchronization method, which includes:

[0064] In step S21, the external network system information of the external network system is acquired to create a cross-network data attribute template according to the external network system information, and target cross-network data corresponding to the cross-network data attribute template is generated based on a preset cross-network data generation strategy.

[0065] In step S22, if the current internal network system is in an offline state, the target cross-network data is saved into an offline cross-network data list, and a corresponding cross-network data file is generated. After the external network system obtains the cross-network data file, the cross-network data file is parsed, and the target cross-network data obtained by parsing is saved locally.

[0066] In the embodiment, if the current internal network system is in an offline state, the target cross-network data is saved into an offline cross-network data list, and a corresponding cross-network data file is generated. The cross-network data file can be transmitted through a preset storage medium, which includes but is not limited to a U disk, an optical disk and a data transmission line, and can be determined according to an actual application scenario, which is not limited here. Correspondingly, after the external network system obtains the cross-network data file through the preset storage medium, the cross-network data file is parsed, and the target cross-network data obtained by parsing is saved locally. In a specific implementation, the target cross-network data is exported to obtain a corresponding data file, and the data file is burned into an optical disk, so that the external network system synchronizes the target cross-network data to the local by reading the data file in the optical disk.

[0067] The specific implementation process of step S21 can refer to the corresponding content in the foregoing embodiments, which will not be repeated here.

[0068] As can be seen from the above, the embodiments of the present application can generate corresponding cross-domain data by creating a cross-network data attribute template, accurately control the properties of exported cross-network data, enhance the security of cross-network data, generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and incrementally generate new cross-network data according to the cross-network data generation strategy when new data is added. At the same time, the cross-network data can be selected for export according to the generated cross-network data list to generate a corresponding cross-network data file, which can be compatible with offline export and import of cross-network data.

[0069] Referring to Figure 5 The present application provides a data synchronization device, which comprises:

[0070] The cross-network data generation module 11 is configured to acquire external network system information of an external network system, create a cross-network data attribute template according to the external network system information, generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and send the target cross-network data to a preset gateway.

[0071] The cross-network data transmission module 12 is configured to transmit the target cross-network data to the external network system through the preset gateway, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset gateway.

[0072] The first data synchronization state confirmation module 13 is configured to, if the preset gateway is a synchronous gateway, receive a data synchronization result actively fed back by the synchronous gateway, and confirm a data synchronization state of the target cross-network data in the external network system according to the data synchronization result.

[0073] The second data synchronization state confirmation module 14 is configured to, if the preset gateway is an asynchronous gateway, acquire the data synchronization result from the asynchronous gateway, and confirm the data synchronization state of the target cross-network data in the external network system according to the data synchronization result.

[0074] As can be seen from the above, the application can precisely control the attributes of exported cross-network data by creating a cross-network data attribute template to generate corresponding cross-network data, can enhance the security of cross-network data, and can generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy. When new data is added, the internal network system can incrementally generate new cross-network data according to the cross-network data generation strategy and incrementally synchronize the cross-network data.

[0075] In some embodiments, the cross-network data generation module 11 can specifically include:

[0076] The cross-network data attribute determination unit is configured to acquire external network system information of an external network system, and determine data attributes of data to be transmitted according to the external network system information.

[0077] The cross-network data attribute template generation unit is configured to create a cross-network data attribute template based on the data attributes determined by the cross-network data attribute determination unit.

[0078] The target cross-network data generation unit is configured to generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy.

[0079] The new cross-network data generation unit is configured to, if there is new data in the local network, generate new cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy, and send the new cross-network data to a preset gateway.

[0080] a data cross-network record generation unit, configured to generate a data cross-network record corresponding to the new cross-network data if the new cross-network data is successfully sent to the external network system through the preset network barrier.

[0081] In some embodiments, the cross-network data transmission module 12 specifically can include:

[0082] a synchronous network barrier data synchronization unit, configured to send the target cross-network data to the external network system through the synchronous network barrier if the preset network barrier is a synchronous network barrier, so that the external network system saves the target cross-network data locally and feeds back a first data synchronization result to the synchronous network barrier;

[0083] an asynchronous network barrier data synchronization unit, configured to save the target cross-network data to the asynchronous network barrier if the preset network barrier is an asynchronous network barrier, and receive a data sending result corresponding to the target cross-network data returned by the asynchronous network barrier, so that the external network system obtains the target cross-network data saved by the asynchronous network barrier, saves the target cross-network data locally, and feeds back a second data synchronization result to the asynchronous network barrier;

[0084] an offline data synchronization unit, configured to save the target cross-network data to an offline cross-network data list if the current internal network system is in an offline state, and generate a corresponding cross-network data file, so that the external network system obtains the cross-network data file, parses the cross-network data file, and saves the target cross-network data obtained by parsing to the local.

[0085] In some embodiments, the second data synchronization state confirmation module 13 specifically can include:

[0086] a synchronous result query request generation unit, configured to generate a synchronous result query request based on the data sending result and send the synchronous result query request to the asynchronous network barrier if the preset network barrier is an asynchronous network barrier, so that the asynchronous network barrier returns the second data synchronization result based on the synchronous result query request;

[0087] a data synchronization state determination unit, configured to receive the second data synchronization result returned by the asynchronous network barrier, and confirm the data synchronization state of the target cross-network data in the external network system according to the second data synchronization result.

[0088] Further, the embodiment of the present application also discloses an electronic device, Figure 6is a structural diagram of the electronic device 20 according to an exemplary embodiment, and the content in the diagram should not be considered as any limitation on the use range of the present application. The electronic device 20 can specifically include at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is configured to store a computer program, and the processor 21 is configured to load and execute the computer program to implement the related steps in the data synchronization method disclosed in any of the preceding embodiments. In addition, the electronic device 20 in the embodiment can be an electronic computer.

[0089] In the embodiment, the power supply 23 is configured to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 is configured to create a data transmission channel between the electronic device 20 and external devices, and the communication protocol followed by the communication interface 24 can be any communication protocol applicable to the technical solution of the present application, which is not limited here; the input / output interface 25 is configured to obtain external input data or output data to the outside, and the specific interface type can be selected according to the specific application needs, which is not limited here.

[0090] In addition, the memory 22 as a carrier for resource storage can be a read-only memory, a random access memory, a magnetic disk, or an optical disk, etc., and the resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage mode can be temporary storage or permanent storage.

[0091] The operating system 221 is configured to manage and control each hardware device on the electronic device 20 and the computer program 222, and can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program capable of completing the data synchronization method executed by the electronic device 20 disclosed in any of the preceding embodiments, the computer program 222 can further include a computer program capable of completing other specific work.

[0092] Further, the present application further discloses a computer readable storage medium for storing a computer program; wherein the computer program is executed by a processor to implement the data synchronization method disclosed in the preceding embodiments. For the specific steps of the method, refer to the corresponding content disclosed in the preceding embodiments, which will not be repeated here.

[0093] The embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. For the same or similar parts between the embodiments, refer to each other. For the device disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple, and the relevant parts refer to the method part.

[0094] Those skilled in the art will further appreciate that the units and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various examples have been described herein in terms of their functionality, which has been described generally and symbolically in flow charts. Having thus described the functionality of the examples, a person of ordinary skill in the art will be able to implement such functions in hardware and / or software, using the means and methods available to those skilled in the art. The examples described herein are not meant to limit the scope of the application, but merely to provide examples of the methods and systems being described.

[0095] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0096] Finally, it should be noted that the terms "first", "second", and the like, herein do not denote any order, quantity, combination, or importance, but rather are used to distinguish one element from another, and are more especially used for the purpose of distinction from other elements in the specification. Also, the terms "comprise", "include" or "contain" or any other variant thereof are intended to encompass non-exclusive inclusions, such that processes, methods, articles, or apparatuses that comprise, include, or contain a list of elements are not limited to those elements, but can include other elements not expressly listed or inherent to such processes, methods, articles, or apparatuses. Without further limitation, an element defined by the phrase "comprising a... " does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0097] The above has introduced the technical solutions provided by the present application in detail, and the principles and implementation manners of the present application have been described by applying specific examples; the above example descriptions are only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges will have changes; in conclusion, the content of the specification should not be understood as limiting the present application.

Claims

1. A method of data synchronization, the method comprising: The application is applied to an internal network system, comprising: obtaining external network system information of an external network system, creating a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sending the target cross-network data to a preset gateway; transmitting the target cross-network data to the external network system through the preset gateway, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset gateway; if the preset gateway is a synchronous gateway, receiving the data synchronization result actively fed back by the synchronous gateway, and confirming the data synchronization state of the target cross-network data in the external network system according to the data synchronization result; if the preset gateway is an asynchronous gateway, obtaining the data synchronization result from the asynchronous gateway, and confirming the data synchronization state of the target cross-network data in the external network system according to the data synchronization result; wherein, after obtaining the external network system information of the external network system, creating a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, the method further comprises: if the current internal network system is in an offline state, saving the target cross-network data into an offline cross-network data list, and generating a corresponding cross-network data file, so that after the external network system obtains the cross-network data file, the cross-network data file is parsed, and the target cross-network data obtained by parsing is saved locally.

2. The data synchronization method of claim 1, wherein, The method of obtaining the external network system information of the external network system, creating a cross-network data attribute template according to the external network system information, comprises: obtaining external network system information of an external network system, determining the data attribute of the data to be transmitted according to the external network system information; creating a cross-network data attribute template based on the data attribute.

3. The data synchronization method of claim 1, wherein, The preset cross-network data generation strategy is a generation strategy for converting a target format resource file to obtain target cross-network data corresponding to the cross-network data attribute template; wherein the target format resource file is a file obtained by converting a resource file in the internal network system into a target format.

4. The data synchronization method of claim 1, wherein, After obtaining the external network system information of the external network system, creating a cross-network data attribute template according to the external network system information, and generating target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and sending the target cross-network data to a preset gateway, the method further comprises: if there is new data in the local, generating new cross-network data corresponding to the cross-network data attribute template based on the preset cross-network data generation strategy, and sending the new cross-network data to the preset gateway; if the new cross-network data is successfully sent to the external network system through the preset gateway, generating a data cross-network record corresponding to the new cross-network data.

5. The data synchronization method according to any one of claims 1 to 4, characterized in that, The method of transmitting the target cross-network data to the external network system through the preset gateway, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset gateway, comprises: If the preset gateway is a synchronous gateway, the target cross-network data is sent to the external network system through the synchronous gateway, so that the external network system saves the target cross-network data locally and feeds back a first data synchronization result to the synchronous gateway; If the preset gateway is an asynchronous gateway, the target cross-network data is saved to the asynchronous gateway, and a data sending result corresponding to the target cross-network data returned by the asynchronous gateway is received, so that the external network system obtains the target cross-network data saved by the asynchronous gateway, saves the target cross-network data locally, and feeds back a second data synchronization result to the asynchronous gateway.

6. The data synchronization method of claim 5, wherein, If the preset gateway is an asynchronous gateway, the data synchronization result is obtained from the asynchronous gateway according to the data synchronization result, so that the data synchronization state of the target cross-network data in the external network system is confirmed. If the preset gateway is an asynchronous gateway, a synchronization result query request is generated based on the data sending result, and the synchronization result query request is sent to the asynchronous gateway, so that the asynchronous gateway returns the second data synchronization result based on the synchronization result query request; The second data synchronization result returned by the asynchronous gateway is received, and the data synchronization state of the target cross-network data in the external network system is confirmed according to the second data synchronization result.

7. A data synchronization apparatus, characterized by comprising: Applied to an internal network system, comprising: A cross-network data generation module is configured to obtain external network system information of an external network system, create a cross-network data attribute template according to the external network system information, generate target cross-network data corresponding to the cross-network data attribute template based on a preset cross-network data generation strategy, and send the target cross-network data to a preset gateway. A cross-network data transmission module is configured to transmit the target cross-network data to the external network system through the preset gateway, so that the external network system saves the target cross-network data locally and feeds back a corresponding data synchronization result to the preset gateway. A first data synchronization state confirmation module is configured to, if the preset gateway is a synchronous gateway, receive a data synchronization result actively fed back by the synchronous gateway, and confirm the data synchronization state of the target cross-network data in the external network system according to the data synchronization result. A second data synchronization state confirmation module is configured to, if the preset gateway is an asynchronous gateway, obtain the data synchronization result from the asynchronous gateway according to the data synchronization result, and confirm the data synchronization state of the target cross-network data in the external network system according to the data synchronization result. The cross-network data transmission module comprises: An offline data synchronization unit is configured to, if the current internal network system is in an offline state, save the target cross-network data to an offline cross-network data list, and generate a corresponding cross-network data file, so that the external network system obtains the cross-network data file, parses the cross-network data file, and saves the target cross-network data obtained by parsing to the local system.

8. An electronic device, comprising: Comprising: A memory is configured to save a computer program. A processor is configured to execute the computer program to implement the data synchronization method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A computer program product for saving a computer program, wherein the computer program, when executed by a processor, implements the data synchronization method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data transmission method and device, electronic equipment and storage medium

    CN115694854A

  • Report transmission device based on internal and external network data interaction and transmission method thereof

    CN117294474A