Express order processing method and device based on multiple factors, equipment and storage medium

By using a hash table to store sender information and order status in the order management system, and determining related operations based on the order status, the problems of inefficient order management and high error rate in the existing technology are solved, and more efficient and accurate order association and management.

CN119444348APending Publication Date: 2025-02-14SHANGHAI YUNDA HIGH TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411353162.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

When the existing order management methods deal with a large number of complex order associations and special circumstances, they have problems such as inefficiency, error proneness, and insufficient security.

Method used

Create a hash table with the set of order IDs as the value by taking the combined string of sender information and order status as the key, and store it in the database. When a new order is received, it decides whether to perform an association operation based on its current status, and a new order identifier is generated for association processing.

Benefits of technology

It improves the accuracy and efficiency of order associations, reduces manual processing errors, effectively manages special order status and outlet requirements, reduces potential risks, and greatly improves the work efficiency of operators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119444348A_ABST
    Figure CN119444348A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of order management, and discloses an express order processing method and device based on multiple factors, equipment and a storage medium. The method comprises the following steps: creating a hash table by taking a combined character string of sender information and an order state as a key and taking a set of order IDs as a value; when a new order is received, extracting a current order state of the new order, and if the current order state of the new order is one of non-associated order states, not performing an associated operation on the new order; and if the current order state of the new order is one of associable order states, performing an association operation on the new order. According to the method, the accuracy and efficiency of order association are improved, errors of manual processing are reduced, special order states and network requirements are effectively managed, potential risks are reduced, and the work efficiency of operators is greatly improved through a batch processing function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of order management, and in particular to a method, device, equipment and storage medium for express order processing based on multiple factors. Background Art

[0002] At present, express order management is undergoing profound changes and improvements driven by digitalization and intelligence. With the vigorous development of e-commerce, the volume of express delivery business has increased dramatically, which has put forward higher requirements for the efficiency and accuracy of order management. First of all, the express order management system has generally realized automation and informatization. By introducing advanced technologies such as cloud computing, big data analysis and the Internet of Things, the system can track the order status in real time, including collection, transportation, sorting, distribution and other links, greatly improving the accuracy and timeliness of order processing. Secondly, intelligence has become an important trend in express order management. AI technology is widely used in route planning, inventory forecasting, customer service and other fields, which not only optimizes operating costs, but also significantly enhances user experience. For example, the intelligent sorting system can greatly improve sorting efficiency and reduce error rates; the intelligent customer service robot can provide consulting services to customers 24 hours a day.

[0003] With the continuous growth of express delivery business, efficient management of express delivery orders has become crucial. Traditional order management methods often have problems such as low efficiency, error-proneness, and lack of security when dealing with a large number of complex order associations and special situations.

[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0005] The main purpose of the present invention is to solve the problems of low efficiency, easy errors and insufficient security in existing order management methods when dealing with a large number of complex order associations and special situations.

[0006] The first aspect of the present invention provides a method for processing express orders based on multiple factors, comprising: creating a hash table with a combined string of sender information and order status as a key and a set of order IDs as a value, and storing the hash table in a database; when a new order is received, extracting the current order status of the new order, if the current order status of the new order is one of the non-associated order states, then no association operation is performed on the new order; if the current order status of the new order is one of the associable order states, then generating a new order identifier with the sender information and current order status of the new order; if the new order identifier exists in the hash table, then adding the new order to the corresponding associated order set; if the new order identifier does not exist in the hash table, then creating a new entry, wherein the new entry uses the new order identifier as a key and the new order ID as the first element in the new order set.

[0007] Optionally, in a first implementation method of the first aspect of the present invention, a hash table is created with a combined string of sender information and order status as a key and a set of order IDs as a value, and the hash table is stored in a database, comprising the steps of: obtaining the sender information and order status of the order, the sender information including: sender name, sender phone number, sender address; generating a combined string from the sender name, sender phone number, sender address and order status through a Python function, creating a hash table with the combined string as a key and a set of corresponding order IDs as a value; and storing the hash table in a database.

[0008] Optionally, in a second implementation method of the first aspect of the present invention, when a new order is received, the current order status of the new order is extracted, and if the current order status of the new order is one of the non-associated order statuses, no association operation is performed on the new order, including the following steps: when a new order is received, the current order status of the new order is extracted, and it is determined whether the current order status of the new order is one of the non-associated order statuses, and the non-associated order statuses include: unverified pickup code orders, printed orders, collected orders, abnormal orders, and international orders; if the current order status of the new order is one of the non-associated order statuses, no association operation is performed on the new order, and a list of all orders that are not allowed to be associated is created, and the new order is added to the order list.

[0009] Optionally, in a third implementation method of the first aspect of the present invention, if the current order status of the new order is one of the associable order statuses, then the sender information and the current order status of the new order are used to generate a new order identifier, including the steps of: judging whether the current order status of the new order is one of the associable order statuses, the associable order statuses including: orders awaiting real-name verification, orders awaiting price verification, and orders awaiting printing; if the current order status of the new order is one of the associable order statuses, then using a Python function to generate a new order identifier from the sender name, sender phone number, sender address, and current order status.

