Logistics order query method, apparatus and device, and storage medium

By collecting and processing logistics order data in real time, and using SGD stochastic gradient descent algorithm to establish a query model, it solves the problems of slow response speed and untimely information updates in the logistics order query method, improves query efficiency and accuracy, and improves user experience.

CN119067538APending Publication Date: 2024-12-03SHANGHAI DONGPU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411011603.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The existing logistics order query methods are slow to respond during peak periods, have low query efficiency, and untimely updates of information, resulting in a decrease in user experience and trust.

Method used

By collecting logistics order data in real time, using SGD stochastic gradient descent algorithm to establish a logistics order query model, match and update order status information in real time, merge real-time status and expected arrival time information, improve query accuracy and response speed.

Benefits of technology

It improves the response speed and query efficiency of logistics order inquiries, ensures timely updates of information, reduces user waiting time, and improves customer experience and satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067538A_ABST
    Figure CN119067538A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of information processing, in particular to a logistics order query method, device and equipment and a storage medium, by collecting logistics order data in real time and utilizing an SGD stochastic gradient descent algorithm to establish a logistics order query model, the response speed and query efficiency are improved, and the query efficiency is improved. The order query instruction is input into the logistics order query model for matching, the real-time state information of the corresponding order is identified according to the matching result, the predicted arrival time information is calculated according to the real-time state information, information updating is timely, data synchronization is guaranteed, the real-time state information and the predicted arrival time information are combined, and the real-time state information and the predicted arrival time information are combined. And the order query merging information is sent to the client, so that the client generates and displays the order query page based on the order query merging information, deviation between information queried by a user and an actual situation is prevented, query accuracy is improved, and customer experience and satisfaction are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information processing technology, and in particular to a logistics order query method, device, equipment and storage medium. Background Art

[0002] At present, the expectations of major shipping customers for logistics services are no longer limited to the safe delivery of goods. They also hope to enjoy transparent, efficient and instant information tracking services throughout the entire transportation process, that is, through simple and convenient query methods, they can grasp the current status of the order anytime and anywhere, including detailed information such as delivery time, estimated arrival time, current location and whether there are delays. However, although the logistics order query method widely used in the current market has met the basic information query needs to a certain extent, it generally has many shortcomings. First, the query efficiency is low, especially during the peak logistics period, the system response speed slows down, and users need to wait for a long time or even try repeatedly to obtain the required information. Secondly, the accuracy is not high. Due to data synchronization delays and other reasons, the information is not updated in time, and the information queried by the user may deviate from the actual situation, especially when the status of the goods changes significantly, it cannot be updated in time, which reduces the user experience and seriously affects the user's trust and satisfaction. Summary of the invention

[0003] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide a logistics order query method, device, equipment and storage medium with fast response speed, high query efficiency, timely information update, guaranteed data synchronization, prevention of deviation between the information queried by users and the actual situation, improved query accuracy, and improved customer experience and satisfaction.

[0004] The first aspect of the present invention provides a logistics order query method, including: real-time collection of logistics order data, cleaning the logistics order data to obtain denoised data; format conversion of the denoised data to obtain standard format data, and establishing a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; receiving an order query instruction sent by a client, inputting the order query instruction into the logistics order query model for matching, and obtaining a matching result; identifying the real-time status information of the corresponding order according to the matching result, and calculating the estimated arrival time information according to the real-time status information; merging the real-time status information and the estimated arrival time information to obtain order query merge information, and sending the order query merge information to the client, so that the client generates and displays an order query page based on the order query merge information.

[0005] Optionally, in a first implementation method of the first aspect of the present invention, the real-time collection of logistics order data, cleaning the logistics order data to obtain denoised data, includes: real-time collection of logistics order data; performing a legality check on the logistics order data to obtain a data verification result; determining whether the data verification result is legal; if so, parsing the logistics order data based on a regular expression algorithm to obtain initial parsed data, the initial parsed data including order number, shipping location, receiving location, transportation method, transportation route, transportation time and real-time cargo status; cleaning the initial parsed data to obtain denoised data.

[0006] Optionally, in a second implementation method of the first aspect of the present invention, the denoised data is formatted to obtain standard format data, and a logistics order query model is established based on the standard format data and using the SGD stochastic gradient descent algorithm, including: formatting the denoised data to obtain standard format data; establishing a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; creating an order status listener, and using the order status listener to monitor the latest order status information corresponding to the standard format data in real time; when the order status listener listens to the latest order status information, it obtains the current latest order status information; and updating the logistics order query model according to the latest order status information.

[0007] Optionally, in a third implementation method of the first aspect of the present invention, the order query instruction sent by the client is received, and the order query instruction is input into the logistics order query model for matching to obtain a matching result, including: receiving an order query instruction sent by the client; parsing the order query instruction to obtain an order number parsing result; converting the order number parsing result into structured data to obtain standard order number data; inputting the standard order number data into the logistics order query model for matching to obtain a matching result having a mapping relationship with the standard order number data.

[0008] Optionally, in a fourth implementation method of the first aspect of the present invention, identifying the real-time status information of the corresponding order according to the matching result, and calculating the estimated arrival time information according to the real-time status information, includes: identifying the real-time status information of the corresponding order according to the matching result; extracting the real-time location of the current location of the order in the real-time status information; collecting historical order data between the delivery location and the real-time location, and calculating the historical average delivery time according to the historical order data; and predicting the estimated arrival time information based on the historical average delivery time.

