An order processing method and device, electronic equipment and storage medium

By generating preset order flow paths, the problem of order operation logs occupying storage and central processing unit resources is solved, thus improving system performance and efficiency.

CN116051237BActive Publication Date: 2026-11-06GREAT WALL MOTOR CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310012583.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-05
Publication Date
2026-11-06
Estimated Expiration
2043-01-05

AI Technical Summary

Technical Problem

In existing technologies, order operation logs consume a large amount of storage resources, and related queries consume CPU performance, affecting system performance.

Method used

By generating a preset flow path for orders, the status flow information of orders is generated based on order information and the preset flow path, reducing the dependence on the central processing unit.

Benefits of technology

It improves the performance of the central processing unit and the efficiency of generating order status flow traces, while reducing storage resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116051237B_ABST
    Figure CN116051237B_ABST
Patent Text Reader

Abstract

This invention provides an order processing method, apparatus, electronic device, and storage medium, comprising: determining trajectory configuration information for each type of order; wherein the trajectory configuration information includes a preset flow trajectory corresponding to each state of the order; the preset flow trajectory characterizes the change trajectory of the order from an initial state to a current state; upon detecting a user's status query request for a target order, retrieving a target preset flow trajectory corresponding to the current state of the target order from the trajectory configuration information; and generating the flow trajectory of the target order based on the order information of the target order and the target preset flow trajectory. The aim is to provide a highly efficient method for generating order status flow trajectories.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of orders, and in particular to an order processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] Order status transition is the core function of a transaction system. Order systems are often characterized by multiple statuses, long links, and complex logic, as well as business characteristics such as multiple scenarios, multiple types, and multiple business dimensions.

[0003] The current method for recording order status transitions is to create a log table for each order to store all operation logs for that order. Then, based on the association between the business number of the target order and the operation logs, all statuses of the target order are found and displayed in the transition track according to the order of status transitions.

[0004] As a result, on the one hand, the order operation logs occupy a large amount of storage, and on the other hand, the process of looking up the order status based on the association between the order business number and the operation logs consumes a lot of CPU resources, affecting CPU performance. Summary of the Invention

[0005] In view of this, the present invention aims to provide an order processing method, apparatus, electronic device and storage medium to solve the problems of current order operation logs occupying a large amount of storage and related queries consuming central processing unit resources and affecting central processing unit performance.

[0006] To achieve the above objectives, the technical solution of the present invention is implemented as follows: An order processing method, comprising: When a user's status query request for a target order is detected, the target preset flow trajectory corresponding to the current status of the target order is retrieved from the trajectory configuration information; the trajectory configuration information includes the preset flow trajectory corresponding to each status of the order, and the preset flow trajectory represents the change trajectory of the order from the initial state to that state; Based on the order information of the target order and the target preset flow trajectory, the status flow information of the target order is generated.

[0007] Furthermore, the trajectory configuration information of the target order is generated according to the following steps: The target order is determined to have multiple states, including an initial state, an ending state, and various intermediate states between the initial state and the ending state. Obtain the different state identifiers set for the multiple states; Based on each of the state identifiers and the order of change of the multiple states, the preset flow trajectory corresponding to each state is generated.

[0008] Further, the step of generating the preset flow trajectory corresponding to each state based on each state identifier and the change order of the multiple states includes: For each state, obtain the first state identifier corresponding to that state, and the second state identifiers of all states preceding that state; Generate a state identifier group consisting of the first state identifier and the second state identifier according to the order of change among multiple states; The status identifier group is used as the preset flow trajectory.

[0009] Further, retrieving the target preset flow trajectory corresponding to the current state of the target order from the trajectory configuration information includes: Determine the target status identifier corresponding to the current status of the target order; Based on the target status identifier, the target preset flow trajectory corresponding to the target status identifier is obtained from a plurality of preset flow trajectories.

[0010] Furthermore, the preset flow trajectory includes nodes corresponding to each state, and generating the flow trajectory of the target order based on the order information of the target order and the target preset flow trajectory includes: From the order information, obtain the status information of each state of the target order from the initial state to the current state, and the status information is used to describe the state; Based on the aforementioned state information, node information for each node in the target preset flow trajectory is generated, thereby obtaining the flow trajectory of the target order.