[0010] Optionally, in a fourth implementation method of the first aspect of the present invention, determining whether the current order status of the new order is one of the associable order statuses includes the following steps: for each new order to be associated, the orders interact with each other through a defined communication protocol, calling a real-name authentication interface or querying a database to confirm the authentication status of the new order; if the current order status of the new order is an order to be associated with real name, pausing the association operation and guiding the user to complete the real-name authentication through the user interface.

[0011] Optionally, in a fifth implementation method of the first aspect of the present invention, if the new order identifier exists in the hash table, the new order is added to the corresponding associated order set, and then the steps of: maintaining a counter to track the number of orders in the associated order set related to the unique identifier; when the number of associated orders added in the associated order set reaches or exceeds one, the entry of "Batch processing XX+1 orders" is automatically displayed, where XX represents the number of associated orders and 1 represents the parent order.

[0012] Optionally, in a sixth implementation method of the first aspect of the present invention, if the new order identifier exists in the hash table, the new order is added to the corresponding associated order set, and then the steps of: listing all outlets that require mandatory unpacking and inspection through a configuration file; when displaying the associated order list, querying whether the current outlet is in the list of mandatory unpacking and inspection; if so, filtering out the display of all associated orders, displaying only independent parent orders, and performing unpacking and inspection on the parent orders.

[0013] The second aspect of the present invention provides an express order processing device based on multiple factors, including: a hash table creation module, which is used to create a hash table with a combined string of sender information and order status as a key and a set of order IDs as a value, and store the hash table in a database; a non-associated order processing module, which is used to extract the current order status of the new order when a new order is received, and if the current order status of the new order is one of the non-associated order statuses, no association operation is performed on the new order; an identifier generation module, which is used to generate a new order identifier with the sender information and current order status of the new order if the current order status of the new order is one of the associable order statuses; an adding module, which is used to add the new order to the corresponding associated order set if the new order identifier exists in the hash table; a new entry creation module, which is used to create a new entry if the new order identifier does not exist in the hash table, and the new entry uses the new order identifier as a key and the new order ID as the first element in the new order set.

[0014] Optionally, in a first implementation method of the second aspect of the present invention, the hash table creation module includes: an acquisition unit, used to acquire the sender information and order status of the order, the sender information including: sender name, sender phone number, sender address; a creation unit, used to generate a combined string from the sender name, sender phone number, sender address and order status through a Python function, and create a hash table with the combined string as a key and a set of corresponding order IDs as a value; a storage unit, used to store the hash table in a database.

[0015] Optionally, in a second implementation method of the second aspect of the present invention, the non-associated order processing module includes: an extraction unit, which is used to extract the current order status of the new order when a new order is received, and determine whether the current order status of the new order is one of the non-associated order statuses, and the non-associated order statuses include: unverified pickup code orders, printed orders, collected orders, abnormal orders, and international orders; a non-associated operation unit, which is used to not perform an associative operation on the new order if the current order status of the new order is one of the non-associated order statuses, and at the same time create a list of all orders that are not allowed to be associated, and add the new order to the order list.

[0016] Optionally, in a third implementation method of the second aspect of the present invention, the identifier generation module includes: a judgment unit, used to judge whether the current order status of the new order is one of the associable order statuses, the associable order statuses including: orders awaiting real-name verification, orders awaiting price verification, and orders awaiting printing; an identifier generation unit, used to generate a new order identifier by using a Python function to associate the sender's name, sender's telephone number, sender's address and current order status if the current order status of the new order is one of the associable order statuses.

[0017] Optionally, in a fourth implementation method of the second aspect of the present invention, the judgment unit includes: a calling sub-unit, used to call the real-name authentication interface or query the database for each new order to be associated, so as to confirm the authentication status of the new order by interacting between orders through a defined communication protocol; an authentication sub-unit, used to suspend the association operation if the current order status of the new order is an order to be real-name verified, and guide the user to complete the real-name authentication through the user interface.

[0018] Optionally, in the fifth implementation method of the second aspect of the present invention, it also includes: a counting module, used to maintain a counter to track the number of orders in the associated order set associated with the unique identifier; when the number of associated orders added in the associated order set reaches or exceeds one, the entrance of "Batch processing XX+1 orders" is automatically displayed, where XX represents the number of associated orders and 1 represents the parent order.

[0019] Optionally, in a sixth implementation method of the second aspect of the present invention, it also includes: an inspection module, which is used to list all outlets that require mandatory unpacking and inspection through a configuration file; when displaying a list of associated orders, query whether the current outlet is in the list of mandatory unpacking and inspection; if so, filter out the display of all associated orders, display only independent parent orders, and perform unpacking and inspection on the parent orders.