[0009] Optionally, in a fifth implementation method of the first aspect of the present invention, the real-time status information and the estimated arrival time information are merged to obtain order query merge information, and the order query merge information is sent to the client, so that the client generates and displays an order query page based on the order query merge information, including: merging the real-time status information and the estimated arrival time information to obtain order query merge information; pulling an order information display template, filling the order query merge information into the order information display template to obtain an order real-time information display list; sending the order real-time information display list to the client, so that the client generates and displays an order real-time information page based on the order real-time information display list.

[0010] Optionally, in a sixth implementation method of the first aspect of the present invention, after the real-time status information and the estimated arrival time information are merged to obtain order query merge information, and the order query merge information is sent to the client so that the client generates and displays an order query page based on the order query merge information, it also includes: identifying the user account corresponding to the client, and obtaining the order progress information of all unfinished orders corresponding to the user account; sorting all the order progress information according to the order generation time to obtain other unfinished order progress sorting information; generating other unfinished order progress lists according to the other unfinished order progress sorting information; and sending the other unfinished order progress lists to the client so that the client generates and displays other unfinished order progress information pages based on the other unfinished order progress list.

[0011] The second aspect of the present invention provides a logistics order query device, including: a collection and cleaning module, which is used to collect logistics order data in real time, clean the logistics order data, and obtain denoised data; a conversion and establishment module, which is used to convert the format of the denoised data to obtain standard format data, and establish a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; a receiving and matching module, which is used to receive an order query instruction sent by a client, input the order query instruction into the logistics order query model for matching, and obtain a matching result; an identification and calculation module, which is used to identify the real-time status information of the corresponding order according to the matching result, and calculate the estimated arrival time information according to the real-time status information; a merging and sending module, which is used to merge the real-time status information and the estimated arrival time information to obtain order query merge information, and send the order query merge information to the client, so that the client generates and displays an order query page based on the order query merge information.

[0012] Optionally, in a first implementation method of the second aspect of the present invention, the collection and cleaning module includes: a collection unit, used to collect logistics order data in real time; a verification unit, used to perform a legality check on the logistics order data to obtain a data verification result; a judgment unit, used to judge whether the data verification result is legal; a first parsing unit, used to parse the logistics order data based on a regular expression algorithm to obtain initial parsed data, if so, the initial parsed data including order number, shipping location, receiving location, transportation method, transportation route, transportation time and real-time cargo status; a cleaning unit, used to clean the initial parsed data to obtain denoised data.

[0013] Optionally, in a second implementation method of the second aspect of the present invention, the conversion and establishment module includes: a conversion unit, used to perform format conversion on the denoised data to obtain standard format data; an establishment unit, used to establish a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; a creation monitoring unit, used to create an order status listener, and use the order status listener to monitor the latest order status information corresponding to the standard format data in real time; an acquisition unit, used to acquire the latest order status information when the order status listener listens to the latest order status information; and an update unit, used to update the logistics order query model according to the latest order status information.

[0014] Optionally, in a third implementation method of the second aspect of the present invention, the receiving and matching module includes: a receiving unit, used to receive an order query instruction sent by a client; a second parsing unit, used to parse the order query instruction to obtain an order number parsing result; a conversion unit, used to convert the order number parsing result into structured data to obtain standard order number data; and a matching unit, used to input the standard order number data into the logistics order query model for matching, to obtain a matching result having a mapping relationship with the standard order number data.

[0015] Optionally, in a fourth implementation method of the second aspect of the present invention, the identification and calculation module includes: an identification unit, used to identify the real-time status information of the corresponding order based on the matching result; an extraction unit, used to extract the real-time location of the current location of the order in the real-time status information; a collection and calculation unit, used to collect historical order data between the delivery location and the real-time location, and calculate the historical average delivery time based on the historical order data; a prediction unit, used to predict the estimated arrival time information based on the historical average delivery time.

[0016] Optionally, in a fifth implementation of the second aspect of the present invention, the merging and sending module includes: a merging unit, used to merge the real-time status information and the estimated arrival time information to obtain order query merged information; a pulling and filling unit, used to pull the order information display template, fill the order query merged information into the order information display template, and obtain an order real-time information display list; a sending unit, used to send the order real-time information display list to the client, so that the client generates and displays an order real-time information page based on the order real-time information display list.

[0017] Optionally, in a sixth implementation method of the second aspect of the present invention, it also includes: an identification and acquisition module, used to identify the user account corresponding to the client, and obtain the order progress information of all unfinished orders corresponding to the user account; a sorting module, used to sort all the order progress information according to the order generation time, and obtain other unfinished order progress sorting information; a generation module, used to generate other unfinished order progress lists according to the other unfinished order progress sorting information; a sending module, used to send the other unfinished order progress list to the client, so that the client generates and displays other unfinished order progress information pages based on the other unfinished order progress list.

[0018] The third aspect of the present invention provides a logistics order query device, which includes: a memory and at least one processor, wherein instructions are stored in the memory; at least one of the processors calls the instructions in the memory so that the logistics order query device executes each step of the logistics order query method described in any one of the above items.

[0019] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed by a processor, the various steps of any of the above-mentioned logistics order query methods are implemented.