[0011] Further, after generating the flow trajectory of the target order based on the order information of the target order and the target preset flow trajectory, the process includes: Obtain multiple attribute information of the target order; the attribute information is used to describe at least one of the following: product information, invoicing information, payment information, and logistics information of the target order. Based on the aforementioned multiple attribute information, the flow trajectory of the target order is completed.

[0012] This invention, in its embodiments, determines trajectory configuration information for each type of order; wherein the trajectory configuration information includes a preset flow trajectory corresponding to each state of the order; the preset flow trajectory represents the change trajectory of the order from an initial state to the current state; when a user's status query request for a target order is detected, the target preset flow trajectory corresponding to the current state of the target order is retrieved from the trajectory configuration information; based on the order information of the target order and the target preset flow trajectory, the flow trajectory of the target order is generated.

[0013] Since the target preset flow trajectory is determined by the preset trajectory configuration information corresponding to the target order, and the flow trajectory of the target order is generated based on the target preset flow trajectory and the order information of the target order, the generation of the status flow trajectory of the target order no longer occupies the central processing unit resources, which greatly improves the performance of the central processing unit and the generation efficiency of the order status flow trajectory.

[0014] Another objective of this invention is to provide an order processing device to solve the problems of current order operation logs occupying a large amount of storage and related queries consuming central processing unit resources and affecting central processing unit performance.

[0015] To achieve the above objectives, the technical solution of the present invention is implemented as follows: An order processing device, comprising: The determination module is used to determine the trajectory configuration information of the target type of order for each type of order; wherein, the trajectory configuration information includes a preset flow trajectory corresponding to each state of the order, and the preset flow trajectory represents the change trajectory of the order from the initial state to that state; The retrieval module is used to retrieve the target preset flow trajectory corresponding to the current status of the target order from the trajectory configuration information when a user's status query request for the target order is detected. The generation module is used to generate the status flow information of the target order based on the order information of the target order and the target preset flow trajectory.

[0016] Furthermore, the generation module includes: A determination submodule is used to determine multiple states of an order of the target type, including an initial state, an ending state, and various intermediate states between the initial state and the ending state; The acquisition submodule is used to acquire different state identifiers set for multiple states; The generation submodule is used to generate the preset flow trajectory corresponding to each state based on each state identifier and the change order of the multiple states.

[0017] The order processing device and the order processing method described above have the same advantages over the prior art, and will not be elaborated here.

[0018] Another objective of this invention is to provide an electronic device to solve the problems of current order operation logs occupying a large amount of storage and related queries consuming central processing unit resources and affecting central processing unit performance.

[0019] To achieve the above objectives, the technical solution of the present invention is implemented as follows: An electronic device, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the order processing method described in any of the preceding claims.

[0020] The electronic device and the order processing method described above have the same advantages over the prior art, and will not be elaborated here.

[0021] Another objective of this invention is to provide a computer-readable storage medium to solve the problems of current order operation logs occupying a large amount of storage and related queries consuming central processing unit resources and affecting central processing unit performance.

[0022] To achieve the above objectives, the technical solution of the present invention is implemented as follows: A computer-readable storage medium comprising: When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform any of the order processing methods described above.

[0023] The computer-readable storage medium has the same advantages as the order processing method described above compared to the prior art, and will not be elaborated here. Attached Figure Description

[0024] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 A flowchart illustrating the steps of an order processing method according to Embodiment 1 of the present invention is shown. Figure 2 A flowchart illustrating the steps for determining the trajectory configuration information of a target type of order according to another embodiment of the present invention is shown. Figure 3 A flowchart illustrating the steps of generating preset flow trajectories corresponding to various order states according to another embodiment of the present invention is shown. Figure 4A flowchart illustrating the steps of retrieving a target preset flow trajectory according to another embodiment of the present invention is shown; Figure 5 A flowchart illustrating the steps for generating the flow trajectory of a target order according to another embodiment of the present invention is shown. Figure 6 A flowchart illustrating the steps for completing attribute information of the flow trajectory of a target order according to another embodiment of the present invention is shown. Figure 7 A flowchart illustrating another embodiment of the order processing method of the present invention is shown; Figure 8 A schematic diagram of the order processing device according to Embodiment 2 of the present invention is shown. Detailed Implementation

[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0026] It should be noted that, without conflict, the embodiments and features in the embodiments of the present invention can be combined with each other.