[0020] The third aspect of the present invention provides an express order processing device based on multiple factors, comprising: a memory and at least one processor, wherein the memory stores computer-readable instructions, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the computer-readable instructions in the memory so that the express order processing device based on multiple factors executes the various steps of the express order processing method based on multiple factors as described above.

[0021] A fourth aspect of the present invention provides a computer-readable storage medium, in which computer-readable instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the various steps of the express order processing method based on multiple factors as described above.

[0022] Beneficial effect: In the technical solution of the present invention, a hash table is created with a combined string of the sender information and the order status as a key and a set of order IDs as a value, and the hash table is stored in a database; when a new order is received, the current order status of the new order is extracted, and if the current order status of the new order is one of the non-associated order states, no association operation is performed on the new order; if the current order status of the new order is one of the associable order states, a new order identifier is generated by the sender information and the current order status of the new order; if the new order identifier exists in the hash table, the new order is added to the corresponding associated order set; if the new order identifier does not exist in the hash table, a new entry is created, and the new entry uses the new order identifier as a key and the new order ID as the first element in the new order set. The method of the present invention improves the accuracy and efficiency of order association, reduces errors in manual processing, effectively manages special order status and branch requirements, reduces potential risks, and the batch processing function greatly improves the work efficiency of operators. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A first flow chart of a method for processing express orders based on multiple factors provided by an embodiment of the present invention;

[0024] Figure 2 A second flow chart of the express order processing method based on multiple factors provided by an embodiment of the present invention;

[0025] Figure 3 A third flow chart of the express order processing method based on multiple factors provided by an embodiment of the present invention;

[0026] Figure 4 A fourth flow chart of the express order processing method based on multiple factors provided by an embodiment of the present invention;

[0027] Figure 5 A fifth flow chart of the express order processing method based on multiple factors provided by an embodiment of the present invention;

[0028] Figure 6 A sixth flow chart of the express order processing method based on multiple factors provided by an embodiment of the present invention;

[0029] Figure 7 A seventh flow chart of the express order processing method based on multiple factors provided by an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the structure of an express order processing device based on multiple factors provided by an embodiment of the present invention;

[0031] Fig. 9Another structural schematic diagram of an express order processing device based on multiple factors provided by an embodiment of the present invention;

[0032] Fig.10 A schematic diagram of the structure of an express order processing device based on multiple factors provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0033] The embodiment of the present invention provides a method, device, equipment and storage medium for express order processing based on multiple factors, using the combined string of sender information and order status as a key, and using the set of order IDs as a value to create a hash table, and storing the hash table in a database; when a new order is received, the current order status of the new order is extracted, and if the current order status of the new order is one of the non-associated order states, no association operation is performed on the new order; if the current order status of the new order is one of the associable order states, the sender information and current order status of the new order are used to generate a new order identifier; if the new order identifier exists in the hash table, the new order is added to the corresponding associated order set; if the new order identifier does not exist in the hash table, a new entry is created, and the new entry uses the new order identifier as a key and the new order ID as the first element in the new order set. The method of the present invention improves the accuracy and efficiency of order association, reduces errors in manual processing, effectively manages special order status and network requirements, reduces potential risks, and the batch processing function greatly improves the work efficiency of operators.

[0034] 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.

[0035] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first embodiment of the express order processing method based on multiple factors in the embodiment of the present invention includes:

[0036] S100, creating a hash table using a combined string of sender information and order status as a key and a set of order IDs as a value, and storing the hash table in a database;

[0037] Specifically, define a hash table in your application (for example, in Java you can use HashMap <String,Set <string>>), where the key is a string containing the sender information and the order status (such as "Alice_Completed"), and the value is a set containing the order ID (such as Set <string>); This embodiment serializes the hash table into JSON or other formats supported by the database for storage. A table is designed in the database, which contains at least two fields: a field for storing the serialized hash table data (such as data, of type TEXT or BLOB), and other management fields that may be required (such as timestamp, recording update time); the serialized hash table is inserted into the database table as a record.

[0038] S200: when a new order is received, extract the current order status of the new order; if the current order status of the new order is one of the non-associated order statuses, do not perform an associative operation on the new order;

[0039] In this embodiment, after receiving a new order, the current order status is extracted from the new order data; check the order status: define a group of "non-associated order statuses" and check whether the current status of the new order belongs to this group. If so, skip the association operation.

[0040] S300: If the current order status of the new order is one of the associable order statuses, generate a new order identifier using the sender information of the new order and the current order status;

[0041] In this embodiment, a set of "associable order statuses" is defined. If the current status of a new order is associable, the sender information of the new order and the current order status are combined into a string as a new order identifier.

[0042] S400: If the new order identifier exists in the hash table, add the new order to the corresponding associated order set;

[0043] In this embodiment, the hash table data is retrieved from the database and deserialized into a hash table object; the hash table is checked to see if there is an entry with the new order identifier as the key; if so, the ID of the new order is added to the corresponding order ID set; after the hash table is updated, it is reserialized and stored back into the database.