[0020] In the technical solution of the present invention, logistics order data is collected in real time, and a logistics order query model is established using the SGD stochastic gradient descent algorithm to improve response speed and query efficiency. The order query instruction is input into the logistics order query model for matching, and the real-time status information of the corresponding order is identified according to the matching result. The estimated arrival time information is calculated according to the real-time status information. The information is updated in a timely manner to ensure data synchronization. The real-time status information and the estimated arrival time information are merged, and the order query merge information is sent to the client, so that the client generates and displays an order query page based on the order query merge information, prevents the information queried by the user from deviating from the actual situation, improves query accuracy, and improves customer experience and satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A first flow chart of a logistics order query method provided by an embodiment of the present invention;

[0022] Figure 2 A second flow chart of the logistics order query method provided by an embodiment of the present invention;

[0023] Figure 3 A third flow chart of the logistics order query method provided by an embodiment of the present invention;

[0024] Figure 4 A fourth flow chart of the logistics order query method provided by an embodiment of the present invention;

[0025] Figure 5 A schematic diagram of the structure of a logistics order query device provided by an embodiment of the present invention;

[0026] Figure 6 Another structural schematic diagram of a logistics order query device provided by an embodiment of the present invention;

[0027] Figure 7 A schematic diagram of the structure of a logistics order query device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention provides a logistics order query method, device, equipment and storage medium, which have fast response speed, high query efficiency, timely information update, ensure data synchronization, prevent the information queried by users from deviating from the actual situation, improve query accuracy, and improve customer experience and satisfaction.

[0029] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the logistics order query method in the embodiment of the present invention includes:

[0031] 101. Collect logistics order data in real time, clean the logistics order data, and obtain denoised data;

[0032] In this embodiment, the data source is determined, which may be a logistics management system, an API interface of a third-party logistics platform, etc. The raw data obtained from the data source is transmitted to a data processing system, and message middleware such as Kafka and RabbitMQ are used for data transmission, or the data is directly written into a data storage system such as MySQL, MongoDB and other databases. The received raw data is pre-processed to detect and process possible abnormal data, such as missing fields, format errors, etc. Various data cleaning techniques (such as regular expressions, string processing functions, etc.) are applied to remove invalid data or noise data.

[0033] 102. Convert the denoised data into a standard format, and establish a logistics order query model based on the standard format data using the SGD stochastic gradient descent algorithm;

[0034] In this embodiment, it is ensured that all data are in a unified format, including the correctness and consistency of fields such as date, price, quantity, etc., and the features required for the model are extracted from the logistics order data, such as order date, order status, product type, quantity, address information, etc. These features will constitute the input of the model, and the target variable or label of the model is determined, such as the actual delivery time of the order, the delay status, etc., which will be the target of the model prediction. The stochastic gradient descent (SGD) algorithm is used in combination with the linear model. SGD is an optimization method that is particularly suitable for processing large-scale data and complex models. By iteratively optimizing the model parameters, the model can be better Fit the data and predict the results. Divide the data set into a training set and a test set in proportion (such as 70% training set, 30% test set). Use the training set data to train the model using the SGD algorithm. In each iteration, SGD randomly selects a sample or a batch of samples to calculate the gradient and update the model parameters to minimize the loss function. Use the test set data to evaluate the performance of the model. Indicators such as accuracy, recall, F1 score, etc. are usually used to evaluate the predictive ability and generalization ability of the model. Apply the trained model to the actual logistics order data for query and prediction, such as predicting the delivery time of an order or determining whether an order is delayed.

[0035] 103. Receive the order query instruction sent by the client, input the order query instruction into the logistics order query model for matching, and obtain the matching result;

[0036] In this embodiment, the communication protocol between the client and the server is determined, such as RESTful API, GraphQL, etc., so that the client can send an order query request, the format and content of the order query instruction are determined, including query conditions such as order number, date range, and product type, the endpoint or interface for the server to receive the request is designed, the order query instruction sent by the client is processed, the received order query instruction is parsed, key information such as order number, query conditions, etc. is extracted, the data extracted from the order query instruction is formatted into an input format that can be processed by the model, the pre-trained logistics order query model is called, and the parsed order query instruction is input into the model for matching to obtain a matching result.

[0037] 104. Identify the real-time status information of the corresponding order according to the matching result, and calculate the estimated arrival time information according to the real-time status information;

[0038] In this embodiment, the real-time status information of the corresponding order is identified based on the matching results. For orders that have been shipped but not arrived, the estimated arrival time can be calculated based on the current transportation status and historical data, and the historical data analysis model can be used to estimate the average transportation time or actual arrival time of similar orders.

[0039] 105. Merge the real-time status information and the estimated arrival time information to obtain merged order query information, and send the merged order query information to the client, so that the client generates and displays an order query page based on the merged order query information;

[0040] In this embodiment, the real-time status information and the calculated estimated arrival time information are merged into a complete order query merge information object, which should include all relevant data fields that need to be displayed to customers. The merged information is formatted into a data structure suitable for display according to the client's requirements, such as JSON format or a custom data object. The order query merged information is transmitted to the client using a secure transmission protocol (such as HTTPS), and sensitive information is encrypted to prevent unauthorized access or leakage. After receiving the merged information, the client dynamically generates an order query page based on a pre-designed page template or view component.