[0027] Example 1 Reference Figure 1 , Figure 1 The diagram illustrates a step-by-step flowchart of an order processing method according to Embodiment 1 of the present invention. The execution entity of this method can be an electronic device such as a server or computer. Figure 1 As shown, it includes: Step S101: When a user's status query request for a target order is detected, the target preset flow trajectory corresponding to the current status of the target order is retrieved from the trajectory configuration information; the trajectory configuration information includes the preset flow trajectory corresponding to each status of the order, and the preset flow trajectory represents the change trajectory of the order from the initial state to that state.

[0028] After a user selects and submits their product, the server generates a corresponding order. This order includes order number information, order user information, order product information, payment details, and other order attribute information, as well as order status tracking information.

[0029] For example, after a user selects and submits a product, the order status is "pending payment" until the user makes payment; after the user completes payment, the order status changes to "paid." This process of changing the order status from "pending payment" to "paid" is the order status transition trajectory.

[0030] Orders that have different status progression paths can be called different types of orders. For example, Type 1 orders have status progression paths of pending payment, paid, and completed; Type 2 orders have status progression paths of pending payment, paid, awaiting delivery, delivered, and completed.

[0031] In embodiments of the present invention, orders can be of various types. For each type of order, there is a pre-set trajectory configuration information, which includes a pre-set flow trajectory corresponding to each state in the process from order generation to order closing for that type of order.

[0032] For example, if an order of a target type is processed in the order from order generation to order closure, and the order needs to go through all states, namely state 1, state 2, and state 3, then the trajectory configuration information for this type of order includes the preset trajectory corresponding to state 1, the preset trajectory corresponding to state 2, and the preset trajectory corresponding to state 3.

[0033] The preset flow trajectory corresponding to each state is used to characterize the change trajectory of the order from the initial state to the current state. The initial state refers to the first state after the order is generated.

[0034] For example, the preset flow trajectory corresponding to state 3 is the trajectory from state 1 (initial state) to state 2 and then to state 3 (current state).

[0035] In one specific implementation, the trajectory configuration information for each type of order can be stored in the order tracking program. The order tracking program is configured on the electronic device. The order tracking program is a program capable of storing the aforementioned order information, tracking the order status progression, and managing orders.

[0036] When processing order status, the first step is to determine the trajectory configuration information for that type of order based on the order type of the target order.

[0037] When a user checks the status of an order on the client, the order tracking program detects the client's query request for the status of the target order. The query request contains order information, which may include: order type information, order product information, order number information, etc.

[0038] Extract the order type of the target order from the order information, and retrieve the corresponding trajectory configuration information based on the order type.

[0039] In one specific implementation, the order tracking program stores the state of an order after its last state change. The program determines the stored state of the target order after its last state change as its current state, and then extracts the target's preset flow trajectory corresponding to the current state from the retrieved trajectory configuration information.

[0040] For example, after the order tracking program identifies the type of the target order, it retrieves the trajectory configuration information for that type of order. This type of order goes through three states from creation to closure: State 1, State 2, and State 3. State 1 is the initial state, State 3 is the final state, and State 2 is an intermediate state between the initial and final states.

[0041] The retrieved trajectory configuration information includes the preset flow trajectory for state 1 (state 1), the preset flow trajectory for state 2 (from state 1 to state 2), and the preset flow trajectory for state 3 (from state 1 to state 2 and then to state 3).

[0042] The order tracking program then determines the current status of the target order.

[0043] If the target order is currently in state 1, retrieve the preset flow trajectory (state 1) corresponding to state 1 in the trajectory configuration information as the target preset flow trajectory; if the target order is currently in state 2, retrieve the preset flow trajectory (state 1 to state 2) corresponding to state 2 in the trajectory configuration information as the target preset flow trajectory; if the target order is currently in state 3, retrieve the preset flow trajectory (state 1 to state 2 and then to state 3) corresponding to state 3 in the trajectory configuration information as the target preset flow trajectory.

[0044] Then proceed to step S102.

[0045] Step S102: Based on the order information of the target order and the target preset flow trajectory, generate the flow trajectory of the target order.

[0046] After determining the target preset flow trajectory of the target order, the order tracking program obtains the order information of the target order based on the order number information of the target order contained in the target order status query request. Based on the order information and the target preset flow trajectory, the flow trajectory of the target order is generated.

[0047] In one specific implementation, the order information for the target order can be a textual description of the order status.

