Batch ordering and printing method, device, equipment and storage medium

By parsing the shipping order file to generate recipient information and batch create shipping orders, the problem of couriers manually copying recipient information is solved, and an efficient batch ordering and printing process is achieved.

CN116088774BActive Publication Date: 2025-09-09SHANGHAI YUNDA HIGH TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310014483.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-05
Publication Date
2025-09-09
Estimated Expiration
2043-01-05

Smart Images

  • Figure CN116088774B_ABST
    Figure CN116088774B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of logistics, and discloses a batch order placement and printing method, device, equipment, and storage medium, which are used to obtain a delivery order file, generate recipient information in batches, and create and print shipping orders in batches, thereby simplifying the order placement process. The method includes: upon receiving a delivery order file import instruction, determining whether a server has unused recipient information stored; if not, obtaining the delivery order file and parsing the delivery order file to generate recipient information, and batch creating a first shipping order based on the recipient information; if so, batch creating a second shipping order based on the unused recipient information; upon receiving a shipping order printing instruction, screening the first shipping order or the second shipping order to obtain the correct shipping order; pre-processing the correct shipping order to obtain the shipping order to be printed; counting the number of shipping orders to be printed and selecting a printing method, and printing the shipping orders to be printed according to the selected printing method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of logistics technology, and in particular to a batch order placement and printing method, device, equipment and storage medium. Background Art

[0002] When customers with large orders send parcels, they directly send the Excel delivery note file to the courier via WeChat. After the customer sends the Excel delivery note file to the courier via WeChat, the courier needs to copy the recipient information in the delivery note one by one, and then add the recipients one by one through the on-site order function in the courier's collection and delivery system. Moreover, when adding recipients, only a maximum of 20 recipients can be added at a time. The operation is cumbersome and inefficient, which greatly wastes the courier's time.

[0003] It can be seen that the existing technology still needs to be improved and developed. Summary of the Invention

[0004] The present invention provides a batch ordering and printing method, device, equipment and storage medium, which are used to obtain and parse the shipping order file, batch generate recipient information, and batch create and print shipping orders based on the generated recipient information or recipient information not used by the server, which can simplify the ordering process and improve work efficiency.

[0005] The first aspect of the present invention provides a batch ordering and printing method, comprising: when receiving a shipping order file import instruction, determining whether the server side stores unused recipient information; if it is determined that the server side does not store unused recipient information, obtaining the shipping order file and parsing the shipping order file to generate recipient information; when receiving a shipping order creation instruction, batch creating a first shipping order based on the recipient information; if it is determined that the server side stores unused recipient information, after receiving the shipping order creation instruction, batch creating a second shipping order based on the unused recipient information; when receiving a shipping order printing instruction, screening the first shipping order or the second shipping order to obtain the correct shipping order; pre-processing the correct shipping order to obtain the shipping order to be printed; counting the number of the shipping orders to be printed, selecting a printing method based on the number of the shipping orders to be printed, and printing the shipping orders to be printed according to the selected printing method.

[0006] Optionally, in a first implementation method of the first aspect of the present invention, the determination of whether the server stores unused recipient information includes: randomly selecting 10% of the recipient information stored in the server, and when the number is not an integer, taking an integer, and when the recipient information stored in the server is greater than three, randomly selecting no less than three recipient information; parsing the randomly selected recipient information one by one to obtain a corresponding number of feature value sets, one feature value set corresponding to one randomly selected recipient information, and each feature value set including the recipient name, recipient telephone number and recipient address; for each feature value set, randomly selecting any two feature values ​​in the feature value set as a comparison set to obtain a corresponding number of comparison sets; comparing all comparison sets one by one with historical mailing lists, and determining the overlap rate of all comparison sets with historical mailing lists; if the overlap rate is greater than 80%, it is determined that the server does not store unused recipient information; if not, it is determined that the server stores unused recipient information.

[0007] Optionally, in a second implementation manner of the first aspect of the present invention, the randomly selecting any two feature values ​​in the feature value set as a comparison set for each feature value set includes: determining the measurement values ​​of the recipient name, recipient phone number and recipient address in the feature value set to obtain a measurement value set; inputting the measurement values ​​in the measurement value set as the fitness of the recipient name, recipient phone number and recipient address into a roulette model, and using the feature output by the roulette model as the first selected feature; placing the first selected feature into the comparison set, and deleting the measurement value corresponding to the first selected feature from the measurement value set; inputting the remaining measurement values ​​in the measurement value set as the fitness of the remaining feature values ​​into the roulette model, and using the feature output by the roulette model as the second selected feature; and placing the second selected feature into the comparison set.

[0008] Optionally, in a third implementation of the first aspect of the present invention, if it is determined that the server does not store unused recipient information, obtaining an invoice file and parsing the invoice file to generate recipient information includes:

[0009] If it is determined that the server does not store unused recipient information, the mini-program for establishing the pickup and delivery service order is called, and the shipping order file in the chat list is obtained from the mini-program;

[0010] Intelligent matching and recognition are performed on the header fields of the shipping order file to generate recipient information, which includes the recipient's name, recipient's phone number, and recipient's address.