[0041] In an embodiment of the present invention, logistics order data is collected in real time, and a logistics order query model is established using the SGD stochastic gradient descent algorithm to improve response speed and query efficiency. The order query instruction is input into the logistics order query model for matching, and the real-time status information of the corresponding order is identified according to the matching result. The estimated arrival time information is calculated according to the real-time status information. The information is updated in a timely manner to ensure data synchronization. The real-time status information and the estimated arrival time information are merged, and the order query merge information is sent to the client, so that the client generates and displays an order query page based on the order query merge information, thereby preventing the information queried by the user from deviating from the actual situation, improving the query accuracy, and improving the customer experience and satisfaction.

[0042] See also Figure 2 The second embodiment of the logistics order query method in the embodiment of the present invention includes:

[0043] 201. Collect logistics order data in real time;

[0044] In this embodiment, it is determined from which data sources to obtain the logistics order data, such as the logistics company's database, API interface, real-time message queue, etc., and an appropriate access method is selected, such as directly accessing the database, calling the API interface, subscribing to the real-time data stream, etc. The original data obtained from the data source is parsed and converted into a format that the internal system can understand and process, such as structured data (such as JSON or XML), and the parsed order data is stored in a suitable data storage medium.

[0045] 202. Perform a legality check on the logistics order data to obtain a data verification result;

[0046] In this embodiment, it is ensured that each order data obtained from the data source is complete, including whether the required fields exist, such as order number, recipient information, sender information, etc., and whether there are missing or empty values ​​to ensure the integrity of the order data. It is verified whether the format of the order data conforms to the expected structure, such as date format, amount format, postal code format, etc., and regular expressions or predefined data patterns are used for format verification to ensure the standardization and consistency of the data. According to the specific requirements and policies of the logistics business, it is verified whether the order data conforms to the preset business rules, such as transportation method, service type, fee calculation, etc., to ensure that the order data does not violate business regulations, such as the processing of prohibited and restricted goods, etc. For orders involving personal identity information or legal person information, identity verification is performed to ensure that the sender and recipient of the order are legal and valid. The address verification service or rule is used to check the validity of the address to ensure the authenticity and deliverability of the address. According to the laws and industry specifications of the region, it is verified whether the order data meets the relevant compliance requirements, such as data privacy protection, tariff declaration, etc., and finally the data verification result is obtained.

[0047] 203. Determine whether the data verification result is legal;

[0048] In this embodiment, it is determined whether the data verification result is that the data is complete, the format is qualified, the business rules are met, and the data is legal and valid.

[0049] 204. If yes, the logistics order data is parsed based on a regular expression algorithm to obtain initial parsed data, where the initial parsed data includes order number, shipping location, receiving location, transportation method, transportation route, transportation time, and real-time cargo status;

[0050] In this embodiment, if the data verification result is that the data is complete, the format is qualified, it complies with business rules and the data is legal and valid, then a designed regular expression is applied to each order data to match and extract information such as order number, shipping location, receiving location, transportation method, transportation route, transportation time and real-time cargo status from the text. Specifically, matching is performed according to the address format, for example, identifying the province, city and detailed address. The transportation method can be land transportation, air transportation, sea transportation, etc., or a specific express company name. The regular expression can recognize these keywords or specific transportation company names, and the expression can recognize text or keywords containing route descriptions to determine the transportation path. The transportation time includes a date or a date range. Regular expressions can be used to capture these date patterns. The cargo status can be descriptions such as "in transit" and "signed for". Regular expressions can recognize these status keywords to mark the current status of the cargo in the data.

[0051] 205. Clean the initial parsed data to obtain denoised data;

[0052] In this embodiment, any abnormal values ​​or unreasonable data entries in the initial parsed data, such as missing values, erroneous or illogical data, are identified and recorded. For numerical data, the mean, median or specific fill value is used to replace the missing value, the order number or other unique identifier is used to detect and remove duplicate data, and special characters in the text are removed or replaced to ensure the purity and consistency of the data.

[0053] 206. Convert the format of the denoised data to obtain standard format data;

[0054] In this embodiment, the standard format into which the data is to be converted is clearly defined. According to the target format, the data types of various fields need to be converted, the date and time are formatted, and all date and time fields are ensured to be represented in a uniform format. The addresses or geographic information are standardized, including ensuring uniform naming conventions for provinces, cities, and districts, and standardization of the precision and units of numerical fields. For example, monetary amounts can be standardized to a specific number of decimal places, and lengths or weights can be standardized to a specific unit. For text fields, ensure that the text content is cleaned and standardized, and remove unnecessary spaces, special characters, or formats. In addition, the text fields are uniformly converted to lowercase or uppercase to reduce inconsistencies caused by uppercase and lowercase.

[0055] 207. Establish a logistics order query model based on standard format data and using the SGD stochastic gradient descent algorithm;