[0048] In the order tracking program, each order status identifier (status 1) has a pre-defined text description (pending payment). Based on the target preset flow trajectory of the target order determined in step S102, the corresponding text description for each status in the target preset flow trajectory is found and filled into the corresponding position in the target preset flow trajectory according to the order of status flow, thus obtaining the flow trajectory of the target order.

[0049] For example, if the target preset flow path of the target order is from state 1 to state 2, then the text descriptions of state 1 and state 2, namely "pending payment" and "paid", are obtained, and the text descriptions are combined with the target preset flow path to generate the flow path of the target order as "pending payment" to "paid".

[0050] This invention, in its embodiments, determines trajectory configuration information for each type of order; wherein the trajectory configuration information includes a preset flow trajectory corresponding to each state of the order; the preset flow trajectory represents the change trajectory of the order from an initial state to the current state; when a user's status query request for a target order is detected, the target preset flow trajectory corresponding to the current state of the target order is retrieved from the trajectory configuration information; based on the order information of the target order and the target preset flow trajectory, the flow trajectory of the target order is generated.

[0051] Since the target preset flow trajectory is determined by the preset trajectory configuration information corresponding to the target order, and the flow trajectory of the target order is generated based on the target preset flow trajectory and the order information of the target order, the generation of the status flow trajectory of the target order no longer occupies the central processing unit resources, which greatly improves the performance of the central processing unit and the generation efficiency of the order status flow trajectory.

[0052] Reference Figure 2 , Figure 2 A flowchart illustrating the steps for determining the trajectory configuration information of an order of a target type according to another embodiment of the present invention is shown, as follows: Figure 2 As shown, it includes: Step S201: Determine multiple states of the order of the target type, including an initial state, an ending state, and various intermediate states between the initial state and the ending state.

[0053] First, determine all order states for the target type from order creation to order closure, including the initial state, the final state, and intermediate states between the initial and final states.

[0054] The initial state refers to the first state after an order is generated, while the final state refers to the state when the order ends.

[0055] For example, the initial status could be pending payment, and the ending status could be order completed or refund completed.

[0056] There can be one or more intermediate states between the initial state and the final state.

[0057] Then proceed to step S202.

[0058] Step S202: Obtain the different state identifiers set for the multiple states.

[0059] Each order type and each order status has a preset status identifier, and the status identifier is different for each status.

[0060] In one specific implementation, the status identifier can be a key-value pair. Each order status corresponds to a preset key-value pair.

[0061] For example, state 1 corresponds to key value 1, state 2 corresponds to key value 2, and state 3 corresponds to key value 3.

[0062] After obtaining the key value corresponding to each status of the target type of order, proceed to step S203.

[0063] Step S203: Based on each of the state identifiers and the change order of the multiple states, generate the preset flow trajectory corresponding to each state.

[0064] When generating a preset flow trajectory for an order status, the status of the preset flow trajectory to be generated is taken as the target status. The initial status, the target status, and each intermediate status from the initial status to the target status are combined according to the order status change order, and the key values ​​corresponding to each status are combined to generate the preset flow trajectory corresponding to the target status.

[0065] For example, when generating the preset flow trajectory for state 3, state 3 is taken as the target state, and the state identifiers 1, 2, and 3 corresponding to the three states are combined in the order of state 1 (initial state), state 2 (intermediate state), and state 3 (end state) to generate the preset flow trajectory corresponding to state 3.

[0066] This invention, through its embodiments, determines multiple states of an order of the target type, including an initial state, an ending state, and various intermediate states between the initial state and the ending state; obtains different state identifiers set for the multiple states; and generates a preset flow trajectory corresponding to each state based on each state identifier and the change order of the multiple states. This allows the entire flow trajectory of an order in a given state to be obtained through the order state, greatly improving the efficiency of order flow trajectory acquisition.

[0067] Reference Figure 3, Figure 3 A flowchart illustrating the steps of generating preset flow trajectories corresponding to various order states according to another embodiment of the present invention is shown, as follows: Figure 3 As shown, it includes: Step S301: For each state, obtain the first state identifier corresponding to that state, and the second state identifiers of all states preceding that state.

[0068] Each order type and each order status has a preset status identifier, and the status identifier is different for each status.

[0069] In one specific implementation, the status identifier can be a key-value pair.

[0070] The order status to be generated based on the preset flow trajectory is taken as the target status, and the key value corresponding to the target status can be called the first status identifier.