[0044] S500: If the new order identifier does not exist in the hash table, create a new entry, wherein the new entry uses the new order identifier as a key and the new order ID as the first element in the new order set.

[0045] In this implementation, if there is no entry in the hash table with the new order identifier as the key, the next step is executed; a new entry is created in the hash table with the new order identifier as the key and the set containing the new order ID (as the first element of the set) as the value; after updating the hash table, it is reserialized and stored back to the database.

[0046] The present invention can easily associate related orders through the combination of sender information and order status, which is convenient for subsequent processing and analysis; using a set as a value, it automatically handles the problem of deduplication of order IDs and reduces data redundancy during query and update; the hash table structure provides fast search and insert operations; the method of the present invention can also flexibly determine whether to perform association operations and which orders to associate based on the order status; the ACID characteristics of the database ensure data consistency and integrity in a concurrent environment. The method of the present invention improves the accuracy and efficiency of order association, reduces errors in manual processing, effectively manages special order status and branch requirements, reduces potential risks, and the batch processing function greatly improves the work efficiency of operators.

[0047] See also Figure 2 The second embodiment of the express order processing method based on multiple factors in the embodiment of the present invention includes:

[0048] S110, obtaining the sender information and order status of the order, wherein the sender information includes: sender name, sender phone number, and sender address;

[0049] S120, generating a combined string from the sender's name, sender's phone number, sender's address and order status through a Python function, and creating a hash table with the combined string as a key and a set of corresponding order IDs as a value;

[0050] S130: Store the hash table in a database.

[0051] Specifically, make sure your order data structure (which may be a table in a database, a JSON object, or a Python dictionary) contains the required fields: sender name, sender phone number, sender address, and order status; obtain the details of a specific order through a database query, API call, or other means; extract the sender name, sender phone number, sender address, and order status from the query results. Write a function in Python that accepts the sender name, sender phone number, sender address, and order status as parameters; inside the function, use a rule to combine this information into a unique string. For example, you can use an underscore _ or a specific delimiter to concatenate this information, and you may need to format or remove spaces for some parts (such as phone numbers) to ensure that the resulting string is unique; initialize an empty hash table (usually a dict type in Python), and then, using the combined string generated in the previous step as the key, add the order ID (or if the order ID is an element in a set, it may be a set containing the order ID) as the value to the hash table. Note that if the key already exists in the hash table, the corresponding value set needs to be updated to include the new order ID. Since hash tables (dicts in Python) are complex data structures that cannot be directly stored in most databases, they need to be serialized into a format (such as JSON, XML, or a binary format supported by the database) first; Design a database table: Design a table in the database to store the serialized hash table data. This table can have a field for storing the serialized data, as well as other fields that may be required (such as timestamps, version numbers, etc.); Insert the serialized hash table data into the database table. For example, you can use the database's insert statement (such as SQL's INSERT statement) or an ORM (object-relational mapping) tool to complete this operation.

[0052] This embodiment can easily associate orders with the same sender information and order status by generating a combined string as a key, which is helpful for data analysis, order tracking, etc. The hash table provides a fast search time complexity (O(1) on average), which makes it possible to quickly retrieve related orders based on the sender information and order status. Since the key of the hash table is unique, when adding a new order, it can automatically check whether there is an order with the same sender information and order status, thereby avoiding data redundancy. As the number of orders increases, the system performance can be expanded by optimizing the database index, using a more powerful database system, or changing the serialization strategy. The system of this embodiment can easily adapt to new business needs, such as adding new fields to the combined string or changing the rules for generating the combined string.

[0053] See also Figure 3 The third embodiment of the express order processing method based on multiple factors in the embodiment of the present invention includes:

[0054] S210, when a new order is received, extract the current order status of the new order, and determine whether the current order status of the new order is one of the non-associated order statuses, wherein the non-associated order statuses include: an unverified pickup code order, a printed order, a collected order, an abnormal order, and an international order;

[0055] S220: If the current order status of the new order is one of the non-associated order statuses, no association operation is performed on the new order, and a list of all orders that are not allowed to be associated is created, and the new order is added to the order list.

[0056] Specifically, define a collection (such as a list, set, or enumeration) in the code that contains all non-associated order states, including "unverified pickup code orders", "printed orders", "collected orders", "abnormal orders", and "international orders"; when the system receives a new order, the order may be received through an API call, a user submitting a form, or synchronization from other systems, and the current order status field is extracted from the received order data. This field is usually a string or enumeration value used to identify the current status of the order; use conditional statements (such as if-else or switch-case) to determine whether the current status of the new order belongs to any of the defined non-associated order status sets; if the current status of the new order is indeed one of the non-associated order statuses, then the following steps need to be performed. First, check whether there is already a list containing all orders that are not allowed to be associated. If not, create a new list; if it already exists, use the list directly. Add the new order (or the identifier of the new order, such as the order ID) to the list of orders that are not allowed to be associated. This list can be used in subsequent operations to quickly identify which orders should not be associated or otherwise processed. Explicitly mark or record that the new order does not require any association operation, which can be achieved by setting a flag in the order data, sending a log message, or triggering a specific event.