[0056] In this embodiment, a prediction model is established using a stochastic gradient descent algorithm. The SGD algorithm is usually used for training large-scale data and high-dimensional features, and is suitable for optimizing linear models and some nonlinear models. A linear regression model, a logistic regression model (for classification tasks), a support vector machine (SVM) or a neural network, etc. can be selected. A suitable loss function (such as square loss, cross entropy loss) and a regularization method (such as L1, L2 regularization) are selected to optimize the performance of the model. The data is divided into a training set and a test set, and the SGD algorithm is used to train the model. The data set is divided into a training set and a test set according to a certain ratio. The SGD algorithm is iteratively trained using the training set, and the model parameters are adjusted to minimize the loss function. The SGD optimization process includes selecting a suitable learning rate, setting hyperparameters such as the number of iterations and batch size, evaluating the performance of the model and performing necessary tuning, and deploying the trained model to actual applications for logistics order queries.

[0057] 208. Create an order status listener, and use the order status listener to monitor the latest order status information corresponding to the standard format data in real time;

[0058] In this embodiment, the logic of the order status listener is written using a suitable programming language and technology stack, the data source that needs to be monitored is determined, and the order management system or database is connected to ensure that the order status information can be obtained. The order status monitor is deployed to the production environment, and the monitoring is implemented using an event-driven approach. When the order status changes, the corresponding processing flow is triggered.

[0059] 209. When the order status listener listens to the latest order status information, it obtains the current latest order status information;

[0060] In this embodiment, once the listener receives an event of an order status update, the next step is to extract the latest order status information from the event. The order status information includes the order number, order status, and update time, etc. The order number is a unique identifier used to determine which order has a status change. The order status includes pending payment, paid, in delivery, completed, canceled, etc. The update time is the timestamp of the order status change, which is used to record and track the time of status change.

[0061] 210. Update the logistics order query model according to the latest order status information;

[0062] In this embodiment, the order status listener receives the latest order status information including the current status of the order, such as to be shipped, shipped, in transit, received, etc., updates the latest order status to the corresponding field in the logistics order query model, and records the timestamp of the order status update to track the historical record of order status changes. Other relevant information such as the logistics company, transportation method, estimated arrival time, etc. can be updated according to specific business needs.

[0063] In the embodiments of the present invention, the latest logistics order data can be obtained in a timely manner to ensure the timeliness and accuracy of information, ensure that the processed data is legal and valid, avoid system problems caused by erroneous or malicious data, and convert the original data into structured and clean data through parsing and cleaning to facilitate subsequent analysis and utilization. A model is established based on a machine learning algorithm to predict order status or optimize logistics transportation routes, improve query efficiency and customer satisfaction, and obtain and update order status information in real time, so that users and systems can promptly understand the latest status of the order.

[0064] See also Figure 3 The third embodiment of the logistics order query method in the embodiment of the present invention includes:

[0065] 301. Receive the order query instruction sent by the client;

[0066] In this embodiment, after receiving the order query instruction from the client, the identity of the client sending the instruction is confirmed, which involves using an API key, OAuth token or other authentication mechanism to confirm whether the client has the authority to perform the currently requested order query operation, which can be determined based on the client's role, access control list (ACL) or other authorization policies.

[0067] 302. Parse the order query instruction to obtain the order number parsing result;

[0068] In this embodiment, necessary parameters such as order number, customer ID, query time range, etc. are extracted from the order query instruction, and these parameters will be used for subsequent order query operations.

[0069] 303. Convert the order number parsing result into structured data to obtain standard order number data;

[0070] In this embodiment, ensure that the order number is not empty. If the order number is empty, the system should return an error message or default processing logic. According to the system specifications or conventions, verify whether the format of the order number is correct. For example, the order number may be a string that needs to conform to a specific length, character set or other rules. Once the validity of the order number is confirmed, the system converts it into a structured data form. As needed, the structured data can be formatted into a specific output format, such as JSON, XML, etc.

[0071] 304. Input the standard order number data into the logistics order query model for matching, and obtain a matching result having a mapping relationship with the standard order number data;

[0072] In this embodiment, input data, namely the standard order number, is prepared. The logistics order query model stores the order information in a database or other form of data storage, and creates an index for quick retrieval. An interface or method is provided to receive the order number and perform a query operation. The standard order number is used as input and sent to the query interface of the logistics order query model. After the logistics order query model receives the query request, the logistics order query model searches the stored order data according to the order number. If the query successfully matches the order data related to the input order number, the model will generate a mapping relationship result. Once the model finds the order data that matches the order number, it will return the matching result to the caller or upstream system. The matching result includes detailed information such as order status and logistics information.

[0073] 305. Identify the real-time status information of the corresponding order according to the matching result;

[0074] In this embodiment, when the logistics order query model successfully matches the input standard order number, detailed information related to the order will be obtained, and then the real-time status information will be parsed. The real-time status information includes in transit, collected, delivering and signed for, etc. In transit means that the order is in transit and has not yet reached the final destination. Collected means that the order has been collected or received by the logistics company. In delivery means that the goods are in the process of being delivered to the final recipient. Signed for means that the recipient has signed for the goods.

[0075] 306. extracting the real-time location of the current location of the order in the real-time status information;

[0076] In this embodiment, after obtaining the real-time status information of the order, it is necessary to parse the current location information of the order therefrom, which involves extracting specific fields or tags from the data to determine the current specific location of the order, that is, the real-time location. The real-time location can be in many forms, such as geographic description and geographic coordinates (latitude and longitude). The geographic coordinates can be used to determine the geographic location of the order, and the geographic description includes a text description of the location, such as a specific city, airport, warehouse or distribution point.

[0077] 307. Collect historical order data between the delivery location and the real-time location, and calculate the historical average delivery time based on the historical order data;