[0071] The key value corresponding to the initial state and the key values ​​corresponding to each intermediate state from the initial state to the target state can be called the second state identifier. There can be one or more intermediate states.

[0072] For example, when generating a preset flow trajectory for state 3, state 3 is taken as the target state, and the key value 3 corresponding to state 3 is the first state identifier. The key value 1 corresponding to state 1 (initial state) and the key value 2 corresponding to state 2 (intermediate state) are the second state identifiers.

[0073] Then proceed to step S302.

[0074] Step S302: Generate a state identifier group consisting of the first state identifier and the second state identifier according to the change order among multiple states.

[0075] A state identifier group with a first state identifier and a second state identifier is generated in the order from the initial state to the intermediate state and then to the final state.

[0076] For example, the first state identifier key value 3 and the second state identifier key values ​​1 and 2 are used to generate a state identifier group in the order of 1, 2, 3, according to the corresponding state 1, state 2, and state 3.

[0077] Then proceed to step S303.

[0078] Step S303: Use the status identifier group as the preset flow trajectory.

[0079] The state identifier group obtained in step S302 is used as the preset flow trajectory of the target state. This preset flow trajectory is associated with the first state identifier corresponding to the target state, and the association is stored. A hash map is formed in which the preset flow trajectory of each state is associated with the state identifier in a one-to-one correspondence. In this hash map, the key value is each state identifier, and the array is each corresponding preset flow trajectory.

[0080] In one specific implementation, the storage structure of the hash graph is as follows: new HashMap <Integer,List <integer>> For example, the state identifier group in the order of 1, 2, 3 is used as the preset flow trajectory of state 3, and the preset flow trajectory is associated with the first state identifier key value 3. The association relationship is stored, and the key value 3 in the hash diagram corresponds to arrays 1, 2, 3.

[0081] This invention, in its embodiments, obtains a first state identifier corresponding to the target state and a second state identifier for each state, including the initial state and intermediate states from the initial state to the target state. It then generates a state identifier group consisting of the first and second state identifiers, following the order from the initial state through the intermediate states to the target state. This state identifier group is used as the preset flow trajectory and associated with the first state identifier. This allows the entire flow trajectory of an order to be obtained based on its order state, significantly improving the efficiency of order flow trajectory acquisition.

[0082] Reference Figure 4 , Figure 4 A flowchart illustrating the steps of retrieving a preset flow trajectory of a target according to another embodiment of the present invention is shown, as follows: Figure 4 As shown, it includes: Step S401: Determine the target status identifier corresponding to the current status of the target order.

[0083] Step S402: Based on the target status identifier, obtain the target preset flow trajectory corresponding to the target status identifier from multiple preset flow trajectories.

[0084] When a user queries the status of an order on the client, the order tracking program detects the client's query request for the status of the target order. Based on the order type information of the target order contained in the query request, it first retrieves the trajectory configuration information corresponding to the order type of the target order.

[0085] The trajectory configuration information includes the preset flow trajectory for each order status.

[0086] When extracting the preset flow path of the target order's current state from the preset flow path of all order states, the current state is taken as the target state.

[0087] Secondly, it is necessary to determine the target state identifier corresponding to the target state.

[0088] Based on the determined target status identifier, the array of target preset flow trajectories corresponding to the target status identifier is retrieved from the hash graph and used as the preset flow trajectory for the current status of the target order.

[0089] For example, when extracting the preset flow trajectory for state 3, state 3 is taken as the target state, the state identifier key value 3 corresponding to state 3 is determined, and the preset flow trajectory array 1, 2, 3 corresponding to key value 3 is retrieved from the hash map. The preset flow trajectories in the order of 1, 2, 3 are taken as the preset flow trajectory for state 3.

[0090] This invention, through its embodiments, determines a target status identifier corresponding to the current state of a target order; based on the target status identifier, it obtains the target preset flow trajectory corresponding to the target status identifier. This allows the preset flow trajectory for the current state of the target order to be obtained simply by using the target status identifier corresponding to the current state of the target order, significantly improving the efficiency of order flow trajectory acquisition.

[0091] Reference Figure 5 , Figure 5 A flowchart illustrating the steps for generating the flow trajectory of a target order according to another embodiment of the present invention is shown, as follows: Figure 5 As shown, it includes: Step S501: Obtain the status information of each state of the target order from the initial state to the current state from the order information, and the status information is used to describe the state.

[0092] After determining the target order's preset flow trajectory, obtain the target order's order information.

