Processing method and device for order, storage medium and processor

By decoupling the delivery rules and business rules algorithms in order processing, delivery task data is generated, which solves the problem of coupling between delivery mode and main process logic in order processing, and improves order processing efficiency and scalability.

CN115994733BActive Publication Date: 2025-12-05ZHONGKE YUNGU TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211648926.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-21
Publication Date
2025-12-05
Estimated Expiration
2042-12-21

AI Technical Summary

Technical Problem

In existing technologies, the delivery mode algorithm is strongly coupled with the main process logic during order processing, resulting in a bloated delivery program that is difficult to maintain and expand, and reduces order processing efficiency.

Method used

By obtaining the material information and rule configuration group of the order to be delivered, calling the target rule configuration group and the delivery interface implementation class object, decoupling the delivery rules and business rule algorithms, generating delivery task data, and sending it to the terminal to generate a material delivery list.

Benefits of technology

It enables flexible management of delivery rules, improves order processing efficiency, and supports the expansion and maintenance of business rule algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115994733B_ABST
    Figure CN115994733B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a processing method and device for an order, a storage medium and a processor. The method comprises: obtaining a to-be-delivered order, the to-be-delivered order comprising a plurality of to-be-delivered materials and material information of each to-be-delivered material; determining a rule configuration group of each to-be-delivered material; in the case that a delivery request of at least one to-be-delivered material is received, determining the to-be-delivered material as a target material; calling a target rule configuration group corresponding to each target material to determine a target delivery mode and a target delivery rule of each target material; generating target delivery data for each target material according to the target delivery rule; and calling a target delivery interface implementation class object corresponding to the target delivery mode to determine delivery task data for the target material according to delivery plan data included in the target delivery data through the target delivery interface implementation class object. The above scheme is conducive to the maintenance and expansion of the order processing process, and greatly improves the efficiency of order processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically to a method, apparatus, storage medium, and processor for processing orders. Background Technology

[0002] As the digital and intelligent transformation and upgrading of the manufacturing industry deepens, enterprise delivery management systems need to ensure accurate and orderly information and be able to quickly respond to the requirements of functional adjustments and upgrades due to product category growth and process changes. Currently, different business algorithm logics are typically written into the process logic code, and specific algorithms are selected based on conditional statements during business process execution. However, this approach, which adds delivery mode algorithm branch logic to the main order delivery process code logic, results in strong coupling between the delivery mode algorithm branch and the main process logic. Furthermore, the fixed configuration of delivery mode rule attributes easily leads to the delivery program becoming increasingly bloated due to branch code, hindering the maintenance and expansion of the order processing process and resulting in low order processing efficiency. Summary of the Invention

[0003] The purpose of this application is to provide a method, apparatus, storage medium, and processor for processing orders.

[0004] To achieve the above objectives, the first aspect of this application provides a method for processing orders, comprising:

[0005] Obtain orders to be delivered, which include multiple items to be delivered and material information for each item;

[0006] Determine the rule configuration group for each item to be delivered. The rule configuration group includes the material information, delivery mode, and delivery rules of the item to be delivered.

[0007] Upon receiving a delivery request for at least one item to be delivered, the item to be delivered is identified as the target item.

[0008] Invoke the target rule configuration group corresponding to each target material to determine the target delivery mode and target delivery rules for each target material;

[0009] Target delivery data is generated for each target material based on the target delivery rules. The target delivery data includes the delivery plan data for each target material.

[0010] Call the target delivery interface implementation class object corresponding to the target delivery mode, so as to determine the delivery task data for the target material according to the delivery plan data through the target delivery interface implementation class object.

[0011] In this embodiment of the application, the processing method further includes: after determining the rule configuration group of each material to be delivered, creating a delivery interface implementation class corresponding to each delivery mode according to the delivery modes in all rule configuration groups; adding annotations to each delivery interface implementation class to identify each delivery interface implementation class; and scanning each annotated delivery interface implementation class through the IOC container to create a delivery interface implementation class object corresponding to each delivery interface implementation class in the IOC container.