[0078] In this embodiment, historical order data between the delivery location and the real-time location is collected, and the delivery time is calculated for each order data. Then, the delivery time of all orders is added together, and the total delivery time is divided by the number of orders to obtain the historical average delivery time.

[0079] 308. Predict the estimated arrival time based on the historical average delivery time;

[0080] In this embodiment, the current time is added to the historical average delivery time to obtain the estimated arrival time information.

[0081] In the embodiment of the present invention, the entire process from receiving customer query instructions to predicting arrival time is designed to provide real-time service response at each step. This real-time performance ensures that customers can obtain order status and estimated arrival time in a timely manner, thereby enhancing user experience and satisfaction. Through the parsing and data conversion of order query instructions, the system ensures the accuracy and consistency of order numbers and other key data, which helps to avoid misunderstandings or operational errors caused by data errors or inconsistencies. Using the logistics order query model for data matching can quickly and effectively identify and obtain real-time status information related to the order. Combined with historical order data analysis, the system can accurately predict the delivery time and arrival time of the order and provide more accurate services. By predicting arrival time information, the system not only provides real-time status viewing, but also provides customers with expectations and planning capabilities for the future. This predictive information enhances the user's sense of control and satisfaction, enabling them to better arrange the time to receive items. The system integrates the steps of data parsing, model matching, and historical data analysis, and can improve efficiency when processing a large amount of order information. This efficient processing capability helps to reduce processing time and resource waste, and improves the overall efficiency and cost control capabilities of logistics management.

[0082] See also Figure 4 The fourth embodiment of the logistics order query method in the embodiment of the present invention includes:

[0083] 401. Merge the real-time status information and the estimated arrival time information to obtain order query merge information;

[0084] In this embodiment, the real-time status information and the estimated arrival time information are merged, and the relevant fields (such as the order number or other unique identifiers) in the two data sources are matched and associated to obtain the order query merge information.

[0085] 402. Pull the order information display template, fill the order query merge information into the order information display template, and obtain the order real-time information display list;

[0086] In this embodiment, the needs and style of order information display are determined, the appropriate template type is selected, and the various modules that the template should include are designed, such as basic order information, logistics status information, estimated arrival time, operation buttons, etc., to ensure that the template is clear, easy to navigate and understand. The order query information merged in the previous steps is used to ensure that key information such as order number, recipient information, real-time status, estimated arrival time, etc. is included, and the merged order query information is filled into the corresponding template fields according to the structure of the template design.

[0087] 403. Send the order real-time information display list to the client, so that the client generates and displays the order real-time information page based on the order real-time information display list;

[0088] In this embodiment, the real-time order information display list is converted into a suitable data format, such as JSON or XML, and the data is sent to the client using a suitable technology (such as AJAX request, WebSocket connection, etc.). After the client receives the real-time order information display list, it parses the data and stores it in an appropriate data structure, such as an array or object. Based on the received order information data, the client generates a real-time order information page, which can be dynamically generated HTML content, page rendering using a front-end framework (such as React, Angular, etc.), or direct manipulation of DOM elements.

[0089] 404. Identify the user account corresponding to the client, and obtain order progress information of all uncompleted orders corresponding to the user account;

[0090] In this embodiment, when the client initiates a request, it must carry information that can uniquely identify the user, such as a user ID, token, etc. The server confirms the legitimacy of the request based on this information and associates it with the corresponding user account. On the server side, all unfinished orders associated with a specific user account are retrieved by querying the database to ensure that only unfinished order data is returned, and completed or canceled orders, as well as other potentially unnecessary order information, are filtered out. For each unfinished order, detailed order progress information needs to be obtained.

[0091] 405. Sort all order progress information according to order generation time to obtain progress sorting information of other unfinished orders;

[0092] In this embodiment, the orders are sorted according to the generation time of the orders, and the detailed information of all the unfinished orders sorted by the generation time is returned, including the order number, generation time, current status, etc.

[0093] 406. Generate a progress list of other unfinished orders according to the progress sorting information of other unfinished orders;

[0094] In this embodiment, a list view is designed to display information of multiple orders. Each list item should contain a summary of key order information, such as order number, status, and estimated arrival time. The progress sorting information of other unfinished orders is filled into the list view to obtain a progress list of other unfinished orders.

[0095] 407. Send the other unfinished order progress list to the client, so that the client generates and displays the other unfinished order progress information page based on the other unfinished order progress list;

[0096] In this embodiment, the other unfinished order progress list is converted into a suitable data format, such as JSON or XML, and the data is sent to the client using suitable technologies (such as AJAX requests, WebSocket connections, etc.). After the client receives the other unfinished order progress list, it parses the data and stores it in an appropriate data structure, such as an array or object. Based on the received order information data, the client generates a page for other unfinished order progress information.

[0097] In the embodiment of the present invention, it is ensured that users can obtain all order-related information in one stop, avoiding the need for multiple queries and browsing different pages. Through real-time updates and personalized services, the order status and progress that users are concerned about can be accurately and timely displayed. This timeliness and personalization make the user experience smoother and more satisfactory, and increase the user's dependence on the system and the frequency of use.

[0098] The above describes the logistics order query method in the embodiment of the present invention. The following describes the logistics order query device in the embodiment of the present invention. Figure 5 In one embodiment of the present invention, a logistics order query device includes:

[0099] The collection and cleaning module 501 is used to collect logistics order data in real time, clean the logistics order data, and obtain denoised data;

[0100] A conversion and establishment module 502 is used to convert the format of the denoised data to obtain standard format data, and establish a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm;

[0101] The receiving and matching module 503 is used to receive the order query instruction sent by the client, input the order query instruction into the logistics order query model for matching, and obtain the matching result;

[0102] An identification and calculation module 504 is used to identify the real-time status information of the corresponding order according to the matching result, and calculate the estimated arrival time information according to the real-time status information;

[0103] The merge and send module 505 is used to merge the real-time status information and the estimated arrival time information to obtain the order query merge information, and send the order query merge information to the client, so that the client generates and displays the order query page based on the order query merge information.

[0104] In this embodiment, logistics order data is collected in real time, and a logistics order query model is established using the SGD stochastic gradient descent algorithm to improve response speed and query efficiency. The order query instruction is input into the logistics order query model for matching, and the real-time status information of the corresponding order is identified according to the matching result. The estimated arrival time information is calculated based on the real-time status information. The information is updated in a timely manner to ensure data synchronization. The real-time status information and the estimated arrival time information are merged, and the order query merged information is sent to the client, so that the client generates and displays an order query page based on the order query merged information, thereby preventing the information queried by the user from deviating from the actual situation, improving query accuracy, and improving customer experience and satisfaction.

[0105] See also Figure 6 Another embodiment of the logistics order query device in the embodiment of the present invention includes:

[0106] The collection and cleaning module 501 is used to collect logistics order data in real time, clean the logistics order data, and obtain denoised data;

[0107] A conversion and establishment module 502 is used to convert the format of the denoised data to obtain standard format data, and establish a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm;

[0108] The receiving and matching module 503 is used to receive the order query instruction sent by the client, input the order query instruction into the logistics order query model for matching, and obtain the matching result;

[0109] An identification and calculation module 504 is used to identify the real-time status information of the corresponding order according to the matching result, and calculate the estimated arrival time information according to the real-time status information;

[0110] The merging and sending module 505 is used to merge the real-time status information and the estimated arrival time information to obtain the order query merge information, and send the order query merge information to the client, so that the client generates and displays the order query page based on the order query merge information;

[0111] In this embodiment, the collection and cleaning module 501 includes: a collection unit 5011, which is used to collect logistics order data in real time; a verification unit 5012, which is used to verify the legality of the logistics order data and obtain a data verification result; a judgment unit 5013, which is used to judge whether the data verification result is legal; a first parsing unit 5014, which is used to parse the logistics order data based on a regular expression algorithm to obtain initial parsed data if so, and the initial parsed data includes order number, shipping location, receiving location, transportation method, transportation route, transportation time and real-time cargo status; a cleaning unit 5015, which is used to clean the initial parsed data to obtain denoised data.

[0112] In this embodiment, the conversion and establishment module 502 includes: a conversion unit 5021, which is used to convert the format of the denoised data to obtain standard format data; an establishment unit 5022, which is used to establish a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; a creation monitoring unit 5023, which is used to create an order status listener, and use the order status listener to monitor the latest order status information corresponding to the standard format data in real time; an acquisition unit 5024, which is used to obtain the current latest order status information when the order status listener listens to the latest order status information; an update unit 5025, which is used to update the logistics order query model according to the latest order status information.

[0113] In this embodiment, the receiving and matching module 503 includes: a receiving unit 5031, which is used to receive an order query instruction sent by a client; a second parsing unit 5032, which is used to parse the order query instruction to obtain an order number parsing result; a conversion unit 5033, which is used to convert the order number parsing result into structured data to obtain standard order number data; a matching unit 5034, which is used to input the standard order number data into a logistics order query model for matching, and obtain a matching result having a mapping relationship with the standard order number data.

[0114] In this embodiment, the identification and calculation module 504 includes: an identification unit 5041, which is used to identify the real-time status information of the corresponding order according to the matching result; an extraction unit 5042, which is used to extract the real-time location of the current location of the order in the real-time status information; a collection and calculation unit 5043, which is used to collect historical order data between the delivery location and the real-time location, and calculate the historical average delivery time based on the historical order data; a prediction unit 5044, which is used to predict the estimated arrival time information based on the historical average delivery time.

[0115] In this embodiment, the merge and send module 505 includes: a merging unit 5051, which is used to merge the real-time status information and the estimated arrival time information to obtain the order query merge information; a pulling and filling unit 5052, which is used to pull the order information display template, fill the order query merge information into the order information display template, and obtain the order real-time information display list; a sending unit 5053, which is used to send the order real-time information display list to the client, so that the client generates and displays the order real-time information page based on the order real-time information display list.

[0116] In this embodiment, it also includes: an identification and acquisition module 506, which is used to identify the user account corresponding to the client, and obtain the order progress information of all unfinished orders corresponding to the user account; a sorting module 507, which is used to sort all order progress information according to the order generation time, and obtain other unfinished order progress sorting information; a generation module 508, which is used to generate other unfinished order progress lists according to other unfinished order progress sorting information; a sending module 509, which is used to send other unfinished order progress lists to the client, so that the client generates and displays other unfinished order progress information pages based on the other unfinished order progress lists.

