Delivery verification configuration method and device, electronic equipment and storage medium
By obtaining and converting the shipping mutex configuration content during the shipping process, identifying and analyzing the package shipping information, querying and applying shipping mutex rules for verification, the problem of the inability to support the personalized needs of different warehouse verification attributes in the existing technology is solved, and a more efficient and flexible shipping verification process is achieved.
Patent Information
- Application Number
- CN202311126235.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-01
- Publication Date
- 2025-03-04
AI Technical Summary
The existing technology cannot dynamically and flexibly support the personalized needs of verification attributes of different warehouses, resulting in an increase in drivers' cargo delivery routes, increasing transportation costs and efficiency issues.
By providing a delivery verification configuration method, it includes obtaining the delivery mutually exclusive configuration content, converting it into the delivery mutually exclusive rules, identifying the package delivery information, analyzing the business identity, querying the matching delivery mutually exclusive rules, and verifying based on these rules to generate the mutually exclusive prompt information.
It realizes the personalized needs of dynamic and flexible support for different warehouse verification attributes, reduces the driver's cargo route, reduces the transportation cost and the probability of errors, and improves transportation efficiency and customer satisfaction.
Smart Images

Figure CN119558760A_ABST
Abstract
Description
Background Art
[0002] "Shipping" is the last link in logistics warehousing and is very important. Due to the different shipping modes of different warehouses, once the wrong goods are shipped, it will cause very serious losses.
[0003] The current delivery model usually involves loading packaged goods onto trucks. After packaging, a loading order needs to be printed and given to the driver for warehouse property transfer. However, goods from different target stores or even from different carriers are often loaded on one truck, causing the driver to double the distance they have to travel.
[0004] In order to reduce the drivers' delivery distance, the WMS (Warehouse Management System) system can be used to verify the loading order. However, since the loading verification procedure is relatively rigid, it is impossible to dynamically and flexibly support the personalized needs of different warehouse verification attributes.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide a shipment verification configuration method, a shipment verification configuration device, an electronic device and a storage medium, which can at least to a certain extent improve the problem in the related technology that it is impossible to dynamically and flexibly support the personalized needs of different warehouse verification attributes.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to one aspect of the present disclosure, a shipment verification configuration method is provided, comprising: in response to acquired mutually exclusive shipment configuration content, converting the mutually exclusive shipment configuration content into mutually exclusive shipment rules based on a data structure conversion model; in response to acquired shipment handover information, identifying package shipment information, and parsing the business identity of the package; querying the mutually exclusive shipment rules that match the business identity, and mapping the matching mutually exclusive shipment rules to a shipment mutual exclusion verification model; based on the mutually exclusive shipment verification model, performing a verification operation on the package shipment information to determine whether they are mutually exclusive when transported by the same vehicle, and generating mutual exclusion prompt information based on the verification result.
[0009] In one embodiment, in response to the acquired mutually exclusive shipment configuration content, the mutually exclusive shipment configuration content is converted into mutually exclusive shipment rules based on a data structure conversion model, including: acquiring the mutually exclusive shipment configuration content based on a configuration interface; parsing the business identity in the mutually exclusive shipment configuration content based on the data structure conversion model; extracting mutually exclusive attribute fields in the mutually exclusive shipment configuration content based on the data structure conversion model, and generating mutually exclusive expressions; constructing mutually exclusive conditions based on the mutually exclusive attribute fields and the mutually exclusive expressions; generating mutually exclusive rule details based on the mutually exclusive conditions and mutually exclusive words; generating the mutually exclusive shipment rules based on the business identity and the mutually exclusive rule details.
[0010] In one embodiment, the method further includes: persisting the shipment mutual exclusion rule into a rule database and writing it into a cache.
[0011] In one embodiment, the response to the acquired shipment handover information, identifying the package shipment information, and parsing the business identity of the package includes: obtaining operation authority based on an interceptor; intercepting the package shipment information when the package shipment information is generated by the shipment processing terminal based on the operation authority; parsing the business identity of the package shipment information based on an expression parsing engine, so as to start a query operation on the matching shipment mutually exclusive rules based on the parsing result, wherein the business identity includes the consignor, warehouse, and order type.
[0012] In one embodiment, the querying of the mutually exclusive shipping rule that matches the business identity includes: performing a manipulation and compilation operation on the business identity of the package based on a bytecode manipulation framework to generate a rule expression; and querying the matching mutually exclusive shipping rule based on the rule expression.
[0013] In one embodiment, the verification operation of whether the package shipment information is mutually exclusive when transported on the same vehicle based on the shipment mutual exclusion verification model includes: identifying the shipment attribute values of at least two packages in the package shipment information based on the attribute identification operation of the shipment mutual exclusion verification model; and performing mutual exclusion verification on the package shipment information based on the mapped mutual exclusion condition and the consistency of the shipment attribute values of the at least two packages.
[0014] In one embodiment, the mutually exclusive check on the package shipment information is performed based on the mutually exclusive condition mapped and the consistency of the shipment attribute values of the at least two packages, including: if the mutually exclusive condition is expressed as attribute mutual exclusion, and the shipment attribute values of the at least two packages are consistent, then obtaining the loaded package information that belongs to the same loading list as the package shipment information; identifying the loaded shipment attribute value in the loaded package information based on the attribute identification operation; if the shipment attributes of the at least two packages are inconsistent, or the shipment attribute values of the at least two packages are inconsistent with the loaded shipment attribute value, determining that the package shipment information is abnormal.
[0015] In one embodiment, the verification operation of whether the package shipment information is mutually exclusive when transported by the same vehicle based on the shipment mutual exclusion verification model also includes: detecting that the shipment attributes in the package shipment information are generated based on at least two sets of metadata, and splitting the at least two sets of metadata for mutual exclusion verification based on the equivalent verification and non-equivalent verification in the mapped mutually exclusive conditions.
[0016] In one embodiment, the generating of mutually exclusive prompt information based on the verification result includes: determining the corresponding mutually exclusive words based on the verification result; generating the mutually exclusive prompt information based on the corresponding mutually exclusive words, and pushing the mutually exclusive prompt information to the delivery processing terminal.
[0017] In one embodiment, it also includes: collecting processing logs for mutual exclusion verification of the package delivery information based on a wraparound aspect-oriented programming operation; performing data aggregation analysis on the processing logs to obtain trace verification data; and synchronizing the trace verification data to a distributed database based on an MQ message queue.
[0018] According to another aspect of the present disclosure, a shipment verification configuration device is provided, including: a conversion module, which is used to respond to the acquired shipment mutually exclusive configuration content and convert the shipment mutually exclusive configuration content into a shipment mutually exclusive rule based on a data structure conversion model; a parsing module, which is used to respond to the acquired shipment handover information, identify the package shipment information, and parse the business identity of the package; a query module, which is used to query the shipment mutually exclusive rule that matches the business identity, and map the matching shipment mutually exclusive rule to a shipment mutually exclusive verification model; a verification module, which is used to verify whether the package shipment information is mutually exclusive when using the same vehicle for transportation based on the shipment mutually exclusive verification model, and generate mutual exclusion prompt information based on the verification result.
[0019] According to another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned shipment verification configuration methods by executing the executable instructions.
[0020] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the above-mentioned shipment verification configuration methods is implemented.
[0021] The shipment verification configuration scheme provided by the embodiment of the present disclosure abstracts the shipment loading business, configures the configuration interface of the shipment mutual exclusion rules to obtain the shipment mutual exclusion configuration content, and converts the shipment mutual exclusion configuration content into the shipment mutual exclusion rules of the corresponding data structure based on the preset data structure conversion model. When the shipment handover information is obtained, the business identity of the package is parsed, and the shipment mutual exclusion rules matching the business identity are queried, so that in the shipment mutual exclusion verification model, the package shipment information is mutually exclusive verified based on the shipment mutual exclusion rules, and mutual exclusion prompt information is generated based on the verification result to prompt the shipping staff whether there are mutually exclusive packages to be shipped, so as to cover different users' different shipment loading verification rules as much as possible based on the self-operated shipment mutual exclusion rules, thereby realizing dynamic and flexible support for the personalized needs of different warehouse verification attributes.
[0022] From the user's perspective, by configuring the interface of mutually exclusive configuration content of shipment, the shipment verification application is made scalable. Furthermore, according to the actual business rules, verification rules that meet the actual needs are configured to diversify the configuration of verification rules. The verification rules configured according to the needs of different merchants can realize reliable verification of package mixing. While reducing development costs, improving production efficiency, reducing the probability of errors, and ensuring customer rights, it is beneficial to reduce the probability of sending wrong goods and improve the transportation efficiency of drivers.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0025] Figure 1 A schematic diagram showing a delivery verification configuration system structure in an embodiment of the present disclosure is shown;
[0026] Figure 2 A schematic diagram showing a method for configuring a shipment verification in an embodiment of the present disclosure is shown;
[0027] Figure 3A schematic diagram showing another method for configuring shipment verification in an embodiment of the present disclosure is shown;
[0028] Figure 4 A schematic block diagram showing a delivery verification configuration solution in an embodiment of the present disclosure is shown;
[0029] Figure 5 A schematic block diagram showing another delivery verification configuration solution in an embodiment of the present disclosure;
[0030] Figure 6 A schematic block diagram showing another delivery verification configuration solution in an embodiment of the present disclosure is shown;
[0031] Figure 7 A schematic block diagram showing another delivery verification configuration solution in an embodiment of the present disclosure;
[0032] Figure 8 A schematic diagram showing a shipment verification configuration device according to an embodiment of the present disclosure is shown;
[0033] Fig. 9 A schematic diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0035] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0036] The solution provided by the present application abstracts the shipment loading business, configures the configuration interface of the shipment mutual exclusion rules to obtain the shipment mutual exclusion configuration content, and converts the shipment mutual exclusion configuration content into the shipment mutual exclusion rules of the corresponding data structure based on the preset data structure conversion model. When the shipment handover information is obtained, the business identity of the package is parsed, and the shipment mutual exclusion rules matching the business identity are queried, so that the package shipment information is mutually exclusive checked based on the shipment mutual exclusion rules in the shipment mutual exclusion verification model, and mutual exclusion prompt information is generated based on the verification result to prompt the shipment staff whether there are mutually exclusive packages to be shipped, so as to cover different users' different shipment loading verification rules as much as possible based on the self-operated shipment mutual exclusion rules, thereby realizing dynamic and flexible support for the personalized needs of different warehouse verification attributes. From the user's perspective, by configuring the interface of mutually exclusive configuration content of shipment, the shipment verification application is made scalable. Furthermore, according to the actual business rules, verification rules that meet the actual needs are configured to diversify the configuration of verification rules. The verification rules configured according to the needs of different merchants can realize reliable verification of package mixing. While reducing development costs, improving production efficiency, reducing the probability of errors, and ensuring customer rights, it is beneficial to reduce the probability of sending wrong goods and improve the transportation efficiency of drivers.
[0037] To facilitate understanding, several terms involved in this application are first explained below.
[0038] SKU (Stock Keeping Unit): The basic unit for measuring inventory in and out, which can be in units of pieces, boxes, pallets, etc.
[0039] Metadata: also known as intermediary data or relay data, is data about data, mainly information describing data properties, used to support functions such as indicating storage location, historical data, resource search, and file records.
[0040] AOP (Aspect Oriented Programming): unified maintenance of program functions through pre-compilation and runtime dynamic proxy.
[0041] HBase: is a highly reliable, high-performance, column-oriented, scalable distributed database.
[0042] Data collection: Data collection is a method of data collection that mainly collects information about users’ usage and behavior habits on websites or apps.
[0043] Figure 1 A structural schematic diagram of a delivery verification configuration system in an embodiment of the present disclosure is shown, including multiple terminals 120 and a server cluster 140.
[0044] The terminal 120 may be a mobile terminal such as a mobile phone, a game console, a tablet computer, an e-book reader, smart glasses, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a smart home device, an AR (Augmented Reality) device, a VR (Virtual Reality) device, or the terminal 120 may also be a personal computer (PC), such as a laptop computer and a desktop computer.
[0045] The terminal 120 may be installed with an application for providing the shipment verification configuration.
[0046] The terminal 120 is connected to the server cluster 140 via a communication network. Optionally, the communication network is a wired network or a wireless network.
[0047] The server cluster 140 is a server, or is composed of several servers, or is a virtualization platform, or is a cloud computing service center. The server cluster 140 is used to provide background services for providing a shipment verification configuration application. Optionally, the server cluster 140 undertakes the main computing work, and the terminal 120 undertakes the secondary computing work; or, the server cluster 140 undertakes the secondary computing work, and the terminal 120 undertakes the main computing work; or, the terminal 120 and the server cluster 140 adopt a distributed computing architecture for collaborative computing.
[0048] In some optional embodiments, the server cluster 140 is used to store the shipment verification configuration model, etc.
[0049] Optionally, the client of the application installed in different terminals 120 is the same, or the client of the application installed on the two terminals 120 is the client of the same type of application of different control system platforms. Based on the different terminal platforms, the specific form of the client of the application may also be different, for example, the application client may be a mobile client, a PC client or a World Wide Web (Web) client.
[0050] Those skilled in the art will appreciate that the number of the terminals 120 may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or a greater number. The embodiment of the present application does not limit the number and device type of the terminals.
[0051] Optionally, the system may also include a management device ( Figure 1(not shown), the management device is connected to the server cluster 140 via a communication network. Optionally, the communication network is a wired network or a wireless network.
[0052] Optionally, the above-mentioned wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, the data exchanged through the network is represented by technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above-mentioned data communication technologies.
[0053] Below, the shipment verification configuration method, mobile terminal, writing device and processing method in this example implementation will be described in more detail with reference to the accompanying drawings and embodiments.
[0054] like Figure 2 As shown, according to an embodiment of the present disclosure, a method for configuring shipment verification includes:
[0055] Step S202: in response to the acquired mutually exclusive shipping configuration content, convert the mutually exclusive shipping configuration content into mutually exclusive shipping rules based on a data structure conversion model.
[0056] Among them, by setting up an interface for obtaining the mutually exclusive configuration content of shipment, a configuration interface for customized mutually exclusive shipment rules is provided to users, so that when generating a shipment handover document, the shipment handover information in the document can be automatically identified, thereby achieving perfect support for diversified businesses and avoiding the huge cost of waiting for a long time for software development before new demands can be faced.
[0057] Step S204, in response to the acquired delivery handover information, identifying the package delivery information and parsing the business identity of the package.
[0058] Among them, the package delivery information is specifically obtained based on the delivery handover information with the driver.
[0059] The business identity of a package includes, but is not limited to, the information of the consignor of the package, the warehouse information where the package was stored before packaging, and the order type of the package.
[0060] Step S206, querying the mutually exclusive shipping rules that match the business identity, and mapping the matching mutually exclusive shipping rules to the mutually exclusive shipping verification model.
[0061] Among them, the mutually exclusive rule for shipment specifically refers to checking whether there is mutual exclusion when different packages are transported by the same vehicle. Mutual exclusion refers to transporting goods from warehouses in different areas by the same vehicle, or transporting goods from different carriers by the same vehicle.
[0062] Step S208, based on the shipment mutual exclusion verification model, a verification operation is performed on the package shipment information to determine whether they are mutually exclusive when transported by the same vehicle, and mutual exclusion prompt information is generated based on the verification result.
[0063] Among them, the shipment mutual exclusion verification model is specifically used for the specific verification operation of whether they are mutually exclusive and the processing operation of the verification results.
[0064] In addition, the verification operation of whether the package delivery information is mutually exclusive when using the same vehicle for transportation is specifically based on the above-mentioned matching delivery mutual exclusion rules.
[0065] In this embodiment, the shipment loading business is abstracted, the configuration interface of the shipment mutual exclusion rules is configured to obtain the shipment mutual exclusion configuration content, and the shipment mutual exclusion configuration content is converted into the shipment mutual exclusion rules of the corresponding data structure based on the preset data structure conversion model. When the shipment handover information is obtained, the business identity of the package is parsed, and the shipment mutual exclusion rules matching the business identity are queried, so that the package shipment information is mutually exclusive checked based on the shipment mutual exclusion rules in the shipment mutual exclusion verification model, and mutual exclusion prompt information is generated based on the verification result to prompt the shipping staff whether there are mutually exclusive packages to be shipped, so as to cover different users' different shipment loading verification rules as much as possible based on the self-operated shipment mutual exclusion rules, thereby realizing dynamic and flexible support for the personalized needs of different warehouse verification attributes.
[0066] From the user's perspective, by configuring the interface of mutually exclusive configuration content of shipment, the shipment verification application is made scalable. Furthermore, according to the actual business rules, verification rules that meet the actual needs are configured to diversify the configuration of verification rules. The verification rules configured according to the needs of different merchants can realize reliable verification of package mixing. While reducing development costs, improving production efficiency, reducing the probability of errors, and ensuring customer rights, it is beneficial to reduce the probability of sending wrong goods and improve the transportation efficiency of drivers.
[0067] like Figure 3 As shown, in one embodiment, in response to the acquired mutually exclusive shipping configuration content, the mutually exclusive shipping configuration content is converted into mutually exclusive shipping rules based on the data structure conversion model, including:
[0068] Step S302, obtaining the mutually exclusive configuration content of shipment based on the configuration interface.
[0069] Step S304: parsing the business identity in the mutually exclusive configuration content of shipment based on the data structure conversion model.
[0070] Step S306: extracting mutually exclusive attribute fields in the mutually exclusive configuration content of shipment based on the data structure conversion model, and generating mutually exclusive expressions.
[0071] Among them, the mutually exclusive attribute field, that is, the metadata in the mutually exclusive configuration content of the shipment, is the data that represents the attributes of the package, such as the carrier of the package, product style, color, size, category, storage method, and whether it is a flammable or explosive product.
[0072] Step S308: construct mutually exclusive conditions based on mutually exclusive attribute fields and mutually exclusive expressions.
[0073] Step S310, generating mutually exclusive rule details based on mutually exclusive conditions and mutually exclusive words.
[0074] Step S312: Generate mutually exclusive rules for shipment based on the business identity and the mutually exclusive rule details.
[0075] Convert the user-configured content into a standard data structure. The structure of the data structure conversion model is as follows: Figure 4 shown.
[0076] like Figure 4 As shown, the data structure conversion model includes rule conditions, and the rule conditions include business identity conditions, including cargo owner, warehouse and document type, that is, order type, etc.
[0077] The content of mutually exclusive rules includes the details of the mutually exclusive rules and the configurator. The configurator needs to leave traces for data analysis to verify the correctness of the configuration business.
[0078] Specifically, the rule details include mutually exclusive conditions and mutually exclusive words. The mutually exclusive conditions include different metadata and expressions between these metadata. The mutually exclusive words include reference information prompted to the shipper when the verification fails.
[0079] For example, the metadata is specifically (attribute field: attribute carrier), and the expression is specifically (= / !=).
[0080] As a specific implementation method of the shipping and loading business rules in the configuration warehouse, that is, the shipping mutual exclusion rules, it specifically includes:
[0081] Based on the data structure conversion model, "rule content conversion" is performed to convert the configuration conditions in the mutually exclusive configuration content of shipment into business identities (owner, warehouse, orderType), and convert the specific configuration content into rule details (as shown in context, item is the mutually exclusive element item, expression is the expression, and msg is the speech), as shown in Table 1.
[0082] Table 1
[0083]
[0084] In one embodiment, the method further includes: persisting the mutually exclusive rules for shipment into a rule database, and writing the rules into a cache.
[0085] In this embodiment, the shipment mutual exclusion rules are persisted to the DB database and double-write cache is performed in redis to improve query performance.
[0086] In one embodiment, in response to the acquired delivery handover information, the package delivery information is identified, and the business identity of the package is parsed, including: obtaining operation authority based on an interceptor.
[0087] Intercept package shipment information when it is generated at the shipment processing terminal based on the operation authority.
[0088] Based on the expression parsing engine, the business identity of the package delivery information is parsed to start the query operation of the matching delivery exclusive rules based on the parsing result.
[0089] The expression parsing engine may specifically be AviatorScript.
[0090] In this embodiment, an "interceptor" is used to automatically obtain token information and operating permissions to intercept public information such as tenants / warehouses / users. When the delivery handover staff logs in to the system to configure the delivery handover letter, the system can intercept and obtain the warehouse information and automatically store it in the configured rule conditions. When the shipper operates the shipment loading, the warehouse information is automatically identified to trigger the mutually exclusive verification operation of the shipment, which can reduce the manual triggering of the verification operation and realize the dynamic automatic verification operation of the shipment information.
[0091] For example, when the delivery handover information is generated based on the operation of the delivery handover staff, the warehouse (such as Beijing 3C warehouse or Shanghai clothing warehouse) and the shipper (such as Zhang San or Li Si) and other information can be automatically identified, and the matching mutually exclusive verification rules can be further queried.
[0092] In one embodiment, querying mutually exclusive shipping rules that match the business identity includes: performing a manipulation and compilation operation on the business identity of the package based on a bytecode manipulation framework to generate a rule expression; and querying the matching mutually exclusive shipping rules based on the rule expression.
[0093] Table 2 shows different business identities and corresponding mutually exclusive configuration contents of shipment.
[0094] Table 2
[0095]
[0096] Specifically, as shown in Table 2, if the shipper checks both customer order A (Carrier A) and customer order B (Carrier B) for shipment, loads them on one vehicle, and prints out a shipping handover sheet for handover with the driver to check whether the number and information of the packages are correct, based on the mutually exclusive shipping configuration content in Solution 3, that is, goods from different carriers cannot be shipped using the same vehicle, the system collects the shipped package information for verification, and prompts the shipper to split the orders of different carriers based on the verification results.
[0097] like Figure 5 As shown, the obtained shipment mutual exclusion configuration content is converted into shipment mutual exclusion rules through the data structure conversion model, and is stored in the rule database after persistence processing, and is double-written to the cache.
[0098] When the package is handed over on the business side, the public information such as tenants / warehouses / users is intercepted by the interceptor to obtain the delivery and handover information. After the package information is identified, the business identity will be identified through the "parser". The information requested by the front end will be parsed to obtain fields related to the business identity, such as warehouse, owner, document type, etc.
[0099] Through the "rule matcher" using the rule expression parsing engine AviatorScript, and based on the bytecode technology (high performance / lightweight) of ASM (bytecode manipulation framework), the business identity is first compiled into a rule expression, such as (warehouse=Beijing 3C warehouse&&owner=B&&orderType=customer order), and the cache query matching the shipping mutual exclusion rule is read based on the rule expression (if not read, the DB database is directly read) and the expression is executed for rule matching, matching the rule content corresponding to the specific package operated by the shipper this time, and mapping the content to the data attributes corresponding to the "shipping mutual exclusion component", such as (item=carrier, expression=different, msg=goods from different carriers cannot be shipped using the same vehicle).
[0100] In one embodiment, based on the mutually exclusive shipment verification model, the verification operation of whether the package shipment information is mutually exclusive when using the same vehicle for transportation includes:
[0101] The attribute identification operation based on the shipment mutually exclusive verification model identifies the shipment attribute values of at least two packages in the package shipment information.
[0102] Among them, Figure 6 As shown, the shipment mutual exclusion verification model includes a reflector and a verification expression. First, the rule attributes such as metadata and SKU information are passed into the "reflector", and the actual value of the shipped package information is obtained through the corresponding rule identification attributes. For example, the carrier in the rule configuration, then (A package carrier = A, B package carrier = B).
[0103] The package delivery information is mutually exclusive checked based on the mapped mutual exclusion conditions and the consistency of the delivery attribute values of at least two packages.
[0104] In this embodiment, the mutually exclusive conditions in the mutually exclusive rules for shipping and the shipping attribute values of different packages are obtained to detect whether the shipping attribute values of different packages meet the mutually exclusive conditions. If they do, it indicates that the packages do not need to be repacked. If they do not, it indicates that different packages are mutually exclusive and cannot be loaded on the same vehicle at the same time, so as to realize a shipping method based on satisfying the user's wishes.
[0105] In one embodiment, performing mutual exclusion verification on package delivery information based on the mapped mutual exclusion condition and the consistency of delivery attribute values of at least two packages includes:
[0106] If the mutually exclusive condition is expressed as mutually exclusive attributes, and the shipping attribute values of at least two packages are consistent, then the loaded package information that belongs to the same loading list as the package shipping information is obtained; based on the attribute recognition operation, the loaded shipping attribute values in the loaded package information are identified; if the shipping attributes of at least two packages are inconsistent, or the shipping attribute values of at least two packages are inconsistent with the loaded shipping attribute values, it is determined that the package shipping information is abnormal.
[0107] In this embodiment, the consistency of the package attributes between the loaded package and the package to be loaded is further detected to ensure the reliability and integrity of the mutually exclusive verification operation.
[0108] like Figure 6 As shown, the actual information of the obtained package is passed to the "mutual exclusion verifier". First, the mutual exclusion of the two packages "CURRENT" in the current delivery information is verified. If the verification fails, it directly enters the "exception handler". If the verification passes, for example, the attribute values are consistent, it enters the "HISTORY" historical verification based on the historical delivery information, obtains the historically scanned packages in the same loading list from the DB database, and verifies whether the attribute values are consistent, so as to detect whether the carrier that has been loaded but not shipped is consistent with the current carrier. For example, according to Solution 3 in Table 2 above, the multiple packages scanned by the current shipper must be from the same carrier, and must be consistent with the attribute values of the historical scan. If there is any inconsistency, the msg script is configured according to the rules to enter the "prompter" to prompt the user that "different carriers cannot be loaded on the same vehicle for shipment."
[0109] In one embodiment, the parcel delivery information is checked for mutual exclusion when transported by the same vehicle based on the delivery mutual exclusion check model, further comprising:
[0110] It is detected that the package delivery information is generated based on the combination of the business identity and the delivery attribute, and at least two groups of metadata are split and mutually exclusive checked based on the equivalence check and non-equivalence check in the mutually exclusive conditions of the mapping.
[0111] In this embodiment, if the shipping attributes in the package shipping information include at least two groups of metadata, the at least two groups of metadata are split, and corresponding verification operations are performed according to the equivalent verification expressions or non-equivalent verification expressions corresponding to different metadata, thereby realizing flexible configuration of mutually exclusive conditional expressions.
[0112] For example, "different carriers in the same store cannot be loaded into one vehicle for shipment." Figure 6 As shown, two modules, "equivalence verification expression" and "non-equivalence verification expression", are designed in the component to perform corresponding verification on "carrier" and "store" respectively.
[0113] In one embodiment, mutually exclusive prompt information is generated based on the verification result, including: determining corresponding mutually exclusive words based on the verification result; generating mutually exclusive prompt information based on the corresponding mutually exclusive words, and pushing the mutually exclusive prompt information to the delivery processing terminal.
[0114] In this embodiment, mutually exclusive prompt information is pushed to the delivery processing terminal based on mutually exclusive speech, so that the delivery processing terminal prompts the delivery personnel to process the package.
[0115] In one embodiment, it also includes: collecting processing logs for mutually exclusive verification of package delivery information based on wraparound aspect-oriented programming operations; performing data aggregation analysis on the processing logs to obtain trace verification data; and synchronizing the trace verification data to a distributed database based on an MQ message queue.
[0116] In this embodiment, Aop is used to surround the request tracking point and persist the configuration flow, so that Log4j can collect logs in real time, record the configuration and verification, and synchronize the data to HBase asynchronously in the form of MQ message queue, without affecting the performance of the production link in the warehouse.
[0117] like Figure 7 As shown, a shipment verification configuration system according to an embodiment of the present disclosure includes a rule configuration module 702 , a rule matching module 704 , a shipment mutual exclusion verification module 706 and a prompt module 708 .
[0118] Among them, the rule configuration module 702 is used to receive the mutually exclusive configuration content of delivery, wherein the business identity of the production data can be identified by identifying the business identity, such as the document type, including return order, internal matching order and customer order.
[0119] In addition, by configuring the commodity attributes, corresponding mutually exclusive rule details are generated to determine whether commodities with different commodity attributes can be loaded on the same vehicle.
[0120] The mutually exclusive shipping rules generated by the configuration can be stored in the rule database and cache respectively in a double-write manner.
[0121] The rule matching module 704 is used to intercept the delivery handover information, identify the package delivery information, and parse the business identity of the package. By generating a rule expression, the matching delivery mutual exclusion rule is queried and mapped to the delivery mutual exclusion verification module 706.
[0122] The shipment mutual exclusion verification module 706, namely the shipment mutual exclusion verification model mentioned above, is used to verify whether the package shipment information is mutually exclusive when using the same vehicle for transportation based on the shipment mutual exclusion rule.
[0123] The prompt module 708 is used to generate prompt information based on the verification result.
[0124] Based on this shipment verification configuration solution, it can be highly adapted to diversified business scenarios, dynamically verify shipment information without modifying the program, reduce R&D costs, and improve the delivery efficiency of system capabilities.
[0125] It should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0126] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0127] Refer to the following Figure 8 The shipment verification configuration device 800 according to this embodiment of the present invention is described. Figure 8 The shipment verification configuration device 800 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiment of the present invention.
[0128] The shipment verification configuration device 800 is presented in the form of a hardware module. The components of the shipment verification configuration device 800 may include but are not limited to: a conversion module 802, which is used to respond to the acquired shipment mutual exclusion configuration content and convert the shipment mutual exclusion configuration content into a shipment mutual exclusion rule based on a data structure conversion model; a parsing module 804, which is used to respond to the acquired shipment handover information, identify the package shipment information, and parse the business identity of the package; a query module 806, which is used to query the shipment mutual exclusion rule that matches the business identity, and map the matching shipment mutual exclusion rule to the shipment mutual exclusion verification model; a verification module 808, which is used to perform a verification operation on whether the package shipment information is mutually exclusive when using the same vehicle for transportation based on the shipment mutual exclusion verification model, and generate mutual exclusion prompt information based on the verification result.
[0129] Refer to the following Fig. 9 An electronic device 900 according to this embodiment of the present invention will be described. Fig. 9 The electronic device 900 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0130] like Fig. 9As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).
[0131] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 performs the steps of various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 910 can perform the following steps: Figure 2 Steps S202 to S208 shown in , and other steps defined in the shipment verification configuration method of the present disclosure.
[0132] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .
[0133] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0134] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0135] The electronic device 900 may also communicate with one or more external devices 960 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device, and / or communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 950. As shown, the network adapter 950 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0136] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0137] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0138] The program product for implementing the above method according to an embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0139] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0140] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0141] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0142] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0143] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0144] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0145] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A method for configuring shipment verification, characterized in that: include: In response to the acquired mutually exclusive shipment configuration content, converting the mutually exclusive shipment configuration content into mutually exclusive shipment rules based on a data structure conversion model; In response to the acquired delivery handover information, identifying the package delivery information and resolving the business identity of the package; Querying the shipment mutual exclusion rule that matches the business identity, and mapping the matching shipment mutual exclusion rule to a shipment mutual exclusion verification model; Based on the shipment mutual exclusion verification model, a verification operation is performed on the package shipment information to determine whether they are mutually exclusive when transported by the same vehicle, and mutual exclusion prompt information is generated based on the verification result.
2. The method for configuring shipment verification according to claim 1, characterized in that: The step of converting the mutually exclusive shipping configuration content into mutually exclusive shipping rules based on the data structure conversion model in response to the obtained mutually exclusive shipping configuration content includes: Obtain the mutually exclusive configuration content of the shipment based on the configuration interface; Parsing the business identity in the shipment mutually exclusive configuration content based on the data structure conversion model; Extracting mutually exclusive attribute fields in the mutually exclusive shipment configuration content based on the data structure conversion model, and generating mutually exclusive expressions; Constructing a mutually exclusive condition based on the mutually exclusive attribute field and the mutually exclusive expression; Generate mutually exclusive rule details based on the mutually exclusive conditions and mutually exclusive words; The shipment mutual exclusion rule is generated based on the business identity and the mutual exclusion rule details.
3. The method for configuring shipment verification according to claim 1, characterized in that: Also includes: The shipment mutual exclusion rule is persisted in the rule database and double-written into the cache.
4. The method for configuring shipment verification according to claim 2, characterized in that: The step of identifying the package delivery information in response to the acquired delivery handover information and resolving the business identity of the package includes: Obtain operation permissions based on interceptors; intercepting the package shipment information when the package shipment information is generated by the shipment processing terminal based on the operation authority; Based on the expression parsing engine, the business identity of the package delivery information is parsed, so as to start a query operation on the matching delivery mutually exclusive rules based on the parsing result, The business identity includes the cargo owner, warehouse and order type.
5. The method for configuring shipment verification according to claim 2, characterized in that: The querying of the mutually exclusive rules for shipments matching the business identity includes: Based on the bytecode manipulation framework, a manipulation and compilation operation is performed on the business identity of the package to generate a rule expression; The matching mutually exclusive rules for shipment are queried based on the regular expression.
6. The method for configuring shipment verification according to claim 2, characterized in that: The operation of checking whether the package delivery information is mutually exclusive when using the same vehicle for transportation based on the delivery mutual exclusion verification model includes: Identify the shipping attribute values of at least two packages in the package shipping information based on the attribute identification operation of the shipping mutually exclusive verification model; The package shipment information is mutually exclusive checked based on the mapped mutually exclusive condition and the consistency of the shipment attribute values of the at least two packages.
7. The method for configuring shipment verification according to claim 6, characterized in that: The mutually exclusive verification of the package delivery information based on the mutually exclusive condition mapped and the consistency of the delivery attribute values of the at least two packages includes: If the mutually exclusive condition is expressed as mutually exclusive attributes, and the shipping attribute values of the at least two packages are consistent, then obtaining the loaded package information that belongs to the same loading list as the package shipping information; Identify the shipped attribute value of the loaded package in the loaded package information based on the attribute identification operation; If the shipping attributes of the at least two packages are inconsistent, or the shipping attribute values of the at least two packages are inconsistent with the shipping attribute values of the loaded packages, it is determined that the shipping information of the packages is abnormal.
8. The method for configuring shipment verification according to claim 6, characterized in that: The operation of checking whether the package delivery information is mutually exclusive when using the same vehicle for transportation based on the delivery mutual exclusion verification model also includes: It is detected that the shipping attributes in the package shipping information are generated based on at least two groups of metadata, and the at least two groups of metadata are split and mutually exclusive checked based on the equivalent check and non-equivalent check in the mutually exclusive conditions of the mapping.
9. The method for configuring shipment verification according to claim 4, characterized in that: The generating of mutually exclusive prompt information based on the verification result includes: Determine the corresponding mutually exclusive speech based on the verification result; The mutually exclusive prompt information is generated based on the corresponding mutually exclusive speech, and the mutually exclusive prompt information is pushed to the delivery processing terminal.
10. The method for configuring shipment verification according to any one of claims 1 to 9, characterized in that: Also includes: A processing log for performing mutual exclusion verification on the package delivery information based on wraparound aspect-oriented programming operation collection; Performing data aggregation analysis on the processing log to obtain trace verification data; The trace verification data is synchronized to a distributed database based on an MQ message queue.
11. A delivery verification configuration device, characterized in that: include: A conversion module, configured to respond to the acquired mutually exclusive shipment configuration content and convert the mutually exclusive shipment configuration content into mutually exclusive shipment rules based on a data structure conversion model; A parsing module, configured to identify the package delivery information in response to the acquired delivery handover information, and parse the business identity of the package; A query module, used for querying the shipment mutual exclusion rule matching the business identity, and mapping the matching shipment mutual exclusion rule to a shipment mutual exclusion verification model; The verification module is used to verify whether the package delivery information is mutually exclusive when using the same vehicle for transportation based on the delivery mutual exclusion verification model, and generate mutual exclusion prompt information based on the verification result.
12. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the shipment verification configuration method according to any one of claims 1 to 10 by executing the executable instructions.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the delivery verification configuration method described in any one of claims 1 to 10 is implemented.