[0012] In this embodiment, calling the target delivery interface implementation class object corresponding to the target delivery mode includes: calling the delivery strategy factory class so that the delivery strategy factory class calls the target delivery interface implementation class object from the IOC container; calling the delivery business facade class so that the delivery business facade class calls the target delivery interface implementation class object obtained by the delivery strategy factory class and passes the target delivery interface implementation class object to the delivery strategy execution context class; and calling the delivery strategy execution context class so that the delivery strategy execution context class calls the target delivery interface implementation class object passed by the delivery business facade class.

[0013] In this embodiment of the application, the processing method further includes: after determining the delivery task data for the target material, sending the delivery task data to the terminal so that the terminal generates a corresponding material delivery list based on the delivery task data.

[0014] In this embodiment of the application, the processing method further includes: after delivering the target material according to the material delivery list, updating the status of the delivery task data from the undelivered status to the delivered status.

[0015] In this embodiment of the application, the processing method further includes: after determining the rule configuration group for each material to be delivered, persisting the rule configuration group to the database.

[0016] In this embodiment of the application, the processing method further includes: after calling the target rule configuration group corresponding to each target material, caching each target rule configuration group sequentially to the data buffer to improve the calling speed when calling the target rule configuration group again.

[0017] A second aspect of this application provides a machine-readable storage medium storing instructions that, when executed by a processor, configure the processor to perform the aforementioned order processing method.

[0018] A third aspect of this application provides a processor configured to perform the above-described order processing method.

[0019] A fourth aspect of this application provides an order processing apparatus, including the processor described above.

[0020] The above technical solution can call the target rule configuration group corresponding to each target material, generate target delivery data for each target material according to the target delivery rules, and call the target delivery interface implementation class object corresponding to the target delivery mode. The target delivery interface implementation class object determines the delivery task data for the target material according to the delivery plan data. The delivery rules and the corresponding delivery business rule algorithms are decoupled, which can flexibly manage the delivery rules of materials without affecting their delivery business rule algorithms. This is beneficial to the maintenance and expansion of the order processing process and greatly improves the efficiency of order processing.

[0021] Other features and advantages of the embodiments of this application will be described in detail in the following detailed description section. Attached Figure Description

[0022] The accompanying drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the following detailed description to explain the embodiments of this application, but do not constitute a limitation on the embodiments of this application. In the drawings:

[0023] Figure 1 The schematic diagram illustrates a flowchart of a method for processing orders according to an embodiment of this application;

[0024] Figure 2 The schematic diagram illustrates the principle of a method for processing orders according to an embodiment of this application;

[0025] Figure 3 The diagram illustrates the internal structure of a computer device according to an embodiment of this application. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for illustration and explanation of the embodiments of this application and are not intended to limit the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0027] Figure 1 A schematic flowchart illustrating a method for processing orders according to an embodiment of this application is shown. Figure 1 As shown in one embodiment of this application, a method for processing orders is provided, including the following steps:

[0028] Step 101: Obtain the orders to be delivered. The orders to be delivered include multiple materials to be delivered and material information for each material.

[0029] Step 102: Determine the rule configuration group for each material to be delivered. The rule configuration group includes the material information, delivery mode, and delivery rules of the material to be delivered.

[0030] Step 103: Upon receiving a delivery request for at least one material to be delivered, the material to be delivered is identified as the target material.

[0031] Step 104: Invoke the target rule configuration group corresponding to each target material to determine the target delivery mode and target delivery rules for each target material.

[0032] Step 105: Generate target delivery data for each target material according to the target delivery rules. The target delivery data includes the delivery plan data for each target material.

[0033] Step 106: Call the target delivery interface implementation class object corresponding to the target delivery mode, so as to determine the delivery task data for the target material according to the delivery plan data through the target delivery interface implementation class object.

[0034] The processor can acquire orders awaiting delivery. Each order includes multiple materials to be delivered and material information for each material. Material information may include material codes and material processing steps. The processor can determine the rule configuration group for each material awaiting delivery. The rule configuration group includes the material information, delivery mode, and delivery rules for each material. Specifically, users can define the delivery mode and corresponding delivery rules for each material in the rule configuration center. The processor can retrieve the delivery mode and corresponding delivery rules for each material from the rule configuration center and, combined with the material information, determine the rule configuration group for each material. Delivery rules may include delivery location rules, delivery trigger point rules, delivery point workstation rules, delivery mode rules, order-specified supplier rules, and delivery route model rules, etc.

