Order processing method and device, medium and electronic equipment
Through centralized processing of order processing methods, the cost and cycle extension problems caused by the frequent transit links of goods transportation are solved, which improves transportation efficiency and reduces transportation costs.
Patent Information
- Application Number
- CN202310558674.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-11-22
AI Technical Summary
During the cargo transportation process, orders that do not meet the direct delivery conditions need to go through multiple transit stations, resulting in increased transportation costs and extended cycles, causing user dissatisfaction.
By obtaining pending orders and determining the target order rules based on the pre-configured candidate order rules, encrypting and adding orders to the target order orders if the conditions are met, centralized processing of orders is achieved to reduce the transportation process.
It has achieved improvements in cargo transportation efficiency and reduced costs, and reduced user complaints.
Smart Images

Figure CN119005848A_ABST
Abstract
Description
Background Art
[0002] During the cargo transportation process, after the cargo is sent out from the warehouse, it usually has to pass through the sorting center, transshipment center, sales department and other cargo transfer stations in turn before it reaches the user.
[0003] In the related art, in order to improve the efficiency of cargo transportation, for orders that meet the conditions for direct cargo delivery, the cargo in the order can be directly transported from the warehouse to the user for direct cargo delivery.
[0004] However, for those orders that do not meet the conditions for direct shipment, they will still be transported using traditional methods. The numerous transit links will not only increase transportation costs, but will also lengthen the transportation cycle, which can easily cause user dissatisfaction. Summary of the invention
[0005] The present disclosure provides an order processing method, an order processing device, a computer-readable storage medium and an electronic device, thereby improving the efficiency of cargo transportation and reducing the cost of cargo transportation at least to a certain extent.
[0006] According to a first aspect of the present disclosure, there is provided an order processing method, comprising:
[0007] Get pending orders;
[0008] If there is a target order collection rule whose pending orders meet the order collection requirements in the pre-configured candidate order collection rules, the target order collection rule is encrypted to obtain an order collection identifier;
[0009] If there is a target order number corresponding to the order ID in the order database, and the target order order corresponding to the target order number is in the order processing state, the pending order is added to the target order order;
[0010] When it is determined that the target order collection order is successfully collected based on multiple target orders in the target order collection order and the collection success conditions in the target order collection rules, the collection status of the target order collection order is updated to collection success.
[0011] Optionally, the method further includes:
[0012] If there is no target set order number corresponding to the set order identifier in the set order database, generate a target set order number;
[0013] The pending order is determined as an order in the target order collection order corresponding to the target order collection number, and the target order collection order is determined to be in the order collection state.
[0014] Optionally, the method further includes:
[0015] When it is determined that the target order collection order is not completed based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the target order collection order is determined to be in the order collection state.
[0016] Optionally, after adding the pending order to the target order collection, the method further includes:
[0017] For each target order in the target set order, determine the creation time of the target order according to the current time and the order creation time in the target order;
[0018] If the creation time is longer than the order transmission time, the target order will be deleted from the target order collection order. The order transmission time is the longest delay time allowed for the order to be sent to the warehouse system after the order is generated.
[0019] Optionally, if the pending order is an enterprise order, determining whether there is a target order collection rule in the pre-configured candidate order collection rules that the pending order meets the order collection requirements includes:
[0020] Compare the first cargo transportation route associated with the enterprise order and the second cargo transportation route in at least one first candidate order set rule associated with the enterprise order to obtain a comparison result;
[0021] If the comparison result indicates that among at least one first candidate bill of lading rule, there is a first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route, then the first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route is determined as the target bill of lading rule.
[0022] Optionally, after obtaining the pending orders, the method further includes:
[0023] If it is determined that the first batch order mark exists in the enterprise order, the order download duration is obtained, and the first time difference between the current time and the creation time of the enterprise order is determined. The first batch order mark is the batch order mark of the enterprise order;
[0024] If the first time difference is less than the order upload time, it is determined whether there is a target order collection rule in the pre-configured candidate order collection rules whose pending orders meet the order collection requirements.
[0025] Optionally, the method further includes:
[0026] If it is determined that the first order collection identifier does not exist in the enterprise order, or the first time difference is greater than or equal to the order upload time, or there is no target order collection rule for the pending order that meets the order collection requirements in the pre-configured candidate order collection rules, then the second order collection identifier in the pending order is searched, and the second order collection identifier is the collectible order identifier of the personal order;
[0027] When the enterprise order includes the second batch order identifier, the enterprise order is processed according to the batch order processing strategy for individual orders.
[0028] Optionally, if the pending order is a personal order, it is determined whether there is a target order collection rule in the pre-configured order collection rules that the pending order meets the order collection requirements, including:
[0029] If, among at least one second candidate order collection rule pre-configured and associated with personal orders, there is a second candidate order collection rule whose first order source is the same as the second order source of the personal order, the second candidate order collection rule whose first order source is the same as the second order source of the personal order is determined as the target order collection rule.
[0030] Optionally, after obtaining the pending orders, the method further includes:
[0031] If it is determined that there is a second set of order identifiers in the personal order, the order download duration is obtained, and the second time difference between the current time and the creation time of the personal order is determined;
[0032] If the second time difference is less than the order upload time, it is determined in the pre-configured order collection rules whether there is a target order collection rule whose pending order meets the order collection requirements.
[0033] According to a second aspect of the present disclosure, there is provided an order processing device, comprising:
[0034] An acquisition module, configured to acquire pending orders;
[0035] The encryption module is configured to encrypt the target order collection rule to obtain an order collection identifier if there is a target order collection rule in the pre-configured candidate order collection rules where the pending order meets the order collection requirements;
[0036] The adding module is configured to add the pending order to the target order collection order when there is a target order collection number corresponding to the order collection identifier in the order collection database and the target order collection order corresponding to the target order collection number is in the order collection state;
[0037] The first determination module is configured to update the collection state of the target order to collection success when it is determined that the target order collection is successful based on multiple target orders and target order collection rules in the target order collection order.
[0038] Optionally, the device further includes a second determining module configured to:
[0039] If there is no target collection order number corresponding to the collection order identifier in the collection order database, generating the target collection order number;
[0040] The to-be-processed order is determined to be an order in a target order collection order corresponding to the target order collection number, and the target order collection order is determined to be in an order collection state.
[0041] Optionally, the device further includes a third determining module configured to:
[0042] When it is determined that the target order collection is not completed based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the target order collection order is determined to be in the order collection state.
[0043] Optionally, the device further includes a deletion module configured to:
[0044] For each target order in the target order set, determining the creation duration of the target order according to the current time and the order creation time in the target order;
[0045] If the creation time is longer than the order transmission time, the target order will be deleted from the target order collection order. The order transmission time is the longest delay time allowed for the order to be sent to the warehouse system after the order is generated.
[0046] Optionally, the pending order is an enterprise order, and the encryption module is configured to:
[0047] Compare the first cargo transportation route associated with the enterprise order with the second cargo transportation route in at least one first candidate order set rule associated with the enterprise order to obtain a comparison result;
[0048] If the comparison result indicates that among the at least one first candidate bill of lading rule, there is a first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route, then the first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route is determined as the target bill of lading rule.
[0049] Optionally, the device further includes a fourth determining module configured to:
[0050] If it is determined that there is a first order collection identifier in the enterprise order, the order download duration is obtained, and a first time difference between the current time and the creation time of the enterprise order is determined, and the first order collection identifier is a collectible order identifier of the enterprise order;
[0051] If the first time difference is less than the order upload time, it is determined whether there is a target order collection rule in the pre-configured candidate order collection rules whose pending orders meet the order collection requirements.
[0052] Optionally, the device further includes a fifth determining module configured to:
[0053] If it is determined that the first order collection identifier does not exist in the enterprise order, or the first time difference is greater than or equal to the order upload time, or the target order collection rule that meets the order collection requirements for the pending order does not exist in the pre-configured candidate order collection rules, then the second order collection identifier in the pending order is searched, and the second order collection identifier is a collectible order identifier for personal orders;
[0054] When the enterprise order includes the second batch order identifier, the enterprise order is processed according to the batch order processing strategy for individual orders.
[0055] Optionally, the pending order is a personal order, and the encryption module is configured as follows:
[0056] If, among at least one second candidate order collection rule pre-configured and associated with a personal order, there is a second candidate order collection rule whose first order source is the same as the second order source of the personal order, then the second candidate order collection rule whose first order source is the same as the second order source of the personal order is determined as the target order collection rule.
[0057] Optionally, the device further includes a sixth determining module configured to:
[0058] If it is determined that there is a second set order identifier in the personal order, the order download duration is obtained, and a second time difference between the current time and the creation time of the personal order is determined;
[0059] If the second time difference is less than the order upload time, it is determined in the pre-configured order collection rules whether there is a target order collection rule whose pending order meets the order collection requirements.
[0060] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the method of the first aspect is implemented.
[0061] According to a fourth aspect of the present disclosure, there is provided an electronic device, including:
[0062] Processor; and
[0063] A memory for storing executable instructions of the processor;
[0064] The processor is configured to perform the method of the first aspect by executing executable instructions.
[0065] The technical solution disclosed in this disclosure has the following beneficial effects:
[0066] The order processing method, device, medium and electronic device provided by the embodiments of the present disclosure can realize the concentration of different orders to facilitate the direct shipment of goods in multiple orders, and can reduce the turnover cycle of each order in the collective order during the transportation process and reduce transportation costs; at the same time, it can improve the cargo transportation efficiency of each order in the collective order and reduce user complaints.
[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0069] Figure 1 A schematic architecture diagram of an order processing system in this exemplary embodiment is shown;
[0070] Figure 2 A flowchart showing an order processing method in this exemplary embodiment;
[0071] Figure 3 A flowchart showing another order processing method in this exemplary embodiment;
[0072] Figure 4 A block diagram showing an order processing device in this exemplary embodiment;
[0073] Figure 5 A schematic structural diagram of an electronic device in this exemplary embodiment is shown. DETAILED DESCRIPTION
[0074] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the exemplary embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0075] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0076] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the steps. For example, some steps may be decomposed, while some steps may be combined or partially combined, so the actual execution order may change according to the actual situation.
[0077] In the related art, in the process of transporting goods, in order to improve the transportation efficiency, for personal orders, after determining that the order meets the direct delivery conditions, the goods in the order can be directly transported from the warehouse to the user to realize direct delivery of the goods; wherein, the direct delivery conditions can be determined based on actual needs, and the embodiments of the present disclosure are not limited to this, for example: the order amount in a single order exceeds the preset amount; for corporate orders, it can be determined whether the weight of the ordered goods in a single corporate order exceeds a pre-set cargo weight threshold; or, it can be determined whether the volume of the ordered goods in the corporate order exceeds a pre-set cargo volume threshold; when the cargo volume or weight of the corporate order exceeds the respective corresponding thresholds, the goods can be directly transported from the warehouse to the enterprise to realize direct delivery of the goods.
[0078] However, for those goods in orders that do not meet the conditions for direct shipment, after the goods are shipped from the warehouse, they still need to go through sorting centers, transshipment centers, sales departments and other goods transfer stations before they can reach the hands of users or enterprises. The numerous goods transfer links will not only increase transportation costs, but also cause the goods transportation cycle to become longer, which is easy to cause dissatisfaction among users or enterprises.
[0079] In view of the above problems, an exemplary embodiment of the present disclosure provides an order processing method, and the application scenarios of the order processing include but are not limited to: in the process of processing personal orders, obtaining pending orders; if there is a target order collection rule in the pre-configured candidate order collection rules whose pending orders meet the order collection requirements, encrypting the target order collection rule to obtain an order collection identifier; if there is a target order collection number corresponding to the order collection identifier in the order collection database, and the target order collection order corresponding to the target order collection number is in the order collection state, the pending order is added to the target order collection order; when it is determined that the target order collection order is successfully collected based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the order collection state of the target order collection order is updated to order collection success.
[0080] In order to implement the above order processing, an exemplary embodiment of the present disclosure provides an order processing system. Figure 1 FIG. 1 shows a schematic architecture diagram of the order processing system. Figure 1 As shown, the order processing system 100 may include an order fulfillment server 110, an order collection server 120, an order management server 130 and an order sorting server 140. The order fulfillment server 110, the order collection server 120, the order management server 130 and the order sorting server 140 are backend servers deployed by the logistics service provider; wherein the order collection server 120 establishes network connections with the order fulfillment server 110, the order management server 130 and the order sorting server 140 respectively to realize order processing.
[0081] It should be noted that the order fulfillment server 110, the order collection server 120, the order management server 130 and the order sorting server 140 can be a single server or a cluster formed by multiple servers. The present disclosure does not limit the specific architecture of the server.
[0082] The following describes the order processing method from the perspective of the order collection server. Figure 2 An exemplary process of an order processing method executed by an order collection server is shown, which may include:
[0083] Step S201, obtaining pending orders;
[0084] Step S202: If there is a target order collection rule whose pending order meets the order collection requirements in the pre-configured candidate order collection rules, the target order collection rule is encrypted to obtain an order collection identifier;
[0085] Step S203, if there is a target order number corresponding to the order identifier in the order database, and the target order corresponding to the target order number is in the order processing state, the pending order is added to the target order order;
[0086] Step S204, when it is determined that the target order collection order is successfully collected based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the order collection status of the target order collection order is updated to successful collection.
[0087] To sum up, the order processing method provided by the embodiment of the present disclosure can add the pending order to the target order collection order being collected when there is a target order collection rule in the pre-configured candidate order collection rules and the target order collection order corresponding to the target order collection rule exists in the order collection database; it can realize the concentration of different orders to facilitate the direct shipment of goods from multiple orders, and can reduce the turnover cycle of each order in the order collection order during the transportation process, thereby reducing transportation costs; at the same time, it can improve the goods transportation efficiency of each order in the order collection order and reduce user complaints.
[0088] The following are Figure 2 Each step in the procedure is described in detail.
[0089] In step S201, the orders to be processed are obtained.
[0090] In the disclosed embodiment, a user or an enterprise may initiate an order request to the order system of the logistics service provider through a terminal device. After the order is successfully placed, the order system may send the order to an order fulfillment server. The order fulfillment server may determine the acquired order as a pending order and send the pending order to the order collection server.
[0091] In an optional implementation, the process of the order collection server acquiring pending orders may include: after receiving an order sent by the order fulfillment server, determining the received order as a pending order.
[0092] In an optional implementation, the order obtained by the order collection server may include the order number of the pending order. After obtaining the order number of the pending order, the order collection server may generate an order information acquisition request based on the order number of the pending order, and send the order information acquisition request to the order management server to obtain the order information of the pending order. Among them, the order information may include the order type, such as a personal order or a corporate order; the source of the order, for example, an order from a self-operated store or an individual store; the category and quantity of goods ordered; the consignee's address information, contact information, order creation time, etc. It is understandable that after the order collection server receives the order information of the pending order sent by the order management server, it can combine the order information of the pending order to obtain the pending order.
[0093] In step S202, if there is a target order collection rule whose pending order meets the order collection requirements in the pre-configured candidate order collection rules, the target order collection rule is encrypted to obtain an order collection identifier.
[0094] In an embodiment of the present disclosure, multiple candidate order aggregation rules can be pre-configured, and each candidate order aggregation rule can include order aggregation requirements and order aggregation success conditions; wherein, the order aggregation requirements are requirements that must be met for an order to participate in order aggregation, and the order aggregation success conditions are criteria for determining whether the order aggregation is successful.
[0095] It should be noted that, in the embodiments of the present disclosure, different candidate order collection rules can be configured for different types of orders; for enterprise orders, at least one first candidate order collection rule associated with the enterprise orders can be configured according to different transportation routes; by way of example, the order collection requirements of the first candidate order collection rule may include: the cargo transportation route is from shipping address A to shipping address B, and the order collection success condition may include that the cargo weight is greater than or equal to a first cargo weight threshold; and / or, the order collection requirements of the first candidate order collection rule may include: the cargo transportation route is from shipping address B to shipping address C, and the order collection success condition may include that the cargo weight is greater than or equal to a second cargo weight threshold; and / or, the order collection requirements of the first candidate order collection rule may include: the cargo transportation route is from shipping address D to shipping address E, and the order collection success condition may include that the cargo volume is greater than or equal to the cargo volume threshold, wherein the first cargo weight threshold and the second cargo weight threshold may be determined based on actual needs respectively, and the embodiments of the present disclosure do not limit this.
[0096] For personal orders, you can select different order information configurations and second candidate order aggregation rules corresponding to personal orders according to different order sources; for example, the order aggregation requirements of the second candidate order aggregation rules may include: the order source is a self-operated order, the goods storage warehouse is the same, and the delivery address is similar, and the order aggregation success conditions may include: the goods weight is greater than or equal to a third goods weight threshold; and / or, the order aggregation requirements of the second candidate order aggregation rules may include: the order source is an overseas store order, the delivery address is the same, and the consignee and contact information are the same, and the order aggregation success conditions may include: the order amount is greater than or equal to a preset amount; wherein the third goods weight threshold and the preset amount can be determined based on actual needs, respectively, and the embodiments of the present disclosure are not limited to this.
[0097] In an optional embodiment, the pending order may be an enterprise order, and the process of the order collection server determining whether there is a target order collection rule whose pending order meets the order collection requirements in the pre-configured candidate order collection rules may include: comparing the first cargo transportation route associated with the enterprise order and the second cargo transportation route in at least one first candidate order collection rule associated with the enterprise order to obtain a comparison result; if the comparison result indicates that there is a first candidate order collection rule whose second cargo transportation route is the same as the first cargo transportation route in at least one first candidate order collection rule, then the first candidate order collection rule whose second cargo transportation route is the same as the first cargo transportation route is determined as the target order collection rule. It is understandable that if the comparison result indicates that the second cargo transportation route in each first candidate order collection rule is different from the first cargo transportation route, it is determined that there is no target order collection rule whose enterprise order meets the order collection requirements in the pre-configured first candidate order collection rules. Enterprise orders can be collected according to transportation routes so that orders on the same transportation route can be directly shipped in a centralized manner, which can reduce the cargo turnover cycle on the same transportation route, improve cargo transportation efficiency, and reduce costs.
[0098] In an optional embodiment, at least one first candidate order collection rule associated with an enterprise order can be configured in an order sorting server, and the order collection server will compare the first cargo transportation route associated with the enterprise order with the second cargo transportation route in at least one first candidate order collection rule associated with the enterprise order. The process of obtaining the comparison result may include: generating an order collection rule acquisition request based on the first cargo transportation route associated with the enterprise order, and sending the order collection rule acquisition request to the order sorting server, so that the order sorting server compares the first cargo transportation route associated with the enterprise order with the second cargo transportation route in each first candidate order collection rule, and returns the comparison result.
[0099] In an optional implementation, for enterprise orders, after obtaining pending orders, the order collection server can also: if it is determined that there is a first order collection identifier in the enterprise order, then obtain the order transmission time, and determine the first time difference between the current time and the creation time of the enterprise order; if the first time difference is less than the order transmission time, then determine whether there is a target order collection rule in the pre-configured candidate order collection rules whose pending orders meet the order collection requirements. Among them, the first order collection identifier is the enterprise order collection identifier, and the order transmission time is the longest delay time allowed for the order to be sent to the warehouse system after the order is generated. An order collection identifier for marking whether the enterprise order can participate in the order collection can be added to the enterprise order, so as to facilitate the rapid identification of enterprise orders that can participate in the order collection and meet the diversified order collection needs of enterprise orders; further, after determining that the enterprise order is an order that can participate in the order collection, the enterprise orders that have not exceeded the warehouse time can be controlled to be collected, so as to prevent the delayed delivery of goods on the basis of reducing the transportation cost of goods by collecting the goods.
[0100] In an optional implementation, for enterprise orders, if it is determined that the first order collection identifier does not exist in the enterprise order, or the first time difference is greater than or equal to the order upload time, or there is no target order collection rule in the pre-configured candidate order collection rules that meets the order collection requirements for the pending order, then the second order collection identifier in the pending order is searched; if the second order collection identifier is included in the enterprise order, the enterprise order is processed according to the order collection processing strategy for personal orders. The second order collection identifier is a collectible order identifier for personal orders. When an enterprise order does not meet the order collection processing conditions for enterprise orders, the enterprise order can be collected by the order collection processing strategy for personal orders, so that more enterprise orders can be transported by direct collection, thereby minimizing the transportation cost of enterprise orders and improving transportation efficiency.
[0101] In an optional embodiment, the pending order is a personal order, and the process of the order collection server determining whether there is a target order collection rule in the pre-configured order collection rules for the pending order that meets the order collection requirements may include: if there is a second candidate order collection rule whose first order source is the same as the second order source of the personal order in at least one pre-configured second candidate order collection rule associated with the personal order, then the second candidate order collection rule whose first order source is the same as the second order source of the personal order is determined as the target order collection rule. It is understandable that if the first order source in each second candidate order collection rule is different from the second order source of the personal order, it is determined that there is no target order collection rule in the pre-configured second candidate order collection rules for the personal order that meets the order collection requirements. Personal orders can be processed according to the order source to achieve direct shipment of personal orders, reduce the turnover cycle of goods in personal orders, improve the transportation efficiency of goods in personal orders, and reduce the transportation cost of goods in personal orders.
[0102] In an optional implementation, for personal orders, after obtaining pending orders, the order collection server can also: if it is determined that there is a second order collection identifier in the personal order, then obtain the order download time, and determine the second time difference between the current moment and the creation moment of the personal order; if the second time difference is less than the order download time, then determine whether there is a pending order in the pre-configured order collection rules that meets the target order collection requirements. It can be understood that for personal orders, if it is determined that there is no second order collection identifier in the personal order, it is determined that the personal order cannot participate in the order collection, and the personal order is processed according to the conventional order processing method. A collection identifier for marking whether a personal order can participate in the order collection can be added to the personal order, so as to facilitate the rapid identification of personal orders that can participate in the order collection and meet the diverse order collection needs of personal orders; further, after determining that a personal order is an order that can participate in the order collection, personal orders that have not exceeded the warehouse time can be controlled to be collected, so as to reduce the transportation cost of the goods by collecting the goods, and prevent the delayed delivery of goods.
[0103] It can be understood that if the order collection server determines that there is a target order collection rule among the pre-configured candidate order collection rules whose pending orders meet the order collection requirements, the target order collection rule is encrypted to obtain an order collection identifier, wherein the encryption algorithm of the target order collection rule can be determined based on actual needs, and the embodiments of the present disclosure are not limited to this; by way of example, the encryption algorithm can be the MD5 Message-Digest Algorithm.
[0104] In step S203, if there is a target order number corresponding to the order identifier in the order database, and the target order number is in the order processing state, the pending order is added to the target order order.
[0105] In the embodiment of the present disclosure, aggregating orders according to aggregating rules is called an aggregating event, and whether the aggregating event can be carried out is determined based on whether the orders meet the aggregating requirements in the aggregating rules; the aggregating identifier is an identifier of the aggregating event associated with the target aggregating rule; the target aggregating number is an identifier of the orders to be aggregated based on the target aggregating rule; an aggregating order includes multiple orders that meet the aggregating requirements of the aggregating rules, and a target aggregating order includes multiple orders that meet the aggregating requirements of the target aggregating rules.
[0106] In an optional embodiment, if there is a target order number corresponding to the order identifier in the order database, and the target order number corresponding to the target order number is in the order processing state, the order server can add the pending order to the target order; if there is an order event corresponding to the target order rule in the order database and the order event is not completed, the pending order can be added to the target order.
[0107] In an optional implementation, when there is no target order number corresponding to the order identifier in the order collection database, a target order number is generated; the pending order is determined to be an order in the target order collection order corresponding to the target order number, and the target order collection order is determined to be in the order collection state. When a pending order that meets the order collection requirements of the target order collection rule appears for the first time, the order in the order collection order associated with the target order collection rule can be recorded in the order collection database to facilitate the processing of order collection events associated with the target order collection rule, and obtain the order collection order associated with the target order collection rule that can be collected.
[0108] In an optional implementation, after adding pending orders to the target order collection, the order collection server may also: for each target order in the target order collection, determine the creation time of the target order based on the current time and the order creation time in the target order; if the creation time is longer than the order upload time, delete the target order from the target order collection. After updating the target order collection, the orders in the target order collection may be reviewed to delete the target orders that exceed the delivery time from the target order collection. During the order collection process, the target orders that exceed the delivery time may be transported in a conventional delivery manner, thereby reducing the transportation cost of the goods by collecting the goods and preventing delayed shipment of the goods.
[0109] In step S204, when it is determined that the target order collection is successful based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the order collection status of the target order collection order is updated to order collection success.
[0110] In an optional embodiment, the process of determining whether a target order is successfully aggregated based on multiple target orders in the target order and the order success conditions in the target order rules by the order aggregation server may include: determining the parameters associated with the order success conditions in each target order; determining the sum of multiple parameters to obtain a total parameter, and determining whether the target order is successfully aggregated based on the total parameter and the order success conditions.
[0111] For example, multiple target orders in a target order collection order are enterprise orders, and a successful order collection condition includes that the weight of goods is greater than or equal to a first goods weight threshold. The order collection server determines whether the target order collection order is successful based on the multiple target orders in the target order collection order and the successful order collection condition in the target order collection rule. The process may include: determining the sum of the weights of goods associated with each target order to obtain the total weight of goods in the target order collection order; if the total weight of goods is greater than or equal to the first goods weight threshold, the order collection is determined to be successful.
[0112] In another example, multiple target orders in the target order collection order are personal orders, and the order collection success condition includes that the order amount is greater than or equal to a preset amount. The order collection server then determines whether the target order collection order is successful based on the multiple target orders in the target order collection order and the order collection success condition in the target order collection rule. The process may include: determining the sum of the order amounts associated with each target order to obtain the total order amount of the target order collection order; if the total order amount is greater than or equal to the preset amount, the order collection is determined to be successful.
[0113] In an optional implementation, when it is determined that the target order collection is not completed based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the target order collection order is determined to be in the collection process. When the target order collection associated with the target order collection rule is not completed, the target order collection order can be marked as in the collection process so that after the pending orders that meet the collection requirements of the target order collection rule are obtained again, the target order collection associated with the target order collection rule can continue to be collected.
[0114] It should be noted that in the embodiment of the present disclosure, when the target batch order is successfully batched, the batch server can send the successfully batched order to the order fulfillment server, and the order fulfillment server can send a warehouse delivery instruction to the warehouse server. After the warehouse server receives the target batch order, it can prompt the warehouse staff to directly ship the goods in multiple target orders in the target batch order, and based on the information recorded by the warehouse server whether the centralized shipment is successful, after the warehouse server obtains the record information of successful centralized shipment after a preset period of time, the warehouse server can send the information of successful centralized shipment of the target batch order to the order fulfillment server; if the order fulfillment server does not receive the information of successful centralized shipment of the target batch order after the preset period of time, it determines that the target batch order has failed to be batched, and processes each target order in the target batch order according to the conventional shipping method.
[0115] Figure 3 An exemplary process of an order processing method performed by an order collection server provided in an embodiment of the present disclosure includes:
[0116] Step S301, obtaining pending orders;
[0117] Among them, pending orders are enterprise orders;
[0118] Step S302, determining whether there is a first set order identifier in the enterprise order;
[0119] Step S303: if it is determined that the first batch order identifier does not exist in the enterprise order, then in the case where the enterprise order includes the second batch order identifier, the enterprise order is processed according to the batch order processing strategy for individual orders;
[0120] Step S304: if it is determined that the first set order identifier exists in the enterprise order, the order download duration is obtained, and the first time difference between the current time and the creation time of the enterprise order is determined;
[0121] Step S305, determining whether the first time difference is greater than or equal to the order upload time;
[0122] Step S306: If the first time difference is greater than the order upload time, then in the case where the enterprise order includes a second batch order identifier, the enterprise order is processed according to the batch order processing strategy for individual orders;
[0123] Step S307, if the first time difference is less than the order upload time, determining at least one pre-configured first candidate set order rule;
[0124] Step S308, determining whether there is a target order collection rule in the first candidate order collection rule whose enterprise order meets the order collection requirements;
[0125] Step S309: if there is no target order collection rule whose enterprise order meets the order collection requirements in the first candidate order collection rule, then if the enterprise order includes a second order collection identifier, the enterprise order is processed according to the order collection processing strategy for individual orders;
[0126] Step S310: If there is a target order collection rule whose enterprise order meets the order collection requirements in the first candidate order collection rule, encrypt the target order collection rule to obtain an order collection identifier;
[0127] Step S311, determining whether there is a target order number corresponding to the order identifier in the order database;
[0128] Step S312, if there is no target order number corresponding to the order identifier in the order database, generate a target order number, determine the order to be processed as an order in the target order order corresponding to the target order number, and determine that the target order order is in the order state;
[0129] Step S313, if there is a target order number corresponding to the order identifier in the order database, and the target order corresponding to the target order number is in the order processing state, the pending order is added to the target order order;
[0130] Step S314, when it is determined that the target order collection is successful based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the order collection status of the target order collection order is updated to order collection success.
[0131] The present disclosure provides an order processing device, such as Figure 4 As shown, the order processing device 400 includes:
[0132] The acquisition module 401 is configured to acquire pending orders;
[0133] The encryption module 402 is configured to encrypt the target order collection rule to obtain an order collection identifier if there is a target order collection rule in the pre-configured candidate order collection rules where the pending order meets the order collection requirements;
[0134] The adding module 403 is configured to add the pending order to the target order collection when there is a target order collection number corresponding to the order collection identifier in the order collection database and the target order collection order corresponding to the target order collection number is in the order collection state;
[0135] The first determination module 404 is configured to update the order collection state of the target order collection to successful order collection when it is determined that the target order collection is successful based on multiple target orders and target order collection rules in the target order collection order.
[0136] Optionally, the apparatus further includes a second determining module 405 configured to:
[0137] If there is no target collection order number corresponding to the collection order identifier in the collection order database, generating the target collection order number;
[0138] The to-be-processed order is determined to be an order in a target order collection order corresponding to the target order collection number, and the target order collection order is determined to be in an order collection state.
[0139] Optionally, the apparatus further includes a third determining module 406 configured to:
[0140] When it is determined that the target order collection is not completed based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the target order collection order is determined to be in the order collection state.
[0141] Optionally, the device further includes a deleting module 407 configured to:
[0142] For each target order in the target order set, determining the creation duration of the target order according to the current time and the order creation time in the target order;
[0143] If the creation time is longer than the order transmission time, the target order will be deleted from the target order collection order. The order transmission time is the longest delay time allowed for the order to be sent to the warehouse system after the order is generated.
[0144] Optionally, the to-be-processed order is an enterprise order, and the encryption module 402 is configured to:
[0145] Compare the first cargo transportation route associated with the enterprise order with the second cargo transportation route in at least one first candidate order set rule associated with the enterprise order to obtain a comparison result;
[0146] If the comparison result indicates that among the at least one first candidate bill of lading rule, there is a first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route, then the first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route is determined as the target bill of lading rule.
[0147] Optionally, the apparatus further includes a fourth determining module 408 configured to:
[0148] If it is determined that there is a first order collection identifier in the enterprise order, the order download duration is obtained, and a first time difference between the current time and the creation time of the enterprise order is determined, and the first order collection identifier is a collectible order identifier of the enterprise order;
[0149] If the first time difference is less than the order upload time, it is determined whether there is a target order collection rule in the pre-configured candidate order collection rules whose pending orders meet the order collection requirements.
[0150] Optionally, the apparatus further includes a fifth determining module 409 configured to:
[0151] If it is determined that the first order collection identifier does not exist in the enterprise order, or the first time difference is greater than or equal to the order upload time, or the target order collection rule that meets the order collection requirements for the pending order does not exist in the pre-configured candidate order collection rules, then the second order collection identifier in the pending order is searched, and the second order collection identifier is a collectible order identifier for personal orders;
[0152] When the enterprise order includes the second batch order identifier, the enterprise order is processed according to the batch order processing strategy for individual orders.
[0153] Optionally, the order to be processed is a personal order, and the encryption module 402 is configured to:
[0154] If, among at least one second candidate order collection rule pre-configured and associated with a personal order, there is a second candidate order collection rule whose first order source is the same as the second order source of the personal order, then the second candidate order collection rule whose first order source is the same as the second order source of the personal order is determined as the target order collection rule.
[0155] Optionally, the apparatus further includes a sixth determining module 410 configured to:
[0156] If it is determined that there is a second set order identifier in the personal order, the order download duration is obtained, and a second time difference between the current time and the creation time of the personal order is determined;
[0157] If the second time difference is less than the order upload time, it is determined in the pre-configured order collection rules whether there is a target order collection rule whose pending order meets the order collection requirements.
[0158] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which can be implemented in the form of a program product, which includes a program code, and when the program product is run on an electronic device, the program code is used to cause the electronic device to perform the steps described in the above "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. In one embodiment, the program product can be implemented as a portable compact disk read-only memory (CD-ROM) and includes program code, and can be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited to this, and in this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.
[0159] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The 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 readable storage media (a 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.
[0160] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0161] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0162] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, 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).
[0163] The exemplary embodiment of the present disclosure also provides an electronic device, which may be a centralized order server. Figure 5 The electronic device is described. It should be understood that Figure 5 The electronic device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0164] like Figure 5 As shown, the electronic device 500 is in the form of a general computing device. The components of the electronic device 500 may include but are not limited to: at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510).
[0165] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps of various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 510 can perform the following steps: Figure 2 The method steps shown, etc.
[0166] The storage unit 520 may include a volatile storage unit, such as a random access storage unit (RAM) 521 and / or a cache storage unit 522 , and may further include a read-only storage unit (ROM) 523 .
[0167] The storage unit 520 may also include a program / utility 524 having a set (at least one) of program modules 525, such program modules 525 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 an implementation of a network environment.
[0168] The bus 530 may include a data bus, an address bus, and a control bus.
[0169] The electronic device 500 may also communicate with one or more external devices 600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), and such communication may be performed via an input / output (I / O) interface 540. The electronic device 500 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 550. As shown, the network adapter 550 communicates with other modules of the electronic device 500 via a bus 530. 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 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0170] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0171] It will be appreciated by those skilled in the art that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or implementations combining hardware and software aspects, which may be collectively referred to herein as "circuit", "module" or "system". Those skilled in the art will readily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses or adaptive changes of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and implementation are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0172] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An order processing method, characterized in that: include: Get pending orders; If there is a target order collection rule in the pre-configured candidate order collection rules where the pending order meets the order collection requirements, encrypt the target order collection rule to obtain an order collection identifier; If there is a target order collection number corresponding to the order collection identifier in the order collection database, and the target order collection order corresponding to the target order collection number is in the order collection state, the pending order is added to the target order collection order; When it is determined that the target order collection order is successfully collected based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the order collection status of the target order collection order is updated to successful collection.
2. The method according to claim 1, characterized in that The method further comprises: If there is no target collection order number corresponding to the collection order identifier in the collection order database, generating the target collection order number; The to-be-processed order is determined to be an order in a target order collection order corresponding to the target order collection number, and the target order collection order is determined to be in an order collection state.
3. The method according to claim 1, characterized in that The method further comprises: When it is determined that the target order collection is not completed based on multiple target orders in the target order collection order and the order collection success conditions in the target order collection rules, the target order collection order is determined to be in the order collection state.
4. The method according to claim 1, characterized in that: After adding the pending order to the target batch order, the method further includes: For each target order in the target order set, determining the creation duration of the target order according to the current time and the order creation time in the target order; If the creation time is longer than the order transmission time, the target order will be deleted from the target order collection order. The order transmission time is the longest delay time allowed for the order to be sent to the warehouse system after the order is generated.
5. The method according to claim 1, characterized in that The pending order is an enterprise order, and determining whether there is a target order collection rule whose pending order meets the order collection requirements among the pre-configured candidate order collection rules includes: Compare the first cargo transportation route associated with the enterprise order and the second cargo transportation route in at least one first candidate order set rule associated with the enterprise order to obtain a comparison result; If the comparison result indicates that among the at least one first candidate bill of lading rule, there exists a first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route, then the first candidate bill of lading rule in which the second freight transportation route is the same as the first freight transportation route is determined as the target bill of lading rule.
6. The method according to claim 5, characterized in that After obtaining the pending orders, the method further includes: If it is determined that there is a first order collection identifier in the enterprise order, the order download duration is obtained, and a first time difference between the current time and the creation time of the enterprise order is determined, and the first order collection identifier is a collectible order identifier of the enterprise order; If the first time difference is less than the order upload time, it is determined whether there is a target order collection rule in the pre-configured candidate order collection rules whose pending orders meet the order collection requirements.
7. The method according to claim 6, characterized in that The method also includes: If it is determined that the first order collection identifier does not exist in the enterprise order, or the first time difference is greater than or equal to the order upload time, or the target order collection rule that meets the order collection requirements for the pending order does not exist in the pre-configured candidate order collection rules, then the second order collection identifier in the pending order is searched, and the second order collection identifier is a collectible order identifier for personal orders; When the enterprise order includes the second batch order identifier, the enterprise order is processed according to the batch order processing strategy for individual orders.
8. The method according to claim 1, characterized in that The pending order is a personal order, and determining whether there is a target order collection rule in the pre-configured order collection rules that meets the order collection requirements for the pending order includes: If, among at least one second candidate order collection rule pre-configured and associated with a personal order, there is a second candidate order collection rule whose first order source is the same as the second order source of the personal order, then the second candidate order collection rule whose first order source is the same as the second order source of the personal order is determined as the target order collection rule.
9. The method according to claim 8, characterized in that After obtaining the pending orders, the method further includes: If it is determined that there is a second set order identifier in the personal order, the order download duration is obtained, and a second time difference between the current time and the creation time of the personal order is determined; If the second time difference is less than the order upload time, it is determined in the pre-configured order collection rules whether there is a target order collection rule whose pending order meets the order collection requirements.
10. An order processing device, characterized in that: include: An acquisition module, configured to acquire pending orders; The encryption module is configured to encrypt the target order collection rule to obtain an order collection identifier if there is a target order collection rule in the pre-configured candidate order collection rules where the pending order meets the order collection requirements; The adding module is configured to add the pending order to the target order collection order when there is a target order collection number corresponding to the order collection identifier in the order collection database and the target order collection order corresponding to the target order collection number is in the order collection state; The first determination module is configured to update the collection state of the target order to collection success when it is determined that the target order collection is successful based on multiple target orders and target order collection rules in the target order collection.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
12. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 9 by executing the executable instructions.