[0011] Optionally, in a fourth implementation of the first aspect of the present invention, when a shipping order printing instruction is received, the first shipping order or the second shipping order is screened to obtain a correct shipping order, including: when a shipping order printing instruction is received, the first shipping order or the second shipping order is screened according to preset screening conditions, and the preset screening conditions are having a complete recipient name, recipient phone number and recipient address; the first shipping order or the second shipping order that meets the preset screening conditions is classified as a correct shipping order, and the one that does not meet the preset screening conditions is classified as an order to be corrected; when an order information correction instruction is received, the information of the order to be corrected is corrected until the order to be corrected meets the preset screening conditions; and the corrected order to be corrected is reclassified as a correct shipping order.

[0012] Optionally, in a fifth implementation of the first aspect of the present invention, the correct shipping order is pre-processed to obtain the shipping order to be printed, including: obtaining the recipient address in the correct shipping order, and comparing the recipient address with the express delivery suspension area database; if the recipient address belongs to the suspended address range in the express delivery suspension area database, then classifying the shipping order corresponding to the recipient address as a rejected order, deleting the rejected order from the correct shipping order, and obtaining the remaining shipping orders; obtaining the recipient name in the remaining shipping order, and comparing the recipient name with the blacklist database; if the recipient name belongs to the blacklist range in the blacklist database, then classifying the shipping order corresponding to the recipient name as a blacklist order, deleting the blacklist order from the remaining shipping orders, and obtaining the shipping order to be printed.

[0013] Optionally, in a sixth implementation of the first aspect of the present invention, the counting of the number of the mailing orders to be printed, selecting a printing method according to the number of the mailing orders to be printed, and printing the mailing orders to be printed according to the selected printing method includes: counting the number of the mailing orders to be printed; determining whether the number of the mailing orders to be printed is greater than a preset printing reminder threshold; if so, selecting the printing method as save first and then print; if not, selecting the printing method as direct printing; and printing the mailing orders to be printed according to the selected printing method.

[0014] The second aspect of the present invention provides a batch order placement and printing device, comprising: a judgment module for judging whether the server has unused recipient information stored when receiving a delivery order file import instruction; a recipient information generation module for obtaining the delivery order file and parsing the delivery order file to generate recipient information when it is determined that the server has not stored unused recipient information; a first shipping order creation module for creating a first shipping order in batches according to the recipient information when receiving a shipping order creation instruction; a second shipping order creation module for creating a first shipping order in batches when it is determined that the server has unused recipient information stored information, and after receiving the shipping order creation instruction, batch create the second shipping order according to the unused recipient information; a shipping order screening module, for screening the first shipping order or the second shipping order when receiving the shipping order printing instruction, to obtain the correct shipping order; a shipping order preprocessing module, for preprocessing the correct shipping order to obtain the shipping order to be printed; an order printing module, for counting the number of the shipping orders to be printed, and selecting a printing method according to the number of the shipping orders to be printed, and printing the shipping orders to be printed according to the selected printing method.

[0015] Optionally, in a first implementation of the second aspect of the present invention, the judgment module includes: a first random selection unit, for randomly selecting 10% of the recipient information stored in the server, and when the number is not an integer, an integer is taken, and when the recipient information stored in the server is greater than three, no less than three recipient information is randomly selected; a first parsing unit, for parsing the randomly selected recipient information one by one to obtain a corresponding number of feature value sets, one feature value set corresponding to one randomly selected recipient information; a second random selection unit, for Each of the feature value sets randomly selects any two feature values ​​in the feature value set as a comparison set to obtain a corresponding number of comparison sets; the first judgment unit is used to compare all the comparison sets with the historical mailing lists one by one, and to determine the overlap rate of all the comparison sets with the historical mailing lists; the first processing unit is used to determine that the server does not store any unused recipient information when the overlap rate of all the comparison sets with the historical mailing lists is greater than 80%, and to determine that the server stores unused recipient information when the overlap rate of all the comparison sets with the historical mailing lists is not greater than 80%.

[0016] Optionally, in a second implementation of the second aspect of the present invention, the recipient information generation module includes: a first acquisition unit, for calling a mini program for establishing a collection and delivery service order after determining that no unused recipient information is stored on the server, and obtaining the delivery note file in the chat list from the mini program; and a second processing unit, for intelligently matching and identifying the header fields of the delivery note file.

[0017] Optionally, in a third implementation of the second aspect of the present invention, the shipping order screening module includes: a first screening unit, used to screen the first shipping order or the second shipping order according to preset screening conditions when receiving a shipping order printing instruction; a first order classification unit, used to classify the first shipping order or the second shipping order that meets the preset screening conditions as a correct shipping order, and classify the one that does not meet the preset screening conditions as an order to be corrected; a shipping order correction unit, used to correct the information of the order to be corrected when receiving an order information correction instruction, until the order to be corrected meets the preset screening conditions; a second order classification unit, used to re-classify the corrected order to be corrected as a correct shipping order.

[0018] Optionally, in a fourth implementation method of the second aspect of the present invention, the shipping order preprocessing module includes: a first comparison unit, used to obtain the recipient address in the correct shipping order, and compare the recipient address with the express delivery suspension area database; a third processing unit, used to determine that the recipient address belongs to the suspended address range in the express delivery suspension area database, and then classify the shipping order corresponding to the recipient address as a rejected order, delete the rejected order from the correct shipping order, and obtain the remaining shipping orders; a second comparison unit, used to obtain the recipient name in the remaining shipping order, and compare the recipient name with the blacklist database; a fourth processing unit, used to determine that the recipient name belongs to the blacklist range in the blacklist database, and then classify the shipping order corresponding to the recipient name as a blacklist order, delete the blacklist order from the remaining shipping orders, and obtain the shipping order to be printed.

[0019] Optionally, in a fifth implementation of the second aspect of the present invention, the order printing module includes: a quantity counting unit, used to count the number of the mailing orders to be printed; a second judgment unit, used to judge whether the number of the mailing orders to be printed is greater than a preset printing reminder threshold; a printing method selection unit, used to select the printing method as save first and then print after determining that the number of the mailing orders to be printed is greater than the preset printing reminder threshold, and to select the printing method as direct printing after determining that the number of the mailing orders to be printed is not greater than the preset printing reminder threshold; an order printing unit, used to print the mailing orders to be printed according to the selected printing method.

[0020] A third aspect of the present invention provides a batch ordering and printing device, comprising: a memory and at least one processor, wherein the memory stores computer-readable instructions, and the memory and the at least one processor are interconnected via a line; the at least one processor calls the computer-readable instructions in the memory so that the batch ordering and printing device executes the various steps of the batch ordering and printing method described above.

[0021] A fourth aspect of the present invention provides a computer-readable storage medium, which stores computer-readable instructions. When the computer-readable storage medium is run on a computer, it enables the computer to execute the various steps of the batch ordering and printing method described above.

[0022] In the technical solution provided by the present invention, by obtaining the shipping order file and parsing the shipping order file to generate recipient information, the recipient information can be generated in batches, overcoming the problem of requiring couriers to copy the recipient information in the shipping order one by one, thereby simplifying the order placement process and improving work efficiency. When printing the shipping order, the correct shipping order is screened out, and after pre-processing the shipping order, the shipping order to be printed is obtained, and the appropriate printing method is selected according to the number of shipping orders to be printed, which can avoid waste of printing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A first flow chart of a batch ordering and printing method provided by an embodiment of the present invention;

[0024] Figure 2 A second flow chart of the batch ordering and printing method provided by an embodiment of the present invention;

[0025] Figure 3 A third flow chart of the batch ordering and printing method provided by an embodiment of the present invention;

[0026] Figure 4 A fourth flow chart of the batch ordering and printing method provided by an embodiment of the present invention;

[0027] Figure 5 A fifth flow chart of the batch ordering and printing method provided in an embodiment of the present invention;

[0028] Figure 6 A sixth flow chart of the batch ordering and printing method provided in an embodiment of the present invention;

[0029] Figure 7 A schematic diagram of the structure of a batch order placement and printing device provided by an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of the structure of a batch ordering and printing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] Embodiments of the present invention provide a batch ordering and printing method, apparatus, device, and storage medium for obtaining a shipping order file, parsing the shipping order file, generating recipient information in batches, and creating and printing shipping orders in batches based on the generated recipient information or recipient information not used by the server, thereby simplifying the ordering process and improving work efficiency. The method includes: when receiving a shipping order file import instruction, determining whether the server side stores unused recipient information; if it is determined that the server side does not store unused recipient information, obtaining the shipping order file and parsing the shipping order file to generate recipient information; when receiving a shipping order creation instruction, batch creating a first shipping order according to the recipient information; if it is determined that the server side stores unused recipient information, after receiving the shipping order creation instruction, batch creating a second shipping order according to the unused recipient information; when receiving a shipping order printing instruction, screening the first shipping order or the second shipping order to obtain a correct shipping order; pre-processing the correct shipping order to obtain a shipping order to be printed; counting the number of the shipping orders to be printed, selecting a printing method according to the number of the shipping orders to be printed, and printing the shipping orders to be printed according to the selected printing method.

[0032] The terms "first," "second," "third," "fourth," and the like (if any) in the description and claims of the present invention and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.

[0033] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 A first embodiment of a batch ordering and printing method according to an embodiment of the present invention includes:

[0034] S101. When receiving a delivery order file import instruction, determine whether the server stores unused recipient information.

[0035] In this embodiment, the recipient information includes the recipient's name, recipient's phone number, and recipient's address.

[0036] Understandably, the recipient information may be historical data from a previous import, but this historical data may have already been used. Therefore, when determining whether the server stores unused recipient information, it is first necessary to determine whether the server stores the recipient information, then determine whether the recipient information is unused or used, and finally output the determination result. In this embodiment, it is assumed that the server stores the recipient information, so it is only necessary to determine whether the recipient information is unused or used. If the recipient information is unused, it is determined that the server stores unused recipient information; if the recipient information is used, it is determined that the server does not store unused recipient information.

[0037] S102: If it is determined that the server does not store any unused recipient information, the invoice file is obtained and parsed to generate recipient information.

[0038] In this embodiment, customers placing large orders typically send delivery note files to couriers via the Yunshangbao WeChat mini-program. The couriers then create shipping orders based on the recipient information in the delivery note files. Therefore, when batch generation of recipient information is required, the delivery note files can be directly obtained and parsed to generate the recipient information. This eliminates the need for couriers to copy the recipient information from the delivery notes one by one, simplifying the ordering process.

[0039] S103: When a mailing order creation instruction is received, a first mailing order is created in batches according to the recipient information.

[0040] In this example, the sender information can be stored in advance. After the recipient information is generated in batches, the first shipping orders can be created in batches based on the recipient information.

[0041] S104: If it is determined that the server has unused recipient information stored, then after receiving the shipping order creation instruction, a second shipping order is created in batches according to the unused recipient information.

[0042] In this example, the sender information can be stored in advance, and after receiving the shipping order creation instruction, the second shipping order can be created in batches based on the unused recipient information.

[0043] S105: When a mailing order printing instruction is received, the first mailing order or the second mailing order is screened to obtain a correct mailing order.

[0044] In this embodiment, when creating the first or second shipping order, there may be errors in the order information or other situations. Therefore, in order to avoid wasting printing resources, the first or second shipping order can be screened first, and only the correct shipping order can be printed.

[0045] S106: Pre-process the correct shipping order to obtain a shipping order to be printed.

[0046] In this embodiment, since the correct shipping order may be suspended or the recipient of the correct shipping order may be a blacklisted customer, the correct shipping order needs to be pre-processed to avoid wasting printing resources.

[0047] S107: Count the number of mailing orders to be printed, select a printing method according to the number of mailing orders to be printed, and print the mailing orders to be printed according to the selected printing method.

[0048] As you can understand, there are generally two printing methods: direct printing and save-then-print. This means that the order to be printed is saved first and then printed. When printing, the number of orders to be printed is first counted, and then the direct printing or save-then-print method is selected based on the number of orders to be printed.

[0049] In this embodiment, when printing the mailing order to be printed, the order number is obtained in batches. After the number is obtained successfully, the corresponding order is removed from the mailing order to be printed. If the number is failed, the failed order remains in the mailing order to be printed.

[0050] This embodiment provides a batch ordering and printing method, which obtains a shipping order file, parses the shipping order file, and generates recipient information, thereby being able to generate recipient information in batches, overcoming the problem of requiring couriers to copy the recipient information in the shipping order one by one, thereby simplifying the ordering process and improving work efficiency. When printing the shipping orders, the correct shipping orders are screened out, and after pre-processing the shipping orders, the shipping orders to be printed are obtained, and the appropriate printing method is selected according to the number of shipping orders to be printed, thereby avoiding waste of printing resources.

[0051] See also Figure 2 A second embodiment of a batch ordering and printing method according to an embodiment of the present invention includes:

[0052] S201. Randomly select 10% of the recipient information stored on the server. If the number is not an integer, round it up to an integer. If the number of recipient information stored on the server is greater than three, randomly select no less than three recipient information.

[0053] It should be noted that the recipient information stored on the server is generally large in amount. In order to improve the judgment speed, when judging whether the recipient information stored on the server is used, some data can be randomly selected for judgment, which can both ensure accuracy and improve judgment speed.

[0054] It is understandable that when the server stores more than three pieces of recipient information, in order to ensure accuracy, no less than three pieces of recipient information are randomly selected, that is, when the server stores 3-30 pieces of recipient information, three pieces of recipient information are randomly selected.

[0055] It is understandable that when the number is not an integer, an integer is taken. For example, when the number of recipient information stored on the server is 31-39, the randomly selected recipient information can be three or four.

[0056] S202. 10% of the randomly selected recipient information is parsed one by one to obtain a corresponding number of feature value sets. One feature value set corresponds to one piece of randomly selected recipient information. Each feature value set includes the recipient's name, recipient's phone number, and recipient's address.

[0057] In this embodiment, the recipient information mainly includes the recipient's name, recipient's phone number and recipient's address. Therefore, when parsing the information, it is sufficient to obtain the recipient's name, recipient's phone number and recipient's address.

[0058] S203 . For each eigenvalue set, randomly select any two eigenvalues ​​in the eigenvalue set as comparison sets to obtain a corresponding number of comparison sets.

[0059] In this embodiment, randomly selecting any two feature values ​​in each feature value set includes: determining the measurement values ​​of the recipient name, recipient phone number and recipient address in the feature value set to obtain a measurement value set; inputting the measurement values ​​in the measurement value set as the fitness of the recipient name, recipient phone number and recipient address into the roulette model, and using the feature output by the roulette model as the first selected feature; placing the first selected feature into a comparison set, and deleting the measurement value corresponding to the first selected feature from the measurement value set; inputting the remaining measurement values ​​in the measurement value set into the roulette model as the fitness of the remaining feature values, and using the feature output by the roulette model as the second selected feature; and placing the second selected feature into the comparison set.

[0060] Understandably, in roulette wheel selection, each individual's selection probability is proportional to their fitness value; the greater the fitness, the greater the probability of selection. However, in practice, individual selection in roulette wheel selection is often not based on individual selection probabilities, but rather on "cumulative probabilities."

[0061] The specific process of selecting features in the roulette model includes: first, the metric values ​​in the first metric value set are used as the fitness F of each feature in the roulette algorithm. i (i.e. weight), the probability of a feature being selected is proportional to its fitness. Let the total number of feature data be n, and the fitness of feature i be F iThen, the selection probability q of each feature is calculated based on the fitness Fi i Then, according to the selection probability q i Get the cumulative probability of each feature. j Then, the probability interval corresponding to each feature is obtained according to the cumulative probability. The probability interval corresponding to feature j is [P j-1 ,P j ], where P0 = 0. As shown in Table 1, an example of the selection probability and cumulative probability calculated by a roulette model is given. Finally, a random number between 0 and 1 is randomly generated, and the probability interval in which the random number falls is determined. For example, the generated random number is 0.3. Referring to Table 1, the probability interval in which the random number falls is [0, 0.4]. The feature 1 corresponding to the probability interval in which the random number falls is the feature selected by the roulette model, where the selection probability q i The calculation formula and the cumulative probability P corresponding to feature j j The calculation formulas are expressed as follows:

[0062]

[0063]

[0064] Table 1

[0065] serial number 1 2 3 4 Probability of selection 0.4 0.3 0.3 0.1 Cumulative probability 0.4 0.7 0.9 1

[0066] S204: Compare all comparison sets with the historical mailing lists one by one, and determine the overlap rates between all comparison sets and the historical mailing lists.

[0067] In this embodiment, if two feature values ​​in the comparison set are the same as a certain recipient information in the historical mailing list, it means that the comparison set overlaps with the historical mailing list. If each comparison set is the same as a certain recipient information in the historical mailing list, it means that the overlap rate of all comparison sets and the historical mailing list is 100%.

[0068] S205: If the overlap rate is greater than 80%, it is determined that the server does not store any unused recipient information; if not, it is determined that the server stores any unused recipient information.

[0069] In this embodiment, when the overlap rate is greater than 80%, it means that the recipient information stored in the server has been used. The overlap rate of 80% is an empirical value. When the actual situation changes, the overlap rate can also be adjusted according to the actual situation.

[0070] In this embodiment, since the recipient information corresponding to the feature value set is randomly selected, and the feature values ​​of the comparison set are also randomly selected, using them to determine whether the recipient information stored on the server is used has high reliability.

[0071] See also Figure 3 A third embodiment of a batch order placement and printing method according to an embodiment of the present invention includes:

[0072] S301. If it is determined that the server does not store any unused recipient information, a small program for establishing a pickup and delivery service order is called, and the delivery order file in the chat list is obtained from the small program.

[0073] In this embodiment, the mini program used to establish a collection and delivery service order is the Yunshangbao WeChat mini program. Customers who place large orders generally send delivery order files to couriers through the Yunshangbao WeChat mini program. The courier then creates a shipping order based on the recipient information in the delivery order file.

[0074] In this embodiment, when obtaining the shipping order file in the chat list from the mini program, the courier can select the recent WeChat chat list, click on any chat group or chat friend, and select the shipping order file in the chat.

[0075] In addition, when obtaining the delivery order file in the chat list from the applet, it can be obtained multiple times.

[0076] S302: Intelligently match and identify the header fields of the shipping order file to generate recipient information, which includes the recipient's name, recipient's phone number, and recipient's address.

[0077] It is understandable that the shipping order file generally includes the recipient information, and the recipient information is usually drawn in the form of a table. The shipping order file can be an Excel file or a Word file.

[0078] In this embodiment, the invoice file generally has a fixed template, and the header field of the invoice file generally contains the main content of the recipient information, namely the recipient's name, recipient's phone number and recipient's address. Therefore, when performing intelligent matching and recognition, matching and recognition can be performed based on the above keywords.

[0079] Moreover, when generating recipient information, the recipient address can be automatically split into province, city, district, and detailed address.

[0080] In this embodiment, after the customer sends the delivery note file to the courier through the mini program used to establish a collection and delivery service order, the courier can directly generate and import the recipient information of the delivery note file through the server, and can create orders in batches, overcoming the problem of copying the recipient information in the delivery note one by one, thereby simplifying the order process and improving work efficiency.

[0081] See also Figure 4A fourth embodiment of a batch order placement and printing method in the embodiments of the present invention includes:

[0082] S401: When a mailing order printing instruction is received, the first mailing order or the second mailing order is screened according to a preset screening condition, where the preset screening condition is that the mailing order has a complete recipient name, recipient phone number, and recipient address;

[0083] S402: Classify the first shipping order or the second shipping order that meets the preset screening conditions as a correct shipping order, and classify the one that does not meet the preset screening conditions as an order to be corrected;

[0084] In this embodiment, if the recipient information in the first or second shipping order has a complete recipient name, recipient phone number, and recipient address, it indicates that it is a correct shipping order. If the recipient name, recipient phone number, and recipient address are incomplete, it indicates that the information is incomplete and can be modified. Therefore, it can be classified as an order to be corrected so that the courier can modify it, and the order to be corrected can be further screened after the modification.

[0085] S403: When an order information correction instruction is received, the information of the order to be corrected is corrected until the order to be corrected meets the preset screening conditions;

[0086] In this embodiment, since the order to be corrected can be modified to meet the preset screening conditions, that is, it can be modified to have a complete recipient name, recipient phone number and recipient address, it can continue to be screened after it is corrected until the order to be corrected has a complete recipient name, recipient phone number and recipient address.

[0087] S404: Reclassify the corrected order to be corrected as a correct shipping order.

[0088] In this embodiment, the first mailing order or the second mailing order is screened by pre-set screening conditions, thereby avoiding waste of printing resources.

[0089] See also Figure 5 A fifth embodiment of a batch order placement and printing method in the embodiments of the present invention includes:

[0090] S501. Obtain the recipient address in the correct shipping order and compare the recipient address with the database of express delivery suspension areas;

[0091] S502: If the recipient's address falls within the range of suspended addresses in the express delivery suspension area database, classify the shipping order corresponding to the recipient's address as a rejected order, delete the rejected order from the correct shipping orders, and obtain remaining shipping orders;

[0092] In this embodiment, since the correct shipping order may be suspended, it is necessary to compare the recipient address in the correct shipping order with the express delivery suspension area database. If it falls within the suspension address range, it can be deleted from the correct shipping order to avoid wasting printing resources.

[0093] S503: Obtain the recipient names in the remaining shipping orders and compare the recipient names with the blacklist database;

[0094] S504: If the recipient's name falls within the blacklist range in the blacklist database, the shipping order corresponding to the recipient's name is classified as a blacklist order, and the blacklist order is deleted from the remaining shipping orders to obtain a shipping order to be printed.

[0095] In this embodiment, since the recipient of the correct shipping order may be a blacklisted customer, it is necessary to compare the recipient name in the remaining shipping orders with the blacklist range. If the recipient is a blacklisted customer, in order to avoid wasting printing resources, he or she can be deleted from the remaining shipping orders.

[0096] In this embodiment, the correct shipping orders after excluding the rejected orders and the blacklisted orders, that is, the shipping orders to be printed, are printed, which can reduce the waste of printing resources as much as possible.

[0097] See also Figure 6 The first embodiment of a batch ordering and printing method in the embodiments of the present invention includes:

[0098] S601: Count the number of mailing orders to be printed.

[0099] S602: Determine whether the number of mailing orders to be printed is greater than a preset printing reminder threshold.

[0100] In this embodiment, the print reminder threshold can be set to 20-50, and can be adjusted according to actual conditions.

[0101] S603: If yes, select the print mode as save first and print later; if no, select the print mode as direct print.

[0102] S604: Print the shipping order to be printed according to the selected printing method.

[0103] In this embodiment, when there are too many mailing orders to print, ensuring sufficient printing paper before printing can prevent order data from being invalidated due to insufficient printing paper. Therefore, when direct printing is selected, a check is first made to determine whether the number of mailing orders to print exceeds the print reminder threshold. If the number of mailing orders to print is not greater than the print reminder threshold, direct printing can be performed. If the number of mailing orders to print is greater than the print reminder threshold, the order data is saved first and then printed.

[0104] The above describes the batch ordering and printing method in the embodiment of the present invention. The following describes the device in the embodiment of the present invention. Figure 7 In one embodiment of the present invention, an implementation of a batch order placement and printing device includes:

[0105] The judgment module 701 is used to judge whether the server has unused recipient information stored when receiving the invoice file import instruction;

[0106] The recipient information generating module 702 is configured to obtain the shipping order file and parse the shipping order file to generate the recipient information when it is determined that the server does not store unused recipient information.

[0107] The first shipping order creation module 703 is configured to create first shipping orders in batches according to recipient information upon receiving a shipping order creation instruction;

[0108] The second shipping order creation module 704 is configured to, upon determining that the server has unused recipient information stored therein and receiving a shipping order creation instruction, batch create second shipping orders based on the unused recipient information;

[0109] The shipping order screening module 705 is used to screen the first shipping order or the second shipping order to obtain the correct shipping order when receiving the shipping order printing instruction;

[0110] The shipping order pre-processing module 706 is used to pre-process the correct shipping order to obtain the shipping order to be printed;

[0111] The order printing module 707 is used to count the number of mailing orders to be printed, select a printing method according to the number of mailing orders to be printed, and print the mailing orders to be printed according to the selected printing method.

[0112] In this embodiment, the judgment module 701 includes: a first random selection unit 7011, which is used to randomly select 10% of the recipient information stored in the server. When the number is not an integer, an integer is taken, and when the recipient information stored in the server is greater than three, no less than three recipient information is randomly selected; a first parsing unit 7012, which parses the randomly selected recipient information one by one to obtain a corresponding number of feature value sets; a second random selection unit 7013, which randomly selects the feature value set for each of the feature value sets. Any two characteristic values ​​in the combination are used as comparison sets to obtain a corresponding number of comparison sets; the first judgment unit 7014 is used to compare all the comparison sets with the historical mailing lists one by one, and to determine the overlap rate of all the comparison sets with the historical mailing lists; the first processing unit 7015 is used to determine that the server does not store any unused recipient information when the overlap rate of all the comparison sets with the historical mailing lists is greater than 80%, and to determine that the server stores unused recipient information when the overlap rate of all the comparison sets with the historical mailing lists is not greater than 80%.

[0113] In this embodiment, the recipient information generation module 702 includes: a first acquisition unit 7021, which is used to call the mini program for establishing a collection and delivery service order after determining that the server does not store unused recipient information, and obtain the delivery order file in the chat list from the mini program; a second processing unit 7022, which is used to intelligently match and identify the header fields of the delivery order file.

[0114] In this embodiment, the shipping order screening module 705 includes: a first screening unit 7051, which is used to screen the first shipping order or the second shipping order according to preset screening conditions when a shipping order printing instruction is received; a first order classification unit 7052, which is used to classify the first shipping order or the second shipping order that meets the preset screening conditions as a correct shipping order, and classify the one that does not meet the preset screening conditions as an order to be corrected; a shipping order correction unit 7053, which is used to correct the information of the order to be corrected when an order information correction instruction is received, until the order to be corrected meets the preset screening conditions; a second order classification unit 7054, which is used to re-classify the corrected order to be corrected as a correct shipping order.

[0115] In this embodiment, the shipping order preprocessing module 706 includes: a first comparison unit 7061, which is used to obtain the recipient address in the correct shipping order and compare the recipient address with the express delivery suspension area database; a third processing unit 7062, which is used to determine that the recipient address belongs to the suspended address range in the express delivery suspension area database, classify the shipping order corresponding to the recipient address as a rejected order, delete the rejected order from the correct shipping order, and obtain the remaining shipping orders; a second comparison unit 7063, which is used to obtain the recipient name in the remaining shipping orders, and compare the recipient name with the blacklist database; a fourth processing unit 7064, which is used to determine that the recipient name belongs to the blacklist range in the blacklist database, classify the shipping order corresponding to the recipient name as a blacklist order, delete the blacklist order from the remaining shipping orders, and obtain the shipping order to be printed.

[0116] In this embodiment, the order printing module 707 includes: a quantity counting unit 7071, which is used to count the number of mailing orders to be printed; a second judgment unit 7072, which is used to judge whether the number of mailing orders to be printed is greater than the preset printing reminder threshold; a printing method selection unit 7073, which is used to select the printing method as save first and then print after determining that the number of mailing orders to be printed is greater than the preset printing reminder threshold, and select the printing method as direct printing after determining that the number of mailing orders to be printed is not greater than the preset printing reminder threshold; an order printing unit 7074, which is used to print the mailing orders to be printed according to the selected printing method.

[0117] In this embodiment, by obtaining the shipping order file and parsing the shipping order file to generate the recipient information, the recipient information can be generated in batches, overcoming the problem of requiring couriers to copy the recipient information in the shipping order one by one, thereby simplifying the order placement process and improving work efficiency. When printing the shipping order, the correct shipping order is screened out, and after pre-processing the shipping order, the shipping order to be printed is obtained, and the appropriate printing method is selected according to the number of shipping orders to be printed, which can avoid waste of printing resources.

[0118] above Figure 7 The batch ordering and printing device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The batch ordering and printing device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0119] Figure 8: This is a structural diagram of a batch order placement and printing device provided by an embodiment of the present invention. The device 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 810 (for example, one or more processors) and a memory 820, and one or more storage media 830 (for example, one or more mass storage devices) for storing application programs 833 or data 832. Among them, the memory 820 and the storage medium 830 can be short-term storage or persistent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the device 800. Furthermore, the processor 810 can be configured to communicate with the storage medium 830 to execute a series of instruction operations in the storage medium on the device 800.

[0120] The device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input and output interfaces 860, and / or one or more operating systems 831, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.

[0121] An embodiment of the present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the batch ordering and printing method.

[0122] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0123] If 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 computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc., various media that can store program code.

[0124] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A batch ordering and printing method, characterized in that: The batch ordering and printing method includes: When receiving the invoice file import instruction, determine whether the server has unused recipient information stored; If it is determined that the server does not store unused recipient information, then obtaining the invoice file and parsing the invoice file to generate recipient information; When a mailing order creation instruction is received, a first mailing order is created in batches according to the recipient information; If it is determined that the server has unused recipient information stored, then after receiving the shipping order creation instruction, a second shipping order is created in batches based on the unused recipient information; When receiving a shipping order printing instruction, screening the first shipping order or the second shipping order to obtain a correct shipping order; Pre-processing the correct shipping order to obtain a shipping order to be printed; Counting the number of the mailing orders to be printed, selecting a printing method according to the number of the mailing orders to be printed, and printing the mailing orders to be printed according to the selected printing method; The method of determining whether the server stores unused recipient information includes: randomly selecting 10% of the recipient information stored in the server, taking an integer when the number is not an integer, and randomly selecting no less than three recipient information when the server stores more than three pieces of recipient information; parsing the randomly selected recipient information one by one to obtain a corresponding number of feature value sets, one feature value set corresponding to one randomly selected recipient information, each feature value set including the recipient's name, recipient's telephone number and recipient's address; for each feature value set, randomly selecting any two feature values ​​in the feature value set as a comparison set to obtain a corresponding number of comparison sets; comparing all comparison sets one by one with historical mailing lists, and determining the overlap rate between all comparison sets and historical mailing lists; if the overlap rate is greater than 80%, it is determined that the server does not store unused recipient information; if not, it is determined that the server stores unused recipient information.

2. The batch ordering and printing method according to claim 1, characterized in that: Randomly selecting any two eigenvalues ​​in each eigenvalue set as a comparison set includes: Determine the measurement values ​​of the recipient's name, recipient's phone number, and recipient's address in the feature value set to obtain a measurement value set; Inputting the metric values ​​in the metric value set as the fitness of the recipient's name, recipient's phone number, and recipient's address into the roulette model, and using the feature output by the roulette model as the first selected feature; Adding the first selected feature to the comparison set, and deleting the metric value corresponding to the first selected feature from the metric value set; Inputting the remaining metric values ​​in the metric value set into the roulette model as the fitness of the remaining feature values, and using the feature output by the roulette model as the second selected feature; The second selected feature is placed into the comparison set.

3. The batch ordering and printing method according to claim 1, characterized in that: If it is determined that the server does not store unused recipient information, the invoice file is obtained and parsed to generate recipient information, including: If it is determined that the server does not store unused recipient information, the mini-program for establishing the pickup and delivery service order is called, and the shipping order file in the chat list is obtained from the mini-program; Intelligent matching and recognition are performed on the header fields of the shipping order file to generate recipient information, which includes the recipient's name, recipient's phone number, and recipient's address.

4. The batch ordering and printing method according to claim 1, characterized in that: When receiving the shipping order printing instruction, screening the first shipping order or the second shipping order to obtain the correct shipping order includes: When receiving a mailing order printing instruction, screening the first mailing order or the second mailing order according to a preset screening condition, wherein the preset screening condition is having a complete recipient name, recipient phone number, and recipient address; The first shipping order or the second shipping order that meets the preset screening conditions is classified as a correct shipping order, and the one that does not meet the preset screening conditions is classified as an order to be corrected; When an order information correction instruction is received, the information of the order to be corrected is corrected until the order to be corrected meets the preset screening conditions; The corrected pending orders will be reclassified as correct shipping orders.

5. The batch ordering and printing method according to claim 1, characterized in that: The pre-processing of the correct shipping order to obtain the shipping order to be printed includes: Obtaining the recipient address in the correct shipping order, and comparing the recipient address with the database of express delivery suspension areas; If the recipient address falls within the range of suspended addresses in the express delivery suspension area database, the shipping order corresponding to the recipient address is classified as a rejected order, and the rejected order is deleted from the correct shipping orders to obtain the remaining shipping orders; Obtaining the recipient names in the remaining shipping orders, and comparing the recipient names with a blacklist database; If the recipient name belongs to the blacklist range in the blacklist database, the shipping order corresponding to the recipient name is classified as a blacklist order, and the blacklist order is deleted from the remaining shipping orders to obtain the shipping order to be printed.

6. The batch ordering and printing method according to claim 1, characterized in that: The counting of the number of the mailing orders to be printed, selecting a printing method according to the number of the mailing orders to be printed, and printing the mailing orders to be printed according to the selected printing method includes: Counting the number of shipping orders to be printed; Determining whether the number of the mailing orders to be printed is greater than a preset printing reminder threshold; If yes, select the print mode as Save first and print later; if no, select the print mode as Direct print; The mailing order to be printed is printed according to the selected printing method.

7. A batch ordering and printing device, characterized in that: include: A judgment module, configured to judge whether the server has unused recipient information stored when receiving a delivery order file import instruction; A recipient information generation module, configured to obtain a shipping order file and parse the shipping order file to generate recipient information when it is determined that the server does not store unused recipient information; A first shipping order creation module, configured to create first shipping orders in batches according to the recipient information upon receiving a shipping order creation instruction; A second shipping order creation module, configured to, upon determining that the server has unused recipient information stored therein and receiving a shipping order creation instruction, batch create second shipping orders based on the unused recipient information; The method of determining whether the server stores unused recipient information includes: randomly selecting 10% of the recipient information stored in the server, taking an integer when the number is not an integer, and randomly selecting no less than three recipient information when the server stores more than three pieces of recipient information; parsing the randomly selected recipient information one by one to obtain a corresponding number of feature value sets, one feature value set corresponding to one randomly selected recipient information, each feature value set including the recipient's name, recipient's telephone number, and recipient's address; for each feature value set, randomly selecting any two feature values ​​in the feature value set as a comparison set to obtain a corresponding number of comparison sets; comparing all comparison sets one by one with historical mailing lists, and determining the overlap rate between all comparison sets and historical mailing lists; if the overlap rate is greater than 80%, determining that the server does not store unused recipient information; if not, determining that the server stores unused recipient information; a shipping order screening module, configured to screen the first shipping order or the second shipping order upon receiving a shipping order printing instruction to obtain a correct shipping order; A shipping order preprocessing module, configured to preprocess the correct shipping order to obtain a shipping order to be printed; The order printing module is used to count the number of the mailing orders to be printed, select a printing method according to the number of the mailing orders to be printed, and print the mailing orders to be printed according to the selected printing method.

8. A batch ordering and printing device, characterized in that: comprising a memory and at least one processor, wherein the memory has computer-readable instructions stored therein; The at least one processor calls the computer-readable instructions in the memory to execute the various steps of the batch ordering and printing method according to any one of claims 1 to 6.

9. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed by a processor, the steps of the batch ordering and printing method as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Order processing system and method for self-built logistics distribution

    CN111915263A

  • Express bill printing method and system, equipment and storage medium

    CN113031886A