[0057] This embodiment can avoid mistakenly associating orders of different states by clearly distinguishing which orders should not be associated, thereby improving the accuracy and consistency of data; for orders that do not need to be associated, the system can skip the relevant processing steps of the association operation, thereby saving computing resources and time and improving the overall performance of the system; in subsequent business logic processing, it can quickly decide whether to perform certain operations by checking whether the order is in the list of orders that are not allowed to be associated, thereby simplifying the complexity of logical processing; this design method enables the system to easily support different business rules and demand changes. For example, if you need to add new non-associated order states or modify existing state definitions in the future, you only need to update the non-associated order state set in the code. For users, the system can correctly handle orders of different states, avoiding confusion and inconvenience caused by incorrect associations, thereby improving user experience.

[0058] See also Figure 4 The fourth embodiment of the express delivery order processing method based on multiple factors in the embodiment of the present invention includes:

[0059] S310, determining whether the current order status of the new order is one of the associable order statuses, wherein the associable order statuses include: an order to be verified, an order to be verified, and an order to be printed;

[0060] S320: If the current order status of the new order is one of the associable order statuses, a new order identifier is generated by using a Python function to convert the sender's name, sender's phone number, sender's address and the current order status.

[0061] Specifically, this embodiment needs to define which order statuses are associable, and write a Python function to generate a new order identifier based on the order status and other information, as an example:

[0062]

[0063]

[0064] Next, this embodiment needs to write a function to check the current status of the new order. If the status is relatable, the generate_order_identifier function is called to generate a new order identifier. As an example, the function is written as follows:

[0065]

[0066]

[0067] This embodiment makes the code clearer and easier to understand by decomposing complex logic into simple functions. If the generation logic of the associated order status or order identifier needs to be modified in the future, it is only necessary to modify the corresponding function. If new functions need to be added (such as processing different types of orders, generating more complex identifiers, etc.), it can be easily expanded on the existing framework. When generating identifiers, elements such as timestamps and hash values ​​can be added to improve the security and uniqueness of the data. This embodiment can flexibly adjust the generation rules of order status and identifiers according to different business needs.

[0068] See also Figure 5 The fifth embodiment of the express order processing based on multiple factors in the embodiment of the present invention includes:

[0069] S311. For each new order to be associated, the orders interact with each other through a defined communication protocol, calling a real-name authentication interface or querying a database to confirm the authentication status of the new order;

[0070] S312: If the current order status of the new order is an order to be verified by real name, the association operation is suspended, and the user is guided to complete the real-name authentication through the user interface.

[0071] Specifically, this embodiment needs to define the communication protocol between orders and between the order system and external services (such as real-name authentication services), which usually includes request format, response format, error handling mechanism, etc.; for each new order to be associated, the system sends a request to the real-name authentication service according to the defined communication protocol. The request contains the order's unique identifier (such as order ID) and necessary user information (such as user ID). If the system has cached the real-name authentication results (for example, in a database), the database can be queried directly to obtain the authentication status without calling an external interface.

[0072] In this embodiment, a response from a real-name authentication service or database is received, and the authentication status is parsed; if the authentication status is "authenticated", the association operation continues; if it is "unauthenticated" or "authenticating", it is processed according to subsequent steps. Specifically, when the current order status of a new order is "pending real-name order" and the authentication status is "unauthenticated", the system suspends the association operation for the order; a flag can be set in the order record to indicate that the order requires real-name authentication before it can continue to be associated. The system displays a real-name authentication notification or pop-up window to the user through a user interface (such as a web page, APP, etc.). The notification should contain necessary information about real-name authentication, such as the importance of real-name authentication, the authentication process, required materials, etc.; provide a clear guide link or button so that the user can easily jump to the real-name authentication page or perform related operations. When the user clicks the guide link or button, the real-name authentication page is entered. Fill in or upload the necessary real-name authentication information (such as name, ID number, photo, etc.) according to the prompts on the page; after submitting the information, wait for the review of the system or real-name authentication service; once the real-name authentication is passed, the system should automatically update the authentication status of the order to "authenticated"; at the same time, check the association operations that were previously suspended due to real-name authentication, and continue to perform the association operations if other conditions are met.

[0073] Through real-name authentication, this embodiment can ensure that the identity of the users involved in the order is authentic and reliable, reducing the risk of fraud and false transactions; through the clear guidance of the user interface, users can easily understand the necessity and process of real-name authentication, reducing the troubles caused by insufficient information or complicated processes; the system can dynamically adjust the execution of associated operations according to the authentication status of the order, improving the flexibility and response speed of the system; this embodiment uses real-name authentication as a prerequisite for associated operations, which can ensure that all necessary preparations have been completed before the associated operations are executed, thereby optimizing the entire business process.

[0074] See also Figure 6 The sixth embodiment of the express order processing based on multiple factors in the embodiment of the present invention includes:

[0075] S610, maintaining a counter to track the number of orders in the associated order set associated with the unique identifier;

[0076] S620. When the number of associated orders added to the associated order set reaches or exceeds one, the entry for "batch processing XX+1 orders" is automatically displayed, where XX represents the number of associated orders and 1 represents the parent order.

[0077] Specifically, for each unique identifier, an associated data structure is created to store all associated orders associated with the identifier. In this data structure, a counter field is included to track the number of associated orders. When a new associated order is added to a set of unique identifiers, the counter corresponding to the identifier is incremented; if the order is removed or disassociated, the counter is decremented; the current state of the counter is persistently stored (such as a database, cache, etc.) so that the correct count value can be restored when the system is restarted or the data is restored. Check the counter value. Whenever a new associated order is added to the set, check the counter value corresponding to the unique identifier; if the counter value reaches or exceeds 1 (considering that there is at least one parent order), dynamically generate and display an entry for "Batch Processing XX+1 Orders" based on the counter value, where XX is the number of associated orders (excluding the parent order) and 1 represents the parent order itself. This entry can be a button, link, or other form of user interface element that can trigger a batch processing operation after the user clicks it; when the user clicks the batch processing entry, the system should be able to identify and perform the corresponding batch processing operation, such as batch shipment, batch refund, etc.

[0078] This embodiment can significantly reduce the number of operations and time of users or system administrators by batch processing multiple orders, thereby improving processing efficiency; it provides an intuitive batch processing portal, allowing users to more conveniently manage and process multiple orders, thereby improving user experience; batch processing can reduce the error rate caused by repeated operations or manual input errors, and improve data accuracy and consistency. As the business develops, the number of orders may increase dramatically. By implementing the batch processing function, it is possible to better adapt to such changes and meet the business's demand for efficient processing of large numbers of orders.

[0079] See also Figure 7 The seventh embodiment of the express order processing based on multiple factors in the embodiment of the present invention includes:

[0080] S710, list all outlets that require mandatory unpacking inspection through configuration files;

[0081] S720. When displaying the list of related orders, query whether the current outlet is in the list of mandatory unpacking inspections;

[0082] S730. If yes, filter out the display of all related orders, display only the independent parent order, and unpack and inspect the parent order.

[0083] Specifically, this embodiment lists all outlets that require mandatory unpacking inspection in the configuration file according to the designed format; ensures that the configuration file is easy to maintain and update so that outlets can be added or deleted in the future; stores the configuration file in a location accessible to the system, such as a directory on the application server; ensures the security of the configuration file to avoid unauthorized access or tampering.

[0084] When the system starts or when needed, read and parse the configuration file, and load the information of the outlets that need to be unpacked and inspected into the memory; when the user requests to display the list of related orders, obtain the information of the current outlet (may be through user session, geographic location or other means); compare the current outlet information with the outlets listed in the configuration file that need to be unpacked and inspected; if the current outlet is in the list, filter out the display of all related orders, only display independent parent orders, and unpack and inspect the parent orders. Specifically, provide users with a clear interface that only displays those independent parent order information; ensure that these parent orders that need to be unpacked and inspected are clearly marked on the interface; provide a mechanism (may be a button, link or automatic process) to trigger the unpacking and inspection process of the parent order; during the unpacking and inspection process, record relevant inspection information, photos or videos and other evidence for subsequent inquiries or audits.

[0085] This embodiment can reduce the risk of loss, damage or mis-shipment of goods and improve the safety of the transportation process by forcing unpacking and inspection of orders at specific outlets; this embodiment only displays the parent order that requires unpacking and inspection, reducing the possibility of related orders being processed incorrectly due to misoperation or negligence; for outlets that do not require unpacking and inspection, the list of related orders is displayed normally, avoiding unnecessary unpacking inspections for all orders and improving processing efficiency; this embodiment also manages the list of outlets that require mandatory unpacking and inspection through configuration files, making the system easy to configure and maintain and able to adapt to changes in demand in different business scenarios. Records of the unpacking and inspection process (such as photos, videos, etc.) provide strong evidence support for subsequent inquiries, audits, or dispute resolution.

[0086] The above describes the express order processing method based on multiple factors in the embodiment of the present invention. The following describes the express order processing device based on multiple factors in the embodiment of the present invention. Figure 8 In one embodiment of the present invention, an express order processing device based on multiple factors includes:

[0087] A hash table creation module 10, for creating a hash table using a combined string of sender information and order status as a key and a set of order IDs as a value, and storing the hash table in a database;

[0088] The non-associated order processing module 20 is used to extract the current order status of the new order when a new order is received, and if the current order status of the new order is one of the non-associated order statuses, no associating operation is performed on the new order;

[0089] The identifier generating module 30 is used to generate a new order identifier by using the sender information of the new order and the current order status if the current order status of the new order is one of the associable order statuses;

[0090] An adding module 40, configured to add the new order to a corresponding associated order set if the new order identifier exists in the hash table;

