Waybill information processing methods, computer equipment, readable storage media and program products
By constructing a rule engine network and using the Rete algorithm to split and merge logistics settlement rules, the problem of low efficiency in waybill information processing was solved, achieving efficient waybill information processing and the ability to quickly respond to changes in demand.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SF TECH CO LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
Existing methods for processing waybill information are inefficient and cannot effectively handle the increase in the number of waybill information caused by the increase in transaction volume on e-commerce platforms.
By constructing a rule engine network and using the Rete algorithm to split and merge the logistics settlement rules of e-commerce platforms, condition matching and rule matching are performed to generate target logistics settlement rules, thereby improving the efficiency of waybill information processing.
It improves the efficiency of waybill information processing, supports dynamic modification of business rules, quickly responds to changes in requirements, and simplifies the implementation of complex business rules.
Smart Images

Figure CN122309560A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of logistics technology, and in particular to a waybill information processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of computer technology, shopping through e-commerce platforms has become mainstream. Trend analysis of e-commerce return scenarios shows that while transaction volume in the e-commerce industry has been rising continuously over the past few years, transportation issues have become increasingly prominent. As e-commerce transaction volume increases, the amount of waybill information that needs to be processed also grows accordingly. However, waybill information has complex processing rules, leading to a decline in processing efficiency.
[0003] Therefore, current methods for processing waybill information suffer from low processing efficiency. Summary of the Invention
[0004] Therefore, it is necessary to provide a waybill information processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve processing efficiency in response to the above-mentioned technical problems.
[0005] Firstly, this application provides a method for processing waybill information, the method comprising:
[0006] Retrieve pending logistics order information;
[0007] The logistics waybill information is input into a preset rule engine network, and the rule engine network performs condition matching between the logistics waybill information and each matching condition corresponding to each logistics settlement rule to obtain at least one target matching condition.
[0008] The rule engine network performs rule matching on each of the target matching conditions to obtain the target logistics settlement rules;
[0009] The logistics waybill information is processed according to the target logistics settlement rules to obtain the settlement information corresponding to the logistics waybill information.
[0010] Secondly, this application provides a waybill information processing device, the device comprising:
[0011] The acquisition module is used to acquire logistics waybill information to be processed;
[0012] The input module is used to input the logistics waybill information into a preset rule engine network, and the rule engine network performs condition matching between the logistics waybill information and the matching conditions corresponding to each logistics settlement rule to obtain at least one target matching condition.
[0013] The output module is used to perform rule matching on each of the target matching conditions by the rule engine network to obtain the target logistics settlement rules;
[0014] The processing module is used to process the logistics waybill information according to the target logistics settlement rules to obtain the settlement information corresponding to the logistics waybill information.
[0015] Thirdly, this application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method.
[0016] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0017] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0018] The aforementioned method, apparatus, computer equipment, computer-readable storage medium, and computer program product for processing waybill information inputs logistics waybill information into a rule engine network. The rule engine network then performs condition matching based on the waybill information, outputs target logistics settlement rules according to the matching conditions, and processes the waybill information based on these rules. Compared to the traditional method where each e-commerce platform processes the information individually, this solution uses a rule engine network to perform rule matching on the waybill information, obtains the corresponding settlement rules, and performs logistics settlement based on these rules, thus improving the efficiency of logistics waybill information processing. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating a waybill information processing method in one embodiment;
[0021] Figure 2 This is a flowchart illustrating the network processing steps of a rule engine in one embodiment;
[0022] Figure 3 This is a flowchart illustrating the waybill information processing method in another embodiment;
[0023] Figure 4 This is a structural block diagram of a waybill information processing device in one embodiment;
[0024] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0026] In one embodiment, such as Figure 1 As shown, a waybill information processing method is provided. This embodiment illustrates the method by applying it to a server. It is understood that this method can also be applied to a terminal, or to a system including a server and a terminal, and is implemented through the interaction between the server and the terminal, including the following steps S202 to S208. Wherein:
[0027] Step S202: Obtain the logistics waybill information to be processed.
[0028] With the development of online shopping, the number of logistics orders generated by e-commerce platforms is gradually increasing, thus requiring improved efficiency in processing these orders. Logistics order processing includes stages such as goods collection, transportation, warehousing, and reprocessing, encompassing services like overweight value-added services. Different e-commerce platforms have different processing rules, necessitating rule detection and matching. During processing, the server can first obtain the logistics order information to be processed through components embedded in the e-commerce platform's application. This logistics order information can include shipping and return orders from multiple e-commerce platforms. The logistics order information includes a waybill identifier and various product information. The waybill identifier can represent the unique identifier of the logistics order or the platform from which it originated; specifically, it can be the order access code. The logistics order information can include product information for multiple products, which may be products requiring shipment or return. Different products may have different logistics processing rules, therefore the server needs to perform rule matching based on the information in the logistics order. Product information can include the product name, composition information, and price.
[0029] Step S204: Input the above logistics waybill information into a preset rule engine network. The rule engine network performs condition matching based on the above logistics waybill information and the various matching conditions corresponding to the logistics settlement rules to obtain at least one target matching condition.
[0030] The process involves pre-building a rule engine network and deploying it on a server. This construction process may include the following steps: obtaining the logistics settlement rules corresponding to each e-commerce platform. These logistics settlement rules can include rules regarding the value-added services required for transporting different goods on different platforms, as well as the resources required for these value-added services. The server can then break down each logistics settlement rule. For example, each logistics settlement rule may have multiple conditions, specifically the e-commerce platform represented by the rule, the goods that the rule can satisfy, and the value-added services required for transporting those goods. The server can obtain the rule features of each unit's conditions within the logistics settlement rule, and based on these features, identify whether each condition is related to transportation and whether it is a complete condition. Therefore, the server can extract all complete matching conditions related to logistics transportation from the logistics settlement rule. That is, the e-commerce platform represented by the rule, the goods that the rule can satisfy, and the value-added services required for transporting those goods can be extracted as three separate conditions, resulting in multiple matching conditions. Each logistics settlement rule corresponds to multiple matching conditions, allowing the server to build a rule engine network based on these matching conditions. The rule engine network can include multiple nodes, each representing a matching condition. That is, the server breaks down the logistics settlement rules into multiple matching conditions, forming multiple nodes, and then performs rule matching on the logistics waybill information based on these multiple nodes.
[0031] For example, the server can input the above logistics waybill information into a preset rule engine network, and the rule engine network can perform condition matching based on the above waybill identifier and the above product information. For example, it can match the waybill identifier and product information with the matching conditions corresponding to each node, thereby obtaining various target matching conditions that match the waybill identifier and product information.
[0032] Step S206: The rule engine network performs rule matching on each target matching condition to obtain the target logistics settlement rule.
[0033] The rule engine network performs rule matching based on the target matching conditions that match the aforementioned waybill identifier and various product information, so that the server can obtain the target logistics settlement rules and output the aforementioned target logistics settlement rules.
[0034] In one embodiment, the method further includes: when an update to the logistics settlement rule is detected, obtaining update information corresponding to the logistics settlement rule; determining, based on the matching relationship between the logistics settlement rule and each of the matching conditions, the matching conditions to be updated that match the logistics settlement rule; updating the matching conditions to be updated based on the update information to obtain the updated matching conditions; obtaining the nodes to be updated corresponding to the matching conditions to be updated in the rule engine network; and updating the corresponding nodes in the rule engine network based on the updated matching conditions.
[0035] In this embodiment, the logistics settlement rules of the e-commerce platform may be updated. Therefore, the server needs to respond promptly to these updates and update the rule engine network accordingly. The rule engine network includes multiple nodes, each representing a matching condition within a specific logistics settlement rule. When the server detects an update to a logistics settlement rule, it obtains the corresponding update information, including which conditions within the rule have been updated. Based on this information, the server determines the matching conditions to be updated and updates them accordingly, resulting in the updated matching conditions. The server can also obtain the corresponding nodes in the rule engine network that need updating for each matching condition, allowing it to update these nodes based on the updated matching conditions.
[0036] If the updated node is a common node for multiple logistics settlement rules, and the updated node's matching conditions differ from those of other logistics settlement rules for that node, the server can create a new node in the rule engine network to represent the updated node. This updated node will then be connected to other nodes according to the relationships between the matching conditions in the logistics settlement rules. Specifically, each node in the rule engine network can be stored in a rule configuration file. When the server detects an update to a logistics settlement rule, it can update the rule engine network simply by modifying the configuration file and testing the new process, thereby improving the processing efficiency of logistics waybills.
[0037] Step S208: Process the above logistics waybill information according to the above target logistics settlement rules to obtain the settlement information corresponding to the logistics waybill information.
[0038] The target logistics settlement rule can be a logistics settlement rule that matches both the waybill identifier and various product information in the aforementioned reverse physical waybill information. The server can determine multiple logistics settlement rules based on a rule engine network from multiple matching conditions, and then identify the target logistics settlement rule that matches the aforementioned logistics waybill information to be processed. Based on the target logistics settlement rule, the server determines the settlement information corresponding to the logistics waybill information, where the settlement information represents the resources for value-added services required to process the aforementioned logistics waybill. The target logistics settlement rule includes processing rules for the logistics waybill, including the required value-added services and resource request information for these services. When processing the logistics waybill, the server needs to use the value-added services that match the logistics settlement rule and needs to request the corresponding resources according to the specific service content of the value-added services to complete the processing of the logistics waybill information. The resource request information corresponding to the value-added services in the aforementioned target logistics settlement rule can be provided by users of the e-commerce platform.
[0039] In the aforementioned waybill information processing method, logistics waybill information is input into a rule engine network. The rule engine network performs condition matching based on the waybill identifier and various product information. Based on the target matching conditions that match the waybill identifier and various product information, it outputs target logistics settlement rules, and processes the logistics waybill information according to these rules. Compared to the traditional method where each e-commerce platform processes the information individually, this solution uses a rule engine network to perform rule matching on logistics waybill information, obtains the corresponding settlement rules, and performs logistics settlement based on these rules, thus improving the efficiency of logistics waybill information processing.
[0040] In one embodiment, the system further includes: the rule engine network includes multiple nodes that are connected; each node is generated based on a preset pattern matching algorithm and various matching conditions; and each matching condition is obtained by splitting the logistics settlement rules corresponding to each preset e-commerce platform.
[0041] In this embodiment, the server can pre-deploy a rule engine network. The rule engine network can be constructed by breaking down the logistics settlement rules of various preset e-commerce platforms. Each preset e-commerce platform's logistics settlement rule includes multiple matching conditions. When constructing the rule engine network, the corresponding logistics settlement rules for each preset e-commerce platform can be obtained. Each logistics settlement rule can be broken down to obtain the matching conditions corresponding to each logistics settlement rule. When a logistics waybill information satisfies all the matching conditions of a logistics settlement rule, that logistics settlement rule is used as the target logistics settlement rule for that logistics waybill information.
[0042] The rule engine network comprises multiple nodes, each representing a matching condition. Each matching condition can be assigned a specific node based on a preset pattern matching algorithm. In other words, each extracted matching condition can be used as a node, with one node corresponding to one matching condition. The preset pattern matching algorithm can be the Rete algorithm, an efficient pattern matching algorithm for generative systems that uses network filtering to find all objects and rules matching each pattern. Its core idea is to construct a matching network using separate matching terms while caching intermediate results, trading space for time.
[0043] The aforementioned logistics settlement rules correspond to multiple matching conditions, meaning one logistics settlement rule corresponds to multiple nodes. Therefore, based on the logistics settlement rules, these nodes can be connected to obtain a rule engine network. For example, nodes belonging to the same logistics settlement rule can be connected according to the matching conditions of each node, thus obtaining the rule engine network. Furthermore, some nodes with common characteristics can be merged.
[0044] In one embodiment, the above-mentioned inputting the logistics waybill information into a preset rule engine network, and having the rule engine network perform condition matching between the logistics waybill information and each matching condition corresponding to each logistics settlement rule to obtain at least one target matching condition, includes: inputting the logistics waybill information into a preset rule engine network, and having the rule engine network perform condition matching between the logistics waybill information and each matching condition corresponding to at least one of the above-mentioned non-common nodes and common nodes to obtain at least one target matching condition.
[0045] In this embodiment, each node in the rule engine network includes at least one of non-common nodes and common nodes. Common nodes are obtained by merging nodes corresponding to common conditions in each matching condition. The various logistics settlement rules may contain common matching conditions, also referred to as common conditions. Common conditions refer to matching conditions with the same nature. These common conditions will have multiple corresponding common nodes in the rule engine network. These common nodes belong to the common part of the corresponding logistics settlement rules. To reduce storage pressure, the server can merge these common nodes. For example, the server can obtain the common conditions in each of the matching conditions corresponding to each node and merge the nodes corresponding to each common condition to obtain common nodes. The server can then connect the common nodes according to the various logistics settlement rules to obtain the rule engine network. For example, when the next node of a non-common node corresponding to a certain logistics settlement rule is a common node, the server can connect the non-common node to the merged node corresponding to the common node. Non-common nodes refer to nodes that do not have common conditions.
[0046] Specifically, the server incorporates a general standard module for a rule engine, which includes business rules for logistics scenarios across multiple e-commerce platforms—namely, multiple logistics settlement rules. This allows the server to leverage the Rete algorithm mentioned above, reducing rule storage by utilizing common elements between rules—that is, merging nodes corresponding to common conditions. These common elements represent shared conditions, which can be different in text but have the same meaning. The server can identify these common conditions through text feature recognition. The server can further break down each logistics settlement rule, treating each matching condition as a basic unit (a node), resulting in multiple nodes. These nodes are then connected to form a data identification network, resulting in the aforementioned rule engine network. When processing logistics waybill information, the server uses the waybill identifier and various product information as facts, propagating them through the rule engine network to match the target logistics settlement rule. Furthermore, the server can save temporary results of the matching process, such as which conditions in the rule engine network have already matched the waybill identifier or various product information, thus accelerating the matching process when encountering the same waybill information again.
[0047] Through the above embodiments, by separating the logistics settlement rules of various e-commerce platforms, constructing a rule engine network, and using the rule engine network to perform rule matching of logistics waybill information, the efficiency of logistics waybill information processing is improved.
[0048] In one embodiment, the logistics waybill information is input into a preset rule engine network, and the rule engine network performs condition matching between the logistics waybill information and each matching condition corresponding to at least one of the non-common nodes and common nodes to obtain at least one target matching condition. This includes: inputting the logistics waybill information into the preset rule engine network, and the rule engine network generating multiple information combinations based on the logistics waybill information; each of the information combinations includes the waybill identifier and / or at least one of the product information; and performing condition matching between each of the information combinations and each matching condition of at least one of the non-common nodes and common nodes in the rule engine network to obtain each target matching condition that matches each of the information combinations.
[0049] In this embodiment, the server can perform condition matching in the rule engine network based on the waybill identifier and various product information in the logistics waybill information, thereby obtaining the target logistics settlement rule. The aforementioned logistics waybill information may include multiple pieces of information; for example, product information may include information on various types of products and information on various attributes corresponding to the products. The server can perform the aforementioned condition matching by combining the various pieces of information in the logistics waybill information.
[0050] The rule engine network can include multiple nodes, each representing a matching condition. The server can input the aforementioned logistics waybill information into the preset rule engine network, which then retrieves the waybill identifier and various product information from the waybill information. The waybill identifier can represent a unique identifier for the logistics waybill, including but not limited to the e-commerce platform to which the waybill belongs and the order access code. The rule engine network can generate multiple information combinations based on the waybill identifier and various product information. The server can combine the waybill identifier and various product information in a random manner, such as combining the waybill identifier as a separate group, combining product information as a separate group, combining the waybill identifier with at least one product information, or combining at least two product information. Each of these information combinations includes groups consisting of the waybill identifier, groups consisting of at least one product information, and groups consisting of the waybill identifier and at least one product information.
[0051] The server can match the various information combinations obtained above with the nodes in the rule engine network. For example, the server determines the matching conditions corresponding to each node. Using the information combinations, the server matches them with the matching conditions corresponding to each node according to the connection relationship of the rule engine network, checking whether each information combination satisfies the matching conditions, and thus obtaining the target matching conditions that match each information combination. The server can then use the rule engine network to perform rule matching on each target matching condition to obtain the target logistics settlement rule. For example, based on the target matching conditions obtained, the server determines whether there are target matching conditions that can form a complete logistics settlement rule, and then determines the target logistics settlement rule based on the combined logistics settlement rules.
[0052] Specifically, such as Figure 2 As shown, Figure 2This is a flowchart illustrating the rule engine network processing steps in one embodiment. The server pre-collects logistics settlement rules from various e-commerce platforms, such as return rules, which can be in DRL (Deep Reinforcement Learning) format or XML (Extensible Markup Language) format. The server can utilize these logistics settlement rules to generate a rule engine network, thereby enabling the server to process various logistics waybill information. The logistics waybill information includes waybill identifiers and various product information, such as the waybill identifier, which may include the e-commerce client's code and order access code. The server can abstract the order access code and various product information from the logistics waybill information as input parameters and input them into the preset rule engine network. The server combines different values of the two parameters from each piece of information to form information combinations, and performs condition matching within the rule engine network. For example, the server uses these information combinations as facts for condition matching within the rule engine network. The matching conditions specifically include, but are not limited to, which e-commerce platform the logistics waybill belongs to, the product's weight calculation rules, and the calculation rules for the product's value-added service resources.
[0053] Finally, the system checks each matched condition and activates logistics settlement rules that have factual matches. For example, the server populates data for each matched condition that forms a complete rule, thereby obtaining the business logic of the complete logistics settlement rule corresponding to these matched conditions. The activated logistics settlement rule may serve as the target logistics settlement rule. Thus, the server can accurately identify and map the usage scenarios of all e-commerce platform return services and ultimately accurately match the settlement categories of various value-added services in each logistics scenario.
[0054] In this embodiment, the server can randomly combine various pieces of information in the logistics waybill information and match them with the conditions of various nodes in the rule engine network to obtain the target logistics settlement rules for processing the logistics waybill information, thereby improving the efficiency of logistics waybill information processing.
[0055] In one embodiment, the rule engine network performs rule matching on each of the target matching conditions to obtain the target logistics settlement rule, including: for each of the information combinations, obtaining each target matching condition that matches the information combination; determining the corresponding candidate logistics settlement rule based on each of the target matching conditions that matches the information combination; and outputting the target logistics settlement rule based on the same candidate logistics settlement rule among the candidate logistics settlement rules corresponding to each of the information combinations.
[0056] In this embodiment, there can be multiple information combinations. For each information combination, the server can match it with the matching conditions of each node in the rule engine network. The server can then obtain the matching conditions that match the information combination. The server can check if any of these matching conditions can form a complete logistics settlement rule. If so, the server populates the corresponding matching conditions with data to obtain the corresponding logistics settlement rule, which corresponds to the information combination. One information combination can correspond to at least one logistics settlement rule. Therefore, the server can determine the target logistics settlement rule based on the logistics settlement rules corresponding to each information combination.
[0057] For each information combination, the server can obtain the target matching conditions that match that information combination. Based on these matching conditions, the server can determine the corresponding candidate logistics settlement rules, that is, identify the candidate logistics settlement rules that can form a complete logistics settlement rule from the various target matching conditions. The server can then output the target logistics settlement rule based on the common candidate logistics settlement rules among the various candidate logistics settlement rules corresponding to the aforementioned information combination. Each information combination can correspond to at least one matched candidate logistics settlement rule. Therefore, the server can perform checks on the candidate logistics settlement rules matched by each information combination. For example, the server can use a candidate logistics settlement rule that exists in every information combination as the target logistics settlement rule, thereby ensuring that all information in the logistics waybill information can be processed based on the target logistics settlement rule.
[0058] Through this embodiment, the server can combine the candidate logistics settlement rules corresponding to each information combination to determine the target logistics settlement rule for processing logistics waybill information, thereby improving the processing efficiency of logistics waybill information.
[0059] In one embodiment, processing the logistics waybill information according to the aforementioned target logistics settlement rules to obtain settlement information corresponding to the logistics waybill information includes: determining resource request information for value-added services corresponding to the aforementioned logistics waybill information according to the aforementioned target logistics settlement rules; outputting the settlement information corresponding to the aforementioned logistics waybill information according to the aforementioned resource request information; and using the settlement information to request the value-added resources required to execute the logistics waybill corresponding to the aforementioned logistics waybill information.
[0060] In this embodiment, the aforementioned target logistics settlement rules can be used to determine the resources required for processing value-added services corresponding to logistics waybill information. When the logistics end processes the logistics waybill information, it may require value-added services such as transportation, temporary storage, warehousing, and reprocessing. Therefore, the server needs to utilize the target logistics settlement rules to determine the business logic of the logistics waybill information for different e-commerce platforms. For example, after obtaining the target logistics settlement rules, the server can determine the resource request information for the value-added services corresponding to the logistics waybill information based on these rules. The server can then output this resource request information, specifically to the device of the user who initiated the logistics waybill information. Thus, the server can use the resource request information to request the value-added resources required to execute the logistics waybill information from the user.
[0061] Specifically, the server can utilize the target logistics settlement rules to standardize the settlement information of logistics waybill information. Based on the target logistics settlement rules, the server can determine the category of the business logic for processing logistics waybill information, then match the relevant value-added service resources needed to process the logistics waybill information, and obtain the corresponding resource request information. The server then outputs the corresponding settlement information based on the resource request information, prompting the user of the relevant e-commerce platform to provide the corresponding value-added resources. After receiving the value-added resources provided by the user, the server can output them to the logistics waybill information and begin processing the logistics waybill.
[0062] In this embodiment, the server can use the matched target logistics settlement rules to process logistics waybill information, thereby improving the processing efficiency of logistics waybills.
[0063] In one exemplary embodiment, such as Figure 3 As shown, Figure 3 This is a flowchart illustrating a waybill information processing method in another embodiment. In this embodiment, the e-commerce platform's devices can perform various modification operations, including but not limited to restrictions on unapproved interfaces, waybill modifications (including cross-referencing, duplication, forwarding, and return), batch waybill modifications, and waybill corrections. The aforementioned waybills can be logistics waybills. The e-commerce platform's devices then input the modified logistics waybill information into the server for processing.
[0064] The server utilizes a rule engine network to perform condition matching based on the input logistics waybill information. This matching determines the target logistics settlement rule, and the server then processes the waybill information according to the business logic of this rule. For example, it might set the waybill information to prepaid settlement based on the target settlement rule. Furthermore, the server can store temporary matching results from the rule engine network in a database to improve the matching speed for subsequent matches of the same type.
[0065] Through the above embodiments, the server performs rule matching on logistics waybill information via a rule engine network to obtain the settlement rules corresponding to the waybill information, and performs logistics settlement based on the settlement rules, thereby improving the efficiency of logistics waybill information processing. Furthermore, by separating business rules from application code, the server simplifies the implementation of complex business rules, supports dynamic modification of business rules, and can quickly respond to rule changes caused by changes in requirements.
[0066] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0067] Based on the same inventive concept, this application also provides a waybill information processing device for implementing the waybill information processing method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more waybill information processing device embodiments provided below can be found in the limitations of the waybill information processing method described above, and will not be repeated here.
[0068] In one exemplary embodiment, such as Figure 4 As shown, a waybill information processing device is provided, including: an acquisition module 500, an input module 502, an output module 504, and a processing module 506, wherein:
[0069] The acquisition module 500 is used to acquire logistics waybill information to be processed.
[0070] The input module 502 is used to input the above logistics waybill information into a preset rule engine network, and the rule engine network performs condition matching between the above logistics waybill information and the matching conditions corresponding to each logistics settlement rule to obtain at least one target matching condition.
[0071] Output module 504 is used to perform rule matching on each of the above target matching conditions by the rule engine network to obtain the target logistics settlement rules.
[0072] The processing module 504 is used to process the logistics waybill information according to the above target logistics settlement rules to obtain the settlement information corresponding to the logistics waybill information.
[0073] In one embodiment, the input module 502 is used to input the logistics waybill information into a preset rule engine network, and the rule engine network performs condition matching between the logistics waybill information and at least one of the corresponding matching conditions of the non-common nodes and common nodes to obtain at least one target matching condition.
[0074] In one embodiment, the input module 502 is used to input the logistics waybill information into a preset rule engine network, and the rule engine network generates multiple information combinations based on the waybill identifier and various product information; each of the information combinations includes the waybill identifier and / or at least one of the product information; the information combinations are matched with the matching conditions of at least one of the non-common nodes and common nodes in the rule engine network to obtain the target matching conditions that match each of the information combinations.
[0075] In one embodiment, the input module 502 is configured to: obtain each target matching condition that matches each of the information combinations; determine the corresponding candidate logistics settlement rule based on each of the target matching conditions that matches the information combinations; and output the target logistics settlement rule based on the same candidate logistics settlement rule among the candidate logistics settlement rules corresponding to each of the information combinations.
[0076] In one embodiment, the processing module 504 is configured to determine the resource request information for the value-added service corresponding to the logistics waybill information according to the target logistics settlement rules; output the settlement information corresponding to the logistics waybill information according to the resource request information; and use the settlement information to request the value-added resources required to execute the logistics waybill corresponding to the logistics waybill information.
[0077] In one embodiment, the apparatus further includes: an update module, configured to: when an update of the logistics settlement rule is detected, obtain update information corresponding to the logistics settlement rule; determine, based on the matching relationship between the logistics settlement rule and each of the matching conditions, the matching conditions to be updated that match the logistics settlement rule; update the matching conditions to be updated based on the update information to obtain the updated matching conditions; obtain the nodes to be updated corresponding to the matching conditions to be updated in the rule engine network; and update the corresponding nodes in the rule engine network based on the updated matching conditions.
[0078] Each module in the aforementioned waybill information processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0079] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores logistics settlement rule data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a waybill information processing method.
[0080] Those skilled in the art will understand that Figure 5 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.
[0081] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described waybill information processing method.
[0082] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the above-described waybill information processing method.
[0083] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described waybill information processing method.
[0084] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0085] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0086] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0087] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method of processing waybill information, characterized by, The method includes: Retrieve pending logistics order information; The logistics waybill information is input into a preset rule engine network, and the rule engine network performs condition matching between the logistics waybill information and each matching condition corresponding to each logistics settlement rule to obtain at least one target matching condition. The rule engine network performs rule matching on each of the target matching conditions to obtain the target logistics settlement rules; The logistics waybill information is processed according to the target logistics settlement rules to obtain the settlement information corresponding to the logistics waybill information.
2. The method of claim 1, wherein, The rule engine network includes multiple nodes that are connected; each node is generated based on a preset pattern matching algorithm and various matching conditions; each matching condition is obtained by splitting the logistics settlement rules corresponding to each preset e-commerce platform.
3. The method of claim 2, wherein, Each node in the rule engine network includes at least one of non-common nodes and common nodes; common nodes are obtained by merging the nodes corresponding to each common condition in each of the matching conditions; The process involves inputting the logistics waybill information into a preset rule engine network, whereby the rule engine network performs condition matching between the logistics waybill information and various matching conditions corresponding to different logistics settlement rules to obtain at least one target matching condition, including: The logistics waybill information is input into a preset rule engine network, and the rule engine network performs condition matching between the logistics waybill information and each of the non-common nodes and common nodes, corresponding to at least one matching condition, to obtain at least one target matching condition.
4. The method of claim 3, wherein, The logistics waybill information includes a waybill identifier and at least one piece of product information; The logistics waybill information is input into a preset rule engine network, whereby the rule engine network performs condition matching between the logistics waybill information and at least one corresponding matching condition among the non-common nodes and common nodes to obtain at least one target matching condition, including: The logistics waybill information is input into a preset rule engine network, which generates multiple information combinations based on the waybill identifier and various product information items; each information combination includes the waybill identifier and / or at least one of the product information items. Each of the information combinations is conditionally matched with at least one of the matching conditions of the non-common nodes and common nodes in the rule engine network to obtain each target matching condition that matches each of the information combinations.
5. The method of claim 4, wherein, The step of performing rule matching on each of the target matching conditions by the rule engine network to obtain the target logistics settlement rule includes: For each of the information combinations, obtain the target matching conditions that match the information combination; Based on each of the target matching conditions that match the information combination, the corresponding candidate logistics settlement rules are determined; Based on the same candidate logistics settlement rules among the candidate logistics settlement rules corresponding to each of the aforementioned information combinations, the target logistics settlement rule is output.
6. The method of claim 1, wherein, The step of processing the logistics waybill information according to the target logistics settlement rules to obtain the settlement information corresponding to the logistics waybill information includes: Based on the target logistics settlement rules, determine the resource request information for the value-added services corresponding to the logistics waybill information; Based on the resource request information, the settlement information corresponding to the logistics waybill information is output; the settlement information is used to request the value-added resources required to execute the logistics waybill corresponding to the logistics waybill information.
7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: When an update to the logistics settlement rule is detected, the update information corresponding to the logistics settlement rule is obtained; Based on the matching relationship between the logistics settlement rules and each of the matching conditions, determine each matching condition to be updated that matches the logistics settlement rules; Based on the update information, each of the matching conditions to be updated is updated to obtain the updated matching conditions. Obtain the corresponding nodes to be updated in the rule engine network for each of the matching conditions to be updated; Based on the updated matching conditions, the corresponding nodes in the rule engine network are updated.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.