[0035] Upon receiving a delivery request for at least one item to be delivered, the processor can identify the target item. Then, the processor can invoke the target rule configuration group corresponding to each target item to determine the target delivery mode and target delivery rules for each item. The processor can generate target delivery data for each target item based on the target delivery rules. Target delivery data includes delivery plan data for each target item. For example, delivery plan data includes delivery time, delivery quantity, and delivery route. After determining the target delivery data for each target item, the processor can invoke the target delivery interface implementation class object corresponding to the target delivery mode. This target delivery interface implementation class object includes its implemented delivery strategy interface method, which encapsulates the delivery business rule algorithm corresponding to the target delivery mode. Therefore, after invoking the target delivery interface implementation class object corresponding to the target delivery mode, the processor can determine the delivery task data for the target item according to the delivery plan data.

[0036] The above technical solution can call the target rule configuration group corresponding to each target material, generate target delivery data for each target material according to the target delivery rules, and call the target delivery interface implementation class object corresponding to the target delivery mode. The target delivery interface implementation class object determines the delivery task data for the target material according to the delivery plan data. The delivery rules and the corresponding delivery business rule algorithms are decoupled, which can flexibly manage the delivery rules of materials without affecting their delivery business rule algorithms. This is beneficial to the maintenance and expansion of the order processing process and greatly improves the efficiency of order processing.

[0037] In one embodiment, the processing method further includes: after determining the rule configuration group for each material to be delivered, creating a delivery interface implementation class corresponding to each delivery mode according to the delivery modes in all rule configuration groups; adding annotations to each delivery interface implementation class to identify each delivery interface implementation class; and scanning each annotated delivery interface implementation class through the IOC container to create a delivery interface implementation class object corresponding to each delivery interface implementation class in the IOC container.

[0038] After determining the rule configuration group for each item to be delivered, the processor can create delivery interface implementation classes corresponding to each delivery mode based on the delivery modes in all rule configuration groups. By creating delivery interface implementation classes corresponding to each delivery mode, the processor can generate delivery task data such as the quantity, delivery order, and delivery route of the items to be delivered under that delivery mode, according to its delivery rules. This data guides users, delivery systems, or automated equipment to deliver the items according to the delivery task data. The processor can add annotations to each delivery interface implementation class to identify it. The annotation can be `@LogisticsModeAnno`. Then, the processor can scan each annotated delivery interface implementation class through the IOC container to create a delivery interface implementation class object corresponding to each class in the IOC container.

[0039] In one embodiment, invoking the target delivery interface implementation class object corresponding to the target delivery mode includes: invoking the delivery strategy factory class so that the delivery strategy factory class can invoke the target delivery interface implementation class object from the IOC container; invoking the delivery business facade class so that the delivery business facade class can invoke the target delivery interface implementation class object obtained by the delivery strategy factory class and pass the target delivery interface implementation class object to the delivery strategy execution context class; and invoking the delivery strategy execution context class so that the delivery strategy execution context class can invoke the target delivery interface implementation class object passed by the delivery business facade class.

[0040] When invoking the target delivery interface implementation class object corresponding to the target delivery pattern, the processor first calls the delivery strategy factory class, which then retrieves the target delivery interface implementation class object from the IOC container. Next, the processor calls the delivery business facade class, which in turn calls the target delivery interface implementation class object obtained by the delivery strategy factory class and passes it to the delivery strategy execution context class. Further, the processor can call the delivery strategy execution context class, which then calls the target delivery interface implementation class object passed by the delivery business facade class. At this point, the invocation of the target delivery interface implementation class object corresponding to the target delivery pattern is considered complete.

[0041] In one embodiment, the processing method further includes: after determining the delivery task data for the target material, sending the delivery task data to the terminal so that the terminal generates a corresponding material delivery list based on the delivery task data.