[0117] above Figure 5 and Figure 6 The logistics order query device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The logistics order query device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0118] Figure 7: is a structural diagram of a logistics order query device provided by an embodiment of the present invention. The logistics order query device 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the logistics order query device 600. Furthermore, the processor 610 can be configured to communicate with the storage medium 630, and execute a series of instruction operations in the storage medium 630 on the logistics order query device 600 to implement the steps of the logistics order query method provided in the above-mentioned method embodiments.

[0119] The logistics order query device 600 may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that Figure 7 The logistics order query device structure shown does not constitute a limitation on the logistics order query device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0120] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the logistics order query method.

[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0123] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A logistics order query method, characterized in that: include: Collect logistics order data in real time, clean the logistics order data, and obtain denoised data; Convert the denoised data into a standard format, and establish a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; Receiving an order query instruction sent by a client, inputting the order query instruction into the logistics order query model for matching, and obtaining a matching result; Identify the real-time status information of the corresponding order according to the matching result, and calculate the estimated arrival time information according to the real-time status information; The real-time status information and the estimated arrival time information are merged to obtain order query merge information, and the order query merge information is sent to the client, so that the client generates and displays an order query page based on the order query merge information.

2. The logistics order query method according to claim 1, characterized in that: The real-time collection of logistics order data and cleaning of the logistics order data to obtain denoised data include: Collect logistics order data in real time; Performing a legality check on the logistics order data to obtain a data verification result; Determining whether the data verification result is legal; If yes, the logistics order data is parsed based on a regular expression algorithm to obtain initial parsed data, wherein the initial parsed data includes order number, shipping location, receiving location, transportation method, transportation route, transportation time and real-time cargo status; The initial parsed data is cleaned to obtain denoised data.

3. The logistics order query method according to claim 1, characterized in that: The step of converting the denoised data into a standard format data and establishing a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm includes: Performing format conversion on the denoised data to obtain standard format data; Establishing a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; Creating an order status listener, and using the order status listener to monitor the latest order status information corresponding to the standard format data in real time; When the order status listener listens to the latest order status information, the latest order status information is obtained; The logistics order query model is updated according to the latest order status information.

4. The logistics order query method according to claim 1, characterized in that: The receiving the order query instruction sent by the client, inputting the order query instruction into the logistics order query model for matching, and obtaining a matching result, includes: Receive order query instructions sent by the client; Parsing the order query instruction to obtain an order number parsing result; Convert the order number parsing result into structured data to obtain standard order number data; The standard order number data is input into the logistics order query model for matching, and a matching result having a mapping relationship with the standard order number data is obtained.

5. The logistics order query method according to claim 1, characterized in that: The step of identifying the real-time status information of the corresponding order according to the matching result, and calculating the estimated arrival time information according to the real-time status information includes: Identifying real-time status information of a corresponding order according to the matching result; Extracting the real-time location of the current location of the order in the real-time status information; Collecting historical order data between the delivery location and the real-time location, and calculating the historical average delivery time based on the historical order data; The estimated arrival time information is predicted based on the historical average delivery time.

6. The logistics order query method according to claim 1, characterized in that: The step of merging the real-time status information and the estimated arrival time information to obtain merged order query information, and sending the merged order query information to the client so that the client generates and displays an order query page based on the merged order query information, includes: Merging the real-time status information and the estimated arrival time information to obtain order query merged information; Pulling an order information display template, filling the order query merge information into the order information display template, and obtaining a real-time order information display list; The order real-time information display list is sent to the client, so that the client generates and displays an order real-time information page based on the order real-time information display list.

7. The logistics order query method according to claim 1, characterized in that: After merging the real-time status information and the estimated arrival time information to obtain merged order query information, and sending the merged order query information to the client so that the client generates and displays an order query page based on the merged order query information, the method further includes: Identify the user account corresponding to the client, and obtain order progress information of all uncompleted orders corresponding to the user account; Sorting all the order progress information according to the order generation time to obtain the progress sorting information of other unfinished orders; Generate a progress list of other unfinished orders according to the progress sorting information of other unfinished orders; The other unfinished order progress list is sent to the client, so that the client generates and displays other unfinished order progress information page based on the other unfinished order progress list.

8. A logistics order query device, characterized in that: include: A collection and cleaning module is used to collect logistics order data in real time, clean the logistics order data, and obtain denoised data; A conversion and establishment module, used for performing format conversion on the denoised data to obtain standard format data, and establishing a logistics order query model based on the standard format data and using the SGD stochastic gradient descent algorithm; A receiving and matching module is used to receive an order query instruction sent by a client, input the order query instruction into the logistics order query model for matching, and obtain a matching result; an identification and calculation module, used to identify the real-time status information of the corresponding order according to the matching result, and calculate the estimated arrival time information according to the real-time status information; The merging and sending module is used to merge the real-time status information and the estimated arrival time information to obtain the order query merge information, and send the order query merge information to the client so that the client generates and displays an order query page based on the order query merge information.

9. A logistics order query device, characterized in that: The logistics order query device includes: a memory and at least one processor, wherein the memory stores instructions; At least one of the processors calls the instructions in the memory so that the logistics order query device executes each step of the logistics order query method as described in any one of claims 1-7.

10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the various steps of the logistics order query method as described in any one of claims 1-7 are implemented.