Method for generating express number and related device
By automatically generating the same number of express order numbers for multiple parcels in e-commerce orders, the problems of increased costs and inefficiency caused by manual subcontracting operations are solved, and the convenience and efficiency of express order numbers are improved.
Patent Information
- Application Number
- CN202510637923.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, manual subcontracting operations are required when multiple products in e-commerce orders are shipped, resulting in increased labor costs and reduced efficiency in generating express order numbers.
Provide a method of generating express order numbers, which automatically generates the same quantity of express order numbers for orders containing multiple parcels. By obtaining order data, verifying data format, obtaining product identification and quantity, and generating express order numbers based on inventory information.
It improves the convenience and efficiency of generating express order numbers for multiple parcel orders, reduces manual intervention, and reduces labor costs.
Smart Images

Figure CN120410688A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of express data processing, and in particular, to a method for generating express waybills and related devices. Background Art
[0002] The rapid development of e-commerce has led to a sharp increase in the order processing volume, thus posing higher requirements for the generation efficiency and accuracy of express waybills.
[0003] When existing e-commerce orders print and ship the goods to be shipped, since the shipping times of the goods in the order may be different, sometimes a single order needs to print multiple express packages. For each case of printing multiple packages for a single order, manual express package splitting operations (multiple express waybills for a single order) need to be carried out. Therefore, before printing, the user needs to operate on each order that needs to be split to meet the printing requirements of multiple packages for a single order in the user's order.
[0004] And this operation of manually splitting express packages not only increases the labor cost but also reduces the efficiency of generating express waybills. Summary of the Invention
[0005] An embodiment of this application provides a method for generating an express waybill, which is used to automatically generate multiple express waybills for an order when the order contains multiple express waybills.
[0006] A first aspect of an embodiment of this application provides a method for generating an express waybill, including:
[0007] Obtain order data in a database, where the order data at least includes first order data of multiple packages in a single order;
[0008] Verify the data format and / or data structure of each order in the first order data;
[0009] Obtain the product identifiers and product quantities in each package included in the target order in the first order data;
[0010] If the product quantities of the product identifiers in each package are not greater than the product inventory quantities of the product identifiers in the inventory information, generate the same number of express waybills as the number of packages in the target order.
[0011] Optionally, before obtaining the product representation and product quantity in each order in the first order data, the method further includes:
[0012] If the verification fails, trigger storing the data that fails the verification into a fuzzy array.
[0013] Optionally, the method further includes:
[0014] If data is detected in the fuzzy array, a prompt box is popped up, and the prompt box at least includes an input box for the printing quantity of the express order number;
[0015] Receive the printing quantity of the express order number manually input;
[0016] Generate the corresponding number of express order numbers according to the printing quantity of the express order number manually input.
[0017] Optionally, before obtaining the product representation and product quantity in each order of the first order data, the method further includes:
[0018] Verify the data format and / or data structure of each order in the first order data;
[0019] If the verification is passed, trigger the step of obtaining the product identifier and product quantity in each order of the first order data.
[0020] Optionally, the method further includes:
[0021] If the product quantity of the first product identifier of the first target package of the first target order in the first order data is greater than the product quantity of the first product identifier in the inventory information, obtain the first product delivery time limit corresponding to the first product identifier from the first target order, and obtain the arrival time of the first product identifier from the inventory information;
[0022] If the arrival time of the first product identifier is within the first product delivery time limit, trigger the step of generating the same number of express order numbers as the number of multiple packages according to the number of multiple packages in each order.
[0023] Optionally, the method further includes:
[0024] If the product quantity of the second product identifier of the second target package of the second target order in the first order data is greater than the product quantity of the second product identifier in the inventory information, obtain the note data of the second target order, and obtain the arrival time of the second product identifier from the inventory information;
[0025] Obtain the latest delivery time of the second product identifier in the note data;
[0026] If the latest delivery time of the second product identifier is later than the arrival time of the second product identifier, trigger the step of generating the same number of express order numbers as the number of multiple packages according to the number of multiple packages in each order.
[0027] Optionally, the method further includes:
[0028] Sending the same number of express waybills as the number of the packages to a print queue to perform a printing operation.
[0029] A second aspect of the embodiments of the present application provides a device for generating an express waybill, including:
[0030] An obtaining unit, configured to obtain order data in a database, where the order data at least includes first order data of multiple packages included in a single order;
[0031] A verification unit, configured to verify the data format and / or data structure of each order in the first order data before obtaining the product representation and product quantity in each order in the first order data;
[0032] The obtaining unit is further configured to obtain product identifiers and product quantities in each package included in a target order in the first order data;
[0033] A generating unit, configured to, if the product quantities of the product identifiers of the packages are not greater than the product inventory quantities of the product identifiers in the inventory information, generate the same number of express waybills as the number of the packages according to the number of packages in the target order.
[0034] Optionally, the device further includes:
[0035] A triggering unit, configured to trigger storing the data that fails the verification into a fuzzy array when the verification fails.
[0036] Optionally, the device further includes:
[0037] A detecting unit, configured to pop up a prompt box if data is detected in the fuzzy array, where the prompt box at least includes an input box for the printing quantity of the express waybill;
[0038] A receiving unit, configured to receive a manually input printing quantity of the express waybill;
[0039] The generating unit generates the corresponding number of express waybills according to the manually input printing quantity of the express waybill.
[0040] Optionally, the triggering unit is further configured to:
[0041] If the verification passes, trigger the step of obtaining the product identifiers and product quantities in each order in the first order data.
[0042] Optionally, the obtaining unit is further configured to:
[0043] If the quantity of the commodity corresponding to the first commodity identifier of the first target package in the first order data is greater than the quantity of the commodity with the first commodity identifier in the inventory information, then obtain the delivery time limit of the first commodity corresponding to the first commodity identifier from the first target order, and obtain the arrival time of the first commodity identifier from the inventory information;
[0044] The triggering unit is further configured to:
[0045] If the arrival time of the first commodity identifier is within the delivery time limit of the first commodity, then trigger the step of generating the same number of express waybills as the number of the multiple packages according to the number of multiple packages in each order.
[0046] Optionally, the obtaining unit is further configured to:
[0047] If the quantity of the commodity corresponding to the second commodity identifier of the second target package in the first order data is greater than the quantity of the commodity with the second commodity identifier in the inventory information, then obtain the note data of the second target order, and obtain the arrival time of the commodity with the second commodity identifier from the inventory information;
[0048] Obtain the latest delivery time of the second commodity identifier in the note data;
[0049] The triggering unit is further configured to:
[0050] If the latest delivery time of the second commodity identifier is later than the arrival time of the commodity with the second commodity identifier, then trigger the step of generating the same number of express waybills as the number of the multiple packages according to the number of multiple packages in each order.
[0051] A third aspect of the embodiments of the present application provides a computer device, including a processor, which is configured to implement the method for generating an express waybill provided in the first aspect of the embodiments of the present application when executing a computer program stored in a memory.
[0052] A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is configured to implement the method for generating an express waybill provided in the first aspect of the embodiments of the present application.
[0053] A fourth aspect of the embodiments of the present application provides a computer program product, on which a computer program is stored, and when the computer program is executed by a processor, it is configured to implement the method for generating an express waybill provided in the first aspect of the embodiments of the present application.
[0054] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0055] In the embodiments of the present application, order data in a database is obtained, where the order data at least includes first order data in a single order that contains multiple packages; product identifiers and product quantities in each package included in each order in the first order data are obtained; if the product quantity of the product identifier in each package is not greater than the product inventory quantity of the product identifier in the inventory information, then according to the number of multiple packages in each order, the same number of express waybill numbers as the number of multiple packages is generated.
[0056] Because in the embodiments of the present application, when the order data contains multiple packages, if the product identifiers and product quantities in each package in each order are not greater than the product quantities of the corresponding product identifiers in the inventory information, then express waybill numbers equal to the number of packages are generated, thereby improving the convenience of generating multiple express waybill numbers for multiple packages in a single order. Description of the Drawings
[0057] Figure 1 It is a schematic structural diagram of a system for generating an express waybill number in the embodiments of the present application;
[0058] Figure 2 It is a schematic diagram of an embodiment of a method for generating an express waybill number in the embodiments of the present application;
[0059] Figure 3 It is a schematic diagram of an embodiment of a method for generating an express waybill number in the embodiments of the present application;
[0060] Figure 4 It is a schematic diagram of a prompt box in the embodiments of the present application;
[0061] Figure 5 It is a schematic diagram of an embodiment of a method for generating an express waybill number in the embodiments of the present application;
[0062] Figure 6 It is a schematic diagram of an embodiment of a device for generating an express waybill number in the embodiments of the present application. Detailed Embodiments
[0063] The embodiments of the present application provide a method for generating an express waybill number, which is used to automatically generate multiple express waybill numbers for an order when the order contains multiple express waybill numbers.
[0064] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0065] In the description, claims and the above drawings of the present application, terms such as "first", "second", "third", "fourth", etc. are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0066] An embodiment of the present application provides a method for generating an express delivery number, including: obtaining order data in a database, where the order data at least includes first order data of a single order containing multiple packages; verifying the data format and / or data structure of each order in the first order data; if the verification passes, obtaining the product identifiers and product quantities in each package included in each order in the first order data; if the product quantity of the product identifier in each package is not greater than the product inventory quantity of the product identifier in the inventory information, generating the same number of express delivery numbers as the number of multiple packages in each order according to the number of multiple packages in each order. The method for generating an express delivery number provided by the embodiment of the present application can generate the same number of express delivery numbers as the number of packages for multiple packages in each order, thereby realizing generating multiple express delivery numbers for multiple packages in each order and correspondingly improving the efficiency of generating multiple express delivery numbers for multiple packages in each order.
[0067] In order to better implement the above method for generating an express delivery number, an embodiment of the present application provides a system for generating an express delivery number. Please refer to Figure 1 , Figure 1This is a schematic architecture diagram of a system for generating express delivery numbers provided by an embodiment of the present application. The system for generating express delivery numbers may include at least one terminal device 101 and a server 102; different types of application programs may be installed on the terminal device 101. For example, shopping platforms such as Taobao, Pinduoduo, and JD.com may be installed on the terminal device 101; the terminal device 101 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent vehicle, etc. The server 102 may be used to store order data and image data generated by different types of application programs on the terminal device 101. The server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms, etc.
[0068] Among them, the above method for generating express delivery numbers is executed by the terminal device 101 or the server 102. When the method for generating express delivery numbers is executed by the terminal device 101; the order data generated by the terminal device 101 in different types of application programs may be included in the server. Then, when the terminal device 101 needs to upload the express delivery number for the package in the order data, the terminal device 101 may obtain the order data from the server 102. Then, after the terminal device 101 obtains the order data from the server 102, where the order data here includes the first order data, and a single order in the first order data contains multiple packages, which means that multiple commodities in the single order need to be divided into multiple packages, and a corresponding express delivery number is set for each package for sending. After the terminal device 101 obtains the first order data, it obtains the commodity identifiers and commodity quantities in each package included in the target order in the first order data; and when the commodity quantity of the commodity identifier in each package is not greater than the commodity inventory quantity of the commodity identifier in the inventory information, according to the number of packages in the target order, generate the same number of express delivery numbers as the number of packages, that is, the terminal 101 in the present application can generate multiple express delivery numbers for multiple packages in a single order when a single order contains multiple packages, thereby improving the convenience of generating multiple express delivery numbers for a single order with multiple packages.
[0069] For ease of understanding, the method for generating express delivery numbers in the embodiments of the present application will be described below. Please refer to Figure 2 , an embodiment of the method for generating express delivery numbers in the embodiments of the present application includes:
[0070] 201. Obtain the order data in the database, where the order data at least includes the first order data with multiple packages in a single order;
[0071] In the embodiments of the present application, the method for generating an express waybill number can be applied as a separate application program (APP) in a terminal device or a server, or can be integrated in the terminal device or the server in the form of a mini-program. Here, no specific limitation is imposed on the execution subject of the method for generating an express waybill number.
[0072] Specifically, in the embodiments of the present application, first obtain the order data in the database. Here, the order data can be the order data on a single platform, or the order data on multiple platforms, such as the order data on Taobao, and / or the order data on the Pinduoduo platform, and / or the order data on JD.com. Or here, no specific limitation is imposed on the subject to which the order data belongs.
[0073] Furthermore, the order data in the embodiments of the present application includes the first order data with multiple packages in a single order. For example, user A bought 3 items on Taobao. Among them, one item is sent to Chengdu, and the other two items are sent to Shanghai. Then, there are 2 packages corresponding to this order.
[0074] 202. Check the data format and / or data structure of each order in the first order data. If the check passes, then execute step 203;
[0075] In the process of identifying each order data in the first order data, in order to facilitate data identification, generally, the data format and / or data structure of each order will be specified to improve the efficiency and speed of data identification.
[0076] Specifically, in the process of identifying the data format and / or data structure, the Yup (a data verification tool) tool and regular expressions can be used to verify the data. Among them, Yup is a JavaScript object schema validation library. It can conveniently define the structure of data objects and strictly verify the data to ensure the accuracy and consistency of the data, thereby improving the efficiency and speed of subsequent data processing.
[0077] The regular expression is used to check whether the product remarks or order dates in the first order data conform to the relevant regulations, such as whether the date format in the data structure is yyyy - mm - dd, and whether there are only Chinese, English, and common punctuation marks in the order remarks.
[0078] Furthermore, after checking the data format and / or data structure of each order in the first order data, if the check passes, then execute step 203. If the check fails, it will be described in the following embodiments and will not be elaborated here.
[0079] 203. Obtain the product identifiers and product quantities in each package included in the target order in the first order data;
[0080] After obtaining the first order data in the order data, obtain the product identifiers and product quantities in each package included in each order in the first order data. Here, the product identifier can be the product name, product image code (such as bar code or QR code, etc.) or product code, etc. There is no specific limitation on the specific form of the product identifier here.
[0081] The corresponding product quantity is the specific quantity of the same product identifier. For example, User A bought 3 products on Taobao. Among them, 1 piece of Product X was bought, 2 pieces of Product Y were bought, and 3 pieces of Product Z were bought. Then the quantity of the corresponding Product X is 1, the quantity of Product Y is 2, and the quantity of Product Z is 3.
[0082] 204. If the product quantities of the product identifiers in each of the packages are not greater than the product inventory quantities of the product identifiers in the inventory information, generate the same number of express waybill numbers as the number of packages in the target order.
[0083] After obtaining the product identifiers and product quantities in multiple packages in each order in the first order, compare the product identifiers and product quantities of multiple packages in each order with the product identifiers and corresponding product inventory quantities in the inventory information respectively. If the product quantity of the product in each package is greater than the product inventory quantity in the inventory information, generate the same number of express waybill numbers as the number of multiple packages in each order.
[0084] Specifically, for example, User A bought 3 products on Taobao. Among them, 1 piece of Product X was bought, 2 pieces of Product Y were bought, and 3 pieces of Product Z were bought. One package of Product X and Product Y is sent to Chengdu, and one package of Product Z is sent to Shanghai. If the number of pieces of Product X purchased by User A (1) is not greater than the number of pieces of Product X in the inventory information, the number of pieces of Product Y purchased by User A (2) is not greater than the number of pieces of Product Y in the inventory information, and the number of pieces of Product Z purchased by User A (3) is not greater than the number of pieces of Product Z in the inventory information, then generate 2 express waybill numbers according to the number of packages 2 in the order placed by User A.
[0085] In the embodiment of the present application, when there are multiple packages in the order data, if the product identifiers and product quantities in each package in each order are not greater than the product quantities of the corresponding product identifiers in the inventory information, generate the same number of express waybill numbers as the number of packages, thereby improving the convenience of generating multiple express waybill numbers for multiple packages in a single order.
[0086] Based onFigure 2 For the described embodiments, if the verification of the data format and / or data structure of each order in the first order data fails, the following steps may also be executed. Please refer to Figure 3 Another embodiment of the method for generating an express waybill number in the embodiments of the present application includes:
[0087] 301. If the verification fails, trigger storing the data that fails the verification into a fuzzy array.
[0088] If the data format and / or data structure in the order fails the verification, store the data that fails the verification into a fuzzy array to perform further processing on the data that fails the verification.
[0089] 302. If it is detected that there is data in the fuzzy array, pop up a prompt box, and the prompt box at least includes an input box for the printing quantity of the express waybill number;
[0090] If it is detected that there is data in the fuzzy data, pop up a prompt box. Here, the prompt box at least includes an input box for the printing quantity of the express waybill number to input the quantity of the express waybill number in this input box. For easy understanding, Figure 4 A schematic diagram of the prompt box is given, where the printing quantity in the prompt box is used to input the quantity of the express waybill number.
[0091] 303. Receive the manually input printing quantity of the express waybill number;
[0092] After the prompt box pops up, the user can input the printing quantity of the express waybill number in the input box of the prompt box to generate the corresponding number of express waybill numbers according to the printing quantity of the express waybill number. For example, if the printing quantity 3 is input in the input box, 3 express waybill numbers will be generated for this order, and if the printing quantity 2 is input in the input box, 2 express waybill numbers will be generated for this order.
[0093] 304. Generate the corresponding number of express waybill numbers according to the manually input printing quantity of the express waybill number.
[0094] After obtaining the printing quantity of the manually input express waybill number, generate the corresponding number of express waybill numbers according to the printing quantity of the manually input express waybill number. For example, when the printing quantity 3 is input, 3 express waybill numbers will be generated for this order, and when the printing quantity 2 is input, 2 express waybill numbers will be generated for this order.
[0095] In the embodiments of the present application, when the data verification of each order in the first order data fails, the unverified data is stored in a fuzzy array, and a prompt box is popped up in the form of the fuzzy array, so that the user manually enters the printing data of the express waybill number in the prompt box. That is, the embodiments of the present application can also manually enter multiple express waybill numbers corresponding to multiple package data for the order with failed verification, thereby improving the processing efficiency of generating corresponding numbers of express waybill numbers for difficult data.
[0096] Based on Figure 2 the above-mentioned embodiments, after step 203, the following steps can also be executed. Please refer to Figure 5 , another embodiment of the method for generating an express waybill number in the embodiments of the present application, includes:
[0097] 501. If the quantity of the first commodity identifier of the first target package of the first target order in the first order data is greater than the quantity of the commodity with the first commodity identifier in the inventory information, obtain the first commodity delivery time limit corresponding to the first commodity identifier from the first target order, and obtain the arrival time of the commodity with the first commodity identifier from the inventory information;
[0098] Specifically, if the quantity of the first commodity identifier of the first target package of the first target order in the first order data is greater than the quantity of the commodity with the first commodity identifier in the inventory information, obtain the first commodity delivery time limit corresponding to the first commodity identifier from the first target order, and obtain the arrival time of the commodity with the first commodity identifier from the inventory information.
[0099] For easy understanding, the following is an example:
[0100] Suppose user A bought 3 kinds of commodities on Taobao. Among them, 1 piece of commodity X was bought, 2 pieces of commodity Y were bought, and 3 pieces of commodity Z were bought. Commodities X and Y were sent to Chengdu in one package, and commodity Z was sent to Shanghai in one package. There is no stock of commodity X in the inventory (that is, the quantity of commodity X in the inventory is 0 pieces), while there are corresponding quantities of commodities Y and Z in the inventory (that is, the quantities of commodities Y and Z in the inventory are greater than 2 and greater than 3 respectively). Corresponding to obtaining the delivery time limit of commodity X sent to Chengdu and the arrival time of commodity X in the inventory information.
[0101] For example, if user A selects the delivery time limit of commodity X in the order to be 72 hours, and the arrival time of commodity X in the inventory is within 48 hours, then the arrival time of commodity X is within the delivery time limit of commodity X. If the delivery time limit of commodity X is 48 hours, and the arrival time of commodity X in the inventory is 72 hours, then the arrival time of commodity X is not within the delivery time limit of commodity X.
[0102] 502. If the arrival time of the first product identifier is within the delivery time limit of the first product, trigger the step of generating the same number of express waybill numbers as the number of packages in each order according to the number of packages in each order.
[0103] As described in step 501, if the arrival time of the first product identifier is within the delivery time limit of the first product, trigger the step of generating the same number of express waybill numbers as the number of packages in each order according to the number of packages in each order.
[0104] Specifically, the step of generating the same number of express waybill numbers as the number of packages in each order according to the number of packages in each order is Figure 2 similar to the description of step 204 in the embodiment, and will not be elaborated here.
[0105] 503. If the quantity of the second product identifier of the second target package in the second target order in the first order data is greater than the quantity of the second product identifier in the inventory information, obtain the note data of the second target order and obtain the arrival time of the second product identifier from the inventory information.
[0106] Specifically, if the quantity of the second product identifier of the second target package in the second target order in the first order data is greater than the quantity of the second product identifier in the inventory information, obtain the note data of the second target order and obtain the arrival time of the second product identifier from the inventory information.
[0107] For easy understanding, the following is an example:
[0108] Suppose user A buys 3 kinds of products on Taobao. Among them, 1 piece of product X is bought, 2 pieces of product Y are bought, and 3 pieces of product Z are bought. Product X and product Y are sent to Chengdu in one package, and product Z is sent to Shanghai in one package. And there is no stock of product X in the inventory (that is, the quantity of product X in the inventory is 0 pieces), while there are corresponding quantities of products Y and Z in the inventory (that is, the quantities of products Y and Z in the inventory are greater than 2 and greater than 3 respectively). Then this application is to obtain the note data of user A in this order and the arrival time of product X in the inventory.
[0109] It is easy to understand that generally when a user places an order, if a note is made about the delivery time in the order, the corresponding latest delivery time can be obtained from the note. If the latest delivery time of the out-of-stock product is later than the arrival time of the out-of-stock product, trigger the execution of step 504.
[0110] 504. Obtain the latest delivery time of the second product identifier in the note data.
[0111] After obtaining the user's note data in step 503, the latest delivery time of the second commodity identifier (i.e., the out-of-stock commodity) can be obtained from the user's note data, and step 505 is executed according to the latest delivery time of the second commodity identifier.
[0112] 505. If the latest delivery time of the second commodity identifier is later than the arrival time of the commodity corresponding to the second commodity identifier, then trigger the step of generating the same number of express waybills as the number of multiple packages in each order.
[0113] After obtaining the latest delivery time of the second commodity identifier (i.e., the out-of-stock commodity) in step 504, the latest delivery time of the second commodity identifier (i.e., the out-of-stock commodity) in the order note data is compared with the arrival time of the second commodity identifier. When the latest delivery time of the second commodity identifier (i.e., the out-of-stock commodity) is later than the arrival time of the second commodity identifier (i.e., the out-of-stock commodity), trigger the step of generating the same number of express waybills as the number of multiple packages in each order.
[0114] Specifically, the step of generating the same number of express waybills as the number of multiple packages in each order is Figure 2 similar to the description of step 204 in the embodiment, and will not be elaborated here.
[0115] In the embodiment of the present application, when there is an out-of-stock commodity in the first commodity identifier of the first target package in the first order data, the delivery time limit of the out-of-stock commodity is obtained from the first order data, and the delivery time limit of the first commodity identifier is compared with the arrival time of the first commodity identifier. Or when there is an out-of-stock commodity in the second commodity identifier of the second target package in the first order data, the latest delivery time of the out-of-stock commodity is obtained from the note data of the second order, and the latest delivery time of the out-of-stock commodity is compared with the arrival time of the second commodity identifier. When the arrival time of the first commodity identifier is within the delivery time limit of the first commodity identifier, or when the latest delivery time of the second commodity identifier is later than the arrival time of the commodity corresponding to the second commodity identifier, the same number of express waybills as the number of multiple packages are generated, thereby improving the convenience of generating express waybills for multiple packages in an order when there is an out-of-stock commodity in the order.
[0116] Further, based on Figures 1 to 5 the above-mentioned embodiment, after obtaining the same number of express waybills as the number of packages, in order to implement the printing operation of the express waybills, the embodiment of the present application can further send the same number of express waybills as the number of packages to the print queue to execute the printing operation, so as to obtain the printed express waybills, and perform the delivery operation on multiple packages according to the printed express waybills.
[0117] It can be understood that in various embodiments of the present application, the magnitudes of the serial numbers of the above steps do not imply the sequence of execution. The execution sequence of each step should be determined by its function and internal logic, and should not impose any limitation on the implementation process of the embodiments of the present application.
[0118] The method for generating an express waybill number in the embodiments of the present application has been described in detail above. Next, the device for generating an express waybill number in the embodiments of the present application will be described. Please refer to Figure 6 , an embodiment of the device for generating an express waybill number in the embodiments of the present application, includes:
[0119] An acquisition unit 601, configured to acquire order data in a database, where the order data at least includes first order data in a single order that contains multiple packages;
[0120] A verification unit 603, configured to verify the data format and / or data structure of each order in the first order data before acquiring the product representation and product quantity in each order of the first order data;
[0121] The acquisition unit 601 is further configured to acquire the product identifiers and product quantities in each package included in a target order in the first order data;
[0122] A generation unit 602, configured to, if the product quantities of the product identifiers in each package are all not greater than the product inventory quantities of the product identifiers in the inventory information, generate the same number of express waybill numbers as the number of packages according to the number of packages in the target order.
[0123] As an optional embodiment, the device further includes:
[0124] A trigger unit 604, configured to trigger storing the data that fails verification into a fuzzy array when the verification fails.
[0125] As an optional embodiment, the device further includes:
[0126] A detection unit 605, configured to pop up a prompt box if it detects that there is data in the fuzzy array, and the prompt box at least includes an input box for the number of express waybill numbers to be printed;
[0127] A receiving unit 606, configured to receive the manually input number of express waybill numbers to be printed;
[0128] The generation unit 602 generates the corresponding number of express waybill numbers according to the manually input number of express waybill numbers to be printed.
[0129] As an optional embodiment, the trigger unit 604 is further configured to:
[0130] If the verification passes, trigger the step of obtaining the product identification and quantity of each order in the first order data.
[0131] As an optional embodiment, the obtaining unit 601 is further configured to:
[0132] If the quantity of the product with the first product identification of the first target package of the first target order in the first order data is greater than the quantity of the product with the first product identification in the inventory information, obtain the first product delivery time limit corresponding to the first product identification from the first target order, and obtain the arrival time of the first product identification from the inventory information;
[0133] The triggering unit 604 is further configured to:
[0134] If the arrival time of the first product identification is within the first product delivery time limit, trigger the step of generating the same number of express waybills as the number of multiple packages in each order.
[0135] As an optional embodiment, the obtaining unit 601 is further configured to:
[0136] If the quantity of the product with the second product identification of the second target package of the second target order in the first order data is greater than the quantity of the product with the second product identification in the inventory information, obtain the note data of the second target order, and obtain the arrival time of the product with the second product identification from the inventory information;
[0137] Obtain the latest delivery time of the second product identification in the note data;
[0138] The triggering unit 604 is further configured to:
[0139] If the latest delivery time of the second product identification is later than the arrival time of the product with the second product identification, trigger the step of generating the same number of express waybills as the number of multiple packages in each order.
[0140] As an optional embodiment, the apparatus further includes:
[0141] A printing unit 607, configured to send the same number of express waybills as the number of packages to a print queue for printing operations.
[0142] It should be noted that the functions of the above-mentioned respective units are similar to those described in the method embodiments above. Please refer to each other and will not be elaborated here.
[0143] In an embodiment of the present application, when there are multiple packages in the order data, if the product identifiers and quantities of products in each package of each order are not greater than the quantities of products with corresponding product identifiers in the inventory information, the generating unit 602 generates the same number of express waybills as the number of packages, thereby improving the convenience of generating multiple express waybills for multiple packages in a single order.
[0144] An embodiment of the present application also provides a computer program product on which a computer program is stored. When the computer program is executed by a processor, it is used to implement the steps described in each of the above method embodiments.
[0145] Above, the device for generating an express waybill in the embodiment of the present application has been described from the perspective of modular functional entities. Below, the computer device in the embodiment of the present application will be described from the perspective of hardware processing:
[0146] This computer device is used to implement the functions of the device for generating an express waybill. An embodiment of the computer device in the embodiment of the present application includes:
[0147] A processor and a memory;
[0148] The memory is used to store a computer program. When the processor executes the computer program stored in the memory, it is used to implement the steps described in each of the above method embodiments.
[0149] It can be understood that when the processor in the above-described computer device executes the computer program, it can also implement the functions of each unit in the corresponding device embodiments above, which will not be elaborated here. Exemplarily, the computer program can be divided into one or more modules / units. The one or more modules / units are stored in the memory and executed by the processor to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the device for generating an express waybill. For example, the computer program can be divided into the units in the above device for generating an express waybill, and each unit can implement the specific functions described in the corresponding device for generating an express waybill as above.
[0150] The computer device can be a computing device such as a desktop computer, a notebook, a handheld computer, and a cloud server. The computer device may include but is not limited to a processor and a memory. Those skilled in the art can understand that the processor and the memory are only examples of the computer device and do not constitute a limitation on the computer device. It may include more or fewer components, or combine certain components, or different components. For example, the computer device may further include input / output devices, network access devices, a bus, etc.
[0151] The processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The processor is the control center of the computer device, connecting various parts of the entire computer device through various interfaces and lines.
[0152] The memory can be used to store the computer program and / or modules. The processor realizes various functions of the computer device by running or executing the computer program and / or modules stored in the memory, and by calling the data stored in the memory. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
[0153] This application also provides a computer-readable storage medium, which is used to implement the functions of the device for generating express waybills. A computer program is stored thereon. When the computer program is executed by a processor, the processor is used to implement each step described in the above-mentioned method embodiments.
[0154] It can be understood that when the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a corresponding computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the corresponding embodiment methods of the present application, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice within the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0155] In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling, direct coupling, or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical, or other forms.
[0156] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0158] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for generating an express delivery number, characterized in that, Including: Obtain order data in the database, where the order data at least includes first order data with multiple packages in a single order; Verify the data format and / or data structure of each order in the first order data; If the verification passes, obtain the product identifiers and product quantities in each package included in the target order in the first order data; If the product quantities of the product identifiers in each package are not greater than the product inventory quantities of the product identifiers in the inventory information, generate the same number of express waybill numbers as the number of packages in the target order.
2. The method according to claim 1, characterized in that, The method further includes: If the verification fails, trigger storing the data that fails the verification into a fuzzy array.
3. The method according to claim 2, wherein The method further includes: If data is detected in the fuzzy array, pop up a prompt box, and the prompt box at least includes an input box for the number of express waybill numbers to be printed; Receive the manually input number of express waybill numbers to be printed; Generate the corresponding number of express waybill numbers according to the manually input number of express waybill numbers to be printed.
4. The method according to claim 1, wherein The method further includes: If the product quantity of the first product identifier in the first target package of the first target order in the first order data is greater than the product quantity of the first product identifier in the inventory information, obtain the first product delivery time limit corresponding to the first product identifier from the first target order, and obtain the arrival time of the first product identifier from the inventory information; If the arrival time of the first product identifier is within the first product delivery time limit, trigger the step of generating the same number of express waybill numbers as the number of multiple packages in each order.
5. The method according to claim 1, characterized in that, The method further includes: If the product quantity of the second product identifier in the second target package of the second target order in the first order data is greater than the product quantity of the second product identifier in the inventory information, obtain the note data of the second target order, and obtain the arrival time of the second product identifier from the inventory information; Obtain the latest delivery time of the second product identifier in the note data; If the latest delivery time of the second product identifier is later than the arrival time of the second product identifier, trigger the step of generating the same number of express waybill numbers as the number of multiple packages in each order.
6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Send the same number of express waybill numbers as the number of packages to the print queue for printing operations.
7. A device for generating an express delivery order number, characterized in that, Including: An obtaining unit for obtaining order data in the database, where the order data at least includes first order data with multiple packages in a single order; A verification unit for verifying the data format and / or data structure of each order in the first order data; The obtaining unit is further configured to obtain the product identifiers and product quantities in each package included in the target order in the first order data after the verification passes; A generating unit, configured to generate the same number of express waybills as the number of packages in the target order if the quantity of the commodities with the commodity identifiers of each package is not greater than the inventory quantity of the commodities with the commodity identifiers in the inventory information.
8. A computer device includes a processor, characterized in that, When the processor executes the computer program stored in the memory, it is configured to implement the method for generating express waybills according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it is configured to implement the method for generating express waybills according to any one of claims 1 to 6.
10. A computer program product, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, it is configured to implement the method for generating express waybills according to any one of claims 1 to 6.