[0042] After determining the delivery task data for the target material, the processor can send the delivery task data to the terminal. The terminal can be a WMS or SAP / SRM, i.e., a warehouse management system. After receiving the delivery task data, the terminal can generate a corresponding material shipment list based on the delivery task data. The material shipment list can include the quantity of materials to be shipped, the shipping time, the shipping warehouse, and the shipping route, etc.

[0043] In one embodiment, the processing method further includes: after delivering the target material according to the material delivery list, updating the status of the delivery task data from the undelivered status to the delivered status.

[0044] After generating the corresponding material delivery list based on the delivery task data, the terminal can send the material delivery list to the corresponding warehouse personnel. The warehouse personnel can then pick, ship, and distribute the goods according to the material delivery list. After distributing the target materials according to the material delivery list, the warehouse personnel can send a delivery completion signal to the processor. Upon receiving this delivery completion signal, the processor can update the delivery task data status from "not delivered" to "delivered".

[0045] In one embodiment, the processing method further includes: after determining the rule configuration group for each item to be delivered, persisting the rule configuration group to a database.

[0046] After determining the rule configuration group for each item to be delivered, the processor can persist the rule configuration group to a database. Persistence is the mechanism for converting the item information, delivery mode, and delivery rules within the rule configuration group between persistent and transient states. For example, the database can be a relational database, including MySQL, SQL Server, and Oracle. Persisting the rule configuration group to a database facilitates its later maintenance.

[0047] In one embodiment, the processing method further includes: after calling the target rule configuration group corresponding to each target material, caching each target rule configuration group sequentially to the data buffer to improve the calling speed when calling the target rule configuration group again.

[0048] After invoking the target rule configuration group corresponding to each target material, the processor can cache each target rule configuration group sequentially into the data buffer to improve the invocation speed of subsequent calls to the target rule configuration group. Caching methods can include bypass caching mode, read-through mode, write-through mode, and asynchronous cache write mode. The processor can select different caching methods based on the number of times each target rule configuration group is called to minimize data read and write operations, thereby improving the speed of subsequent calls.

[0049] In one embodiment, such as Figure 2 The diagram shown illustrates the principle of an order processing method.

[0050] Users can configure the delivery mode configuration rules for each material to be delivered in the WebUI's rule configuration center. These configuration rules can include definitions for delivery location, trigger point, delivery point workstation, delivery mode rules, order-specified supplier rules, and delivery route model rules. After configuring the delivery mode configuration rules for each material, a rule configuration group for each material can be generated by combining its material information. This rule configuration group can then be stored in a database, containing the configuration rule data (delivery rules). Alternatively, the rule configuration group can be cached. Next, a delivery strategy interface can be defined, and delivery strategy interface implementation classes 1 through N can be defined for each delivery mode of each material. Further, annotations can be added to each delivery strategy interface implementation class. During IOC container initialization, the IOC container scans the annotated delivery strategy interface implementation classes and can create delivery strategy interface implementation class objects and inject them into the IOC container. You can define a delivery business facade class, a delivery strategy factory class, and a delivery strategy execution context class. The delivery strategy factory class handles the logic of retrieving delivery strategy interface implementation class objects from the IOC container. The delivery business facade class calls the delivery strategy interface implementation class object obtained by the delivery strategy factory class and passes it to the delivery strategy execution context class. The delivery strategy execution context class can then call the delivery strategy interface implementation class object.