[0093] When retrieving order information for a target order, the system first obtains the status information for each state of the target order from its initial state to its current state. This status information describes the corresponding order status.

[0094] Status information can be a textual description of each status.

[0095] The method for obtaining the state information of each state is the same as step S102, and will not be repeated here.

[0096] For example, the text description for status 1 corresponding to status 1 is "pending payment", the text description for status 2 corresponding to status 2 is "paid", and the text description for status 3 corresponding to status 3 is "completed".

[0097] Then proceed to step S502.

[0098] Step S502: Based on the various state information, generate the node information of each node in the target preset flow trajectory to obtain the flow trajectory of the target order.

[0099] After obtaining the status information of each state of the target order from its initial state to its current state, each node in the target order's preset flow trajectory is generated. Each state in this preset flow trajectory corresponds to a different node, and the description information of the state corresponding to each node is completed in the flow trajectory. The flow trajectory of the target order is thus obtained.

[0100] For example, if the current status of the target order is status 3, and the corresponding preset flow trajectory is 1, 2, 3, then nodes 1, 2, and 3 of the target preset flow trajectory are generated. The description information of status 1 (pending payment) is completed in node 1, the description information of status 2 (paid) is completed in node 2, and the description information of status 3 (completed) is completed in node 3. The flow trajectory of the target order is then obtained as: pending payment to paid to completed.

[0101] This invention improves the efficiency of order flow trajectory generation by obtaining state information of each state of the target order from its initial state to its current state from the order information; and by completing the target preset flow trajectory based on each state information.

[0102] Reference Figure 6 , Figure 6 A flowchart illustrating the steps for completing attribute information of the flow trajectory of a target order according to another embodiment of the present invention is shown, as follows: Figure 6 As shown, it includes: Step S601: Obtain multiple attribute information of the target order; the attribute information is used to describe at least one of the following: product information, invoicing information, payment information, and logistics information of the target order.

[0103] Step S602: Based on the multiple attribute information, complete the flow trajectory of the target order.

[0104] After generating the flow path of the target order, other attribute information of the order can be added to the flow path based on different business needs, so that users can view it.

[0105] The order's attribute information is used to describe at least one of the following: product information, invoicing information, payment information, and logistics information of the target order.

[0106] First, in the order tracking program, various attribute information corresponding to the target order is obtained through the target order's number information. Then, this attribute information is used to complete the target order's tracking path, allowing the path to display both the order's status and its various attribute information.

[0107] This invention obtains attribute information from multiple dimensions of the target order; completes the target attribute information of the target order into the flow trajectory; so that the flow trajectory of the target order can simultaneously display other order information, making it convenient for users to view and improving user experience.

[0108] The order processing method of the present invention will be described in detail below with an example: Reference Figure 7 , Figure 7 A flowchart illustrating another embodiment of the order processing method of the present invention is shown, as follows: Figure 7 As shown, it includes: First, set up multiple order statuses for each type of order.

[0109] For example, the order status of this type of order includes status 1, status 2, and status 3.

[0110] Next, we set state 1 to state identifier 1, state 2 to state identifier 2, and state 3 to state identifier 3, and store the correspondence between each state and its identifier.

[0111] When generating the preset flow trajectory corresponding to each state, the state for which the preset flow trajectory is to be generated is taken as the target state. The initial state, the target state, and each intermediate state from the initial state to the target state are combined according to the order of order state changes, and the state identifiers corresponding to each state are combined to generate the preset flow trajectory corresponding to the target state. The generated preset flow trajectories are then associated with the state identifiers corresponding to the target state.

[0112] Status identifiers can be key-value pairs.

[0113] For example, when generating the preset flow trajectory for state 1, state 1 is taken as the target state. Since state 1 is already the initial state of the order, the state identifier 1 corresponding to state 1 is directly taken as the preset flow trajectory corresponding to state 1. And the preset flow trajectory (1) is associated with key value 1.

[0114] When generating the preset flow trajectory for state 2, state 2 is taken as the target state. Since there is no intermediate state between the initial state and state 2, the corresponding state identifiers 1 and 2 are taken as the preset flow trajectory for state 2 in the order of state 1 (initial state) and state 2 (target state). The preset flow trajectory (1, 2) is then associated with key value 2.