[0091] The new entry creation module 50 is used to create a new entry if the new order identifier does not exist in the hash table. The new entry uses the new order identifier as a key and the new order ID as the first element in the new order set.

[0092] The present invention uses a hash table to achieve intelligent association of multiple orders, improve management efficiency, and the system excludes the association of orders in specific states. For outlets that require mandatory unpacking and visual inspection, the associated orders are automatically hidden to ensure safety; when two or more associated orders are detected, the batch processing entrance is automatically opened, significantly improving the work efficiency of operators. The entire mechanism relies on computer algorithms such as state machines, database queries and interface calls to achieve efficient and orderly order management.

[0093] See also Fig. 9 Another embodiment of the express order processing device based on multiple factors in the embodiment of the present invention includes:

[0094] A hash table creation module 10, for creating a hash table using a combined string of sender information and order status as a key and a set of order IDs as a value, and storing the hash table in a database;

[0095] The non-associated order processing module 20 is used to extract the current order status of the new order when a new order is received, and if the current order status of the new order is one of the non-associated order statuses, no associating operation is performed on the new order;

[0096] The identifier generating module 30 is used to generate a new order identifier by using the sender information of the new order and the current order status if the current order status of the new order is one of the associable order statuses;

[0097] An adding module 40, configured to add the new order to a corresponding associated order set if the new order identifier exists in the hash table;

[0098] The new entry creation module 50 is used to create a new entry if the new order identifier does not exist in the hash table. The new entry uses the new order identifier as a key and the new order ID as the first element in the new order set.

[0099] In this embodiment, the hash table creation module 10 includes:

[0100] The acquisition unit 11 is used to acquire the sender information and order status of the order, wherein the sender information includes: sender name, sender phone number, and sender address;

[0101] A creation unit 12, configured to generate a combined string from the sender name, sender phone number, sender address and order status through a Python function, and create a hash table with the combined string as a key and a set of corresponding order IDs as a value;

[0102] The storage unit 13 is used to store the hash table in a database.

[0103] In this embodiment, the non-associated order processing module 20 includes:

[0104] The extraction unit 21 is used to extract the current order status of the new order when receiving the new order, and determine whether the current order status of the new order is one of the non-associated order statuses, wherein the non-associated order status includes: an unverified pickup code order, a printed order, a collected order, an abnormal order, and an international order;

[0105] The non-association operation unit 22 is used for not performing an association operation on the new order if the current order state of the new order is one of the non-association order states, and at the same time creating a list of all orders that are not allowed to be associated, and adding the new order to the order list.

[0106] In this embodiment, the identifier generation module 30 includes:

[0107] A judging unit 31 is used to judge whether the current order status of the new order is one of the associable order statuses, wherein the associable order statuses include: an order to be verified, an order to be verified, and an order to be printed;

[0108] The identifier generating unit 32 is used to generate a new order identifier by using a Python function from the sender's name, sender's phone number, sender's address and the current order status if the current order status of the new order is one of the associable order statuses.

[0109] In this embodiment, the judging unit 31 includes:

[0110] The calling subunit 311 is used to call the real-name authentication interface or query the database for each new order to be associated, in a manner that the orders interact with each other through a defined communication protocol, to confirm the authentication status of the new order;

[0111] The authentication subunit 312 is used to suspend the association operation if the current order status of the new order is an order to be authenticated by real name, and guide the user to complete the real-name authentication through the user interface.

[0112] In this embodiment, it also includes: a counting module 60, which is used to maintain a counter to track the number of orders in the associated order set related to the unique identifier; when the number of associated orders added in the associated order set reaches or exceeds one, an entry for "batch processing XX+1 orders" is automatically displayed, where XX represents the number of associated orders and 1 represents the parent order; an inspection module 70, which is used to list all outlets that require mandatory unpacking inspection through a configuration file; when displaying the list of associated orders, it is inquired whether the current outlet is in the list of mandatory unpacking inspection; if so, all associated orders are filtered out, and only independent parent orders are displayed, and the parent orders are unpacked and inspected.

[0113] above Figure 8 and Fig. 9 The express order processing device based on multiple factors in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The express order processing device based on multiple factors in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0114] Fig.10 1 is a schematic diagram of the structure of an express order processing device based on multiple factors provided by an embodiment of the present invention. The express order processing device 100 based on multiple factors may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 11 (for example, one or more processors) and a memory 12, and one or more storage media 13 (for example, one or more mass storage devices) storing application programs 133 or data 132. Among them, the memory 12 and the storage medium 13 can be short-term storage or permanent storage. The program stored in the storage medium 13 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the express order processing device 100 based on multiple factors. Furthermore, the processor 11 can be configured to communicate with the storage medium 13 to execute a series of instruction operations in the storage medium 13 on the express order processing device 100 based on multiple factors.

[0115] The express order processing device 100 based on multiple factors may also include one or more power supplies 14, one or more wired or wireless network interfaces 15, one or more input and output interfaces 16, and / or one or more operating systems 131, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It can be understood by those skilled in the art that Fig.10 The device structure shown does not constitute a limitation on the express order processing device 100 based on multiple factors, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0116] 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 a multi-factor-based express order processing method.