[0051] In one embodiment, when processing an order, the order data corresponding to the order can be received first. The order data includes the Bill of Materials (BOM) information. The BOM information includes material codes and material processes, among other material information. Then, delivery rule configuration modeling (i.e., determining the rule configuration group for the materials to be delivered) can be completed according to the delivery mode. If the order contains order data for multiple products, it can be decomposed into multiple work orders, each work order including work order scheduling, work order material requirement matching information, and inventory availability. Afterwards, the work orders can be issued, matching delivery modeling data (target delivery rules), and generating delivery demand data and delivery plan data based on the delivery modeling data. Further, the delivery plan data can be grouped according to the delivery mode, the delivery strategy interface implementation class can be obtained according to the delivery mode, the delivery strategy interface implementation class object corresponding to the delivery strategy interface implementation class can be called, and the delivery plan data can be passed to the delivery strategy method of the delivery strategy interface implementation class object to generate delivery task list data (delivery task data). For example, in the SPS (Multi-Station Single-Unit Multi-Material Delivery) model, if the order BOM requires the production of a complete machine, then the corresponding delivery task list data can be generated based on the delivery modeling data and the delivery strategy methods in the corresponding delivery strategy interface implementation class object for the various materials at multiple workstations. Then, the delivery task list data for each delivery mode can be sent to the WMS (or SAP / SRM) system. After receiving the delivery task list data (corresponding to offline inventory preparation), the WMS (or SAP / SRM) system generates delivery order data based on the delivery task list data (corresponding to offline picking, shipping, and delivery). After receiving the delivery order data, warehouse personnel can perform offline picking, shipping, and delivery according to the delivery order data. After the warehouse personnel deliver the materials according to the delivery order data, they can provide feedback on the material delivery information. After the shop floor operators receive the materials and the material delivery list, they can perform a confirmation of receipt action on the WebUI to update the delivery task list data status. When business requirements necessitate the addition of a new delivery mode, a corresponding delivery rule and an implementation class for the delivery strategy interface can be added. This allows for functional expansion without modifying the delivery business process code. Conversely, if business requirements necessitate modifying the configuration rules for an existing delivery mode (by modifying the delivery rules in the existing rule configuration group), the function can be updated directly by modifying the configuration rules corresponding to the delivery mode, without altering the delivery business process code.

[0052] The above technical solution can call the target rule configuration group corresponding to each target material, generate target delivery data for each target material according to the target delivery rules, and call the target delivery interface implementation class object corresponding to the target delivery mode. The target delivery interface implementation class object determines the delivery task data for the target material according to the delivery plan data. The delivery rules and the corresponding delivery business rule algorithms are decoupled, which can flexibly manage the delivery rules of materials without affecting their delivery business rule algorithms. This is beneficial to the maintenance and expansion of the order processing process and greatly improves the efficiency of order processing.

[0053] Figure 1 This is a flowchart illustrating an order processing method in one embodiment. It should be understood that, although... Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0054] In one embodiment, a storage medium is provided on which a program is stored, which, when executed by a processor, implements the above-described order processing method.

[0055] In one embodiment, a processor is provided for running a program, wherein the program executes the above-described order processing method during runtime.

[0056] In one embodiment, an order processing apparatus is provided, including the processor described above.

[0057] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor A01, a network interface A02, memory (not shown), and a database (not shown) connected via a system bus. The processor A01 provides computing and control capabilities. The memory includes internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02, and a database (not shown). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 stored in the non-volatile storage medium A04. The database stores data such as delivery task data. The network interface A02 communicates with external terminals via a network connection. When the processor A01 executes the computer program B02, it implements a method for processing orders.

[0058] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0059] This application provides an apparatus, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs the following steps: obtaining a delivery order, which includes multiple delivery items and material information for each delivery item; determining a rule configuration group for each delivery item, the rule configuration group including material information, delivery mode, and delivery rules for the delivery item; upon receiving a delivery request for at least one delivery item, identifying the delivery item as a target item; invoking the target rule configuration group corresponding to each target item to determine the target delivery mode and target delivery rules for each target item; generating target delivery data for each target item based on the target delivery rules, the target delivery data including delivery plan data for each target item; and invoking a target delivery interface implementation class object corresponding to the target delivery mode to determine delivery task data for the target item according to the delivery plan data through the target delivery interface implementation class object.

[0060] In one embodiment, the processing method further includes: after determining the rule configuration group for each material to be delivered, creating a delivery interface implementation class corresponding to each delivery mode according to the delivery modes in all rule configuration groups; adding annotations to each delivery interface implementation class to identify each delivery interface implementation class; and scanning each annotated delivery interface implementation class through the IOC container to create a delivery interface implementation class object corresponding to each delivery interface implementation class in the IOC container.