[0115] When generating the preset flow trajectory for state 3, state 3 is taken as the target state. In the order of state 1 (initial state), state 2 (intermediate state), and state 3 (target state), the corresponding state identifiers 1, 2, and 3 are used as the preset flow trajectory for state 3. The preset flow trajectory (1, 2, 3) is then associated with the key value 3.

[0116] The resulting key-value pair and the corresponding relationship between the key and the preset flow trajectory array can be called a hash graph.

[0117] When the order tracking program detects a user's status query request for a target order, it identifies the category to which the target order belongs and retrieves the preset hash map for that category of orders.

[0118] Then determine the current key value of the target order, and retrieve the corresponding preset flow trajectory from the preset hash map based on the current key value.

[0119] Next, the state description information of each state contained in the retrieved preset flow trajectory is obtained, and each node in the preset flow trajectory is generated. Each state in the preset flow trajectory corresponds to a different node, and the state description information corresponding to each node is completed in the flow trajectory. The flow trajectory of the target order is obtained.

[0120] For example, if the current status of the target order is status 3, and the corresponding preset flow trajectory is 1, 2, 3, then nodes 1, 2, and 3 of the target preset flow trajectory are generated. The description information of status 1 (pending payment) is completed in node 1, the description information of status 2 (paid) is completed in node 2, and the description information of status 3 (completed) is completed in node 3. The flow trajectory of the target order is then obtained as: pending payment to paid to completed.

[0121] Finally, it is also possible to obtain various attribute information of the target order. The attribute information is used to describe at least one of the target order's product information, invoicing information, payment information, and logistics information, and to complete the target order's flow trajectory with various attribute information.

[0122] Example 2 Reference Figure 8 , Figure 8 A schematic diagram of the order processing device according to Embodiment 2 of the present invention is shown, as follows: Figure 8 As shown, it includes: The retrieval module 801 is used to retrieve the target preset flow trajectory corresponding to the current state of the target order from the trajectory configuration information when a user's status query request for the target order is detected; the trajectory configuration information includes the preset flow trajectory corresponding to each state of the order, and the preset flow trajectory represents the change trajectory of the order from the initial state to that state; The generation module 802 is used to generate the status flow information of the target order based on the order information of the target order and the target preset flow trajectory.

[0123] In an optional embodiment, the generation module 802 includes: A determination submodule is used to determine multiple states of an order of the target type, including an initial state, an ending state, and various intermediate states between the initial state and the ending state; The acquisition submodule is used to acquire different state identifiers set for multiple states; The generation submodule is used to generate the preset flow trajectory corresponding to each state based on each state identifier and the change order of the multiple states.

[0124] In one optional embodiment, the trajectory generation module includes: The status identifier acquisition module is used to acquire, for each of the states, a first status identifier corresponding to that state, and second status identifiers of all states preceding that state. The status identifier generation module is used to generate a status identifier group of the first status identifier and the second status identifier according to the change order between multiple states; The result module is used to use the status identifier group as the preset flow trajectory.

[0125] In one optional embodiment, the retrieval module 801 includes: The target status identifier determination module is used to determine the target status identifier corresponding to the current status of the target order; The target preset flow trajectory acquisition module is used to acquire the target preset flow trajectory corresponding to the target status identifier from multiple preset flow trajectories based on the target status identifier.

[0126] In an optional embodiment, the generation module 802 includes: The status information acquisition module is used to acquire status information of each state of the target order from the initial state to the current state from the order information, and the status information is used to describe the state; The node information generation module is used to generate node information for each node in the target preset flow trajectory based on the various status information, thereby obtaining the flow trajectory of the target order.

[0127] In an optional embodiment, the generation module 802 further includes: The attribute information acquisition module is used to acquire multiple attribute information of the target order; the attribute information is used to describe at least one of the following: product information, invoicing information, payment information, and logistics information of the target order. The first completion module is used to complete the flow trajectory of the target order based on the multiple attribute information.

[0128] Based on the same inventive concept, embodiments of the present invention also provide an electronic device, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the order processing method described in any of the above embodiments.

[0129] Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium, comprising: When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the order processing method described in any of the above embodiments.

[0130] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

[0131] For the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, as some steps can be performed in other orders or simultaneously according to the present invention. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and components involved are not necessarily essential to the present invention.

[0132] The above provides a detailed description of the order processing method, apparatus, electronic device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.< / integer>

Claims

