Logistics order cancellation confirmation method and device
By adding logistics order status fields and real-time update mechanisms in the OMS system, the problem of the express company taking risks when logistics orders are cancelled in the existing technology is solved, real-time tracking of order status and rationalizing cancellation operations, and reducing the express company's Risk and cost.
Patent Information
- Application Number
- CN202011341765.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-25
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2040-11-25
AI Technical Summary
When existing OMS systems allow customers to cancel logistics orders, the express delivery company may take risks, resulting in waste of resources and increase costs when the WMS system has been shipped.
By adding fields of logistics order status in the order table, the logistics status of the order is updated in real time, and determining whether merchants are allowed to cancel orders based on the logistics order status, thereby reducing the interaction between the OMS system and the WMS system.
Real-time update and tracking of logistics order status is realized, relevant operations for canceling orders are rationalized, system interaction is reduced, and risks and costs of express delivery companies are reduced.
Smart Images

Figure CN112418765B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of information processing, and in particular to a logistics order cancellation confirmation method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the development of the e-commerce logistics industry, merchant platforms have higher and higher requirements for the timeliness, safety, and service of express delivery. Express delivery companies also attach great importance to the customer experience of merchants. Among them, for the logistics order cancellation service, the existing OMS system (i.e., order management system) allows customers to operate at any time, but the WMS system (i.e., warehouse management system) may have already shipped the ordered goods. In this way, express delivery companies will bear great risks, resulting in waste of resources and increased costs. Summary of the invention
[0003] The purpose of this application is to provide a logistics order cancellation confirmation method and device, electronic device, and computer-readable storage medium, which can determine whether the merchant is allowed to cancel the order according to the different status of the logistics order, reduce the interaction between the OMS system and the WMS system, and reduce the risks of express delivery companies.
[0004] The purpose of this application is achieved by the following technical solutions:
[0005] In a first aspect, the present application provides a logistics order cancellation confirmation method, the method comprising: obtaining an order table, adding a field for logistics order status in the order table, the order table comprising a field for order identification, and the logistics order status of the order is used to indicate the logistics status of the order; receiving logistics status update information, and updating the logistics order status of the corresponding order in the order table in real time according to the logistics status update information; receiving an order cancellation request sent by a user device, obtaining an order identification of a first order according to the order cancellation request, and obtaining the logistics order status of the first order from the order table according to the order identification of the first order; determining whether the first order can be canceled according to the logistics order status of the first order; if the first order can be canceled, sending a confirmation cancellation request to a warehouse management system so that the warehouse management system cancels the first order; if the first order cannot be canceled, sending a non-cancellable request to the user device. The beneficial effect of this technical solution is that it defines the logistics order status, updates the logistics order status of each order in real time, and determines whether the operation of canceling the order is feasible based on the logistics order status. Merchant users can also cancel the order at any time, but the OMS system will judge the logistics order status. If the logistics order status is to be received, to be picked up, etc., the order can be canceled, then the cancellation can be made and the WMS system will be notified. If the logistics order status is to be picked up, shipped, etc., the order cannot be canceled, then the OMS system does not agree to the user to cancel the order, returns the result of disagreement with the cancellation to the user, and does not request the WMS system, thereby realizing real-time update and tracking of the logistics order status, making the relevant operations of canceling the order more reasonable, and reducing the interaction between the OMS system and the WMS system, which not only satisfies the merchant user's experience but also reduces the risk of express companies, reduces the waste of express resources, and reduces the cost of express companies.
[0006] In some optional embodiments, the parameters carried by the order cancellation request include at least the order identification of the first order; and obtaining the order identification of the first order according to the order cancellation request includes: detecting whether the parameters carried by the order cancellation request all have values; if all have values, obtaining the order identification of the first order. The beneficial effect of this technical solution is that the parameters carried by the order cancellation request are detected to see whether they have values, and if all the parameters have values, subsequent operations (obtaining the order identification, querying the logistics order status of the order based on it, etc.) are performed, thereby reducing the waste of computing resources and increasing the security of the system.
[0007] In some optional embodiments, the method further comprises: if at least one parameter has no value, prompting the user that an error has occurred. The beneficial effect of this technical solution is that when a parameter has no value, an error is reported to the user, so that the user understands that an error has occurred.
[0008] In some optional embodiments, the receiving of the order cancellation request sent by the user device includes: receiving the order cancellation request sent by the user device through an interface, the parameters carried by the order cancellation request include an interface method identifier and an order identifier of the first order; the obtaining of the order identifier of the first order according to the order cancellation request includes: detecting whether the interface method identifier corresponds to the interface; if so, obtaining the order identifier of the first order. The beneficial effect of this technical solution is that the interface method identifier carried by the order cancellation request is verified with the interface, and only subsequent operations are performed if they correspond to the interface, thereby reducing the waste of computing resources and increasing the security of the system.
[0009] In some optional embodiments, the method further comprises: if there is no correspondence, prompting the user that an error has occurred. The beneficial effect of this technical solution is that when the interface method identifier does not correspond to the interface, an error is reported to the user, so that the user understands the error.
[0010] In some optional embodiments, the receiving of an order cancellation request sent by a user device includes: receiving the order cancellation request sent by the user device through an interface, the parameters carried by the order cancellation request include a user token and an order identifier of the first order; the obtaining of the order identifier of the first order according to the order cancellation request includes: detecting whether the user token is consistent with the interface token stored in the interface; if they are consistent, obtaining the order identifier of the first order. The beneficial effect of this technical solution is that a consistency check is performed on the user token carried in the order cancellation request and the interface token stored in the interface, and subsequent operations are performed only after the check passes, thereby reducing the waste of computing resources and increasing the security of the system.
[0011] In some optional embodiments, the method further comprises: if they are inconsistent, prompting the user that an error has occurred. The beneficial effect of this technical solution is that when the user token and the interface token are inconsistent, an error is reported to the user, so that the user understands the error.
[0012] In some optional embodiments, the method further includes: generating a new token at regular intervals; and using the new token to update the interface token stored in the interface and the user token stored in each user device corresponding to the interface. The beneficial effect of this technical solution is that the merchant's authorization information (i.e., token) is updated at regular intervals, which improves security while preventing the merchant's authorization information from expiring.
[0013] In some optional embodiments, if the first order is not cancelable, sending a non-cancellable request to the user device includes: if the first order is not cancelable, sending a non-cancellable request including the logistics order status of the first order to the user device. The beneficial effect of this technical solution is that when an order is not cancelable, the user is informed of the current logistics order status of the order, so that the user understands that the reason why the order cannot be canceled is because the order is in a non-cancellable order situation such as the order has been collected or shipped, so as to gain the understanding of the user and improve the user experience.
[0014] In some optional embodiments, if the first order is not cancelable, a non-cancellable request is sent to the user device, including: if the first order is not cancelable, a non-cancellable request is sent to the user device, and the user is provided with an option to insist on cancellation; after receiving a selection instruction for the option to insist on cancellation, the freight of the first order is recalculated, the freight is displayed to the user, and the user is provided with an option to confirm cancellation; after receiving a selection instruction for the option to confirm cancellation, the order is intercepted in real time. The beneficial effect of this technical solution is that if the user insists on cancellation, a real-time interception service can be provided, but the corresponding freight calculation rules of the order will also change. If the user can accept the required freight, the order can be intercepted in real time for the user, further improving the user experience.
[0015] In some optional embodiments, the recalculation of the freight of the first order includes: obtaining the most recent scan record of the first order, obtaining the next logistics station of the first order according to the scan record; and calculating the round-trip freight between the origin of the first order and the next logistics station as the freight. The beneficial effect of this technical solution is that, since the order cannot be intercepted between two stations, the fastest interception action occurs at the destination station on the way, and the round-trip freight between the origin and the interception point is calculated as the new freight, which can balance the interests between the express company and the merchant.
[0016] In some optional embodiments, the method further includes: saving an order cancellation request record corresponding to the order cancellation request. The beneficial effect of this technical solution is that, in order to deal with abnormal problems, the OMS system can record all request records, facilitate problem tracing and timely investigation.
[0017] In a second aspect, the present application provides a logistics order cancellation confirmation device, which includes: an adding module, used to obtain an order table, and add a field for the logistics order status in the order table, wherein the order table includes a field for the order identification, and the logistics order status of the order is used to indicate the logistics status of the order; an updating module, used to receive logistics status update information, and update the logistics order status of the corresponding order in the order table in real time according to the logistics status update information; a receiving module, used to receive an order cancellation request sent by a user device, obtain the order identification of the first order according to the order cancellation request, and obtain the logistics order status of the first order from the order table according to the order identification of the first order; a confirmation module, used to determine whether the first order can be canceled according to the logistics order status of the first order; if the first order can be canceled, a confirmation cancellation request is sent to the warehouse management system to enable the warehouse management system to cancel the first order; if the first order cannot be canceled, a non-cancellable request is sent to the user device.
[0018] In some optional embodiments, the parameters carried by the order cancellation request include at least the order identifier of the first order; the receiving module is also used to: detect whether the parameters carried by the order cancellation request all have values; if all have values, obtain the order identifier of the first order.
[0019] In some optional embodiments, the receiving module is also used to: receive an order cancellation request sent by the user device through an interface, the parameters carried by the order cancellation request include an interface method identifier and an order identifier of the first order; detect whether the interface method identifier corresponds to the interface; if so, obtain the order identifier of the first order.
[0020] In some optional embodiments, the receiving module is also used to: receive an order cancellation request sent by the user device through an interface, the parameters carried by the order cancellation request including a user token and an order identifier of the first order; detect whether the user token is consistent with the interface token saved in the interface; if they are consistent, obtain the order identifier of the first order.
[0021] In some optional embodiments, the receiving module is further used to: generate a new token at a regular interval; and use the new token to update the interface token stored in the interface and the user token stored in each user device corresponding to the interface.
[0022] In some optional embodiments, the confirmation module is further used to: if the first order is non-cancellable, send a non-cancellable request containing the logistics order status of the first order to the user device.
[0023] In some optional embodiments, the confirmation module is also used to: if the first order is non-cancellable, send a non-cancellable request to the user device, and provide the user with an option to insist on cancellation; after receiving a selection instruction for the option to insist on cancellation, recalculate the shipping cost of the first order, display the shipping cost to the user, and provide the user with an option to confirm cancellation; after receiving a selection instruction for the option to confirm cancellation, intercept the order in real time.
[0024] In some optional embodiments, the confirmation module is also used to: obtain the most recent scanning record of the first order, and obtain the next logistics site of the first order based on the scanning record; calculate the round-trip freight between the origin of the first order and the next logistics site as the freight.
[0025] In some optional embodiments, the device further includes a saving module, and the saving module is used to save an order cancellation request record corresponding to the order cancellation request.
[0026] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, which implements the steps of any of the above methods when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The present application is further described below in conjunction with the accompanying drawings and embodiments.
[0029] Figure 1 It is a flow chart of a logistics order cancellation confirmation method provided in an embodiment of the present application;
[0030] Figure 2 It is a flowchart of a detection order cancellation request provided in an embodiment of the present application;
[0031] Figure 3 It is a flowchart of a detection order cancellation request provided in an embodiment of the present application;
[0032] Figure 4 It is a flowchart of a detection order cancellation request provided in an embodiment of the present application;
[0033] Figure 5 It is a flow chart of a logistics order cancellation confirmation method provided in an embodiment of the present application;
[0034] Figure 6It is a structural schematic diagram of a logistics order cancellation confirmation device provided in an embodiment of the present application;
[0035] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0036] Figure 8 It is a structural diagram of a program product for implementing a logistics order cancellation confirmation method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] Below, the present application is further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.
[0038] See also Figure 1 The embodiment of the present application provides a method for confirming the cancellation of a logistics order, and the method includes steps S101 to S106. The method can be applied to an OMS system to manage a large number of logistics orders.
[0039] Step S101: Get an order table, add a field for the logistics order status to the order table, the order table includes a field for the order ID, and the logistics order status of the order is used to indicate the logistics status of the order. The order table may contain relevant information of multiple orders. The order ID is used to uniquely identify an order. The order ID is, for example, an order number. The order ID may include at least one of the following: letters, numbers, Chinese characters, and special symbols. The logistics order status of an order may include at least one of the following: to be received, rejected, to be collected, to be confirmed, to be signed, shipped, completed, rejected, rejected, voided, and being cancelled.
[0040] Step S102: receiving logistics status update information, and updating the logistics order status of the corresponding order in the order table in real time according to the logistics status update information. The corresponding order refers to the order corresponding to the logistics status update information. When the logistics status update information corresponds to one order, the logistics order status of one order can be updated according to the logistics status update information. When the logistics status update information corresponds to multiple orders, the logistics order status of multiple orders can be updated according to the logistics status update information.
[0041] Step S103: receiving an order cancellation request sent by a user device, obtaining an order identifier of the first order according to the order cancellation request, and obtaining the logistics order status of the first order from the order table according to the order identifier of the first order. The user device is, for example, a mobile phone, a computer, a tablet computer, a smart wearable device, etc., and an app (application) may be installed on the user device. The user device may send an order cancellation request to the OMS system through the app, or may access a specified website and send an order cancellation request to the OMS system.
[0042] See also Figure 2 In some optional embodiments, the parameters carried by the order cancellation request may include at least the order identifier of the first order; the step of obtaining the order identifier of the first order according to the order cancellation request in step S103 may include steps S201 to S202. The parameters carried by the order cancellation request may include at least one of the following: interface method identifier, user token, order identifier, and business message data.
[0043] Step S201: Check whether all parameters carried in the order cancellation request have values.
[0044] Step S202: If all of them have values, the order ID of the first order is obtained. The parameters carried in the order cancellation request are checked for values. If all of the parameters have values, subsequent operations (obtaining the order ID, querying the logistics order status of the order based on it, etc.) are performed, thereby reducing the waste of computing resources and increasing the security of the system.
[0045] Further preferably, continue to refer to Figure 2 In some optional embodiments, the method may further include step S203: if at least one parameter has no value, prompting the user that an error has occurred. Specifically, the user may be prompted that the reason for the error is that some parameters (such as interface method identifiers or user tokens) have no values. Thus, when a parameter has no value, an error is reported to the user, so that the user understands the error.
[0046] See also Figure 3 In some optional embodiments, the step of receiving an order cancellation request sent by a user device in step S103 may include: receiving an order cancellation request sent by the user device through an interface, the parameters carried by the order cancellation request including an interface method identifier and an order identifier of the first order; the step of obtaining the order identifier of the first order according to the order cancellation request in step S103 may include steps S301 to S302.
[0047] Step S301: Detect whether the interface method identifier corresponds to the interface.
[0048] Step S302: If yes, then obtain the order ID of the first order. Verify the interface method ID carried by the order cancellation request with the interface, and only perform subsequent operations if they correspond to the interface, thereby reducing the waste of computing resources and increasing the security of the system.
[0049] Further preferably, continue to refer to Figure 3 In some optional embodiments, the method may further include step S303: if not corresponding, prompting the user that an error has occurred. Specifically, the user may also be prompted that the reason for the error is that the interface method identifier does not correspond to the interface. One interface corresponds to one interface method identifier, and if the interface method identifier does not correspond to the interface, an error is reported. Thus, when the interface method identifier does not correspond to the interface, an error is reported to the user, so that the user understands the error.
[0050] See also Figure 4 In some optional embodiments, the step of receiving an order cancellation request sent by a user device in step S103 may include: receiving an order cancellation request sent by the user device through an interface, wherein the parameters carried by the order cancellation request include a user token and an order identifier of the first order; the step of obtaining the order identifier of the first order according to the order cancellation request in step S103 may include steps S401 to S402.
[0051] Step S401: Check whether the user token is consistent with the interface token stored in the interface.
[0052] Step S402: If they are consistent, the order identifier of the first order is obtained. The user token carried in the order cancellation request and the interface token stored in the interface are checked for consistency. Only after the check is passed, subsequent operations are performed, thereby reducing the waste of computing resources and increasing the security of the system.
[0053] Further preferably, continue to refer to Figure 4 In some optional embodiments, the method may further include step S403: if they are inconsistent, prompting the user that an error has occurred. Specifically, the user may also be prompted that the reason for the error is that the user token is inconsistent with the interface token. The user token in the parameters carried by the order cancellation request must be consistent with the interface token stored in the interface. If they are inconsistent, there is no permission to access the interface and an error is reported. Thus, when the user token and the interface token are inconsistent, an error is reported to the user so that the user understands the error.
[0054] Continue to see Figure 4In the above embodiment, the method may further include step S400: generating a new token regularly; using the new token to update the interface token stored in the interface and the user token stored in each user device corresponding to the interface. Regularly updating the merchant's authorization information (i.e., token) improves security while preventing the merchant's authorization information from expiring.
[0055] Step S104: Determine whether the first order can be canceled according to the logistics order status of the first order.
[0056] Step S105: If the first order can be canceled, a cancellation confirmation request is sent to the warehouse management system so that the warehouse management system cancels the first order.
[0057] Step S106: If the first order is not cancelable, a non-cancellable request is sent to the user equipment.
[0058] Specifically, the feasibility of canceling an order is determined based on the logistics order status. For example, when the logistics order status is to be received, the user is allowed to cancel the order. If it is in other logistics order status, it is not possible, that is, the user is not allowed to cancel the order. When the order can be canceled, the OMS system will generate a confirmation cancellation request to notify the WMS system. Through the interface between the OMS system and the WMS system, the confirmation cancellation request information is packaged to inform the WMS system that the order needs to be canceled.
[0059] In some optional embodiments, the step S106 may include: if the first order is not cancelable, sending a non-cancellable request including the logistics order status of the first order to the user device. When the order is not cancelable, the user is informed of the current logistics order status of the order, so that the user understands that the reason why the order cannot be canceled is because the order is in a non-cancellable order situation such as the order has been picked up or shipped, so as to gain the user's understanding and improve the user's experience.
[0060] In some optional embodiments, step S106 may include: if the first order cannot be cancelled, sending a non-cancellable request to the user device, and providing the user with an option to insist on cancellation; after receiving a selection instruction for the option to insist on cancellation, recalculating the shipping cost of the first order, displaying the shipping cost to the user, and providing the user with an option to confirm cancellation; after receiving a selection instruction for the option to confirm cancellation, intercepting the order in real time. Thus, if the merchant user insists on cancellation, a real-time interception service can be provided, but the corresponding shipping cost calculation rules of the order will also change. If the user can accept the required shipping cost, the order can be intercepted in real time for the user, further improving the user experience.
[0061] Specifically, in the above embodiment, the step of recalculating the freight of the first order may include: obtaining the most recent scan record of the first order, obtaining the next logistics site of the first order according to the scan record; and calculating the round-trip freight between the origin of the first order and the next logistics site as the freight. Since the order cannot be intercepted between two sites, the fastest interception action occurs at the destination site on the way. Calculating the round-trip freight between the origin and the interception site as the new freight can balance the interests of the express company and the merchant user.
[0062] In some optional embodiments, the method may further include: saving an order cancellation request record corresponding to the order cancellation request. In order to deal with abnormal problems, the OMS system may record all request records to facilitate problem tracing and timely troubleshooting. Further preferably, the step of saving the order cancellation request record corresponding to the order cancellation request may include: saving the order cancellation request record corresponding to the order cancellation request and returning the interface log record.
[0063] The above embodiment defines the logistics order status, updates the logistics order status of each order in real time, and determines whether the operation of canceling the order is feasible based on the logistics order status. Merchant users can also cancel the order at any time, but the OMS system will determine the logistics order status. If the logistics order status is to be received, to be picked up, etc., the order can be canceled, then the cancellation can be performed and the WMS system will be notified. If the logistics order status is to be picked up, shipped, etc., the order cannot be canceled, then the OMS system does not agree to the user to cancel the order, returns the result of disagreement with the cancellation to the user, and does not request the WMS system, thereby realizing real-time update and tracking of the logistics order status, making the related operations of canceling the order more reasonable, reducing the interaction between the OMS system and the WMS system, satisfying the merchant user's experience, reducing the risk of express companies, reducing the waste of express resources, and reducing the cost of express companies.
[0064] See also Figure 5 , an embodiment of the present application also provides a logistics order cancellation confirmation method, including steps S501 to S506.
[0065] Step S501: the user equipment of the merchant user sends an order cancellation request to the OMS system through the interface between the user equipment and the OMS system.
[0066] Step S502: The OMS system parses and processes the received interface message to obtain the parameters carried by the order cancellation request, which may include, for example, the interface method identifier, user token, order number, and business message data. The OMS system can detect whether the interface method identifier, user token, order number, and business message data have values, perform consistency check on the interface method identifier and the interface, and perform consistency check on the user token and the interface token saved by the interface.
[0067] Step S503: The OMS system queries the logistics order status of the order according to the order number; if the logistics order status of the order is waiting for collection, execute step S504; if the logistics order status of the order is not waiting for collection, execute step S505.
[0068] Step S504: the OMS system sends a confirmation cancellation request to the WMS system through the interface between the OMS system and the WMS system, notifying the WMS system to cancel the order, and executing step S506.
[0069] Step S505: The OMS system sends a non-cancellable request to the user device through the interface between the OMS system and the user device, informing the merchant that the user order cancellation failed and the reason. The reason may be, for example, that the order is in a state such as pending confirmation, pending signature, shipped, delivered, rejected, refused, invalidated or cancelled, and then executes step S506.
[0070] Step S506: Record the received order cancellation request and return interface log.
[0071] See also Figure 6 The embodiment of the present application also provides a logistics order cancellation confirmation device, the device comprising:
[0072] Adding module 101, used to obtain an order table, and add a field of logistics order status in the order table, wherein the order table includes a field of order identification, and the logistics order status of the order is used to indicate the logistics status of the order;
[0073] An updating module 102 is used to receive logistics status update information, and update the logistics order status of the corresponding order in the order table in real time according to the logistics status update information;
[0074] The receiving module 103 is configured to receive an order cancellation request sent by a user device, obtain an order identifier of the first order according to the order cancellation request, and obtain a logistics order status of the first order from the order table according to the order identifier of the first order;
[0075] The confirmation module 104 is used to determine whether the first order can be canceled according to the logistics order status of the first order; if the first order can be canceled, a confirmation cancellation request is sent to the warehouse management system so that the warehouse management system cancels the first order; if the first order cannot be canceled, a non-cancellable request is sent to the user device.
[0076] In some optional embodiments, the parameters carried by the order cancellation request include at least the order identifier of the first order; the receiving module 103 can also be used to: detect whether the parameters carried by the order cancellation request all have values; if all have values, obtain the order identifier of the first order.
[0077] In some optional embodiments, the receiving module 103 can also be used to: receive an order cancellation request sent by the user device through an interface, the parameters carried by the order cancellation request include an interface method identifier and an order identifier of the first order; detect whether the interface method identifier corresponds to the interface; if so, obtain the order identifier of the first order.
[0078] In some optional embodiments, the receiving module 103 can also be used to: receive an order cancellation request sent by the user device through an interface, the parameters carried by the order cancellation request include a user token and an order identifier of the first order; detect whether the user token is consistent with the interface token saved in the interface; if they are consistent, obtain the order identifier of the first order.
[0079] In some optional embodiments, the receiving module 103 may also be used to: generate a new token at a fixed time; and use the new token to update the interface token stored in the interface and the user token stored in each user device corresponding to the interface.
[0080] In some optional embodiments, the confirmation module 104 may also be used to: if the first order is non-cancellable, send a non-cancellable request including the logistics order status of the first order to the user device.
[0081] In some optional embodiments, the confirmation module 104 can also be used for: if the first order is not cancelable, sending a non-cancellable request to the user device, and providing the user with an option to insist on cancellation; after receiving an instruction to select the option to insist on cancellation, recalculating the shipping cost of the first order, displaying the shipping cost to the user, and providing the user with an option to confirm cancellation; after receiving an instruction to select the option to confirm cancellation, intercepting the order in real time.
[0082] In some optional embodiments, the confirmation module 104 can also be used to: obtain the most recent scanning record of the first order, and obtain the next logistics site of the first order based on the scanning record; calculate the round-trip freight between the origin of the first order and the next logistics site as the freight.
[0083] In some optional embodiments, the device may further include a saving module 105, and the saving module 105 is used to save the order cancellation request record corresponding to the order cancellation request.
[0084] See also Figure 7 The embodiment of the present application further provides an electronic device 200, which includes at least one memory 210, at least one processor 220, and a bus 230 connecting different platform systems.
[0085] The memory 210 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 211 and / or a cache memory 212 , and may further include a read-only memory (ROM) 213 .
[0086] The memory 210 also stores a computer program, which can be executed by the processor 220, so that the processor 220 performs the steps of the method for canceling and confirming a logistics order in the embodiment of the present application (such as Figure 1 Memory 210 may also include a program / utility 214 having a set (at least one) of program modules 215, such program modules including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.
[0087] Accordingly, the processor 220 may execute the above-mentioned computer programs, and may execute the program / utility 214 .
[0088] The bus 230 may be a bus representing one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
[0089] The electronic device 200 may also communicate with one or more external devices 240 such as keyboards, pointing devices, Bluetooth devices, etc., and may also communicate with one or more devices that can interact with the electronic device 200, and / or communicate with any device (such as a router, a modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. Such communication may be performed through an input / output (I / O) interface 250. In addition, the electronic device 200 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through a network adapter 260. The network adapter 260 may communicate with other modules of the electronic device 200 through the bus 230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.
[0090] The present application also provides a computer-readable storage medium for storing a computer program, which, when executed, implements the steps of the logistics order cancellation confirmation method in the present application (such as Figure 1 shown). Figure 8 The program product 300 provided in this embodiment for implementing the above method is shown, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product 300 of the present invention is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. The program product 300 can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0091] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium other than the readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, an apparatus, or a device. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The program code for performing the operation of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server. Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0092] This application is explained from the perspectives of purpose of use, effectiveness, progress and novelty. The practical progress it has is in line with the functional enhancement and usage requirements emphasized by the Patent Law. The above description and drawings of this application are only the preferred embodiments of this application, and are not intended to limit this application. Therefore, all structures, devices, features, etc. that are similar or identical to those of this application, that is, all equivalent replacements or modifications made in accordance with the scope of the patent application of this application, should fall within the scope of protection of the patent application of this application.
Claims
1. A logistics order cancellation confirmation method, characterized in that: The method comprises: Obtain an order table, and add a field for logistics order status in the order table, wherein the order table includes a field for order identification, and the logistics order status of the order is used to indicate the logistics status of the order; Receive logistics status update information, and update the logistics order status of the corresponding order in the order table in real time according to the logistics status update information; receiving an order cancellation request sent by a user device, obtaining an order identifier of the first order according to the order cancellation request, and obtaining a logistics order status of the first order from the order table according to the order identifier of the first order; determining whether the first order can be canceled according to the logistics order status of the first order; if the first order can be canceled, sending a confirmation cancellation request to a warehouse management system so that the warehouse management system cancels the first order; if the first order cannot be canceled, sending a non-cancellation request to the user device, and provide users with the option to persist in cancelling; After receiving a selection instruction for the option to insist on cancellation, recalculate the shipping cost of the first order, display the shipping cost to the user, and provide the user with an option to confirm cancellation; The recalculating the shipping fee of the first order includes: Obtaining the most recent scan record of the first order, and obtaining the next logistics site of the first order according to the scan record; The round-trip freight between the origin of the first order and the next logistics site is calculated as the freight.
2. The logistics order cancellation confirmation method according to claim 1, characterized in that: The parameters carried by the order cancellation request include at least the order identifier of the first order; The obtaining the order identifier of the first order according to the order cancellation request includes: Check whether all parameters carried in the order cancellation request have values; If both have values, the order ID of the first order is obtained.
3. The logistics order cancellation confirmation method according to claim 1 is characterized in that: The receiving an order cancellation request sent by a user device includes: Receiving, through an interface, an order cancellation request sent by the user equipment, wherein parameters carried in the order cancellation request include an interface method identifier and an order identifier of the first order; The obtaining the order identifier of the first order according to the order cancellation request includes: Detecting whether the interface method identifier corresponds to the interface; If yes, the order ID of the first order is obtained.
4. The logistics order cancellation confirmation method according to claim 1, characterized in that: The receiving an order cancellation request sent by a user device includes: Receiving, through an interface, an order cancellation request sent by the user device, wherein parameters carried in the order cancellation request include a user token and an order identifier of the first order; The obtaining the order identifier of the first order according to the order cancellation request includes: Check whether the user token is consistent with the interface token stored in the interface; If they are consistent, the order identifier of the first order is obtained.
5. The logistics order cancellation confirmation method according to claim 4 is characterized in that: The method further comprises: Generate new tokens regularly; The new token is used to update the interface token stored in the interface and the user token stored in each user device corresponding to the interface.
6. The logistics order cancellation confirmation method according to claim 1, characterized in that: If the first order is not cancelable, sending a non-cancellable request to the user equipment includes: If the first order is non-cancellable, a non-cancellable request including the logistics order status of the first order is sent to the user device.
7. The logistics order cancellation confirmation method according to claim 1, characterized in that: If the first order is not cancelable, sending a non-cancellable request to the user equipment includes: After receiving a selection instruction for the option to confirm cancellation, the order is intercepted in real time.
8. The logistics order cancellation confirmation method according to claim 1, characterized in that: The method further comprises: The order cancellation request record corresponding to the order cancellation request is saved.
9. A logistics order cancellation confirmation device, characterized in that: The device comprises: Adding a module, used to obtain an order table, and add a field of logistics order status in the order table, wherein the order table includes a field of order identification, and the logistics order status of the order is used to indicate the logistics status of the order; An updating module, used for receiving logistics status update information, and updating the logistics order status of the corresponding order in the order table in real time according to the logistics status update information; A receiving module, configured to receive an order cancellation request sent by a user device, obtain an order identifier of the first order according to the order cancellation request, and obtain a logistics order status of the first order from the order table according to the order identifier of the first order; a confirmation module, configured to determine whether the first order can be canceled according to the logistics order status of the first order; if the first order can be canceled, send a confirmation cancellation request to the warehouse management system so that the warehouse management system cancels the first order; if the first order cannot be canceled, send a non-cancellation request to the user device and provide the user with an option to insist on cancellation; After receiving a selection instruction for the option to insist on cancellation, recalculate the shipping cost of the first order, display the shipping cost to the user, and provide the user with an option to confirm cancellation; The recalculating the shipping fee of the first order includes: Obtaining the most recent scan record of the first order, and obtaining the next logistics site of the first order according to the scan record; The round-trip freight between the origin of the first order and the next logistics site is calculated as the freight.
Citation Information
Patent Citations
Information interactive method and device of electronic business platform and logistics trading platform
CN102880947A
Smartwatch with a graphical user interface
CN304300625S