[0061] In one embodiment, invoking the target delivery interface implementation class object corresponding to the target delivery mode includes: invoking the delivery strategy factory class so that the delivery strategy factory class can invoke the target delivery interface implementation class object from the IOC container; invoking the delivery business facade class so that the delivery business facade class can invoke the target delivery interface implementation class object obtained by the delivery strategy factory class and pass the target delivery interface implementation class object to the delivery strategy execution context class; and invoking the delivery strategy execution context class so that the delivery strategy execution context class can invoke the target delivery interface implementation class object passed by the delivery business facade class.

[0062] In one embodiment, the processing method further includes: after determining the delivery task data for the target material, sending the delivery task data to the terminal so that the terminal generates a corresponding material delivery list based on the delivery task data.

[0063] In one embodiment, the processing method further includes: after delivering the target material according to the material delivery list, updating the status of the delivery task data from the undelivered status to the delivered status.

[0064] In one embodiment, the processing method further includes: after determining the rule configuration group for each item to be delivered, persisting the rule configuration group to a database.

[0065] In one embodiment, the processing method further includes: after calling the target rule configuration group corresponding to each target material, caching each target rule configuration group sequentially to the data buffer to improve the calling speed when calling the target rule configuration group again.

[0066] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing a program that initializes processing method steps for orders.

[0067] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0068] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0069] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0070] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0071] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0072] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0073] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0074] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0075] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for processing orders, characterized in that, The processing method includes: Obtain orders to be delivered, which include multiple items to be delivered and material information for each item; Determine the rule configuration group for each material to be delivered, wherein the rule configuration group includes the material information, delivery mode, and delivery rules of the material to be delivered; Upon receiving a delivery request for at least one item to be delivered, the item to be delivered is identified as the target item. Invoke the target rule configuration group corresponding to each target material to determine the target delivery mode and target delivery rules for each target material; Target delivery data is generated for each target material based on the target delivery rules, and the target delivery data includes delivery plan data for each target material; Invoke the target delivery interface implementation class object corresponding to the target delivery mode, so as to determine the delivery task data for the target material through the target delivery interface implementation class object according to the delivery plan data; The processing method further includes: After determining the rule configuration group for each material to be delivered, create a delivery interface implementation class corresponding to each delivery mode based on the delivery modes in all rule configuration groups; Add annotations to each delivery interface implementation class to identify each delivery interface implementation class; The IOC container scans each annotated delivery interface implementation class to create a delivery interface implementation class object corresponding to each delivery interface implementation class in the IOC container; The invocation of the target delivery interface implementation class object corresponding to the target delivery mode includes: Invoke the delivery strategy factory class so that the delivery strategy factory class can call the target delivery interface implementation class object from the IOC container; The delivery business facade class is invoked so that the delivery business facade class calls the target delivery interface implementation class object obtained by the delivery strategy factory class, and passes the target delivery interface implementation class object to the delivery strategy execution context class. The delivery strategy execution context class is invoked to call the target delivery interface implementation class object passed by the delivery business facade class.

2. The order processing method according to claim 1, characterized in that, The processing method further includes: After determining the delivery task data for the target material, the delivery task data is sent to the terminal so that the terminal can generate a corresponding material delivery list based on the delivery task data.

3. The order processing method according to claim 2, characterized in that, The processing method further includes: After the target material is delivered according to the material delivery list, the status of the delivery task data is updated from undelivered to delivered.

4. The order processing method according to claim 1, characterized in that, The processing method further includes: After determining the rule configuration group for each item to be delivered, the rule configuration group is persisted to the database.

5. The order processing method according to claim 4, characterized in that, The processing method further includes: After invoking the target rule configuration group corresponding to each target material, each target rule configuration group is cached sequentially in the data buffer to improve the invocation speed when the target rule configuration group is invoked again.

6. A machine-readable storage medium storing instructions thereon, characterized in that, When executed by a processor, this instruction causes the processor to be configured to perform the order processing method according to any one of claims 1 to 5.

7. A processor, characterized in that, It is configured to perform the order processing method according to any one of claims 1 to 5.

8. An order processing apparatus, characterized in that, The device includes the processor according to claim 7.

Citation Information

Patent Citations

  • Abnormal order delivery method and device, equipment and storage medium

    CN113379101A

  • Order goods distribution method and device, and computer readable medium

    CN113762829A