CN109451016B - Data download management method, system and related equipment - Google Patents

Data download management method, system and related equipment Download PDF

Info

Publication number
CN109451016B
CN109451016B CN201811308811.2A CN201811308811A CN109451016B CN 109451016 B CN109451016 B CN 109451016B CN 201811308811 A CN201811308811 A CN 201811308811A CN 109451016 B CN109451016 B CN 109451016B
Authority
CN
China
Prior art keywords
data
service data
target service
target
byte stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811308811.2A
Other languages
Chinese (zh)
Other versions
CN109451016A (en
Inventor
丁武凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201811308811.2A priority Critical patent/CN109451016B/en
Publication of CN109451016A publication Critical patent/CN109451016A/en
Application granted granted Critical
Publication of CN109451016B publication Critical patent/CN109451016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The embodiment of the invention provides a data download management method, a data download management system and related equipment, which are used for preventing repeated download of data among heterogeneous systems. When the second service system downloads the service data stored in the first service system, the first service system respectively converts each service data into a corresponding byte stream, respectively generates an identifier corresponding to each service data according to the byte stream and sends the identifier to the second service system, the second service system can judge whether the identifier of the target service data is repeated with the identifier stored in the second service system before completing receiving the byte stream of the target service data, if so, the downloaded service data is downloaded, and the second service system stops downloading the target service data.

Description

Data download management method, system and related equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data download management method, system, and related device.
Background
Under the current economic condition, along with the expansion of the service range, in the process of business operation of enterprises, more and more enterprises can have the requirements of system connection or data exchange between business partners, cross-system data transmission becomes necessary, when business data interaction is processed between heterogeneous systems, the system interface is generally corresponding to other system interfaces through Webservice or WebAPI, and the business data of other heterogeneous systems are automatically downloaded to the system by using a scheduling strategy polling service mode.
In the existing ERP software, data among different systems are isolated from each other, and meanwhile, because the data are different business systems, the data are not upstream and downstream documents in the same system, have no association relationship and are independent from each other. When the amount of documents is large and the download frequency is high, the following will occur: when the same service data is not downloaded, the unfinished service data is downloaded again due to the too high trigger frequency of the trigger download, that is, the service data is repeatedly downloaded to the local system.
In the existing scheme, because the systems of the two parties are heterogeneous and the service data does not have an association relationship with each other, the repeatedly downloaded service data can take effect repeatedly. If the service data is used for material ordering, repeated material ordering can occur due to repeated downloading of the service data, so that great economic loss and business disputes are caused. In the existing scheme, repetition can only be checked manually, time and labor are wasted, and efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a data download management method, a data download management system and related equipment, which are used for preventing repeated download of data among heterogeneous systems.
A first aspect of an embodiment of the present invention provides a data download management method, which is applied to a first service system, where the first service system is a data storage party, and the method includes:
converting the target service data into a corresponding byte stream;
generating identifiers corresponding to the target service data according to the byte stream of the target service data, wherein the identifiers corresponding to different service data are different;
before sending the byte stream corresponding to the target service data to a second service system, or sending the byte stream corresponding to the target service data to the second service system, and sending an identifier corresponding to the target service data to the second service system;
the first service system and the second service system are heterogeneous systems.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the generating an identifier corresponding to the target service data according to the byte stream of the target service data includes:
extracting target data in the byte stream of the target service data, wherein the target data is a unique identifier of the target service data in the first service system;
and calculating the target data by adopting a preset algorithm to generate a corresponding identifier.
Optionally, as a possible implementation manner, in an embodiment of the present invention, the extracting target data in the byte stream includes:
extracting data in a preset sequence in the byte stream of the target service data as target data;
or, identifying a preset field in the byte stream of the target service data, and extracting data of preset bytes after the preset field as target data.
Optionally, the preset algorithm includes:
the MD5 algorithm, the SHA1 algorithm, or a hybrid of MD5 and SHA1 algorithm.
A second aspect of the embodiments of the present invention provides a data download management method, which is applied to a second service system, where the second service system is a data downloader, and the method includes:
receiving identifiers corresponding to target service data sent by a first service system, wherein the identifiers corresponding to the target service data are generated by the first service system according to a byte stream converted from the target service data, and the identifiers corresponding to different service data are different;
before completing the reception of the byte stream of the target service data, judging whether the identifier corresponding to the target service data is repeated with the identifier stored by the identifier;
if not, storing the identifier corresponding to the target service data;
and if the operation is repeated, stopping receiving the byte stream of the target service data.
Optionally, as a possible implementation manner, the data download management method in the embodiment of the present invention further includes:
and after receiving the byte stream of the target service data, updating the downloading state of the target service data into a downloaded state.
A third aspect of the embodiments of the present invention provides a data download management system, configured in a first service system, where the first service system is a data storage side, and the data download management system is characterized by including:
the conversion module is used for converting the target service data into a corresponding byte stream;
the generating module is used for generating identifiers corresponding to the target service data according to the byte stream of the target service data, wherein the identifiers corresponding to different service data are different;
and the sending module is used for sending the identifier corresponding to the target service data to a second service system before sending the byte stream corresponding to the target service data to the second service system or simultaneously sending the byte stream corresponding to the target service data to the second service system, wherein the first service system and the second service system are heterogeneous systems.
Optionally, as a possible implementation manner, the generating module in the embodiment of the present invention includes:
an extracting unit, configured to extract target data in a byte stream of the target service data, where the target data is a unique identifier of the target service data in the first service system;
and the calculating unit is used for calculating the target data by adopting a preset algorithm to generate a corresponding identifier.
Optionally, as a possible implementation manner, the extracting unit in the embodiment of the present invention includes:
the first subunit is used for extracting data in a preset sequence in the byte stream of the target service data as target data;
or, the second word unit is configured to identify a preset field in the byte stream of the target service data, and extract data of a preset byte after the preset field as the target data.
A fourth aspect of the present invention provides a data download management system, which is disposed in a second service system, where the second service system is a data downloader, and the data download management system is characterized by including:
the receiving module is used for receiving an identifier corresponding to target service data sent by a first service system, wherein the identifier corresponding to the target service data is generated by the first service system according to a byte stream converted from the target service data, and identifiers corresponding to different service data are different;
the judging module is used for judging whether the identifier corresponding to the target service data is repeated with the identifier stored by the judging module before the byte stream of the target service data is received;
the storage module is used for storing the identifier corresponding to the target service data if the identifier corresponding to the target service data is not repeated with the identifier stored by the storage module;
and the feedback module is used for stopping receiving the byte stream of the target service data if the identifier corresponding to the target service data is repeated with the identifier stored by the feedback module.
Optionally, as a possible implementation manner, the data download management system in the embodiment of the present invention further includes:
and the updating module is used for updating the downloading state of the target service data into the downloaded state after receiving the byte stream of the target service data.
A fifth aspect of an embodiment of the present invention provides a computer apparatus, including: the computer arrangement comprises a processor for carrying out the steps of any one of the possible embodiments of the first aspect and the first aspect, or the steps of any one of the possible embodiments of the second aspect and the second aspect, when executing the computer program stored in the memory.
A sixth aspect of embodiments of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that: the computer program realizes the steps of any one of the possible embodiments of the first aspect and the first aspect, or the steps of any one of the possible embodiments of the second aspect and the second aspect, when executed by a processor.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, when the second service system downloads the service data stored in the first service system, the first service system respectively converts each service data into the corresponding byte stream, respectively generates the identifier corresponding to each service data according to the byte stream and sends the identifier to the second service system, the second service system can judge whether the identifier of the target service data is repeated with the identifier stored in the second service system before completing the reception of the byte stream of the target service data, if so, the downloaded service data is downloaded, and the second service system stops downloading the target service data.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a data download management method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of a data download management method according to an embodiment of the present invention;
FIG. 3 is a diagram of a data download management system according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of a data download management method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another embodiment of a data download management method according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another embodiment of a data download management method according to an embodiment of the present invention;
FIG. 7 is a diagram of an embodiment of a computer system according to the invention.
Detailed Description
The embodiment of the invention provides a data download management method, a data download management system and related equipment, which are used for preventing repeated download of data among heterogeneous systems.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow in the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of a data download management method in the embodiment of the present invention may include:
101. converting the target service data into a corresponding byte stream;
the data downloading management method in the embodiment of the invention is mainly applied among heterogeneous systems, wherein the heterogeneous systems refer to a set of a plurality of related systems, the data downloading and accessing can be realized among the heterogeneous systems, and meanwhile, each system still keeps own application characteristics, integrity control and security control. The embodiment of the present invention takes the first service system as a data storage party and the second service system as a data downloading party as an example for explanation.
The first service system is a data storage party, the first service system can convert each service data into a corresponding byte stream respectively so as to facilitate data transmission, and when the target service data needs to be transmitted to the second service system, the first service system can convert the target service data into the corresponding byte stream.
102. Generating an identifier corresponding to the target service data according to the byte stream of the target service data;
due to mutual independence between heterogeneous systems, in the data downloading process, the unique identifier of the service data in the first service system cannot be identified by the second service system. In order to avoid repeated downloading of data, in the embodiment of the present invention, after the service data is converted into the corresponding byte stream, the byte stream of each service data needs to be calculated according to a preset algorithm, and an identifier corresponding to each service data is generated, so as to perform unique identification in the second service system.
Optionally, in the embodiment of the present invention, a preset algorithm may be used to calculate all bytes of a byte stream corresponding to target service data, or calculate target data composed of partial bytes in the byte stream, where the target data is a part of the entire byte stream, and the target data may uniquely identify corresponding service data in the second service system. For example, the target data may be a document number or an invoice code of the business data in the second business system, and the like, which is not limited herein.
Preferably, as a possible implementation manner, in the embodiment of the present invention, the first service system extracts target data in the byte stream, where the target data is a unique identifier of the service data in the first service system; and the first service system adopts a preset algorithm to calculate the target data to generate a corresponding identifier.
Optionally, the first service system extracts data in a preset sequence in the byte stream as target data; or, the first service system identifies a preset field in the byte stream and extracts data of preset bytes after the preset field as target data. In practical application, when generating the service data in the first service system, the standardized service data may be generated according to the same format, after the standardized service data is converted into the byte stream, the sequence of the unique identification data corresponding to the service data in the second service system in the byte stream is fixed, and the first service system extracts the data in the preset sequence in the byte stream as the target data. In addition, in this embodiment of the present invention, a uniform identifier may be set in a byte before (after) the unique identification data of the service data, the uniform identifier is also the same preset field after being converted into the byte stream, and the first service system identifies the preset field in the byte stream and extracts data of the preset byte after (before) the preset field as the target data.
Optionally, the preset algorithm in the embodiment of the present invention may be an MD5 algorithm, an SHA1 algorithm, or a mixed algorithm of MD5 and SHA1, where the specific algorithm is not limited here, and only needs to ensure that operation results obtained after different data are calculated by the preset algorithm are not repeated.
103. Sending the identifier corresponding to the target service data to a second service system;
in the embodiment of the invention, in order to identify the repeated downloading condition before the data downloading is completed, the first service system sends the byte stream corresponding to the target service data to the second service system, or sends the byte stream corresponding to the target service data to the second service system, and simultaneously sends the identifier corresponding to the target service data to the second service system, so that the second service system can identify whether the data is repeatedly downloaded before the data downloading is completed.
Specifically, the first service system may send the identifier corresponding to the target service data to the second service system separately; the first service system may also use the identifier as a part of the byte stream corresponding to the target service data, and send the identifier corresponding to the target service data to the second service system while sending the byte stream corresponding to the target service data, which only needs to ensure that the second service system receives the identifier corresponding to the target service data before completing the receiving process of the whole byte stream of the target service data, and the specific details are not limited herein.
104. Receiving an identifier corresponding to target service data sent by a first service system;
after the identifier corresponding to the target service data transmitted by the first service system, the second service system may receive the corresponding identifier.
105. And judging whether the identifier corresponding to the target service data is overlapped with the identifier stored by the identifier.
In order to save network bandwidth resources, the second service system judges whether the identifier corresponding to the target service data is overlapped with the identifier stored by the second service system before completing the reception of the byte stream of the target service data. If the identifier corresponding to the target service data is not repeated with the stored identifier, indicating that repeated downloading does not exist, executing step 106, and storing the identifier corresponding to the target service data before completing the reception of the byte stream of the target service data, so as to facilitate subsequent identification; if the identifier corresponding to the target service data is determined to be the same as the stored identifier, indicating that the download is repeated, step 107 is executed to stop receiving the byte stream of the target service data.
106. Storing an identifier corresponding to the target service data;
107. the reception of the byte stream of the target service data is stopped.
In the embodiment of the invention, when the second service system downloads the service data stored in the first service system, the first service system respectively converts each service data into the corresponding byte stream, respectively generates the identifier corresponding to each service data according to the byte stream and sends the identifier to the second service system, the second service system can judge whether the identifier of the target service data is repeated with the identifier stored in the second service system before completing the reception of the byte stream of the target service data, if so, the downloaded service data is downloaded, and the second service system stops downloading the target service data.
On the basis of the implementation shown in fig. 1, in the embodiment of the present invention, in order to identify the downloaded service data, the downloaded data needs to be marked. Referring to fig. 2, based on the implementation shown in fig. 1, another embodiment of a data download management method according to the embodiment of the present invention may include:
201. converting the target service data into a corresponding byte stream;
202. generating an identifier corresponding to the target service data according to the byte stream of the target service data;
203. sending the identifier corresponding to the target service data to a second service system;
204. receiving an identifier corresponding to target service data sent by a first service system;
205. and judging whether the identifier corresponding to the target service data is overlapped with the identifier stored by the identifier.
206. Storing an identifier corresponding to the target service data;
207. stopping receiving the byte stream of the target service data;
the content described in steps 201 to 207 in the embodiment of the present invention is similar to the content described in steps 101 to 107 in the embodiment shown in fig. 1, and please refer to steps 101 to 107 specifically, which is not described herein again.
208. And after receiving the byte stream of the target service data, updating the downloading state of the target service data into the downloaded state.
Optionally, after downloading each service data, the second service system may update the downloading state of the corresponding service data to the downloaded state. After the processing, the second service system can identify the downloaded data without waiting for receiving the identifier, and can further avoid repeated downloading of the data.
In the embodiment of the invention, when the second service system downloads the service data stored in the first service system, the first service system respectively converts each service data into the corresponding byte stream, and respectively generates the identifier corresponding to each service data according to the byte stream, the second service system can judge whether the identifier of the target service data is repeated with the identifier stored in the second service system before completing the reception of the byte stream of the target service data, if so, the downloaded service data is downloaded, and the second service system stops downloading the target service data.
Secondly, in this embodiment, a downloading state of the data may also be set, and after each service data is downloaded, the downloading state of the corresponding service data is updated to be the downloaded state, and the second service system may identify the downloaded data without calculating the byte stream, so as to further avoid repeated downloading of the data.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above steps do not mean the execution sequence, and the execution sequence of each step should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
The foregoing embodiment describes a data download management method in the present application, and referring to fig. 3, a data download management system in the present application is described below, where an embodiment of a data download management system in the present application may include:
a conversion module 301, configured to convert target service data into a corresponding byte stream;
a generating module 302, configured to generate identifiers corresponding to target service data according to a byte stream of the target service data, where the identifiers corresponding to different service data are different;
the sending module 303 is configured to send the identifier corresponding to the target service data to the second service system before sending the byte stream corresponding to the target service data to the second service system, or while sending the byte stream corresponding to the target service data to the second service system, where the first service system and the second service system are heterogeneous systems.
In the embodiment of the invention, when the second service system downloads the service data stored in the first service system, the first service system respectively converts each service data into the corresponding byte stream, and respectively generates the identifier corresponding to each service data according to the byte stream, the second service system can judge whether the identifier of the target service data is repeated with the identifier stored in the second service system before completing the reception of the byte stream of the target service data, if so, the downloaded service data is downloaded, and the second service system stops downloading the target service data.
Optionally, as a possible implementation manner, referring to fig. 4, the generating module 302 in the embodiment of the present invention includes:
an extracting unit 3021, configured to extract target data in a byte stream of the target service data, where the target data is a unique identifier of the target service data in the first service system;
the calculating unit 3022 calculates the target data using a preset algorithm to generate a corresponding identifier. Optionally, as a possible implementation manner, the extraction unit in the embodiment of the present invention includes:
a first subunit 30211, configured to extract data in a preset sequence in the byte stream of the target service data as target data;
or, the second word unit 30212 is configured to identify a preset field in the byte stream of the target service data, and extract data of a preset byte after the preset field as the target data.
Optionally, as a possible implementation manner, referring to fig. 5, the data download management system in the embodiment of the present invention further includes:
a receiving module 501, configured to receive an identifier corresponding to target service data sent by a first service system, where the identifier corresponding to the target service data is generated by the first service system according to a byte stream into which the target service data is converted, and identifiers corresponding to different service data are different;
a judging module 502, configured to judge whether an identifier corresponding to the target service data is repeated with an identifier already stored by the judging module before completing receiving the byte stream of the target service data;
the storage module 503 is configured to store the identifier corresponding to the target service data if the identifier corresponding to the target service data is not overlapped with the identifier already stored in the storage module;
the feedback module 504 is configured to stop receiving the byte stream of the target service data if the identifier corresponding to the target service data overlaps with the identifier stored in the feedback module.
Optionally, as a possible implementation manner, referring to fig. 6, the data download management system in the embodiment of the present invention further includes:
the updating module 505 is configured to update the downloading status of the corresponding service data to the downloaded status after downloading each item of service data.
The tire balancer control system in the embodiment of the present application is described above from the perspective of the modular functional entity, and the computer device in the embodiment of the present application is described below from the perspective of the hardware processing:
fig. 7 shows only a portion related to the embodiment of the present application for convenience of description, and please refer to the method portion of the embodiment of the present application for reference, though specific technical details are not disclosed. The computer device 7 is generally a computer device having a high processing capability, such as a computer device.
Referring to fig. 7, the computer device 7 includes: a power supply 710, a memory 720, a processor 730, a wired or wireless network interface 740, and computer programs stored in the memory and executable on the processor. The processor, when executing the computer program, implements the steps of each of the above-described tire balancing machine control method embodiments, such as steps 101 through 103, and/or steps 104 through 107 shown in fig. 1. Alternatively, the processor, when executing the computer program, implements the functions of each module or unit in the above-described device embodiments.
In some embodiments of the present application, the processor is specifically configured to implement the following steps:
converting the target service data into a corresponding byte stream;
generating identifiers corresponding to the target service data according to the byte stream of the target service data, wherein the identifiers corresponding to different service data are different;
before sending the byte stream corresponding to the target service data to the second service system, or sending the byte stream corresponding to the target service data to the second service system, and sending the identifier corresponding to the target service data to the second service system;
the first service system and the second service system are heterogeneous systems.
Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
extracting target data in a byte stream of the target service data, wherein the target data is a unique identifier of the target service data in a first service system;
and calculating the target data by adopting a preset algorithm to generate a corresponding identifier.
Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
extracting data in a preset sequence in a byte stream of the target service data as target data;
or, identifying a preset field in the byte stream of the target service data, and extracting data of preset bytes after the preset field as the target data.
Optionally, in some embodiments of the present application, the processor may be configured to implement the following steps:
receiving identifiers corresponding to target service data sent by a first service system, wherein the identifiers corresponding to the target service data are generated by the first service system according to a byte stream converted from the target service data, and the identifiers corresponding to different service data are different;
before completing the reception of the byte stream of the target service data, judging whether the identifier corresponding to the target service data is repeated with the identifier stored by the identifier;
if not, storing the identifier corresponding to the target service data;
and if the data is repeated, stopping receiving the byte stream of the target service data.
Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
and after receiving the byte stream of the target service data, updating the downloading state of the target service data into the downloaded state.
The computer device 7 may be a desktop computer, a notebook, a palm computer, a cloud computing device, or other computing devices. Illustratively, a computer program may be partitioned into one or more modules/units, which are stored in a memory and executed by a processor. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of a computer program in a computer device.
It will be appreciated by those skilled in the art that the arrangement shown in fig. 7 does not constitute a limitation of the computer arrangement 7, and that the computer arrangement 7 may comprise more or less components than shown, or some components may be combined, or a different arrangement of components, e.g. the computer arrangement may also comprise input-output devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer device and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The present application further provides a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, can implement the steps of:
converting the target service data into a corresponding byte stream;
generating identifiers corresponding to the target service data according to the byte stream of the target service data, wherein the identifiers corresponding to different service data are different;
before sending the byte stream corresponding to the target service data to the second service system, or sending the byte stream corresponding to the target service data to the second service system, and sending the identifier corresponding to the target service data to the second service system;
the first service system and the second service system are heterogeneous systems.
Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
extracting target data in a byte stream of the target service data, wherein the target data is a unique identifier of the target service data in a first service system;
and calculating the target data by adopting a preset algorithm to generate a corresponding identifier.
Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
extracting data in a preset sequence in a byte stream of the target service data as target data;
or, identifying a preset field in the byte stream of the target service data, and extracting data of preset bytes after the preset field as the target data.
Optionally, in some embodiments of the present application, the processor may be configured to implement the following steps:
receiving identifiers corresponding to target service data sent by a first service system, wherein the identifiers corresponding to the target service data are generated by the first service system according to a byte stream converted from the target service data, and the identifiers corresponding to different service data are different;
before completing the reception of the byte stream of the target service data, judging whether the identifier corresponding to the target service data is repeated with the identifier stored by the identifier;
if not, storing the identifier corresponding to the target service data;
and if the data is repeated, stopping receiving the byte stream of the target service data.
Optionally, in some embodiments of the present application, the processor may be further configured to implement the following steps:
and after receiving the byte stream of the target service data, updating the downloading state of the target service data into the downloaded state.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data download management method is applied to a first service system, wherein the first service system is a data storage party, and the method comprises the following steps:
converting the target service data into a corresponding byte stream;
generating identifiers corresponding to the target service data according to the byte stream of the target service data, wherein the identifiers corresponding to different service data are different;
before sending the byte stream corresponding to the target service data to a second service system, or sending the byte stream corresponding to the target service data to the second service system, and sending an identifier corresponding to the target service data to the second service system;
the first service system and the second service system are heterogeneous systems.
2. The method according to claim 1, wherein the generating an identifier corresponding to the target service data according to the byte stream of the target service data comprises:
extracting target data in the byte stream of the target service data, wherein the target data is a unique identifier of the target service data in the first service system;
and calculating the target data by adopting a preset algorithm to generate corresponding identifiers, wherein the identifiers generated by different target data are different.
3. The method of claim 2, wherein extracting the target data in the byte stream comprises:
extracting data in a preset sequence in the byte stream of the target service data as target data;
or, identifying a preset field in the byte stream of the target service data, and extracting data of preset bytes after the preset field as target data.
4. A method according to claim 2 or 3, characterized in that the preset algorithm comprises:
the MD5 algorithm, the SHA1 algorithm, or a hybrid of MD5 and SHA1 algorithm.
5. A data download management method is applied to a second service system, wherein the second service system is a data download party, and the method comprises the following steps:
receiving identifiers corresponding to target service data sent by a first service system, wherein the identifiers corresponding to the target service data are generated by the first service system according to a byte stream converted from the target service data, and the identifiers corresponding to different service data are different;
before completing the reception of the byte stream of the target service data, judging whether the identifier corresponding to the target service data is repeated with the identifier stored by the identifier;
if not, storing the identifier corresponding to the target service data;
and if the operation is repeated, stopping receiving the byte stream of the target service data.
6. The method of claim 5, further comprising:
and after receiving the byte stream of the target service data, updating the downloading state of the target service data into a downloaded state.
7. A data download management system is arranged in a first service system, wherein the first service system is a data storage side, and the data download management system is characterized by comprising:
the conversion module is used for converting the target service data into a corresponding byte stream;
the generating module is used for generating identifiers corresponding to the target service data according to the byte stream of the target service data, wherein the identifiers corresponding to different service data are different;
and the sending module is used for sending the identifier corresponding to the target service data to a second service system before sending the byte stream corresponding to the target service data to the second service system or simultaneously sending the byte stream corresponding to the target service data to the second service system, wherein the first service system and the second service system are heterogeneous systems.
8. A data download management system is arranged in a second service system, wherein the second service system is a data download party, and the data download management system is characterized by comprising:
the receiving module is used for receiving an identifier corresponding to target service data sent by a first service system, wherein the identifier corresponding to the target service data is generated by the first service system according to a byte stream converted from the target service data, and identifiers corresponding to different service data are different;
the judging module is used for judging whether the identifier corresponding to the target service data is repeated with the identifier stored by the judging module before the byte stream of the target service data is received;
the storage module is used for storing the identifier corresponding to the target service data if the identifier corresponding to the target service data is not repeated with the identifier stored by the storage module;
and the feedback module is used for stopping receiving the byte stream of the target service data if the identifier corresponding to the target service data is repeated with the identifier stored by the feedback module.
9. A computer device, characterized by: the computer arrangement comprises a processor for implementing the steps of the method according to any one of claims 1 to 6 when executing a computer program stored in a memory.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the method according to any one of claims 1 to 6.
CN201811308811.2A 2018-11-05 2018-11-05 Data download management method, system and related equipment Active CN109451016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811308811.2A CN109451016B (en) 2018-11-05 2018-11-05 Data download management method, system and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811308811.2A CN109451016B (en) 2018-11-05 2018-11-05 Data download management method, system and related equipment

Publications (2)

Publication Number Publication Date
CN109451016A CN109451016A (en) 2019-03-08
CN109451016B true CN109451016B (en) 2021-08-20

Family

ID=65551265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811308811.2A Active CN109451016B (en) 2018-11-05 2018-11-05 Data download management method, system and related equipment

Country Status (1)

Country Link
CN (1) CN109451016B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995842A (en) * 2019-12-06 2020-04-10 北京每日优鲜电子商务有限公司 Method, device and equipment for downloading service data and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9070153B2 (en) * 2012-03-30 2015-06-30 Ebay Inc. Digital proof of delivery
CN104881760B (en) * 2015-06-24 2018-05-18 浙江双商信息科技有限公司 Data communication method, device and system between ERP system
CN105915523A (en) * 2016-05-05 2016-08-31 云神科技投资股份有限公司 Implementation method of safety configuration device based on cloud calculation
CN106850800B (en) * 2017-01-24 2020-05-05 腾讯科技(深圳)有限公司 Method for determining download path and client

Also Published As

Publication number Publication date
CN109451016A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN111163130B (en) Network service system and data transmission method thereof
CN107835203B (en) Message packet delivery method, device, storage medium and terminal
CN110351378A (en) A kind of control method and system of internet of things equipment
CN101179392B (en) Method and system for uploading document
CN109636304B (en) Business system publishing method and device, storage medium and electronic device
CN106572146A (en) Message sending method and message sending device
CN105530630B (en) A kind of OTA upgrade method and equipment
WO2016026329A1 (en) Terminal upgrade method and apparatus
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN110543324A (en) Plug-in increment updating method and device for application program
CN114465998A (en) Multi-device file transmission method and device, terminal device and readable storage medium
CN109348434A (en) A kind of sending method of scene information, sending device and terminal device
CN105656643B (en) Method and equipment for performing compatible management based on network configuration protocol
CN109451016B (en) Data download management method, system and related equipment
CN107741853A (en) A kind of method, system and the information management platform of deployment services device
CN111158716B (en) Version upgrade calling method and device, computer system and readable storage medium
CN113518317B (en) Method and device for sending prompt information, storage medium and electronic device
CN115328457A (en) Method and device for realizing form page based on parameter configuration
CN109343880A (en) RN packet updating method, RN packet updating device and readable storage medium
CN111432357B (en) Information processing method and system and computing equipment
CN110647546A (en) Third-party rule engine generation method and device
CN110580172B (en) Configuration rule verification method and device, storage medium and electronic device
CN111416795B (en) Data synchronization method, device, computing equipment and medium
CN109450885B (en) Network data interception method and device, electronic equipment and storage medium
CN104270444A (en) Method capable of being used for configuring mobile phone application menu

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