[0117] 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.

[0118] 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.

[0119] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.< / string> < / string>

Claims

1. A method for processing express orders based on multiple factors, characterized in that: The express order processing method comprises: Create a hash table using a combined string of the sender information and the order status as a key and a set of order IDs as a value, and store the hash table in a database; When a new order is received, the current order status of the new order is extracted. If the current order status of the new order is one of the non-associated order statuses, no association operation is performed on the new order; If the current order status of the new order is one of the associable order statuses, generating a new order identifier by using the sender information of the new order and the current order status; If the new order identifier exists in the hash table, adding the new order to the corresponding associated order set; If the new order identifier does not exist in the hash table, a new entry is created, wherein the new entry uses the new order identifier as a key and the new order ID as the first element in the new order set.

2. The express order processing method based on multiple factors according to claim 1 is characterized in that: The method of creating a hash table using a combined string of sender information and order status as a key and a set of order IDs as a value, and storing the hash table in a database includes the following steps: Obtaining the sender information and order status of the order, wherein the sender information includes: sender name, sender phone number, and sender address; Generate a combined string from the sender name, sender phone number, sender address and order status through a Python function, and create a hash table with the combined string as a key and a set of corresponding order IDs as a value; The hash table is stored in a database.

3. The express order processing method based on multiple factors according to claim 1 is characterized in that: When a new order is received, the current order status of the new order is extracted. If the current order status of the new order is one of the non-associated order statuses, no association operation is performed on the new order, including the steps of: When a new order is received, the current order status of the new order is extracted to determine whether the current order status of the new order is one of the non-associated order statuses, wherein the non-associated order statuses include: an unverified pickup code order, a printed order, a collected order, an abnormal order, and an international order; If the current order status of the new order is one of the non-associated order statuses, no association operation is performed on the new order, and a list of all orders that are not allowed to be associated is created, and the new order is added to the order list.

4. The express order processing method based on multiple factors according to claim 1 is characterized in that: If the current order status of the new order is one of the associable order statuses, the sender information of the new order and the current order status are used to generate a new order identifier, including the steps of: Determine whether the current order status of the new order is one of the associable order statuses, wherein the associable order statuses include: an order to be verified, an order to be verified, and an order to be printed; If the current order status of the new order is one of the associable order statuses, a new order identifier is generated by using a Python function to convert the sender's name, sender's phone number, sender's address and the current order status.

5. The express order processing method based on multiple factors according to claim 4 is characterized in that: Determining whether the current order status of the new order is one of the associable order statuses comprises the steps of: For each new order to be associated, the orders interact with each other through a defined communication protocol, calling the real-name authentication interface or querying the database to confirm the authentication status of the new order; If the current order status of the new order is an order awaiting real-name authentication, the association operation is suspended, and the user is guided to complete the real-name authentication through the user interface.

6. The express order processing method based on multiple factors according to claim 1 is characterized in that: If the new order identifier exists in the hash table, the new order is added to the corresponding associated order set, and then the following steps are included: Maintain a counter that tracks the number of orders in the associated order set associated with the unique identifier; When the number of associated orders added to the associated order set reaches or exceeds one, the entry for "Batch process XX+1 orders" is automatically displayed, where XX represents the number of associated orders and 1 represents the parent order.

7. The express order processing method based on multiple factors according to claim 6 is characterized in that: If the new order identifier exists in the hash table, the new order is added to the corresponding associated order set, and then the following steps are included: List all outlets that require mandatory unpacking inspection through configuration files; When displaying the list of related orders, check whether the current outlet is in the list of mandatory unpacking inspections; If so, filter out the display of all related orders, display only the independent parent order, and unpack and inspect the parent order.

8. A multi-factor based express order processing device, characterized in that: include: A hash table creation module, used to create a hash table using a combined string of sender information and order status as a key and a set of order IDs as a value, and store the hash table in a database; The non-associated order processing module is used to extract the current order status of the new order when a new order is received, and if the current order status of the new order is one of the non-associated order statuses, no associating operation is performed on the new order; an identifier generating module, configured to generate a new order identifier using the sender information of the new order and the current order status if the current order status of the new order is one of the associable order statuses; An adding module, configured to add the new order to a corresponding associated order set if the new order identifier exists in the hash table; A new entry creation module is used to create a new entry if the new order identifier does not exist in the hash table, wherein the new entry uses the new order identifier as a key and the new order ID as the first element in the new order set.

9. A multi-factor based express order processing device, characterized in that: comprising a memory and at least one processor, wherein the memory has computer-readable instructions stored therein; The at least one processor calls the computer-readable instructions in the memory to execute the various steps of the express order processing method based on multiple factors as described in any one of claims 1-7.

10. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the steps of the express order processing method based on multiple factors as described in any one of claims 1 to 7 are implemented.