Multi-parcel logistics order processing method and device
By calculating the estimated amount of multi-paragraph logistics orders and comparing them with user balances, the problem of long-term processing of multi-paragraph logistics orders in the existing technology is solved, and the feedback of fast order placing results and accurate balance prepayment are achieved, which improves user experience and interface response speed.
Patent Information
- Application Number
- CN202311248182.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-26
- Publication Date
- 2025-03-28
AI Technical Summary
When handling multi-paragraph logistics orders, the existing international logistics platform needs to conduct separate trial calculations on each package, which results in a long time-consuming process, which can easily cause interface timeout or connection failure, reducing customer experience.
By calculating the number of parcels in a multi-paragraph logistics order and the estimated parcels obtained in advance, the estimated amount of the logistics order is calculated and compared with the user's balance to determine the ordering results and initiate the balance advancement asynchronously.
The response time of users placing an order to learn the order results is shortened, the response speed of the interface is improved, the user's placing an order experience is improved, and the estimated amount of the estimated amount is adjusted through the trial calculation and the accuracy of the pre-occupation is obtained, ensuring the accuracy of the pre-occupation.
Smart Images

Figure CN119722206A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of logistics technology, and in particular to a multi-package logistics order processing method and device. Background Art
[0002] At present, when a customer places a logistics order on the international logistics platform and the logistics order contains multiple packages, the international logistics platform calls the interface of the financial system to make the financial system calculate the amount of each package, and then summarizes the total amount of the logistics order to determine whether the customer's account balance is sufficient. The international logistics platform determines whether the order is successful based on the feedback from the financial system on whether the customer's account balance is sufficient, and feedbacks the result of whether the order is successful to the customer.
[0003] During this process, the financial system needs to perform a separate calculation for each package and then summarize them to get the result of whether the account balance is sufficient. Only then can the international logistics platform provide feedback on whether the order is successful. This causes the entire process to take a long time and is prone to interface timeouts or connection failures. In addition, customers do not know the results of their order until the calculation process is completed. The process is slow and reduces the customer experience. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a multi-package logistics order processing method and device, which can use the number of packages in the multi-package logistics order and the pre-obtained estimated package amount to calculate the estimated amount of the logistics order, and after comparing it with the user's balance, it can be known whether the user has successfully placed the order. While feeding back the order result to the user, asynchronously initiate balance pre-occupancy, shortening the response time from the user placing the order to knowing the order result, thereby improving the user's ordering experience.
[0005] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing a multi-package logistics order is provided.
[0006] A multi-package logistics order processing method according to an embodiment of the present invention includes: obtaining a multi-package logistics order and user information corresponding to the multi-package logistics order, the user information including: an estimated package amount and a user balance; determining an estimated amount result corresponding to the multi-package logistics order according to the number of packages indicated by the multi-package logistics order and the estimated package amount; determining an order result corresponding to the multi-package logistics order according to the estimated amount result and the user balance; and asynchronously executing the following steps in response to the order result indicating that the order is successful: feeding back the order result and pre-occupying the balance.
[0007] Optionally, balance pre-emption is performed, including: making an estimated pre-emption based on the estimated amount of the above-mentioned package; obtaining order information of each package in the above-mentioned multi-package logistics order, performing a trial calculation based on the above-mentioned order information to obtain a trial calculation fee; and adjusting the estimated pre-emption amount based on the trial calculation fee.
[0008] Optionally, the method for calculating the estimated package amount includes: obtaining historical order information of the user within a preset historical time period; obtaining the total number of packages and the total amount of historical orders based on the historical order information; and calculating the total amount of historical orders and the total number of packages to obtain the estimated package amount.
[0009] Optionally, based on the above-mentioned amount estimation result and the above-mentioned user balance, the order result corresponding to the above-mentioned multi-package logistics order is determined, including: when the above-mentioned amount estimation result is less than or equal to the above-mentioned user balance, obtaining an order result indicating a successful order; or, when the above-mentioned amount estimation result is greater than the above-mentioned user balance, obtaining an order result indicating a failed order.
[0010] Optionally, performing estimated pre-occupancy according to the estimated amount of the above-mentioned packages includes: obtaining the pre-occupancy flow of each package based on the estimated amount of the above-mentioned packages, and performing estimated pre-occupancy of the above-mentioned user balance based on the pre-occupancy flow of the above-mentioned each package.
[0011] Optionally, the order information of each package in the above-mentioned multi-package logistics order is obtained, and a trial calculation is performed based on the above-mentioned order information to obtain the trial calculation fee, including: in response to the completion of the estimated pre-occupancy, the order information of each package in the above-mentioned multi-package logistics order is obtained; based on the order information of each package, a billing strategy is matched, and a trial calculation is performed to generate the trial calculation fee for each package.
[0012] Optionally, the above method also includes: generating exception information when the billing policy cannot be matched; outputting the above exception information to obtain a processing strategy generated according to the above exception information; and restarting the trial calculation when the above processing strategy is obtained.
[0013] To achieve the above objective, according to another aspect of an embodiment of the present invention, a multi-package logistics order processing device is provided.
[0014] A multi-package logistics order processing device according to an embodiment of the present invention includes: an acquisition module, used to acquire a multi-package logistics order and user information corresponding to the multi-package logistics order, the user information including: an estimated package amount and a user balance; a first determination module, used to determine an estimated amount result corresponding to the multi-package logistics order according to the number of packages indicated by the multi-package logistics order and the estimated package amount; a second determination module, used to determine an order result corresponding to the multi-package logistics order according to the estimated amount result and the user balance; an asynchronous module, used to asynchronously execute the following steps in response to the order result indicating that the order is successful: feedback the order result and pre-empt the balance.
[0015] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for multi-package logistics order processing is provided.
[0016] An electronic device for processing multiple package logistics orders according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement a method for processing multiple package logistics orders according to an embodiment of the present invention.
[0017] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.
[0018] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements a multi-package logistics order processing method according to an embodiment of the present invention.
[0019] One embodiment of the above invention has the following advantages or beneficial effects: the present invention uses the number of packages in a multi-package logistics order and the pre-obtained estimated package amount to calculate the estimated amount result of the logistics order, and after comparing it with the user's balance, it can be known whether the user has successfully placed the order. While feeding back the order result to the user, the balance pre-occupation is initiated asynchronously. The present invention can obtain the order result through the estimated amount result and feed it back to the user. The user can know whether the order is successful without calculating the precise cost of the logistics order. At the same time, the amount calculation and balance deduction are performed asynchronously, which shortens the response time from the user placing the order to knowing the order result, improves the response speed of the interface, and further improves the user's ordering experience.
[0020] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0022] Figure 1 is a flow chart of a method for processing a multi-package logistics order according to an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of a flow chart of balance pre-occupancy according to an embodiment of the present invention;
[0024] Figure 3 is a schematic diagram of a process for calculating an estimated package amount according to an embodiment of the present invention;
[0025] Figure 4 is a schematic diagram of a process of estimating and pre-occupying according to an estimated amount of a package according to an embodiment of the present invention;
[0026] Figure 5 is a schematic diagram of a specific process of estimating and pre-occupying according to an embodiment of the present invention;
[0027] Figure 6 is a schematic diagram of a flow chart for calculating trial costs according to an embodiment of the present invention;
[0028] Figure 7 is a schematic diagram of a specific process of trial calculation pre-occupancy according to an embodiment of the present invention;
[0029] Figure 8 is a schematic diagram of the structure of a multi-package logistics order processing device according to an embodiment of the present invention;
[0030] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0031] Fig.10 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0033] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.
[0034] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of the present invention are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0035] Figure 1 Schematic diagram of main steps of a method for processing a multi-package logistics order according to an embodiment of the present invention.
[0036] like Figure 1 As shown, the multi-package logistics order processing method of the embodiment of the present invention mainly includes the following steps:
[0037] Step S101: obtaining a multi-package logistics order and user information corresponding to the multi-package logistics order, wherein the user information includes: an estimated package amount and a user balance;
[0038] Step S102, determining the estimated amount result corresponding to the multi-package logistics order according to the number of packages indicated by the multi-package logistics order and the estimated amount of the packages;
[0039] Step S103, determining the order result corresponding to the multi-package logistics order according to the amount estimation result and the user balance;
[0040] Step S104, in response to the order result indicating that the order is successful, the following steps are asynchronously executed: the order result is fed back, and the balance is reserved.
[0041] When a user places an order through a logistics platform, the user can choose to pay with the balance based on the optional payment methods pre-set by the logistics platform. Here, the logistics platform can provide multiple payment methods for the user to choose from. As an example, the multiple payment methods include but are not limited to bank card payment, Alipay payment, WeChat payment, balance payment, etc. The user selects the payment method of balance payment to trigger the execution of the multi-package logistics order processing method of the present invention.
[0042] Among them, a multi-package logistics order is a logistics order containing multiple packages placed by a user through a logistics platform. The logistics platform receives the multi-package logistics order from the user, and as the caller, it calls the interface of the billing financial system. As the called party, the billing financial system performs basic data verification and business logic verification on the multi-package logistics order. If the verification fails, an error message is generated and fed back to the user. If the verification passes, the billing financial system determines the user balance of the multi-package logistics order, generates an order result, and pre-occupies the user balance.
[0043] The estimated package amount is pre-configured in the user information, which can be calculated based on the user's historical order information. When a multi-package logistics order is received, the user information of the multi-package logistics order can be obtained based on the user's unique code in the order data, thereby obtaining the estimated package amount pre-stored in the user information. The billing financial system can obtain the amount estimate result of the multi-package logistics order based on the number of packages and the estimated package amount in the multi-package logistics order, so as to facilitate the judgment of whether the user balance is sufficient. At the same time, in the process of balance pre-occupancy, the billing financial system can estimate and pre-occupy the user balance based on the estimated package amount.
[0044] In an optional embodiment, if Figure 2 As shown, the balance pre-occupancy in step 104 mainly includes the following steps:
[0045] Step 201, making an estimated reservation according to the estimated amount of the package;
[0046] Step 202, obtaining order information of each package in the multi-package logistics order, performing a trial calculation based on the order information, and obtaining a trial calculation fee;
[0047] Step 203, adjusting the estimated amount according to the trial cost.
[0048] Unlike a single-package logistics order, when a logistics order contains multiple packages, since the specifications of each package may be different, the billing financial system needs to obtain the specific specifications of the package based on the order information of each package and match the corresponding billing strategy. Therefore, for multi-package logistics orders, during the trial calculation process, each package needs to be calculated to obtain the corresponding trial fee for each package, and then the total cost of the entire multi-package logistics order can be obtained.
[0049] The user's balance is reserved through estimation, and the estimated amount of the multi-package logistics order is locked in advance; then the precise cost of the multi-package logistics order is obtained through trial calculation, and then the estimated amount locked in the user's balance is released, and the precise cost is deducted, thereby ensuring the accuracy of the reserved amount.
[0050] In an optional embodiment, if Figure 3 As shown, the calculation method of the above-mentioned estimated amount of the package includes the following steps:
[0051] Step 301, obtaining the historical order information of the user within a preset historical time period;
[0052] Step 302, obtaining the total number of packages and the total amount of historical orders based on the historical order information;
[0053] Step 303, calculating the total amount of the historical orders and the total number of packages to obtain an estimated package amount.
[0054] Here, historical orders are not limited to historical multi-package logistics orders, but can also include historical single-package logistics orders. By obtaining the historical order information of the above-mentioned user within a preset historical time period, the total number of packages and the total amount of historical orders contained in the historical order information are obtained. The average amount of historical orders based on the total number of packages can be used to obtain the average amount of packages in the historical orders, which is stored in the user information as the estimated amount of the package. As an example, the multi-package logistics order processing method of the present invention can also provide a variety of options as the estimated amount of the package, such as the highest package unit price, the lowest package unit price, the median package unit price, etc. within a preset historical time period, which can all be used as the estimated amount of the package. In the actual calculation process, how to configure the estimated amount of the package can be selected or preset according to the actual situation, and is not limited one by one here.
[0055] In an optional embodiment, in step 103, the process of determining the order result corresponding to the multi-package logistics order may specifically include:
[0056] When the estimated amount is less than or equal to the user balance, an order result indicating a successful order is obtained; or, when the estimated amount is greater than the user balance, an order result indicating a failed order is obtained.
[0057] In an optional embodiment, if Figure 4 As shown, the estimated amount of the package is estimated and occupied, including the following steps:
[0058] Step 401, obtaining the estimated flow of each package based on the estimated amount of the package;
[0059] Step 402, based on the reserved flow of each package, the user balance is estimated and reserved.
[0060] Specifically, in response to the above-mentioned user balance being sufficient, the billing financial system generates an order result indicating a successful order, feeds it back to the user end through the logistics platform, and asynchronously triggers the estimated pre-occupancy process. Figure 5As shown, in the estimation and pre-occupancy, the billing financial system splits the above-mentioned multi-package logistics order based on the number of packages, uses the estimated package amount as the estimated package unit price of each package to generate the pre-occupancy flow, and pre-occupies the user's balance in units of packages, and deducts the user's balance. By decoupling the balance judgment and estimation and pre-occupancy, when the order result representing the successful order is obtained, the order result is fed back to the user end by calling the interface, and the interface execution is completed. The billing financial system asynchronously triggers the estimation and pre-occupancy process, which does not occupy the interface execution time, improves the response speed of the interface, and reduces the frequency of interface timeouts and interface connection failures when customers place orders. At the same time, the estimation and pre-occupancy in units of packages is to provide support for order cancellations and returns in the SKU (Stock Keeping Unit, the unit of inventory in and out measurement) dimension, so as to safeguard the legitimate rights of users.
[0061] In an optional embodiment, if Figure 6 As shown, obtaining the order information of each package in the above multi-package logistics order, performing a trial calculation based on the above order information to obtain the trial calculation fee includes the following steps:
[0062] Step 601, in response to the estimated pre-occupancy being completed, obtaining order information of each package in the multi-package logistics order;
[0063] Step 602, based on the order information of each package, the billing strategy is matched, and a trial calculation is performed to generate a trial cost for each package.
[0064] In an optional embodiment, the above method also includes: generating exception information when the billing policy cannot be matched; outputting the above exception information to obtain a processing strategy generated according to the above exception information; and restarting the trial calculation when the above processing strategy is obtained.
[0065] Specifically, after the estimated pre-occupancy is completed, the trial pre-occupancy process is triggered asynchronously. Figure 7As shown, the order information of each package in the multi-package logistics order is obtained, so as to obtain the specific specifications of each package, and the billing strategy is matched for each package according to the specific specifications, including but not limited to the billing agreement, quotation and billing formula, etc. When the billing strategy cannot be matched, it indicates that the business configuration is missing, and the billing financial system generates abnormal information and feeds it back to the front-end business end, and the front-end business end generates a processing strategy for the above abnormal information and feeds it back to the billing financial system. When the billing financial system receives the above processing strategy, it restarts the trial calculation and pre-occupancy process; when the billing strategy is successfully matched, the billing financial system performs trial calculation processing on each package, generates the trial calculation fee of each package, and then generates the release flow of the estimated pre-occupancy fee of each package in the user balance, returns the user balance, and generates the trial calculation and pre-occupancy flow based on the trial calculation fee of each package, and deducts the user balance accordingly. Among them, the specific specifications of the package refer to the length, width, height, volume, weight and other conditions that affect the unit price of the package, which are not listed one by one here.
[0066] The following is a detailed description of the processing of multiple package logistics orders using a specific embodiment:
[0067] The user places an order on the user side through the iFOP platform (International Fulfillment Orchestration Platform) and selects the payment method of balance payment. The iFOP platform calls the interface of the iBMS (International Billing Manager System). The iBMS performs basic data verification and business logic verification on the multi-package logistics order. When the verification passes, the iBMS obtains the user information corresponding to the multi-package logistics order according to the user's unique code in the order data of the multi-package logistics order, thereby obtaining the estimated amount of the package; the estimated amount result of the multi-package logistics order is obtained by multiplying the number of packages indicated by the multi-package logistics order with the estimated amount of the package. The above-mentioned amount estimation result is compared with the user balance. When the amount estimation result is less than or equal to the user balance, the order result indicating a successful order is obtained; when the amount estimation result is greater than the user balance, the order result indicating a failed order is obtained. The iBMS feeds back the order result to the client and asynchronously performs the balance pre-emption.
[0068] Among them, balance pre-occupancy includes estimated pre-occupancy and trial pre-occupancy. Specifically, the estimated pre-occupancy includes: iBMS splits the above-mentioned multi-package logistics order based on the number of packages, uses the estimated package amount as the estimated package unit price of each package to generate a pre-occupancy flow, pre-occupies the user balance in units of packages, and deducts the user balance.
[0069] When the estimated pre-occupancy is completed, enter the trial pre-occupancy. Specifically, the specific specifications of each package are obtained according to the order information of each package in the multi-package logistics order, and the billing agreement, quotation and billing formula are matched based on the specific specifications of each package. If the billing formula cannot be matched, it indicates that the billing formula configuration is missing, and iBMS ends the current trial pre-occupancy process, generates exception information and feeds it back to the front-end business end. The front-end business end generates a processing strategy for the above exception information, such as configuring the corresponding billing formula for the specific specifications of the package, and feeds it back to iBMS. When iBMS receives the above processing strategy, it restarts the trial pre-occupancy process; when the billing strategy is matched successfully, iBMS performs trial calculation processing on each package and generates the trial cost of each package. Then, iBMS generates the release flow of the estimated pre-occupancy fee for each package in the user balance, returns the user balance, and generates the trial pre-occupancy flow based on the trial cost of each package, and deducts the user balance accordingly.
[0070] The multi-package logistics order processing method of the embodiment of the present invention uses the number of packages in the multi-package logistics order and the pre-obtained estimated package amount to calculate the estimated amount result of the logistics order, and after comparing it with the user's balance, the order result of whether the user has successfully placed the order can be obtained, and the order result is fed back to the user, and the balance pre-occupancy is initiated asynchronously. The present invention can obtain the order result through the estimated amount result and feed it back to the user. The user can know whether the order is successful without calculating the precise cost of the logistics order. At the same time, the amount calculation and balance deduction are performed asynchronously, shortening the response time from the user placing the order to knowing the order result, improving the response speed of the interface, and further improving the user's ordering experience. The estimated pre-occupied amount is adjusted by obtaining an accurate trial calculation result through trial calculation pre-occupancy, ensuring the accuracy of the pre-occupied amount.
[0071] Figure 8 Schematic diagram of main modules of a multi-package logistics order processing device according to an embodiment of the present invention.
[0072] like Figure 8 As shown, the multi-package logistics order processing device 800 of the embodiment of the present invention includes:
[0073] The acquisition module 801 is used to acquire a multi-package logistics order and user information corresponding to the multi-package logistics order, wherein the user information includes: an estimated package amount and a user balance;
[0074] A first determining module 802 is used to determine the estimated amount result corresponding to the multi-package logistics order according to the number of packages indicated by the multi-package logistics order and the estimated amount of the packages;
[0075] A second determination module 803 is used to determine the order result corresponding to the multi-package logistics order according to the amount estimation result and the user balance;
[0076] The asynchronous module 804 is used to asynchronously execute the following steps in response to the order result indicating that the order is successful: feedback the order result and pre-occupy the balance.
[0077] In an optional embodiment of the present invention, the asynchronous module 804 is further used to: make an estimated reservation based on the estimated amount of the package; obtain the order information of each package in the multi-package logistics order, perform a trial calculation based on the order information, and obtain the trial calculation fee; adjust the estimated reservation amount based on the trial calculation fee.
[0078] In an optional embodiment of the present invention, the method for calculating the estimated package amount includes: obtaining historical order information of users within a preset historical time period; obtaining the total number of packages and the total amount of historical orders based on the historical order information; and calculating the total amount of historical orders and the total number of packages to obtain the estimated package amount.
[0079] In an optional embodiment of the present invention, the second determination module 803 is further used to: obtain an order result indicating a successful order when the estimated amount is less than or equal to the user balance; or obtain an order result indicating a failed order when the estimated amount is greater than the user balance.
[0080] In an optional embodiment of the present invention, the asynchronous module 804 is further used to obtain the pre-occupied flow of each package based on the estimated amount of the package, and to estimate and pre-occupy the user balance based on the pre-occupied flow of each package.
[0081] In an optional embodiment of the present invention, the asynchronous module 804 is further used to: in response to the completion of the estimated pre-occupancy, obtain the order information of each package in the multi-package logistics order; match the billing strategy based on the order information of each package, perform trial calculation processing, and generate the trial cost of each package.
[0082] In an optional embodiment of the present invention, the asynchronous module 804 is further used to: generate exception information when the billing policy cannot be matched; output the exception information to obtain a processing strategy generated according to the exception information; and restart the trial calculation when the processing strategy is obtained.
[0083] Fig. 9 An exemplary system architecture 900 is shown to which the multi-package logistics order processing method or multi-package logistics order processing device according to the embodiment of the present invention can be applied.
[0084] like Fig. 9As shown, system architecture 900 may include terminal devices 901, 902, 903, network 904 and server 905. Network 904 is used to provide a medium for communication links between terminal devices 901, 902, 903 and server 905. Network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0085] The user can use the terminal devices 901, 902, 903 to interact with the server 905 through the network 904 to receive or send data, etc. Various communication client applications can be installed on the terminal devices 901, 902, 903, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0086] The terminal devices 901 , 902 , and 903 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0087] The server 905 may be a server that provides various services, such as a background management server that provides support for multi-package logistics orders sent by users using the terminal devices 901, 902, and 903. The background management server may analyze and process the obtained multi-package logistics orders, and feed back the processing results (such as order results) to the terminal device.
[0088] It should be noted that the multi-package logistics order processing method provided in the embodiment of the present invention is generally executed by the server 905 , and accordingly, the multi-package logistics order processing device is generally set in the server 905 .
[0089] It should be understood that Fig. 9 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0090] Reference below Fig.10 , which shows a schematic diagram of the structure of a computer system 1000 of a terminal device suitable for implementing an embodiment of the present invention. Fig.10 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0091] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) first interface 1005 is also connected to the bus 1004.
[0092] The following components are connected to the I / O first interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network first interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O first interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0093] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.
[0094] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may 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 computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0095] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0096] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes an acquisition module, a first determination module, a second determination module, and an asynchronous module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the acquisition module may also be described as a "module for acquiring multi-package logistics orders and user information corresponding to the multi-package logistics orders."
[0097] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining a multi-package logistics order and user information corresponding to the multi-package logistics order, the user information including: estimated package amount and user balance; determining the amount estimation result corresponding to the multi-package logistics order according to the number of packages indicated by the multi-package logistics order and the estimated package amount; determining the order result corresponding to the multi-package logistics order according to the estimated amount result and the user balance; in response to the order result indicating that the order is successful, asynchronously executing the following steps: feeding back the order result and pre-occupying the balance.
[0098] According to the technical solution of the embodiment of the present invention, the estimated amount of the logistics order can be calculated by using the number of packages in the multi-package logistics order and the pre-obtained estimated amount of the packages, and after comparing with the user's balance, the order result of whether the user has successfully placed the order can be known. While feeding back the order result to the user, the balance pre-occupation is initiated asynchronously. The present invention can obtain the order result through the estimated amount result and feed it back to the user. The user can know whether the order is successful without calculating the precise cost of the logistics order. At the same time, the amount calculation and balance deduction are performed asynchronously, shortening the response time from the user placing the order to knowing the order result, improving the response speed of the interface, and further improving the user's ordering experience. The estimated pre-occupied amount is adjusted by obtaining an accurate trial calculation result through trial calculation pre-occupancy, ensuring the accuracy of the pre-occupied amount.
[0099] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing a multi-package logistics order, characterized in that: include: Acquire a multi-package logistics order and user information corresponding to the multi-package logistics order, wherein the user information includes: an estimated package amount and a user balance; Determining an estimated amount corresponding to the multi-package logistics order according to the number of packages indicated by the multi-package logistics order and the estimated amount of the packages; Determining an order result corresponding to the multi-package logistics order according to the amount estimation result and the user balance; In response to the order result indicating that the order is successful, the following steps are asynchronously performed: the order result is fed back, and balance pre-occupancy is performed.
2. The method for processing multiple package logistics orders according to claim 1, characterized in that: The balance pre-occupancy includes: Make an estimated pre-occupancy based on the estimated amount of the said package; Obtaining order information of each package in the multi-package logistics order, performing a trial calculation based on the order information, and obtaining a trial calculation fee; Adjust the estimated provision amount based on the pro forma cost.
3. The method for processing multiple package logistics orders according to claim 2, characterized in that: The calculation method of the estimated amount of the package includes: Get the user's historical order information within the preset historical time period; Acquire the total number of packages and the total amount of historical orders based on the historical order information; The total amount of the historical orders and the total number of packages are calculated to obtain an estimated package amount.
4. The method for processing multiple package logistics orders according to claim 1, characterized in that: The determining, according to the amount estimation result and the user balance, an order result corresponding to the multi-package logistics order includes: When the estimated amount is less than or equal to the user balance, obtaining an order result indicating that the order is successfully placed; or, When the estimated amount is greater than the user balance, an order result indicating an order failure is obtained.
5. The method for processing multiple package logistics orders according to claim 2, characterized in that: The estimating and pre-occupying according to the estimated amount of the package includes: Based on the estimated amount of the package, the estimated turnover of each package is obtained. Based on the reserved flow of each package, the user balance is estimated and reserved.
6. The method for processing multiple package logistics orders according to claim 2, characterized in that: The obtaining of order information of each package in the multi-package logistics order, and performing a trial calculation based on the order information to obtain a trial calculation fee includes: In response to the estimated pre-occupancy being completed, obtaining order information of each package in the multi-package logistics order; Based on the order information of each package, the billing strategy is matched, and a trial calculation process is performed to generate a trial calculation fee for each package.
7. The method for processing multiple package logistics orders according to claim 6, characterized in that: The method further comprises: When the billing policy cannot be matched, an exception message is generated; Outputting the abnormal information to obtain a processing strategy generated according to the abnormal information; When the processing strategy is obtained, the trial calculation is restarted.
8. A multi-package logistics order processing device, characterized in that: include: An acquisition module, used to acquire a multi-package logistics order and user information corresponding to the multi-package logistics order, wherein the user information includes: an estimated package amount and a user balance; A first determination module, configured to determine an estimated amount result corresponding to the multi-package logistics order according to the number of packages indicated by the multi-package logistics order and the estimated amount of the packages; A second determination module, configured to determine an order result corresponding to the multi-package logistics order according to the amount estimation result and the user balance; The asynchronous module is used to asynchronously execute the following steps in response to the order result indicating that the order is successful: feedback the order result and pre-occupy the balance.
9. An electronic device for multi-package logistics order processing, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.