1. An order processing method, characterized in that, The method includes: When a user's status query request for a target order is detected, the target preset flow trajectory corresponding to the current status of the target order is retrieved from the trajectory configuration information; the trajectory configuration information includes the preset flow trajectory corresponding to each status of the order, and the preset flow trajectory represents the change trajectory of the order from the initial state to that state; Based on the order information of the target order and the target preset flow trajectory, the status flow information of the target order is generated; The orders include multiple types, and for each type of order, there is a corresponding preset trajectory configuration information; the trajectory configuration information includes the preset flow trajectory corresponding to each state in the process from order generation to order closing for each type of order; The trajectory configuration information of the target order is generated according to the following steps: The target order is determined to have multiple states, including an initial state, an ending state, and various intermediate states between the initial state and the ending state. Obtain the different state identifiers set for the multiple states; Based on each of the state identifiers and the order of change of the multiple states, the preset flow trajectory corresponding to each state is generated; The preset flow trajectory corresponding to each state is associated with and stored with the corresponding state identifier, forming a hash map with each state identifier as the key and each corresponding preset flow trajectory as an array; The preset flow trajectory includes nodes corresponding to each state. Generating the flow trajectory of the target order based on the order information of the target order and the preset flow trajectory includes: From the order information, obtain the status information of each state of the target order from the initial state to the current state, and the status information is used to describe the state; Based on the aforementioned state information, node information for each node in the target preset flow trajectory is generated, thereby obtaining the flow trajectory of the target order.

2. The method according to claim 1, characterized in that, The step of generating the preset flow trajectory corresponding to each state based on each state identifier and the change order of multiple states includes: For each state, obtain the first state identifier corresponding to that state, and the second state identifiers of all states preceding that state; Generate a state identifier group consisting of the first state identifier and the second state identifier according to the order of change among multiple states; The status identifier group is used as the preset flow trajectory.

3. The method according to claim 1, characterized in that, The step of retrieving the target preset flow trajectory corresponding to the current state of the target order from the trajectory configuration information includes: Determine the target status identifier corresponding to the current status of the target order; Based on the target status identifier, the target preset flow trajectory corresponding to the target status identifier is obtained from a plurality of preset flow trajectories.

4. The method according to claim 1, characterized in that, After generating the flow trajectory of the target order based on the order information of the target order and the target preset flow trajectory, the process includes: Obtain multiple attribute information of the target order; the attribute information is used to describe at least one of the following: product information, invoicing information, payment information, and logistics information of the target order. Based on the aforementioned multiple attribute information, the flow trajectory of the target order is completed.

5. An order processing device, characterized in that, The device includes: The retrieval module is used to retrieve the target preset flow trajectory corresponding to the current state of the target order from the trajectory configuration information when a user's status query request for the target order is detected; the trajectory configuration information includes the preset flow trajectory corresponding to each state of the order, and the preset flow trajectory represents the change trajectory of the order from the initial state to that state; The generation module is used to generate the status flow information of the target order based on the order information of the target order and the target preset flow trajectory; The orders include multiple types, and for each type of order, there is a corresponding preset trajectory configuration information; the trajectory configuration information includes the preset flow trajectory corresponding to each state in the process from order generation to order closing for each type of order; The generation module includes: A determination submodule is used to determine multiple states of the target order, including an initial state, an ending state, and various intermediate states between the initial state and the ending state; The acquisition submodule is used to acquire different state identifiers set for multiple states; A generation submodule is used to generate the preset flow trajectory corresponding to each state based on each state identifier and the change order of the multiple states; The generation module is further configured to associate and store the preset flow trajectory corresponding to each state with the corresponding state identifier, forming a hash map with each state identifier as a key and each corresponding preset flow trajectory as an array; The preset flow trajectory includes nodes corresponding to each state, and the generation module further includes: The status information acquisition module is used to acquire status information of each state of the target order from the initial state to the current state from the order information, and the status information is used to describe the state; The node information generation module is used to generate node information for each node in the target preset flow trajectory based on the various status information, thereby obtaining the flow trajectory of the target order.

6. An electronic device, characterized in that, The electronic device includes: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, implements the order processing method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the order processing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Operation detection method and device for intelligent equipment

    CN110533014A

  • Logistics data processing method and device, equipment and storage medium

    CN111985871A

  • Logistics track convergence query method, apparatus and device, and storage medium

    CN114297524A

  • Order processing method and device, computer equipment and storage medium

    CN114820089A