CN111325501A - Logistics state management method, device, equipment and storage medium - Google Patents
Logistics state management method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111325501A CN111325501A CN202010082576.2A CN202010082576A CN111325501A CN 111325501 A CN111325501 A CN 111325501A CN 202010082576 A CN202010082576 A CN 202010082576A CN 111325501 A CN111325501 A CN 111325501A
- Authority
- CN
- China
- Prior art keywords
- order
- information
- production
- delivery
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
- G06Q10/0833—Tracking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2379—Updates performed during online database operations; commit processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Data Mining & Analysis (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- General Factory Administration (AREA)
Abstract
The embodiment of the invention discloses a method, a device, equipment and a storage medium for managing a logistics state, wherein the method comprises the following steps: receiving a delivery information list sent by a merchant terminal; the delivery information list comprises a plurality of pieces of delivery information; inquiring a corresponding production list according to the order number in the delivery information, and updating the logistics state in the production list; and when the production order is updated, inquiring a corresponding order based on the order number, and updating the logistics state in the order. The technical scheme provided by the embodiment of the invention can update the logistics states of the production orders and the orders in batches, improve the operation efficiency and reduce the operation tasks of merchants.
Description
Technical Field
The embodiment of the invention relates to the technical field of e-commerce, in particular to a logistics state management method, a logistics state management device, logistics state management equipment and a storage medium.
Background
In recent years, shopping via e-commerce platforms has become very popular due to the rapid growth of the network and logistics industry. The user can finish shopping through a series of processes such as ordering and paying on line without leaving home.
After a user purchases goods through the e-commerce platform, a merchant starts to produce the goods, the merchant operates orders and production orders of the goods through operating the e-commerce platform, logistics information is updated, for example, updating of a delivery state is achieved, however, when the merchant needs to update the production orders of a large number of goods and the logistics states in the orders, the operation task of the merchant is heavy, operation is troublesome, and efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a logistics state management method, a logistics state management device and a logistics state management storage medium, which can update the logistics states of production orders and orders in batches, improve the operation efficiency and reduce the operation tasks of merchants.
In a first aspect, an embodiment of the present invention provides a method for managing a logistics state, including:
receiving a delivery information list sent by a merchant terminal; the delivery information list comprises a plurality of pieces of delivery information;
inquiring a corresponding production list according to the order number in the delivery information, and updating the logistics state in the production list;
and when the production order is updated, inquiring a corresponding order based on the order number, and updating the logistics state in the order.
In a second aspect, an embodiment of the present invention further provides a logistics state management apparatus, including:
the receiving module is used for receiving a delivery information list sent by a merchant end; the delivery information list comprises a plurality of pieces of delivery information;
the first updating module is used for inquiring a corresponding production list according to the order number in the delivery information and updating the logistics state in the production list;
and the second updating module is used for inquiring the corresponding order based on the order number and updating the logistics state in the order when the production order is updated.
In a third aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method as provided by embodiments of the invention.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used to implement a method provided by an embodiment of the present invention when executed by a processor.
According to the technical scheme provided by the embodiment of the invention, a delivery information list sent by a merchant end is received, the delivery information list comprises a plurality of pieces of delivery information, a corresponding production list is inquired through an order number in each piece of delivery information in the delivery information list, and the logistics state in the production list is updated; when the production order is updated, the corresponding order is inquired based on the order number in each piece of delivery information, the logistics state in the order is updated, the logistics states in the production order and the order can be updated in batches, the operation efficiency can be improved, and the task of a merchant can be reduced.
Drawings
Fig. 1 is a flowchart of a method for managing a logistics state according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for managing a logistics state according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for managing a logistics state according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for managing a logistics state according to an embodiment of the present invention;
fig. 5 is a block diagram of a physical distribution status management apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a logistics state management method according to an embodiment of the present invention, where the method may be executed by a logistics state management device, where the device may be configured in an e-commerce platform, and optionally, may be applied to a shop (shopping) delivery platform in the e-commerce platform, where the e-commerce platform may be configured in a server, and the method may be applied in a scenario where delivery states of production orders and orders are updated.
As shown in fig. 1, the technical solution provided by the embodiment of the present invention includes:
s110: receiving a delivery information list sent by a merchant terminal; wherein, the delivery information list comprises a plurality of pieces of delivery information.
In the embodiment of the present invention, the delivery information may include an order number, a courier number, and a courier company number. The merchant can correspond to one piece of shipping information for a large number of produced commodities, the shipping information of the commodities can be stored in a shipping information list, and the merchant sends the shipping information list to a shipping system through the merchant, wherein the shipping system is configured in an e-commerce platform of the server. The server receives a delivery information list sent by the merchant through the delivery system, wherein the delivery information list comprises a plurality of pieces of delivery information.
S120: and inquiring a corresponding production list according to the order number in the delivery information, and updating the logistics state in the production list.
In the embodiment of the present invention, the logistics state of the production order may be a shipping state. And respectively inquiring corresponding production lists according to the order numbers in each piece of delivery information in the delivery information list, and updating the logistics state of each production list. Specifically, the status of shipment in each production order may be modified to "in shipment". Therefore, by receiving the delivery information list, each production order can be obtained through the order number in each piece of delivery information in the delivery information list, so that the logistics state of the production order is updated, the situation that the logistics state of the production order is updated by merchants one by one can be avoided, the operation efficiency is improved, and the tasks of the merchants are reduced.
S130: and when the production order is updated, inquiring a corresponding order based on the order number, and updating the delivery state of the order.
In the embodiment of the invention, when the production order is updated, the order corresponding to the order number can be inquired through the order system, and the logistics state of the order is updated. The method specifically comprises the following steps: the delivery state in the order is updated to be 'delivery in progress', so that the user can inquire the logistics state of the commodity in time and know the logistics information of the commodity.
According to the technical scheme provided by the embodiment of the invention, a delivery information list sent by a merchant end is received, the delivery information list comprises a plurality of pieces of delivery information, a corresponding production list is inquired through an order number in each piece of delivery information in the delivery information list, and the logistics state in the production list is updated; when the production order is updated, the corresponding order is inquired based on the order number in each piece of delivery information, the logistics state in the order is updated, the logistics states in the production order and the order can be updated in batches, the operation efficiency can be improved, and the task of a merchant can be reduced.
Fig. 2 is a flowchart of a logistics state management method provided in an embodiment of the present invention, and in this embodiment, the technical solution provided in the embodiment of the present invention may further include:
verifying the shipping information in the shipping information list and verifying the production order information and the order information corresponding to the order number in the shipping information;
the inquiring of the corresponding production list according to the order number in the delivery information and the updating of the logistics state in the production list comprise:
and for each piece of shipping information, when the verification of the shipping information is successful and the verification of the production order information and the order information corresponding to the order number in the shipping information is successful, inquiring the corresponding production order according to the order number and updating the logistics state in the production order.
As shown in fig. 2, the technical solution provided by the embodiment of the present invention includes:
s210: receiving a delivery information list sent by a merchant terminal; wherein, the delivery information list comprises a plurality of pieces of delivery information.
S220: and verifying the delivery information in the delivery information list and verifying the production order information and the order information corresponding to the order number in the delivery information.
In an implementation manner of the embodiment of the present invention, optionally, the checking the shipment information in the shipment information list includes:
judging whether each piece of shipping information in the shipping information list is missing or not;
if so, recording the missing delivery information as delivery information failed in verification;
when the quantity of the shipping information in the shipping information list is larger than a set quantity, the shipping information in the shipping information list is sliced;
judging whether an order number, an express number and an express company number in delivery information conform to a number rule or not aiming at each piece of delivery information;
if not, recording the shipping information which does not conform to the numbering rule as the shipping information which fails to be verified;
judging whether the order numbers in the delivery information are repeated or not;
if so, recording the repeated order number, and taking the order number as delivery information failed in verification;
and taking the delivery information which has no loss, the order number, the express delivery number and the express company number conform to the number rule and the order number is not repeated as the delivery information which is verified successfully.
In the embodiment of the invention, when the shipping information is verified, the shipping information is sliced when the number of the shipping information is larger than the set number, and each piece of data is processed, so that errors can be prevented, and the pressure of single data query can be reduced.
In the embodiment of the invention, each piece of shipping information can be executed concurrently through the thread pool to improve the speed of checking the shipping information, or each piece of shipping information can be processed serially.
In the embodiment of the present invention, whether the order number, the express number, and the express company number in the shipment information conform to the numbering rule or not is determined, which may specifically be: judging whether the order number and the express company number are numbers or not, judging whether the express number is converted into a long integer or not, judging whether the digit of the express number is 8-17 or not and is capital English letter or number or not, and judging that the order number, the express number and the express company number in the delivery information accord with a numbering rule if the digit of the express number is capital English letter or number.
In an implementation manner of the embodiment of the present invention, optionally, the verifying the production order information and the order information corresponding to the order number in the shipping information includes: and carrying out first verification and second verification on the production order information and the order information corresponding to the order number in the delivery information.
In an implementation manner of the embodiment of the present invention, optionally, the performing the first verification on the production order information and the order information corresponding to the order number in the shipping information includes:
if one of the following conditions is met, judging that the first verification of the production order and the order information corresponding to the order number in the delivery information fails, and recording the delivery information corresponding to the first verification failure and the reason of the first verification failure: if the conditions that the production order and the order information corresponding to the order number in the delivery information are not satisfied, judging that the first verification of the production order and the order information is successful:
the order number in the delivery information does not exist;
the merchant number in the order information corresponding to the order number is different from the merchant number corresponding to the merchant end which sends the delivery information list;
the express company number in the order information corresponding to the order number is different from the express company number in the delivery information;
the order state corresponding to the order number is different from the production order state corresponding to the order number;
order details in the order information corresponding to the order number do not exist;
the order detail in the order information corresponding to the order number has an acceptance condition, and the state in the order detail of the acceptance condition is a refund applying state of the user;
complaint conditions exist in order details in the order information corresponding to the order numbers;
and the order corresponding to the order number is that all refunds exist.
In the embodiment of the present invention, in the process of checking the production order information and the order information corresponding to the order number in the shipment information for the first time, when it is determined that one of the above conditions is met, it is determined that the production order information and the order information corresponding to the order number in the shipment information fail to check for the first time, and the shipment information is recorded, or only the order number in the shipment information is recorded, and the reason of the first check failure is recorded, where the reason of the first check failure may be the above condition that is met.
In the embodiment of the present invention, determining whether the order number in the shipping information exists may be performed by: and judging whether an order corresponding to the order number exists or not, and if not, judging that the order number in the delivery information does not exist.
In this embodiment of the present invention, the first verifying the production order information and the order information corresponding to the order number in the shipping information may further include: and judging whether the express company corresponding to the express company number is legal or not. The method specifically comprises the following steps: inquiring merchant information matched with merchant numbers corresponding to merchant terminals sending the delivery information list, determining whether the merchant opens an express company corresponding to a express company number in the delivery information from the merchant information, and judging whether a delivery system opens an express company corresponding to the express company number in the delivery information; if the verification result is positive, judging that the express company is legal, otherwise, recording the delivery information as delivery information failed in verification, or only recording order number information in the delivery information as delivery information failed in verification.
In the embodiment of the present invention, when the order state in the order information corresponding to the order number is in production, the order state can be updated, so that it is necessary to determine whether the order state corresponding to the order number is consistent with the production order state.
In the embodiment of the present invention, the complaint condition that the order details in the order information corresponding to the order number exist may include a condition that the user withdraws.
Therefore, the production order information and the order information corresponding to the order number in the delivery information are verified for the first time, the delivery information which does not meet the requirement can be recorded, the logistics state of the production order and the logistics state of the order are updated according to the correct delivery information, and the accuracy of data is guaranteed.
In an implementation manner of the embodiment of the present invention, optionally, the performing the second verification on the production order information and the order information corresponding to the order number in the shipping information includes:
slicing the delivery information again, and adding a distributed lock to the order number in the delivery information;
for each piece of shipping information, if one of the following conditions is met, judging that the second verification of the production order information and the order information corresponding to the order number in the shipping information fails, recording the corresponding shipping information when the second verification fails and the reason of the second verification failure, and if the following conditions are not met, judging that the second verification of the production order information and the order information corresponding to the order number in the shipping information succeeds:
the production list state corresponding to the order number in the delivery information is a delivery state;
the production order state corresponding to the order number is a non-delivery state, and the production order corresponding to the order number comprises a production order which is not in a production state;
and the after-sale state information of the order corresponding to the order number has an acceptance sheet in the process, or all production sheets of the order corresponding to the order number complete refund.
In the embodiment of the present invention, in the process of performing the second verification on the production order information and the order information corresponding to the order number in the shipping information, when it is determined that one of the above conditions is satisfied, it is determined that the second verification of the production order information and the order information corresponding to the order number in the shipping information fails, and the shipping information is recorded, or only the order number in the shipping information is recorded, and a reason of the second verification failure is recorded, where the reason of the second verification failure may be the above condition that is satisfied.
In the embodiment of the invention, the delivery information is sliced again, so that the pressure of data query can be reduced, and the condition that the order states generated by order operation are inconsistent can be avoided in the process of updating the production order corresponding to the order number and the order logistics state by adding the distributed lock to the order number in the delivery information.
S230: and for each piece of shipping information, when the verification of the shipping information is successful and the verification of the production order information and the order information corresponding to the order number in the shipping information is successful, inquiring the corresponding production order according to the order number and updating the logistics state in the production order.
S240: and when the production order is updated, inquiring a corresponding order based on the order number, and updating the logistics state in the order.
In an implementation manner of the embodiment of the present invention, optionally, the technical solution provided by the embodiment of the present invention may further include: when the logistics state in each production order is updated successfully, recording the information of the successful update of the production order through an information queue MQ information list;
correspondingly, when the production order is updated, the corresponding order is inquired based on the order number, and the logistics state in the order is updated, including: transmitting MQ messages in the MQ message list to the order system in batches through the delivery system; the MQ message carries an order number corresponding to the production order which is updated successfully; and updating the logistics state in the order corresponding to the order number through an order system.
In the embodiment of the present invention, the update successful message may include the order number corresponding to the update successful production order, or may also include other information, for example, identification information of the update successful production order. When each production order is updated successfully, an MQ Message is recorded in a Message Queue (MQ) Message list, and when a plurality of production orders are updated successfully, a plurality of MQ messages are recorded. And transmitting MQ information to the order system in batches through the delivery system so that the order system updates the logistics state of the order. Therefore, the updating efficiency can be improved by sending the MQ information to update the logistics state of the order.
The technical scheme provided by the embodiment of the invention can also comprise:
recording the MQ log; when the MQ message is successfully sent, acquiring the order number successfully sent, and updating the MQ log; and when the MQ message fails to be sent, acquiring the order number which fails to be sent, failing to update the MQ log, and sending information to the set address to alarm so as to inform a manager of solving the fault.
On the basis of the above embodiment, the technical solution provided by the embodiment of the present invention may further include:
and when the logistics state in the order corresponding to the order number is updated through the order system, sending a call-back notification message to the delivery system so as to complete information synchronization.
On the basis of the above embodiment, the technical solution provided by the embodiment of the present invention further includes, after updating the logistics state in the production order: recording a log for modifying the production order; and when the log is monitored to have an error, sending alarm information to a set address. The log of the modified production order includes the order number corresponding to the updated production order, and may also include identification information of the production order, or may also include information such as update time. Therefore, by recording and modifying the log of the production order, when the log is detected to have an error, the management personnel can be informed by sending alarm information to the set address so as to solve the problem of log error.
Fig. 3 is a flowchart of a logistics state management method according to an embodiment of the present invention, and based on the above embodiment, the logistics state provided by the embodiment of the present invention is a shipping state.
As shown in fig. 3, the technical solution provided by the embodiment of the present invention includes:
s310: receiving a delivery information list sent by a merchant terminal; wherein, the delivery information list comprises a plurality of pieces of delivery information.
S320: and verifying the delivery information in the delivery information list and verifying the production order information and the order information corresponding to the order number in the delivery information.
S330: and for each piece of shipping information, when the verification of the shipping information is successful and the verification of the production order information and the order information corresponding to the order number in the shipping information is successful, inquiring the corresponding production order according to the order number and updating the shipping state in the production order.
S340: and when the production order is updated, inquiring a corresponding order based on the order number, and updating the delivery state of the order.
The descriptions of S310 to S340 can refer to the corresponding descriptions of the above embodiments.
Fig. 4 is a flowchart of a logistics state management method provided in an embodiment of the present invention, and as shown in fig. 4, the method provided in the embodiment of the present invention may refer to the following steps:
1. checking a delivery information list (namely a plurality of lines of data with corresponding relation of order numbers, express numbers and express company numbers), checking whether each line of data is missing, and if so, returning an error. Otherwise, the execution is continued, and a wrong order record list is created.
2. The size of the data amount of the shipment information (data) in the shipment information list is determined, and if the size exceeds the limit, for example, if the size exceeds 2000, there is a possibility that the inquiry may cause a problem. Therefore, the large-batch data is fragmented (i.e. the large-batch data is decomposed into small-batch processing) to be processed, so that errors are prevented, and the pressure of single query of the database is relieved.
3. And (4) placing each fragment in a thread pool for concurrent execution, and judging whether the data in the fragment meets the condition.
3.1, judge order number, express delivery serial number, whether express delivery company serial number satisfies the numbering rule, numbering rule example: the order number, the express company number is digital and the express number can be converted into a long integer, if the number does not meet the number rule, the express company number is placed in the wrong order record; the express number is 8-17, and must be upper and lower case English letter or number, and record the error order number, list position, and error reason.
And 3.2, judging whether the order number exists or not, judging whether the order number is repeated or not, taking correct delivery information which is not repeated, inquiring the order information according to the order number, comparing the merchant number with the order number, checking whether the order number has errors or not, judging whether the order number belongs to the merchant, removing the wrong order information in the delivery information, and recording the wrong order information.
And 3.3, judging whether the express company is legal or not, retrieving order information through an order system according to order numbers in the merchant information and the delivery information, comparing the order information with the express company number in the delivery information according to the express company number in the order system, simultaneously comparing whether the merchant starts the express or not in a database and whether the system starts the express or not, removing wrong information, and adding the wrong information into a wrong order record list.
And 3.4, inquiring the state of the production order and the state of the order according to the order number, checking whether the state of the production order is consistent with the state of the order, namely inquiring the state of the order through an order system, and only when the state of the order is in production, carrying out delivery operation.
And 3.5, checking the order accepting state of the order details in the order information, inquiring through an order system, inquiring the order details according to the order number, and if the order details do not exist, not shipping.
And 3.6, checking whether the order details have acceptance conditions, such as the user applies for refund. This case does not allow for shipping operations.
And 3.7, checking whether the order details have complaint conditions, such as user withdrawal. This case does not allow for shipping operations.
And 3.8, checking whether the order is all refunds according to the order number, and if all the commodities in the order are refunds, the goods cannot be delivered under the condition.
4. And counting by CountDownLatch to wait for the completion of the whole execution of the threads, and acquiring all execution results.
4.1, if the wrong order information is not empty, namely the error exists, directly returning delivery failure, and returning the wrong order number and the error reason.
5. And acquiring the order information number according to the delivery information list.
6. In order to prevent the order from being operated at the same time to cause the order inconsistent state, the order number is added with a distributed lock, if the order is locked, the information in the order delivery execution is directly returned, otherwise, the execution is continued
7. The shipment information in the shipment information list is sliced again according to the slice size, e.g., 500.
8. The shipping operation is performed for each piece.
8.1, filling the name of the express company into corresponding delivery information.
And 8.2, inquiring the production order information according to the order number, the user information and the state. And if the production list is empty, directly returning error information.
And 8.3, if the production order corresponding to the order has delivery or the production order corresponding to the order has no delivery state and contains the production order which is not in the production state, returning an error if error information exists.
And 8.4, checking the after-sale state of the order, and returning if the processed acceptance order or all production orders in the order complete refund.
9. Modifying database state
9.1, numbering and slicing orders
And 9.2, modifying the production order information in batch according to the order number.
9.3, asynchronously sending a production list log for modification, and sending an email alarm if the log is recorded to be wrong.
And 9.4, if the production list information is successfully modified, recording the success information to the MQ message list.
10. And when the fragmentation is finished, transmitting MQ information for other system synchronization messages.
10.1, recording a pre-sending MQ log;
10.2, transmitting MQ information in batches in a mode of taking the remainder with the size of the queue, and returning the order number with the transmission error.
And 10.3, acquiring all order numbers successfully sent, and updating the MQ log table to be successful.
And 10.4, acquiring all order numbers which fail to be sent, updating the MQ log into failure, and sending a mail for alarming.
11. And when the order system receives the MQ information and completes, the call-back informs the delivery system of completing information synchronization.
It should be noted that the received data in fig. 4 can be understood as receiving shipment information in the shipment information list. The check parameter format may refer to the content described in step 1.
Fig. 5 is a block diagram of a structure of a logistics state management apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a receiving module 510, a first updating module 520, and a second updating module 530.
A receiving module 510, configured to receive a shipping information list sent by a merchant; the delivery information list comprises a plurality of pieces of delivery information;
a first updating module 520, configured to query a corresponding production order according to the order number in the shipping information, and update a logistics state in the production order;
a second updating module 530, configured to, when the production order is updated, query a corresponding order based on the order number, and update a logistics state in the order.
Optionally, the device further includes a verification module, configured to verify the shipping information in the shipping information list, and verify the production order information and the order information corresponding to the order number in the shipping information;
the first updating module 520 is configured to, for each piece of shipping information, query a corresponding production order according to the order number when the shipping information is successfully verified and the production order information and the order information corresponding to the order number in the shipping information are successfully verified, and update the logistics state in the production order.
Optionally, the verification module is configured to:
judging whether each piece of shipping information in the shipping information list is missing or not;
if so, recording the missing delivery information as delivery information failed in verification;
when the quantity of the shipping information in the shipping information list is larger than a set quantity, the shipping information in the shipping information list is sliced;
judging whether an order number, an express number and an express company number in delivery information conform to a number rule or not aiming at each piece of delivery information;
if not, recording the shipping information which does not conform to the numbering rule as the shipping information which fails to be verified;
judging whether the order numbers in the delivery information are repeated or not;
if so, recording the repeated order number, and taking the order number as delivery information failed in verification;
and taking the delivery information which has no loss, the order number, the express delivery number and the express company number conform to the number rule and the order number is not repeated as the delivery information which is verified successfully.
Optionally, the verification module is further configured to perform first verification and second verification on the production order information and the order information corresponding to the order number in the shipping information.
Optionally, the first checking of the production order information and the order information corresponding to the order number in the shipping information includes:
if one of the following conditions is met, judging that the first verification of the production order and the order information corresponding to the order number in the delivery information fails, and recording the delivery information corresponding to the first verification failure and the reason of the first verification failure: if the conditions that the production order and the order information corresponding to the order number in the delivery information are not satisfied, judging that the first verification of the production order and the order information is successful:
the order number in the delivery information does not exist;
the merchant number in the order information corresponding to the order number is different from the merchant number corresponding to the merchant end which sends the delivery information list;
the express company number in the order information corresponding to the order number is different from the express company number in the delivery information;
the order state corresponding to the order number is different from the production order state corresponding to the order number;
order details in the order information corresponding to the order number do not exist;
the order detail in the order information corresponding to the order number has an acceptance condition, and the state in the order detail of the acceptance condition is a refund applying state of the user;
complaint conditions exist in order details in the order information corresponding to the order numbers;
and the order corresponding to the order number is that all refunds exist.
Optionally, the second verifying the production order information and the order information corresponding to the order number in the shipping information includes:
slicing the delivery information again, and adding a distributed lock to the order number in the delivery information;
for each piece of shipping information, if one of the following conditions is met, judging that the second verification of the production order information and the order information corresponding to the order number in the shipping information fails, recording the corresponding shipping information when the second verification fails and the reason of the second verification failure, and if the following conditions are not met, judging that the second verification of the production order information and the order information corresponding to the order number in the shipping information succeeds:
the production list state corresponding to the order number in the delivery information is a delivery state;
the production order state corresponding to the order number is a non-delivery state, and the production order corresponding to the order number comprises a production order which is not in a production state;
and the after-sale state information of the order corresponding to the order number has an acceptance sheet in the process, or all production sheets of the order corresponding to the order number complete refund.
Optionally, the apparatus further comprises a first recording module, configured to, after updating the logistics state in the production order,
recording a log for modifying the production order;
and when the log is monitored to have errors, sending alarm information to a set address.
Optionally, the apparatus further includes a second recording module, configured to record, when the logistics state in each production order is updated successfully, a message that the production order is updated successfully through a message queue MQ message list;
a second update module 530 for sending the MQ messages in the MQ message list to the order system in batches through the shipping system; the MQ message carries an order number corresponding to the production order which is updated successfully;
and updating the logistics state in the order corresponding to the order number through an order system.
The device can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention, and as shown in fig. 6, the apparatus includes:
one or more processors 610, one processor 610 being exemplified in fig. 6;
a memory 620;
the apparatus may further include: an input device 630 and an output device 640.
The processor 610, the memory 620, the input device 630 and the output device 640 of the apparatus may be connected by a bus or other means, and fig. 6 illustrates the example of connection by a bus.
The memory 620, which is a non-transitory computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules (e.g., the receiving module 510, the first updating module 520, and the second updating module 530 shown in fig. 5) corresponding to a logistics state management method according to an embodiment of the present invention. The processor 610 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 620, so as to implement a logistics state management method of the above method embodiment, that is:
receiving a delivery information list sent by a merchant terminal; the delivery information list comprises a plurality of pieces of delivery information;
inquiring a corresponding production list according to the order number in the delivery information, and updating the logistics state in the production list;
and when the production order is updated, inquiring a corresponding order based on the order number, and updating the logistics state in the order.
The memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 620 optionally includes memory located remotely from processor 610, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 640 may include a display device such as a display screen.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a logistics state management method according to an embodiment of the present invention:
receiving a delivery information list sent by a merchant terminal; the delivery information list comprises a plurality of pieces of delivery information;
inquiring a corresponding production list according to the order number in the delivery information, and updating the logistics state in the production list;
and when the production order is updated, inquiring a corresponding order based on the order number, and updating the logistics state in the order.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (11)
1. A logistics state management method is characterized by comprising the following steps:
receiving a delivery information list sent by a merchant terminal; the delivery information list comprises a plurality of pieces of delivery information;
inquiring a corresponding production list according to the order number in the delivery information, and updating the logistics state in the production list;
and when the production order is updated, inquiring a corresponding order based on the order number, and updating the logistics state in the order.
2. The method of claim 1, further comprising:
verifying the shipping information in the shipping information list and verifying the production order information and the order information corresponding to the order number in the shipping information;
the inquiring of the corresponding production list according to the order number in the delivery information and the updating of the logistics state in the production list comprise:
and for each piece of shipping information, when the verification of the shipping information is successful and the verification of the production order information and the order information corresponding to the order number in the shipping information is successful, inquiring the corresponding production order according to the order number and updating the logistics state in the production order.
3. The method of claim 2, wherein verifying the shipment information in the list of shipment information comprises:
judging whether each piece of shipping information in the shipping information list is missing or not;
if so, recording the missing delivery information as delivery information failed in verification;
when the quantity of the shipping information in the shipping information list is larger than a set quantity, the shipping information in the shipping information list is sliced;
judging whether an order number, an express number and an express company number in delivery information conform to a number rule or not aiming at each piece of delivery information;
if not, recording the shipping information which does not conform to the numbering rule as the shipping information which fails to be verified;
judging whether the order numbers in the delivery information are repeated or not;
if so, recording the repeated order number, and taking the order number as delivery information failed in verification;
and taking the delivery information which has no loss, the order number, the express delivery number and the express company number conform to the number rule and the order number is not repeated as the delivery information which is verified successfully.
4. The method of claim 3, wherein verifying the production order information and the order information corresponding to the order number in the shipping information comprises:
and carrying out first verification and second verification on the production order information and the order information corresponding to the order number in the delivery information.
5. The method of claim 4, wherein the first verifying the order information and the production order information corresponding to the order number in the shipping information comprises:
if one of the following conditions is met, judging that the first verification of the production order and the order information corresponding to the order number in the delivery information fails, and recording the delivery information corresponding to the first verification failure and the reason of the first verification failure: if the following conditions are not met, judging that the production order and the order information corresponding to the order number in the delivery information are successfully verified for the first time:
the order number in the delivery information does not exist;
the merchant number in the order information corresponding to the order number is different from the merchant number corresponding to the merchant end which sends the delivery information list;
the express company number in the order information corresponding to the order number is different from the express company number in the delivery information;
the order state corresponding to the order number is different from the production order state corresponding to the order number;
order details in the order information corresponding to the order number do not exist;
the order detail in the order information corresponding to the order number has an acceptance condition, and the state in the order detail of the acceptance condition is a refund applying state of the user;
complaint conditions exist in order details in the order information corresponding to the order numbers;
and the order corresponding to the order number is that all refunds exist.
6. The method of claim 4, wherein the second verifying the order information and the production order information corresponding to the order number in the shipping information comprises:
slicing the delivery information again, and adding a distributed lock to the order number in the delivery information;
for each piece of shipping information, if one of the following conditions is met, judging that the second verification of the production order information and the order information corresponding to the order number in the shipping information fails, recording the corresponding shipping information when the second verification fails and the reason of the second verification failure, and if the following conditions are not met, judging that the second verification of the production order information and the order information corresponding to the order number in the shipping information succeeds:
the production list state corresponding to the order number in the delivery information is a delivery state;
the production order state corresponding to the order number is a non-delivery state, and the production order corresponding to the order number comprises a production order which is not in a production state;
and the after-sale state information of the order corresponding to the order number has an acceptance sheet in the process, or all production sheets of the order corresponding to the order number complete refund.
7. The method of claim 1, further comprising, after updating the logistics state in the production order:
recording a log for modifying the production order;
and when the log is monitored to have an error, sending alarm information to a set address.
8. The method of claim 1, further comprising:
when the logistics state in each production order is updated successfully, recording the information of the successful update of the production order through an information queue MQ information list;
when the production order is updated, inquiring a corresponding order based on the order number, and updating the logistics state in the order, wherein the steps comprise:
transmitting MQ messages in the MQ message list to the order system in batches through the delivery system; the MQ message carries an order number corresponding to the production order which is updated successfully;
and updating the logistics state in the order corresponding to the order number through an order system.
9. A physical distribution status management apparatus, comprising:
the receiving module is used for receiving a delivery information list sent by a merchant end; the delivery information list comprises a plurality of pieces of delivery information;
the first updating module is used for inquiring a corresponding production list according to the order number in the delivery information and updating the logistics state in the production list;
and the second updating module is used for inquiring the corresponding order based on the order number and updating the logistics state in the order when the production order is updated.
10. An apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010082576.2A CN111325501B (en) | 2020-02-07 | 2020-02-07 | Logistics state management method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010082576.2A CN111325501B (en) | 2020-02-07 | 2020-02-07 | Logistics state management method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111325501A true CN111325501A (en) | 2020-06-23 |
CN111325501B CN111325501B (en) | 2021-05-04 |
Family
ID=71163328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010082576.2A Active CN111325501B (en) | 2020-02-07 | 2020-02-07 | Logistics state management method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111325501B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112053207A (en) * | 2020-09-01 | 2020-12-08 | 珠海随变科技有限公司 | Order information acquisition method and device, computer equipment and storage medium |
CN112561441A (en) * | 2020-12-22 | 2021-03-26 | 杭州贝嘟科技有限公司 | Ready-made clothes order generation method and device, computer equipment and storage medium |
CN113763074A (en) * | 2020-07-17 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method, device, equipment and computer readable medium for monitoring manifest |
CN113807784A (en) * | 2021-09-15 | 2021-12-17 | 北京沃东天骏信息技术有限公司 | Waybill state updating processing method, waybill state updating processing device, waybill state updating equipment and storage medium |
CN113902201A (en) * | 2021-10-15 | 2022-01-07 | 首约科技(北京)有限公司 | Optimization method for detecting conflict list of taxi booking drivers |
CN114677080A (en) * | 2022-03-15 | 2022-06-28 | 上海来也伯特网络科技有限公司 | Logistics outlet order processing method and device combining RPA and AI and electronic equipment |
CN114841769A (en) * | 2022-04-19 | 2022-08-02 | 北京京东振世信息技术有限公司 | Parcel information updating method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831520A (en) * | 2011-06-13 | 2012-12-19 | 丁贵祥 | System and method for immediately combining MicroBlog social contact system with electronic commerce |
CN103593723A (en) * | 2012-08-14 | 2014-02-19 | 江南大学 | Liquor storage management system based on RFID |
CN103714416A (en) * | 2013-12-11 | 2014-04-09 | 天津易泰通信息技术有限公司 | Method for using synthesized codes to realize actual work order tracking of bonded goods |
CN105989447A (en) * | 2015-03-03 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Data processing system, method and platform |
CN106204203A (en) * | 2016-06-30 | 2016-12-07 | 云南贪猫科技有限公司 | A kind of processing method of online trading data |
CN107862495A (en) * | 2017-10-24 | 2018-03-30 | 路亚鹏 | A kind of method of logistics distribution all-the-way tracking centered on wholesale market |
CN108681856A (en) * | 2018-05-16 | 2018-10-19 | 广州市创乐信息技术有限公司 | A kind of Warehouse Management System and storage management method |
US20180314478A1 (en) * | 2017-05-01 | 2018-11-01 | Codonics, Inc. | Networkable medical labeling apparatus and method |
CN109559021A (en) * | 2018-11-13 | 2019-04-02 | 泰康保险集团股份有限公司 | The processing method for tracing and device of customizable consumptive material |
WO2019152550A1 (en) * | 2018-01-31 | 2019-08-08 | Walmart Apollo, Llc | System and method for delivery vehicle security using blockchain |
-
2020
- 2020-02-07 CN CN202010082576.2A patent/CN111325501B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831520A (en) * | 2011-06-13 | 2012-12-19 | 丁贵祥 | System and method for immediately combining MicroBlog social contact system with electronic commerce |
CN103593723A (en) * | 2012-08-14 | 2014-02-19 | 江南大学 | Liquor storage management system based on RFID |
CN103714416A (en) * | 2013-12-11 | 2014-04-09 | 天津易泰通信息技术有限公司 | Method for using synthesized codes to realize actual work order tracking of bonded goods |
CN105989447A (en) * | 2015-03-03 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Data processing system, method and platform |
CN106204203A (en) * | 2016-06-30 | 2016-12-07 | 云南贪猫科技有限公司 | A kind of processing method of online trading data |
US20180314478A1 (en) * | 2017-05-01 | 2018-11-01 | Codonics, Inc. | Networkable medical labeling apparatus and method |
CN107862495A (en) * | 2017-10-24 | 2018-03-30 | 路亚鹏 | A kind of method of logistics distribution all-the-way tracking centered on wholesale market |
WO2019152550A1 (en) * | 2018-01-31 | 2019-08-08 | Walmart Apollo, Llc | System and method for delivery vehicle security using blockchain |
CN108681856A (en) * | 2018-05-16 | 2018-10-19 | 广州市创乐信息技术有限公司 | A kind of Warehouse Management System and storage management method |
CN109559021A (en) * | 2018-11-13 | 2019-04-02 | 泰康保险集团股份有限公司 | The processing method for tracing and device of customizable consumptive material |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113763074A (en) * | 2020-07-17 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method, device, equipment and computer readable medium for monitoring manifest |
CN112053207A (en) * | 2020-09-01 | 2020-12-08 | 珠海随变科技有限公司 | Order information acquisition method and device, computer equipment and storage medium |
CN112561441A (en) * | 2020-12-22 | 2021-03-26 | 杭州贝嘟科技有限公司 | Ready-made clothes order generation method and device, computer equipment and storage medium |
CN113807784A (en) * | 2021-09-15 | 2021-12-17 | 北京沃东天骏信息技术有限公司 | Waybill state updating processing method, waybill state updating processing device, waybill state updating equipment and storage medium |
CN113902201A (en) * | 2021-10-15 | 2022-01-07 | 首约科技(北京)有限公司 | Optimization method for detecting conflict list of taxi booking drivers |
CN114677080A (en) * | 2022-03-15 | 2022-06-28 | 上海来也伯特网络科技有限公司 | Logistics outlet order processing method and device combining RPA and AI and electronic equipment |
CN114841769A (en) * | 2022-04-19 | 2022-08-02 | 北京京东振世信息技术有限公司 | Parcel information updating method and device |
WO2023202107A1 (en) * | 2022-04-19 | 2023-10-26 | 北京京东振世信息技术有限公司 | Package information updating method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN111325501B (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111325501B (en) | Logistics state management method, device, equipment and storage medium | |
US11681697B2 (en) | Method and device for interface operation and maintenance | |
CN111835467B (en) | Message sending method, device, computer equipment and storage medium | |
CN110688828A (en) | File processing method and device, file processing system and computer equipment | |
CN107133233B (en) | Processing method and device for configuration data query | |
CN110895472A (en) | Method and device for identifying service change | |
TW202046236A (en) | Freight management device and method | |
CN111367934B (en) | Data consistency checking method, device, server and medium | |
CN113487260A (en) | Method for solving after-sale problem of express delivery | |
CN113064905A (en) | Business process processing method and device, electronic equipment and computer readable medium | |
CN111835566A (en) | System fault management method, device and system | |
CN112766843A (en) | Carrier information registration method and device | |
CN110554895A (en) | Data calling method and device | |
CN117917652B (en) | Wafer cross-factory wafer flow method and device | |
CN109255686A (en) | Task prompting method and device, electronic equipment and computer readable storage medium | |
CN112215531B (en) | Method and device for solving logistics distribution problem | |
WO2023243114A1 (en) | Airplane tire management device and airplane tire management program | |
CN114971564A (en) | Service processing method and device, electronic equipment and computer readable medium | |
CN118567813A (en) | Data processing method, device, electronic equipment, storage medium and program product | |
CN117435618A (en) | Data query method, data query system, electronic device and storage medium | |
CN116483380A (en) | Interface calling method and device, electronic equipment and computer storage medium | |
CN117456644A (en) | Abnormality processing method and device for digital car key and electronic equipment | |
CN116882886A (en) | Article operation method and device | |
CN117714535A (en) | Information exchange method, information storage method, device, system, equipment and medium | |
CN115756575A (en) | Submission record acquisition method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province Applicant after: Zhuhai necessary Industrial Technology Co.,Ltd. Address before: 519085 Building 8, No.1, Tangjiawan Harbin Institute of technology, high tech Zone, Zhuhai City, Guangdong Province Applicant before: ZHUHAI SUIBIAN TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |