CN107563942B - Logistics data batch processing method, logistics processing system and processing device - Google Patents

Logistics data batch processing method, logistics processing system and processing device Download PDF

Info

Publication number
CN107563942B
CN107563942B CN201610511195.5A CN201610511195A CN107563942B CN 107563942 B CN107563942 B CN 107563942B CN 201610511195 A CN201610511195 A CN 201610511195A CN 107563942 B CN107563942 B CN 107563942B
Authority
CN
China
Prior art keywords
logistics
data processing
processing
receiving
order
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
CN201610511195.5A
Other languages
Chinese (zh)
Other versions
CN107563942A (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.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding 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 Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201610511195.5A priority Critical patent/CN107563942B/en
Publication of CN107563942A publication Critical patent/CN107563942A/en
Application granted granted Critical
Publication of CN107563942B publication Critical patent/CN107563942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a logistics data batch processing method, a logistics processing system and a processing device. The logistics processing system comprises: the receiving module is used for receiving a logistics data processing request sent by the processing device, wherein the logistics data processing request carries a plurality of logistics order identifications; the judging module is used for judging whether at least one logistics order mark is successfully stored or not, and when the judging result is yes, a first trigger instruction is sent to the sending module; the sending module is used for receiving the first trigger instruction and sending a logistics data processing request receiving success message to the processing device; the processing module is used for processing the logistics order corresponding to the logistics order identification; the sending module is further configured to send, to the processing device in batches, a logistics data processing result obtained by processing the logistics order according to the receiving threshold determined by the processing device. The method and the device can perform quick feedback and batch processing on the logistics data processing request sent by the requester user.

Description

Logistics data batch processing method, logistics processing system and processing device
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, a system, and a device for batch processing of logistics data.
Background
Since the daily order quantity of some merchants is very large, when logistics data are transmitted, a certain quantity of orders are desirably imported into a logistics processing system in batches so as to avoid the repeated labor of transmitting one order by one order; for example, in a logistics data processing request, hundreds or thousands of order identifications are submitted. The remote interface calls are limited by a certain timeout time, and within the timeout time, if the logistics data processing request is not processed completely, the request appears to be overtime to a requester user, so that the user cannot know whether the logistics data processing request is successfully sent or not and whether the logistics processing system processes the logistics data processing request or not. This is because the requester user can only continuously resend the logistics data processing request, and the retry may time out. That is, the processing of a large number of orders submitted by a requesting user in one request cannot be realized by performing synchronization processing on a large number of orders and returning the synchronization result.
Disclosure of Invention
In order to solve the technical problem, the present application provides a method, a system, and a device for processing logistics data in batch, which can perform fast feedback and batch processing on a logistics data processing request sent by a requester user.
The application provides a logistics processing system, includes:
the receiving module is used for receiving a logistics data processing request sent by the processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
the judging module is used for judging whether at least one logistics order mark is successfully stored or not, and when the judging result is yes, a first trigger instruction is sent to the sending module;
the sending module is used for receiving the first trigger instruction and sending a logistics data processing request receiving success message to the processing device;
the processing module is used for processing the logistics order corresponding to the logistics order identification;
the sending module is further configured to send, to the processing device in batches, a logistics data processing result obtained by processing the logistics order according to the receiving threshold determined by the processing device.
The judging module is further used for sending a second trigger instruction to the sending module when the judging result is negative;
the sending module is further configured to receive the second trigger instruction, and send a logistics data processing request reception failure message to the processing device.
Wherein the processing module comprises:
the extraction unit is used for extracting the logistics order mark from the logistics order marks which are successfully stored according to a preset sequence;
the distribution unit is used for distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server of the system so as to process the logistics orders;
and the receiving unit is used for receiving the logistics data processing result returned after the logistics order is processed by each processing server.
Wherein the system further comprises: and the creating module is used for creating a state list in the cache after the distribution unit successfully distributes the logistics order, wherein the state list comprises the logistics order identification successfully distributed and the corresponding state which is a new state.
Wherein the system further comprises:
the updating module is used for updating a newly-built state corresponding to the logistics order mark stored in the cache to an executed state according to the logistics data processing result received by the receiving unit;
and the recording module is used for adding a corresponding logistics data processing result at the position of the logistics order mark which is updated to be in the executed state by the updating module, wherein the logistics data processing result comprises logistics data processing success or logistics data processing failure.
The cache is further configured to store a lookup table including all the logistics order identifiers carried in the logistics data processing request.
Wherein the system further comprises:
the acquisition module is used for acquiring the query table and acquiring the logistics order identification in the executed state and a logistics data processing result corresponding to the logistics order identification from the cache according to the query table;
a deleting module, configured to delete the obtained logistics order identifier and the logistics order identifier corresponding to the new state in the cache from the lookup table;
the generating module is used for generating a logistics data processing result of which the logistics data processing fails according to the rest logistics order identifications in the query table;
the sending module is further configured to assemble the logistics order identifier in the executed state and the logistics data processing result corresponding to the logistics order identifier, the generated logistics order identifier and the logistics data processing result corresponding to the logistics order identifier, which are acquired from the cache, into feedback messages in batches according to the receiving threshold, and send the feedback messages to the processing device.
Wherein, the processing server is used for processing the logistics order according to the following modes:
after receiving the logistics order distributed by the distribution unit, sending a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device; and
and forming the logistics data processing result and sending the logistics data processing result to the receiving unit.
The application also provides a logistics data batch processing method, which comprises the following steps:
receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
judging whether at least one logistics order mark is successfully stored;
when the judgment result is yes, sending a logistics data processing request receiving success message to the processing device;
processing the logistics order corresponding to the logistics order identification;
and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Wherein the method further comprises: and when the judgment result is negative, sending a logistics data processing request receiving failure message to the processing device.
Wherein the processing of the logistics order corresponding to the logistics order identifier comprises:
extracting the logistics order mark from the successfully stored logistics order mark according to a preset sequence;
distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server to process the logistics orders;
and receiving the logistics data processing result returned after the logistics orders are processed by each processing server.
Wherein the method further comprises: and after the logistics order is successfully distributed, a state list is established in a cache, wherein the state list comprises the logistics order mark successfully distributed and the corresponding state is a new state.
Wherein the method further comprises:
after receiving the returned logistics data processing result, updating the newly-built state corresponding to the logistics order mark stored in the cache to be the executed state;
and adding a corresponding logistics data processing result at the logistics order identification updated to be in the executed state, wherein the logistics data processing result comprises the success of logistics data processing or the failure of logistics data processing.
Wherein the method further comprises: and storing a lookup table comprising all the logistics order identifications carried in the logistics data processing request in the cache.
Wherein, according to the determined receiving threshold corresponding to the processing device, sending the logistics data processing result obtained by processing the logistics order to the processing device in batches comprises:
obtaining the lookup table from the cache;
according to the query table, acquiring the logistics order identification with the executed state and a logistics data processing result corresponding to the logistics order identification from the cache;
deleting the obtained logistics order mark and the logistics order mark corresponding to the newly-built state in the cache from the lookup table;
generating a logistics data processing result of the logistics data processing failure aiming at the rest logistics order identifications in the query table;
and assembling the logistics order identifications in the executed state and the logistics data processing results corresponding to the logistics order identifications, and the generated logistics order identifications and the logistics data processing results corresponding to the logistics order identifications, which are acquired from the cache, into feedback messages in batches according to the receiving threshold value, and sending the feedback messages to the processing device.
Wherein the processing server processing the logistics order comprises:
after receiving the distributed logistics order, the processing server sends a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device;
and forming the logistics data processing result.
The present application further provides a logistics processing system, including:
the receiving module is used for receiving a logistics data processing request sent by the processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
the judging module is used for judging whether at least one logistics order mark is successfully stored or not, and when the judging result is yes, a triggering instruction is sent to the sending module;
the sending module is used for receiving the triggering instruction and sending a logistics data processing request receiving success message to the processing device;
the processing module is used for processing the logistics order corresponding to the logistics order identification;
the sending module is further configured to send a logistics data processing result obtained by processing the logistics order to the processing device.
The sending module is further configured to send a logistics data processing result obtained by processing the logistics order to the processing device in the following manner:
and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Wherein the processing module comprises:
the extraction unit is used for extracting the logistics order mark from the logistics order marks which are successfully stored according to a preset sequence;
the distribution unit is used for distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server of the system so as to process the logistics orders;
and the receiving unit is used for receiving the logistics data processing result returned after the logistics order is processed by each processing server.
Wherein, the processing server is used for processing the logistics order according to the following modes:
after receiving the logistics order distributed by the distribution unit, sending a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device; and
and forming the logistics data processing result and sending the logistics data processing result to the receiving unit.
The application also provides a logistics data batch processing method, which comprises the following steps:
receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
judging whether at least one logistics order mark is successfully stored;
when the judgment result is yes, sending a logistics data processing request receiving success message to the processing device;
processing the logistics order corresponding to the logistics order identification;
and sending a logistics data processing result obtained after the logistics order is processed to the processing device.
Wherein the sending the logistics data processing result obtained by processing the logistics order to the processing device comprises:
and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Wherein the processing of the logistics order corresponding to the logistics order identifier comprises:
extracting the logistics order mark from the successfully stored logistics order mark according to a preset sequence;
distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server to process the logistics orders;
and receiving the logistics data processing result returned after the logistics orders are processed by each processing server.
Wherein the processing server processing the logistics order comprises:
after receiving the distributed logistics order, the processing server sends a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device;
and forming the logistics data processing result.
The present application further provides a logistics processing system, including:
the receiving module is used for receiving a logistics data processing request sent by the processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
the processing module is used for processing the logistics orders corresponding to the logistics order identifications;
and the sending module is used for sending the logistics data processing result obtained after the logistics order is processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Wherein the system further comprises:
the judging module is used for judging whether at least one logistics order mark is successfully stored or not, and when the judging result is yes, a triggering instruction is sent to the sending module;
the sending module is further configured to receive the trigger instruction, and send a logistics data processing request receiving success message to the processing device.
Wherein the processing module comprises:
the extraction unit is used for extracting the logistics order mark from the logistics order marks which are successfully stored according to a preset sequence;
the distribution unit is used for distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server of the system so as to process the logistics orders;
and the receiving unit is used for receiving the logistics data processing result returned after the logistics order is processed by each processing server.
Wherein, the processing server is used for processing the logistics order according to the following modes:
after receiving the logistics order distributed by the distribution unit, sending a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device; and
and forming the logistics data processing result and sending the logistics data processing result to the receiving unit.
The application also provides a logistics data batch processing method, which comprises the following steps:
receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
processing the logistics orders corresponding to the logistics order identifications;
and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Wherein the method further comprises:
judging whether at least one logistics order mark is successfully stored;
and when the judgment result is yes, sending a logistics data processing request receiving success message to the processing device.
Wherein, the processing of the logistics orders corresponding to the logistics order identifications comprises:
extracting the logistics order identification according to a preset sequence;
distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server to process the logistics orders;
and receiving the logistics data processing result returned after the logistics orders are processed by each processing server.
Wherein the processing server processing the logistics order comprises:
after receiving the distributed logistics order, the processing server sends a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device;
and forming the logistics data processing result.
The present application also provides a processing apparatus, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a logistics data processing request to a logistics processing system, and the logistics data processing request carries a plurality of logistics order identifications;
the receiving module is used for receiving a logistics data processing request receiving success message sent after the logistics processing system successfully stores at least one logistics order mark;
the sending module is further configured to send the receiving threshold determined by the processing device to the logistics processing system;
the receiving module is further configured to receive a logistics data processing result fed back in batches according to the receiving threshold after the logistics processing system processes the logistics order.
The receiving module is further configured to receive a logistics data processing request reception failure message sent by the logistics processing system after the logistics processing system fails to store all the logistics order identifications.
The application also provides a logistics data batch processing method, which comprises the following steps:
sending a logistics data processing request to a logistics processing system, wherein the logistics data processing request carries a plurality of logistics order identifications;
receiving a logistics data processing request receiving success message sent by the logistics processing system after at least one logistics order mark is successfully stored;
determining a reception threshold;
sending the determined receiving threshold value to the logistics processing system;
and receiving logistics data processing results fed back in batches according to the receiving threshold after the logistics processing system processes the logistics orders.
Wherein the method further comprises: and receiving a logistics data processing request receiving failure message sent by the logistics processing system after the logistics processing system fails to store all the logistics order identifications.
According to the logistics data batch processing method, the logistics processing system and the processing device, at least one of the logistics order identifications in the logistics data processing request is judged to be successfully stored, namely the logistics data processing request receiving success message is sent to the requesting user, so that hundreds of thousands of orders sent by the requesting user at one time are quickly fed back, and the problem that the requesting user cannot receive the reply in a synchronous mode in a late time is solved.
The method and the device for processing the logistics orders can also realize batch processing of the logistics orders corresponding to the logistics order identifications, and avoid processing failure of all the logistics orders in the logistics data processing request caused by unsuccessful processing of one logistics order.
The method and the device can also realize batch feedback of the processing results of hundreds of orders submitted by the requesting user at one time based on the determined receiving threshold, so that the requesting user can timely know which orders are successfully processed and which orders are failed to be processed.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the claimed subject matter and are incorporated in and constitute a part of this specification, illustrate embodiments of the subject matter and together with the description serve to explain the principles of the subject matter and not to limit the subject matter.
FIG. 1 is a flow chart of a first embodiment of a method for batch processing of logistics data according to the present application;
fig. 2 is a signaling flowchart of an application example of the logistics data batch processing method of the present application;
fig. 3 is a block diagram of a first embodiment of the logistics processing system of the present application;
FIG. 4 is a block diagram of the system architecture of the present application;
fig. 5 is a block diagram of a second embodiment of the logistics processing system of the present application;
FIG. 6 is a block diagram of an embodiment of a processing device of the present application;
fig. 7 is a flowchart of a second embodiment of the logistics data batch processing method of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The main ideas of the application include: according to the logistics data batch processing method, the logistics processing system and the processing device, at least one of the logistics order identifications in the logistics data processing request is judged to be successfully stored, namely the logistics data processing request receiving success message is sent to the requesting user, so that hundreds of thousands of orders sent by the requesting user at one time are quickly fed back, and the problem that the requesting user cannot receive the reply in a synchronous mode in a late time is solved; the method and the device can also realize batch processing of the logistics orders corresponding to the logistics order identifications, and avoid processing failure of all the logistics orders in the logistics data processing request caused by unsuccessful processing of one logistics order; the method and the device can also realize batch feedback of the processing results of hundreds of orders submitted by the requesting user at one time based on the determined receiving threshold, so that the requesting user can timely know which orders are successfully processed and which orders are failed to be processed.
Fig. 1 is a flowchart of a first embodiment of a method for batch processing of logistics data according to the present application, as shown in fig. 1, including:
step 11, receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
step 12, judging whether at least one logistics order mark is successfully stored, and executing step 13 when the judgment result is yes;
step 13, sending a logistics data processing request receiving success message to the processing device;
step 14, processing the logistics order corresponding to the logistics order identification;
and step 15, sending the logistics data processing result obtained after the logistics order is processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Optionally, the method may further include: when the judgment result is negative in the step 12, executing a step 16; and step 16, sending a receiving failure message of the logistics data processing request to the processing device.
In this embodiment, a requesting user generates a logistics data processing request to a logistics processing system through a processing device, where the logistics data processing request may carry 1001 logistics order identifiers, for example; the logistics processing system judges whether at least one logistics order mark is successfully stored or not, and when at least one logistics order mark is successfully stored, a logistics data processing request receiving success message is sent to the processing device; otherwise, that is, if it is determined that all the logistics order identifications are failed to be stored, sending a logistics data processing request reception failure message to the processing device, where of course, the probability of occurrence is very small, because a plurality of logistics order identifications should always be successfully stored.
In this embodiment, for a logistics order corresponding to a successfully stored logistics order identifier, a logistics processing system performs normal logistics data processing, for example, obtains each logistics order, and performs distribution and delivery processes on each logistics order, and in this process, the logistics processing system receives logistics details of a processing process in real time; after the processing, the logistics processing system receives a logistics data processing result after each logistics order is processed; then, the logistics data processing results are sent to the processing device in batches according to the reception threshold determined by the processing device.
The logistics data batch processing method provided by the application realizes rapid feedback of hundreds of orders sent by a requester user at one time, and solves the problem that the requester user cannot receive a reply in a synchronous mode; batch feedback of processing results of hundreds of orders submitted by the requesting user at one time can be realized based on the determined receiving threshold, so that the requesting user can timely know which orders are successfully processed and which orders are failed to be processed.
Optionally, the step 14 may include: extracting the logistics order mark from the successfully stored logistics order mark according to a preset sequence; distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server of the system to process the logistics orders; and receiving the logistics data processing result returned after the logistics orders are processed by each processing server.
Then, the processing server may be further configured to process the logistics order as follows:
after receiving the logistics order distributed by the distribution unit, sending a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device; and
and forming the logistics data processing result and sending the logistics data processing result to the receiving unit.
Optionally, the method may further include: and after the logistics order is successfully distributed, a state list is established in a cache, wherein the state list comprises the logistics order mark successfully distributed and the corresponding state is a new state.
Optionally, the method may further include: after receiving the returned logistics data processing result, updating the newly-built state corresponding to the logistics order mark stored in the cache to be the executed state; and then, adding a corresponding logistics data processing result at the logistics order identifier updated to be in the executed state, wherein the logistics data processing result comprises logistics data processing success or logistics data processing failure.
Optionally, the method may further include: and storing a lookup table comprising all the logistics order identifications carried in the logistics data processing request in the cache.
Optionally, step 15 may comprise:
obtaining the lookup table from the cache;
according to the query table, acquiring the logistics order identification with the executed state and a logistics data processing result corresponding to the logistics order identification from the cache;
deleting the obtained logistics order mark and the logistics order mark corresponding to the newly-built state in the cache from the lookup table;
generating a logistics data processing result of the logistics data processing failure aiming at the rest logistics order identifications in the query table;
and assembling the logistics order identifications in the executed state and the logistics data processing results corresponding to the logistics order identifications, and the generated logistics order identifications and the logistics data processing results corresponding to the logistics order identifications, which are acquired from the cache, into feedback messages in batches according to the receiving threshold value, and sending the feedback messages to the processing device.
The batch processing method of the logistics data is explained in detail by an application example. As shown in fig. 2, the specific signaling flow of the logistics data batch processing method is as follows:
a first part: request receiving procedure
Step 101, a requester user sends a logistics data processing request to a logistics processing system through a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications, for example, 1001 logistics order identifications are included;
step 102, after receiving the logistics data processing request, the logistics processing system generates a query table including all logistics order identifications, and stores the query table into a cache tair;
in this step, if 1001 logistics order identifications are included and the length of the logistics order identification of each logistics order is 10-20 bytes, then the length of the order number list formed by 1001 logistics orders is 10010 + 20010 bytes, and since the Database (DB) of the dispatch center used for storing orders before has a byte length limitation, it can be considered in this application that the logistics order identification list of 1001 logistics orders is stored in the cache tair.
103, starting a cycle timer by the logistics processing system, and starting timing according to a cycle period;
steps 102 and 103 are optional steps, and steps 102 and 103 need to be executed only when batch assembly processing results need to be returned to the requesting user (the following fourth part); if the processing result is returned manually or by other means, the step 103 and 104 can be omitted.
104, the logistics processing system judges whether at least one logistics order mark is successfully stored, if so, at least one logistics order mark is successfully stored, the step 105 is executed, and if not, all logistics order marks are unsuccessfully stored, the step 106 is executed;
105, sending a logistics data processing request receiving success message to a requester user through a processing device;
and step 106, sending a receiving failure message of the logistics data processing request to the requester user through the processing device.
It should be noted that, if step 106 is executed, the flow ends, and no subsequent operation is executed.
In one embodiment, in the case of performing step 106, if a lookup table is inserted into the cache tair before, since the lookup table is not used any more and belongs to useless information, a timer may be preferably started in advance, and the useless information is automatically cleared after a preset time period (for example, 30 days) is exceeded, so that the whole system is not substantially affected.
In an embodiment, after the step 104, a step 107 of saving the summary information of the current logistics data processing request in the cache tair may be further included, and preferably, the format saved in the cache tair may be: the method comprises the steps of obtaining a corresponding relation between a keyword key and a value, wherein the key is a requesting party user ID + batch number, and the value corresponding to the key is MD5 summary information of all logistics orders in a logistics data processing request; then after receiving the next logistics data processing request, before step 104 (if steps 102, 103 are included, then before step 102), step 108 may be further included, which performs an idempotent judgment on the currently received logistics data processing request and the summary information of the previous logistics data processing request stored in tair and verifies whether the two logistics data processing requests are the same, and if the two logistics data processing requests are the same, directly discards the currently received logistics data processing request, thereby avoiding repeated processing of the same logistics data processing request.
A second part: order distribution process
The distribution part is mainly used for executing distribution operation on the logistics orders corresponding to the logistics order identifications which are successfully stored. The logistics processing system can be regarded as a processing server cluster, and the processing server receiving the logistics data processing request serves as a scheduling server and distributes the logistics order to each processing server of the system. All the processing servers in the cluster can be used as scheduling servers, namely, the server receiving the logistics data processing request including the large batch order is the scheduling server, and other processing servers receive the logistics order distributed by the scheduling server.
Step 201, the dispatching server extracts the logistics order mark from the successfully stored logistics order mark according to a preset sequence;
it should be noted that step 201 and step 105 have no chronological relationship, and step 201 may be executed as long as the logistics order is successfully saved.
Step 202, the dispatching server distributes the logistics orders corresponding to the extracted logistics order identifications to each processing server of the logistics processing system to process the logistics orders, so that the balanced distribution of a large number of orders on a server cluster is realized;
step 203, after the distribution of the logistics order is successful, a state list is created in a cache tair, wherein the state list comprises a logistics order identifier which is successfully distributed and a corresponding state, and the state is a new state;
in an embodiment, the order distribution process may further include step 204, if the distribution of the logistics order fails, the logistics processing system repeats the distribution task of the logistics order for a preset number of times, if the distribution succeeds, the corresponding state of the logistics order is stored in the cache tair as a new state, if the distribution still fails after the repetition number reaches the preset number of times, no subsequent operation is performed on the logistics order, and the process ends.
And a third part: delivery of individual orders
Step 301, a processing server in the logistics processing system, which distributes a corresponding logistics order, receives a logistics data processing request including a logistics order identifier of a single logistics order, and sends a delivery notification message to a logistics execution device according to logistics data information of the single logistics order included in the logistics data processing request, so that the logistics execution device performs delivery operation on the logistics order, for example, a series of delivery processes of delivering the logistics order to a corresponding transfer warehouse, a delivery center, and the like are performed;
step 302, each processing server receives a delivery completion message of the logistics execution device;
303, forming a logistics data processing result and sending the logistics data processing result to a dispatching server;
step 304, after receiving the returned logistics data processing result, the scheduling server updates the newly-built state corresponding to the logistics order identifier stored in the cache to the executed state, and adds a corresponding logistics data processing result to the logistics order identifier updated to the executed state, where the logistics data processing result includes a logistics data processing success or a logistics data processing failure.
In one embodiment, before step 301, the method may further include: before a logistics data processing request comprising a single logistics order is sent each time, the logistics data processing request and the previous logistics data processing request are subjected to idempotent judgment, and message re-projection is avoided.
In one embodiment, before step 301, the method may further include: some logistics parameters of the logistics order are adapted and/or converted to perform the shipping operation of the logistics order in step 301.
It should be noted that the third part of the delivery process for a single logistics order does not have to be performed after the second part completely distributes the order, and the processing server may perform the delivery operation as long as the logistics order distributed to the processing server is received.
The fourth part: assembly order execution result feedback process
When the cycle timer set in step 103 reaches a preset cycle period, the logistics processing system starts to assemble the logistics data processing results in batches, and returns the logistics data processing results to the requesting user through the processing device. In one embodiment, the following steps may be included:
step 401, when the cycle timer set in step 103 reaches a preset cycle period, setting the cycle timer to count again, and triggering the batching, assembling and returning of a logistics data processing result;
step 402, the dispatching server of the logistics processing system obtains a stored lookup table from tair, wherein the stored lookup table comprises all logistics order identifications in the logistics data processing request;
step 403, according to the lookup table, obtaining the physical distribution order identifier in the executed state and the physical distribution data processing result corresponding to the physical distribution order identifier from the cache;
in this step, if the logistics data processing result of the logistics order corresponding to the logistics order identifier is found in the cache tair according to the lookup table, that is, the logistics data processing result corresponding to the logistics order identifier whose state in tair is the executed state is directly obtained;
logistics orders in a 'new state' state may exist in tair, and corresponding delivery operations are not executed on the logistics orders, so that logistics data processing results of the orders are not acquired for the moment;
step 404, deleting the acquired logistics order identifier corresponding to the executed state and the logistics order identifier corresponding to the newly-built state in the cache from the lookup table;
step 405, generating a logistics data processing result of the logistics data processing failure aiming at the rest logistics order identifications in the query table;
if the above-mentioned physical distribution order identifier in the "executed state" or the above-mentioned physical distribution order identifiers in the "executed state" and the "new state" (if existing) are deleted from the lookup table, and then the remaining physical distribution order identifiers remain in the lookup table, these physical distribution order identifiers may be physical distribution order identifiers which are not successfully stored in the first part or corresponding physical distribution orders which are failed in the second part, and at this time, the physical distribution data processing result of these physical distribution orders may be directly assembled as failure.
Step 406, assembling the logistics order identifier in the executed state and the logistics data processing result corresponding to the logistics order identifier, the generated logistics order identifier and the logistics data processing result corresponding to the logistics order identifier, which are acquired from the cache, into feedback messages in batches according to the receiving threshold value, and sending the feedback messages to the processing device;
for example, if the current logistics data processing request includes 1001 orders and the reception threshold is 50, there are two cases as follows:
(1) when the state in tair is inquired, no logistics order with the state of being in a "new state" exists, at this time, if 990 logistics order identifications with the state of being in an "executed state" are inquired to correspond to the logistics data processing results, the remaining 11 logistics orders are logistics orders with storage failure or distribution failure, at this time, the logistics processing system obtains the logistics data processing results corresponding to the 990 logistics order identifications from tair, directly assembles the logistics data processing results corresponding to the other 11 logistics order identifications to be failure, then 50 logistics order identifications are grouped into one group and divided into 21 batches, and the last batch only comprises 1 logistics data processing result;
(2) when the state in tair is queried, there are orders whose states are "new state", at this time, if there are 980 orders whose states are "executed state" in tair and 10 orders whose states are "new state" in tair are queried, then the remaining 11 logistics orders are logistics orders whose storage fails or distribution fails, at this time, the logistics processing system acquires the logistics data processing results corresponding to 980 logistics order identifications from tair, and directly assembles the logistics data processing results corresponding to the other 11 logistics order identifications into failures, then 50 are grouped into one group, which is divided into 20 batches, and the last batch includes 41 execution results.
The format of the logistics data processing result corresponding to the assembled logistics order identifier may be: the key is the requesting user ID + batch number + order number, and the value corresponding to the key is the logistics data processing result (i.e. success or failure) corresponding to the logistics order identifier.
Step 407, the scheduling server judges whether the query table has a logistics order identifier, if so, step 408 is executed, otherwise, the process is ended;
step 408, if there are further logistics order identifications in the lookup table, the states corresponding to these logistics order identifications should be "new states", as in the case of (2) above, there are still 10 unexecuted logistics orders, when the cycle timer reaches the preset cycle period again, the logistics processing system repeats step 401 and step 407 again until the preset number of times is reached or the lookup table is empty;
in this step, if the repetition times reaches the preset times, the lookup table is still not empty, that is, the physical distribution order identifications corresponding to the new state still exist, the physical distribution data processing results corresponding to the physical distribution order identifications are directly assembled into failures, and then the failures are assembled into feedback messages in batches according to the receiving threshold value and sent to the requesting user through the processing device.
The application example provides a relatively comprehensive and specific logistics data batch processing method, so that hundreds of orders sent by a requester user at a time can be fed back quickly, and the problem that the requester user cannot receive a reply in a synchronous mode in a delayed manner is solved; batch feedback of processing results of hundreds of orders submitted by the requesting user at one time can be realized based on the determined receiving threshold, so that the requesting user can timely know which orders are successfully processed and which orders are failed to be processed.
The present application further provides a logistics processing system, fig. 3 is a structural diagram of a first embodiment of the logistics processing system of the present application, and as shown in fig. 3, the logistics processing system includes:
a receiving module 31, configured to receive a logistics data processing request sent by a processing device, where the logistics data processing request carries multiple logistics order identifiers;
the judging module 32 is configured to judge whether at least one logistics order identifier is successfully stored, and send a first trigger instruction to the sending module 33 when the judging result is yes;
a sending module 33, configured to receive the first trigger instruction, and send a logistics data processing request receiving success message to the processing device;
the processing module 34 is configured to process the logistics order corresponding to the logistics order identifier;
the sending module 33 is further configured to send, to the processing device in batches, a logistics data processing result obtained by processing the logistics order according to the determined receiving threshold corresponding to the processing device.
Optionally, the judging module 32 of the system is further configured to, when the judging result is negative, send a second trigger instruction to the sending module 33; then, the sending module 33 is further configured to receive the second trigger instruction, and send a logistics data processing request reception failure message to the processing device.
Optionally, the processing module 34 may include:
the extracting unit 341 is configured to extract the logistics order identifier from the successfully stored logistics order identifiers according to a preset sequence;
the distribution unit 342 is configured to distribute the logistics order corresponding to the extracted logistics order identifier to each processing server of the system to process the logistics order;
the receiving unit 343 is configured to receive the logistics data processing result returned after the logistics order is processed by each processing server.
Then, the processing server is used for processing the logistics order according to the following modes:
after receiving the logistics order distributed by the distribution unit 342, sending a delivery notification message to a logistics execution device, where the delivery notification message carries the logistics order identifier;
receiving a delivery completion message of the logistics execution device; and
and forms the logistics data processing result and sends the logistics data processing result to the receiving unit 343.
Optionally, the logistics processing system may further include: the creating module 35 is configured to create a state list in the cache after the distribution unit 342 successfully distributes the logistics order, where the state list includes the logistics order identifier successfully distributed and a corresponding state, and the state is a new state.
Optionally, the logistics processing system may further include: an updating module 36, configured to update a newly-created state corresponding to the logistics order identifier stored in the cache to an executed state according to the logistics data processing result received by the receiving unit 343; a recording module 37, configured to add a corresponding logistics data processing result at the location where the logistics order identifier in the executed state is updated by the updating module 36, where the logistics data processing result includes a successful logistics data processing or a failed logistics data processing.
Optionally, the cache is further configured to store a lookup table including all the logistics order identifiers carried in the logistics data processing request.
Optionally, the logistics processing system may further include: an obtaining module 381, configured to obtain the lookup table, and obtain, according to the lookup table, the logistics order identifier in the executed state and the corresponding logistics data processing result from the cache;
a deleting module 382, configured to delete the obtained logistics order identifier and the logistics order identifier whose state in the cache is the new state from the lookup table;
a generating module 383, configured to generate a logistics data processing result of a logistics data processing failure for the remaining logistics order identifications in the lookup table;
the sending module 33 is further configured to assemble the logistics order identifier in the executed state and the logistics data processing result corresponding to the logistics order identifier, the generated logistics order identifier and the logistics data processing result corresponding to the logistics order identifier, which are obtained from the cache, into feedback messages in batches according to the receiving threshold, and send the feedback messages to the processing device.
The logistics processing system provided by the embodiment realizes the quick feedback of hundreds of orders sent by a requester user at one time, and solves the problem that the requester user cannot receive a reply in a synchronous mode; batch feedback of processing results of hundreds of orders submitted by the requesting user at one time can be realized based on the determined receiving threshold, so that the requesting user can timely know which orders are successfully processed and which orders are failed to be processed.
The logistics data batch processing method and the logistics processing system of the present application can be implemented under the system architecture as shown in fig. 4. As shown in fig. 4, the system includes: the system comprises a processing device 100, a logistics processing system 200, and a plurality of logistics execution devices 300, wherein the logistics processing system 200 comprises a dispatch server 400 and a plurality of processing servers 500, and the specific structure of the logistics processing system 200 is shown in fig. 3.
Fig. 5 is a block diagram of a second embodiment of the logistics processing system of the present application, and as shown in fig. 5, the logistics processing system includes:
a receiving module 51, configured to receive a logistics data processing request sent by a processing device, where the logistics data processing request carries multiple logistics order identifiers;
the judging module 52 is configured to judge whether at least one logistics order identifier is successfully stored, and send a trigger instruction to the sending module when the judging result is yes;
a sending module 53, configured to receive the trigger instruction, and send a logistics data processing request receiving success message to the processing device;
the processing module 54 is configured to process the logistics order corresponding to the logistics order identifier;
the sending module 53 is further configured to send a logistics data processing result obtained by processing the logistics order to the processing device.
Optionally, the sending module 53 may be further configured to send a logistics data processing result obtained by processing the logistics order to the processing device by: and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
The logistics processing system can realize the following corresponding logistics data batch processing method, and comprises the following steps:
receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
judging whether at least one logistics order mark is successfully stored;
when the judgment result is yes, sending a logistics data processing request receiving success message to the processing device;
processing the logistics order corresponding to the logistics order identification;
and sending a logistics data processing result obtained after the logistics order is processed to the processing device.
Optionally, the sending, to the processing device, a logistics data processing result obtained by processing the logistics order includes: and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
The present application also provides another logistics processing system, which may include:
the receiving module is used for receiving a logistics data processing request sent by the processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
the processing module is used for processing the logistics orders corresponding to the logistics order identifications;
and the sending module is used for sending the logistics data processing result obtained after the logistics order is processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Optionally, the logistics processing system may further include: the judging module is used for judging whether at least one logistics order mark is successfully stored or not, and when the judging result is yes, a triggering instruction is sent to the sending module; and the sending module is further used for receiving the trigger instruction and sending a logistics data processing request receiving success message to the processing device.
The logistics processing system can realize the following corresponding logistics data batch processing method, and comprises the following steps:
receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
processing the logistics orders corresponding to the logistics order identifications;
and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
Optionally, the method may further include: judging whether at least one logistics order mark is successfully stored; and when the judgment result is yes, sending a logistics data processing request receiving success message to the processing device.
The present application further provides a processing apparatus, and fig. 6 is a structural diagram of an embodiment of the processing apparatus of the present application, as shown in fig. 6, including:
a sending module 61, configured to send a logistics data processing request to a logistics processing system, where the logistics data processing request carries multiple logistics order identifiers;
a receiving module 62, configured to receive a logistics data processing request receiving success message sent after the logistics processing system successfully stores at least one logistics order identifier;
the sending module 61 is further configured to send the receiving threshold determined by the processing device to the logistics processing system;
the receiving module 62 is further configured to receive a logistics data processing result fed back in batches according to the receiving threshold after the logistics processing system processes the logistics order.
Optionally, the receiving module 62 may be further configured to receive a logistics data processing request reception failure message sent by the logistics processing system after the logistics processing system fails to store all the logistics order identifications.
The present application further provides a method for batch processing of logistics data, and fig. 7 is a flowchart of a second embodiment of the method for batch processing of logistics data, as shown in fig. 7, including:
701, sending a logistics data processing request to a logistics processing system, wherein the logistics data processing request carries a plurality of logistics order identifications;
step 702, receiving a logistics data processing request receiving success message sent by the logistics processing system after successfully storing at least one logistics order mark;
step 703, determining a receiving threshold;
step 704, sending the determined receiving threshold value to the logistics processing system;
step 705, receiving a logistics data processing result fed back in batches according to the receiving threshold after the logistics processing system processes the logistics order.
Optionally, the method may further include: step 706, after the storage of all the logistics order identifications by the logistics processing system fails, receiving a receiving failure message of the logistics data processing request sent by the logistics processing system.
The processing device and the logistics data batch processing method provided by the application realize rapid feedback of hundreds of orders sent by a requester user at one time, and solve the problem that the requester user cannot receive a reply in a synchronous mode; batch feedback of processing results of hundreds of orders submitted by the requesting user at one time can be realized based on the determined receiving threshold, so that the requesting user can timely know which orders are successfully processed and which orders are failed to be processed.
Of course, it is not necessary for any product to achieve all of the above-described advantages at the same time for the practice of the present application.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
Although the embodiments disclosed in the present application are described above, the descriptions are only for the convenience of understanding the present application, and are not intended to limit the present application. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims.

Claims (26)

1. A logistics processing system, comprising:
the receiving module is used for receiving a logistics data processing request sent by the processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
the judging module is used for judging whether at least one logistics order mark is successfully stored or not, and when the judging result is yes, a first trigger instruction is sent to the sending module;
the sending module is used for receiving the first trigger instruction and sending a logistics data processing request receiving success message to the processing device;
the processing module is used for processing the logistics order corresponding to the successfully stored logistics order identification;
the sending module is further configured to send, to the processing device in batches, a logistics data processing result obtained by processing the logistics order according to the receiving threshold determined by the processing device.
2. The system of claim 1,
the judging module is also used for sending a second trigger instruction to the sending module when the judging result is negative;
the sending module is further configured to receive the second trigger instruction, and send a logistics data processing request reception failure message to the processing device.
3. The system of claim 1, wherein the processing module comprises:
the extraction unit is used for extracting the logistics order mark from the logistics order marks which are successfully stored according to a preset sequence;
the distribution unit is used for distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server of the system so as to process the logistics orders;
and the receiving unit is used for receiving the logistics data processing result returned after the logistics order is processed by each processing server.
4. The system of claim 3, further comprising:
and the creating module is used for creating a state list in the cache after the distribution unit successfully distributes the logistics order, wherein the state list comprises the logistics order identification successfully distributed and the corresponding state which is a new state.
5. The system of claim 4, further comprising:
the updating module is used for updating a newly-built state corresponding to the logistics order mark stored in the cache to an executed state according to the logistics data processing result received by the receiving unit;
and the recording module is used for adding a corresponding logistics data processing result at the position of the logistics order mark which is updated to be in the executed state by the updating module, wherein the logistics data processing result comprises logistics data processing success or logistics data processing failure.
6. The system of claim 5, wherein the cache is further configured to store a lookup table including all the logistics order identifications carried in the logistics data processing request.
7. The system of claim 6, further comprising:
the acquisition module is used for acquiring the query table and acquiring the logistics order identification in the executed state and a logistics data processing result corresponding to the logistics order identification from the cache according to the query table;
a deleting module, configured to delete the obtained logistics order identifier and the logistics order identifier corresponding to the new state in the cache from the lookup table;
the generating module is used for generating a logistics data processing result of which the logistics data processing fails according to the rest logistics order identifications in the query table;
the sending module is further configured to assemble the logistics order identifier in the executed state and the logistics data processing result corresponding to the logistics order identifier, the generated logistics order identifier and the logistics data processing result corresponding to the logistics order identifier, which are acquired from the cache, into feedback messages in batches according to the receiving threshold, and send the feedback messages to the processing device.
8. The system of claim 3, wherein the processing server is configured to process the logistics order as follows:
after receiving the logistics order distributed by the distribution unit, sending a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device; and
and forming the logistics data processing result and sending the logistics data processing result to the receiving unit.
9. A logistics data batch processing method is characterized by comprising the following steps:
receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
judging whether at least one logistics order mark is successfully stored;
when the judgment result is yes, sending a logistics data processing request receiving success message to the processing device;
processing the logistics order corresponding to the successfully stored logistics order identification;
and sending logistics data processing results obtained after the logistics orders are processed to the processing device in batches according to the determined receiving threshold corresponding to the processing device.
10. The method of claim 9, further comprising: and when the judgment result is negative, sending a logistics data processing request receiving failure message to the processing device.
11. The method of claim 9, wherein the processing the logistics order to identify the corresponding logistics order comprises:
extracting the logistics order mark from the successfully stored logistics order mark according to a preset sequence;
distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server to process the logistics orders;
and receiving the logistics data processing result returned after the logistics orders are processed by each processing server.
12. The method of claim 11, further comprising: and after the logistics order is successfully distributed, a state list is established in a cache, wherein the state list comprises the logistics order mark successfully distributed and the corresponding state is a new state.
13. The method of claim 12, further comprising:
after receiving the returned logistics data processing result, updating the newly-built state corresponding to the logistics order mark stored in the cache to be the executed state;
and adding a corresponding logistics data processing result at the logistics order identification updated to be in the executed state, wherein the logistics data processing result comprises the success of logistics data processing or the failure of logistics data processing.
14. The method of claim 13, further comprising: and storing a lookup table comprising all the logistics order identifications carried in the logistics data processing request in the cache.
15. The method according to claim 14, wherein the sending the logistics data processing result after processing the logistics order to the processing device in batches according to the determined receiving threshold corresponding to the processing device comprises:
obtaining the lookup table from the cache;
according to the query table, acquiring the logistics order identification with the executed state and a logistics data processing result corresponding to the logistics order identification from the cache;
deleting the obtained logistics order mark and the logistics order mark corresponding to the newly-built state in the cache from the lookup table;
generating a logistics data processing result of the logistics data processing failure aiming at the rest logistics order identifications in the query table;
and assembling the logistics order identifications in the executed state and the logistics data processing results corresponding to the logistics order identifications, and the generated logistics order identifications and the logistics data processing results corresponding to the logistics order identifications, which are acquired from the cache, into feedback messages in batches according to the receiving threshold value, and sending the feedback messages to the processing device.
16. The method of claim 11, wherein the processing server processing the logistics order comprises:
after receiving the distributed logistics order, the processing server sends a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device;
and forming the logistics data processing result.
17. A logistics processing system, comprising:
the receiving module is used for receiving a logistics data processing request sent by the processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
the judging module is used for judging whether at least one logistics order mark is successfully stored or not, and when the judging result is yes, a triggering instruction is sent to the sending module;
the sending module is used for receiving the triggering instruction and sending a logistics data processing request receiving success message to the processing device;
the processing module is used for processing the logistics order corresponding to the successfully stored logistics order identification;
the sending module is further configured to send a logistics data processing result obtained by processing the logistics order to the processing device.
18. The system of claim 17, wherein the processing module comprises:
the extraction unit is used for extracting the logistics order mark from the logistics order marks which are successfully stored according to a preset sequence;
the distribution unit is used for distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server of the system so as to process the logistics orders;
and the receiving unit is used for receiving the logistics data processing result returned after the logistics order is processed by each processing server.
19. The system of claim 18, wherein the processing server is configured to process the logistics order as follows:
after receiving the logistics order distributed by the distribution unit, sending a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device; and
and forming the logistics data processing result and sending the logistics data processing result to the receiving unit.
20. A logistics data batch processing method is characterized by comprising the following steps:
receiving a logistics data processing request sent by a processing device, wherein the logistics data processing request carries a plurality of logistics order identifications;
judging whether at least one logistics order mark is successfully stored;
when the judgment result is yes, sending a logistics data processing request receiving success message to the processing device;
processing the logistics order corresponding to the successfully stored logistics order identification;
and sending a logistics data processing result obtained after the logistics order is processed to the processing device.
21. The method of claim 20, wherein the processing the logistics order to identify the corresponding logistics order comprises:
extracting the logistics order mark from the successfully stored logistics order mark according to a preset sequence;
distributing the logistics orders corresponding to the extracted logistics order identifications to each processing server to process the logistics orders;
and receiving the logistics data processing result returned after the logistics orders are processed by each processing server.
22. The method of claim 21, wherein the processing server processing the logistics order comprises:
after receiving the distributed logistics order, the processing server sends a delivery notification message to a logistics execution device, wherein the delivery notification message carries a logistics order identifier;
receiving a delivery completion message of the logistics execution device;
and forming the logistics data processing result.
23. A processing apparatus, comprising:
the system comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a logistics data processing request to a logistics processing system, and the logistics data processing request carries a plurality of logistics order identifications;
the receiving module is used for receiving a logistics data processing request receiving success message sent after the logistics processing system successfully stores at least one logistics order mark;
the sending module is further configured to send the receiving threshold determined by the processing device to the logistics processing system;
the receiving module is further configured to receive a logistics data processing result fed back in batches according to the receiving threshold after the logistics processing system processes the logistics order corresponding to the successfully stored logistics order identifier.
24. The apparatus of claim 23, wherein the receiving module is further configured to receive a logistics data processing request reception failure message sent by the logistics processing system when the logistics processing system fails to store all the logistics order identifications.
25. A logistics data batch processing method is characterized by comprising the following steps:
sending a logistics data processing request to a logistics processing system, wherein the logistics data processing request carries a plurality of logistics order identifications;
receiving a logistics data processing request receiving success message sent by the logistics processing system after at least one logistics order mark is successfully stored;
determining a reception threshold;
sending the determined receiving threshold value to the logistics processing system;
and receiving logistics data processing results fed back in batches according to the receiving threshold after the logistics processing system processes the logistics orders corresponding to the successfully stored logistics order identifications.
26. The method of claim 25, further comprising:
and receiving a logistics data processing request receiving failure message sent by the logistics processing system after the logistics processing system fails to store all the logistics order identifications.
CN201610511195.5A 2016-06-30 2016-06-30 Logistics data batch processing method, logistics processing system and processing device Active CN107563942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610511195.5A CN107563942B (en) 2016-06-30 2016-06-30 Logistics data batch processing method, logistics processing system and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610511195.5A CN107563942B (en) 2016-06-30 2016-06-30 Logistics data batch processing method, logistics processing system and processing device

Publications (2)

Publication Number Publication Date
CN107563942A CN107563942A (en) 2018-01-09
CN107563942B true CN107563942B (en) 2021-06-18

Family

ID=60969107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610511195.5A Active CN107563942B (en) 2016-06-30 2016-06-30 Logistics data batch processing method, logistics processing system and processing device

Country Status (1)

Country Link
CN (1) CN107563942B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109308653B (en) * 2018-10-16 2022-04-22 牡丹国际商品交易中心有限公司 Method, terminal and storage medium for avoiding congestion of client access server
CN113923138B (en) * 2020-07-07 2023-03-31 瑞昱半导体股份有限公司 Communication device and network management method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012840A (en) * 2010-12-23 2011-04-13 中国农业银行股份有限公司 Batch data scheduling method and system
CN102902812A (en) * 2012-10-22 2013-01-30 飞天诚信科技股份有限公司 Method for realizing remote synchronization of database
CN104809602A (en) * 2014-01-26 2015-07-29 阿里巴巴集团控股有限公司 Method and apparatus for providing logistics information
CN105631625A (en) * 2015-12-18 2016-06-01 苏州功路驿站网络科技有限公司 Logistics multi-supplier order management system and logistics multi-supplier order management method
CN105631621A (en) * 2014-11-05 2016-06-01 阿里巴巴集团控股有限公司 Method for controlling logistics order state in distributed system and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012840A (en) * 2010-12-23 2011-04-13 中国农业银行股份有限公司 Batch data scheduling method and system
CN102902812A (en) * 2012-10-22 2013-01-30 飞天诚信科技股份有限公司 Method for realizing remote synchronization of database
CN104809602A (en) * 2014-01-26 2015-07-29 阿里巴巴集团控股有限公司 Method and apparatus for providing logistics information
CN105631621A (en) * 2014-11-05 2016-06-01 阿里巴巴集团控股有限公司 Method for controlling logistics order state in distributed system and system
CN105631625A (en) * 2015-12-18 2016-06-01 苏州功路驿站网络科技有限公司 Logistics multi-supplier order management system and logistics multi-supplier order management method

Also Published As

Publication number Publication date
CN107563942A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107332876B (en) Method and device for synchronizing block chain state
CN108460115B (en) Message pushing method and device, computer equipment and storage medium
CN109391646B (en) Message middleware message acquisition method, device and system
CN110995513B (en) Data sending and receiving method in Internet of things system, internet of things equipment and platform
CN110912980B (en) Order state synchronization method, system and storage medium
CN111221469B (en) Method, device and system for synchronizing cache data
CN103856569A (en) Method and device for synchronizing domain name system resource information
CN103780679A (en) Long time delay remote invocation method based on HTTP protocol
CN112988883B (en) Database data synchronization method and device and storage medium
CN108874803A (en) Date storage method, device and storage medium
CN111225012A (en) Transaction processing method, device and equipment
CN107870982B (en) Data processing method, system and computer readable storage medium
CN105450682B (en) Method, device and system for synchronously storing data and synchronizing data to client
CN111159233B (en) Distributed caching method, system, computer equipment and storage medium
CN113127564B (en) Parameter synchronization method and device
CN105282682B (en) Method for realizing resource attribute notification and public service entity
CN107548039B (en) Short message retry processing method, device and system
CN107563942B (en) Logistics data batch processing method, logistics processing system and processing device
CN110417876B (en) Session method, node server in distributed system and master control equipment
CN110071968B (en) Block chain based message storage method and device
CN109542917B (en) Data reading method and computer readable medium
EP3220607A1 (en) Service data processing method, device and system
CN112749172A (en) Data synchronization method and system between cache and database
CN111078425B (en) Message processing method and device, storage medium and electronic equipment
CN112905550A (en) Data export method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180322

Address after: Four story 847 mailbox of the capital mansion of Cayman Islands, Cayman Islands, Cayman

Applicant after: CAINIAO SMART LOGISTICS HOLDING Ltd.

Address before: Cayman Islands Grand Cayman capital building a four storey No. 847 mailbox

Applicant before: ALIBABA GROUP HOLDING Ltd.

GR01 Patent grant
GR01 Patent grant