Order printing method, device, computer equipment and storage medium

By receiving the order to be printed and determining the target delivery warehouse and printer identification, generating printing data and sending it to the cloud printing server, the problem of cumbersome and inefficient traditional waybill printing methods is solved, and efficient and accurate waybill printing is achieved.

CN114489520BActive Publication Date: 2024-11-22SF TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011262081.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-12
Publication Date
2024-11-22
Estimated Expiration
2040-11-12

AI Technical Summary

Technical Problem

Traditional waybill printing methods are cumbersome and inefficient, prone to errors, and are difficult to meet the rapidly growing express delivery needs.

Method used

By receiving orders to be printed, determining the target delivery warehouse and printer identification, generating printing data and sending it to the cloud printing server, cloud printing is realized, manual operations are reduced, and waybill printing efficiency is improved.

Benefits of technology

It improves the efficiency of waybill printing, reduces manual operations, enhances the automation and accuracy of the printing process, and adapts to the efficient needs of the express delivery industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489520B_ABST
    Figure CN114489520B_ABST
Patent Text Reader

Abstract

The present application relates to an order printing method, device, computer equipment and storage medium. The method comprises: receiving an order to be printed, determining a target delivery warehouse corresponding to the order to be printed according to the order to be printed; querying preset printer configuration information according to the target delivery warehouse to determine a printer identifier corresponding to the order to be printed; generating data to be printed according to the order to be printed, sending a print instruction carrying the data to be printed to a cloud printing server, and the print instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier. The method can improve the efficiency of waybill printing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an order printing method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of e-commerce, the demand for express delivery has increased rapidly. Merchants need to ship customers' goods quickly and deliver them to customers at the fastest logistics speed. In the process of logistics distribution, waybills need to be printed.

[0003] In traditional technology, when printing waybills, the merchant usually receives the order, divides the order according to the destination in the order, and assigns the order to the delivery warehouse corresponding to the destination. After receiving the divided order, the administrator of the delivery warehouse operates the system to print the waybill.

[0004] However, the traditional method is cumbersome to operate and prone to printing errors, and there is a problem of low efficiency in waybill printing. Summary of the invention

[0005] Based on this, it is necessary to provide an order printing method, device, computer equipment and storage medium that can improve the efficiency of waybill printing in response to the above technical problems.

[0006] An order printing method, the method comprising:

[0007] Receive the order to be printed, and determine the target delivery warehouse corresponding to the order to be printed according to the order to be printed;

[0008] Query the preset printer configuration information according to the target delivery warehouse and determine the printer ID corresponding to the order to be printed;

[0009] The data to be printed is generated according to the order to be printed, and a printing instruction carrying the data to be printed is sent to the cloud printing server. The printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0010] In one embodiment, according to the order to be printed, determining the target delivery warehouse corresponding to the order to be printed includes:

[0011] According to the order attribute information in the order to be printed, query the preset delivery warehouse configuration information to obtain the delivery warehouse set corresponding to the order attribute information;

[0012] When there is a preset designated delivery warehouse in the delivery warehouse set, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed, and the preset designated delivery warehouse corresponds to the destination address or goods information in the order attribute information;

[0013] When there is no preset designated delivery warehouse in the delivery warehouse set, the target delivery warehouse corresponding to the order to be printed is filtered out from the delivery warehouse set.

[0014] In one embodiment, selecting a target delivery warehouse corresponding to the order to be printed from the delivery warehouse set includes:

[0015] Calculate the delivery cost of each candidate delivery warehouse in the delivery warehouse set according to the destination address in the order attribute information;

[0016] The delivery costs of the candidate delivery warehouses are ranked, and the target delivery warehouse corresponding to the order to be printed is determined.

[0017] In one embodiment, querying preset printer configuration information according to the target delivery warehouse to determine the printer identifier corresponding to the order to be printed includes:

[0018] Query preset printer configuration information according to the target delivery warehouse, and determine the printer identification set corresponding to the target delivery warehouse;

[0019] Query the historical order printing records according to the printer identification set, determine the historical printer identification corresponding to the printer that has completed the latest printing task, and determine the next order printer identification corresponding to the historical printer identification according to the printer identification set;

[0020] According to the next order printer ID, determine the printer ID corresponding to the order to be printed.

[0021] In one embodiment, before sending a printer query request carrying a printer identifier to a cloud printing server, the method further includes:

[0022] Send a connection request to the main server in the preset cloud printing service cluster;

[0023] When receiving a link feedback corresponding to the link request, determining that the main server is a cloud printing server;

[0024] When link feedback corresponding to the link request is not received, an alternative link request is sent to an alternative server in a preset cloud printing service cluster, and when link feedback corresponding to the alternative link request is received, the alternative server is determined to be a cloud printing server.

[0025] In one embodiment, before generating the data to be printed according to the order to be printed and sending the printing instruction carrying the data to be printed to the cloud printing server, the method further includes:

[0026] Sending a printer query request carrying a printer identifier to a cloud printing server, where the printer query request is used to instruct the cloud printing server to detect the working status of the printer corresponding to the printer identifier;

[0027] When receiving the printer abnormal working identification fed back by the cloud printing server, determining the target printer identification corresponding to the order to be printed according to the printer identification corresponding to the order to be printed and the preset printer configuration information;

[0028] The target printer ID is used as the new printer ID corresponding to the order to be printed, and the process returns to the step of sending a printer query request carrying the printer ID to the cloud printing server until no abnormal printer operation ID is received.

[0029] In one embodiment, the method further includes: obtaining the print serial number of the printed order, performing print task statistics according to the print serial number, and determining print exception information.

[0030] An order printing device, comprising:

[0031] An acquisition module is used to receive the order to be printed, and determine the target delivery warehouse corresponding to the order to be printed according to the order to be printed;

[0032] A query module, used to query preset printer configuration information according to a target delivery warehouse and determine the printer identifier corresponding to the order to be printed;

[0033] The printing module is used to generate the data to be printed according to the order to be printed, and send a printing instruction carrying the data to be printed to the cloud printing server, wherein the printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0034] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0035] Receive the order to be printed, and determine the target delivery warehouse corresponding to the order to be printed according to the order to be printed;

[0036] Query the preset printer configuration information according to the target delivery warehouse and determine the printer ID corresponding to the order to be printed;

[0037] The data to be printed is generated according to the order to be printed, and a printing instruction carrying the data to be printed is sent to the cloud printing server. The printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0039] Receive the order to be printed, and determine the target delivery warehouse corresponding to the order to be printed according to the order to be printed;

[0040] Query the preset printer configuration information according to the target delivery warehouse and determine the printer ID corresponding to the order to be printed;

[0041] The data to be printed is generated according to the order to be printed, and a printing instruction carrying the data to be printed is sent to the cloud printing server. The printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0042] The above-mentioned order printing method, device, computer equipment and storage medium, after receiving the order to be printed, first determine the target delivery warehouse corresponding to the order to be printed, then query the preset printer configuration information according to the target delivery warehouse, determine the printer identification corresponding to the order to be printed, generate the data to be printed according to the order to be printed, send the printing instruction carrying the data to be printed to the cloud printing server, let the cloud printing server forward the data to be printed to the printer corresponding to the printer identification, so that the printer completes printing according to the data to be printed. During the whole process, after determining the target delivery warehouse, the preset printer configuration information is used to realize cloud printing of the order to be printed, which reduces manual operation and can improve the efficiency of waybill printing. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 An application environment diagram of an order printing method in an embodiment;

[0044] Figure 2 A schematic diagram of a process of an order printing method in one embodiment;

[0045] Figure 3 A schematic diagram of an order printing method in one embodiment;

[0046] Figure 4 is a structural block diagram of an order printing device in one embodiment;

[0047] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0049] The order printing method provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network, the server 104 communicates with the cloud printing server 106 through the network, and the cloud printing server 106 communicates with the printer 108 through the network. The user places an order through the terminal 102, and the server 104 receives the order to be printed, determines the target delivery warehouse corresponding to the order to be printed according to the order to be printed, queries the preset printer configuration information according to the target delivery warehouse, determines the printer identification corresponding to the order to be printed, generates the data to be printed according to the order to be printed, and sends the printing instruction carrying the data to be printed to the cloud printing server 106. The printing instruction is used to instruct the cloud printing server 106 to forward the data to be printed to the printer 108 corresponding to the printer identification. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0050] In one embodiment, Figure 2 As shown, an order printing method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0051] Step 202, receiving the order to be printed, and determining the target delivery warehouse corresponding to the order to be printed according to the order to be printed.

[0052] The order to be printed refers to an order that is placed by a user through a terminal and is waiting to be distributed to a printer for printing. For example, the order to be printed may specifically refer to an order generated after a user places an order on an e-commerce platform. The target delivery warehouse refers to a warehouse that delivers goods corresponding to the order to be printed.

[0053] Specifically, the user will place an order on an e-commerce platform through a terminal, and the order to be printed placed by the user will be sent to the server through the terminal. After receiving the order to be printed, the server will determine the target delivery warehouse corresponding to the order to be printed according to the order attributes in the order to be printed. Among them, the order attribute information includes the sender information, the destination address, and the goods information.

[0054] Step 204, querying preset printer configuration information according to the target delivery warehouse, and determining the printer identifier corresponding to the order to be printed.

[0055] The preset printer configuration information refers to the preset printer configuration information, including the correspondence between the warehouse and the printer identifier, where the printer identifier corresponds to the printer belonging to the warehouse. The preset printer configuration information can be set as needed. Furthermore, the printer belonging to the warehouse can be one or more. When there are multiple printers belonging to the warehouse, there are also multiple printer identifiers corresponding to the warehouse, that is, a printer identifier set.

[0056] Specifically, the server will query the preset printer configuration information according to the target delivery warehouse, and determine the printer identification set corresponding to the target delivery warehouse. When the printer identification set includes only one printer identification, that is, there is only one printer corresponding to the target delivery warehouse, the server can directly determine the printer identification as the printer identification corresponding to the order to be printed. When the printer identification set includes at least two printer identifications, the server needs to further determine the printer identification corresponding to the order to be printed based on the historical printing situation. Furthermore, determining the printer identification corresponding to the order to be printed based on the historical printing situation means that the printer corresponding to the printer identification can be used in sequence according to the principle of polling one by one.

[0057] Step 206, generating data to be printed according to the order to be printed, and sending a printing instruction carrying the data to be printed to the cloud printing server, where the printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0058] The data to be printed refers to the order data corresponding to the order to be printed and identifiable by the printer. The cloud printing server refers to the server connected to the printer, which is used to forward the data to be printed to the printer and instruct the printer to work.

[0059] Specifically, the server will generate the data to be printed according to the order to be printed. After generating the data to be printed, it will send a print instruction carrying the data to be printed to the cloud printing server, so that the cloud printing server will forward the data to be printed to the printer corresponding to the printer identifier, so that the printer can print the order according to the data to be printed. After printing is completed, the printer will feedback the corresponding printing completion prompt to the cloud printing server. After receiving the printing completion prompt from the printer, the cloud printing server will feedback the corresponding printing completion prompt to the server, so that the server knows that the order to be printed has been printed.

[0060] Furthermore, before sending a print instruction carrying the data to be printed to the cloud printing server, the server will also send a printer query request carrying a printer identifier to the cloud printing server to instruct the cloud printing server to detect the working status of the printer corresponding to the printer identifier. When the printer is working normally, no processing is performed. When the printer is working abnormally, a new printer corresponding to the printer identifier is re-determined.

[0061] The above-mentioned order printing method, after receiving the order to be printed, first determines the target delivery warehouse corresponding to the order to be printed, and then queries the preset printer configuration information according to the target delivery warehouse, determines the printer ID corresponding to the order to be printed, generates the data to be printed according to the order to be printed, and sends the printing instruction carrying the data to be printed to the cloud printing server, so that the cloud printing server forwards the data to be printed to the printer corresponding to the printer ID, so that the printer completes printing according to the data to be printed. During the whole process, after determining the target delivery warehouse, the preset printer configuration information is used to realize cloud printing of the order to be printed, which reduces manual operation and can improve the efficiency of waybill printing.

[0062] In one embodiment, according to the order to be printed, determining the target delivery warehouse corresponding to the order to be printed includes:

[0063] According to the order attribute information in the order to be printed, query the preset delivery warehouse configuration information to obtain the delivery warehouse set corresponding to the order attribute information;

[0064] When there is a preset designated delivery warehouse in the delivery warehouse set, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed, and the preset designated delivery warehouse corresponds to the destination address or goods information in the order attribute information;

[0065] When there is no preset designated delivery warehouse in the delivery warehouse set, the target delivery warehouse corresponding to the order to be printed is filtered out from the delivery warehouse set.

[0066] Among them, the order attribute information includes sender information, destination address, and goods information. Sender information refers to the information of the user who sends the goods. For example, the sender information can specifically be the merchant information on the e-commerce platform. The preset delivery warehouse configuration information stores the correspondence between the sender and the delivery warehouse, that is, corresponding to any sender, there are a number of warehouses that can realize the delivery of goods. Furthermore, the preset delivery warehouse configuration information may contain preset designated delivery warehouse information corresponding to the order attribute information. The preset designated delivery warehouse information here can specifically refer to the specific selection of a delivery warehouse for a certain type of goods for delivery, or it can be the specific selection of a delivery warehouse for delivery for certain destination addresses. This embodiment is not specifically limited here.

[0067] Specifically, the server will query the preset delivery warehouse configuration information according to the order attribute information in the order to be printed, obtain the delivery warehouse set corresponding to the sender information in the order attribute information, and further confirm whether there is a preset designated delivery warehouse corresponding to the destination address or cargo information in the order attribute information in the delivery warehouse set. When there is a preset designated delivery warehouse in the delivery warehouse set, the server will use the preset designated delivery warehouse as the target delivery warehouse corresponding to the order to be printed. When there is no preset designated delivery warehouse in the delivery warehouse set, the server will filter out the target delivery warehouse corresponding to the order to be printed from the delivery warehouse set.

[0068] In this embodiment, a delivery warehouse set is determined based on the order attribute information in the order to be printed, and it is further confirmed whether there is a preset designated delivery warehouse in the delivery warehouse set. When there is a preset designated delivery warehouse, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed. When there is no preset designated delivery warehouse, the target delivery warehouse corresponding to the order to be printed is filtered out from the delivery warehouse set, thereby realizing the determination of the target delivery warehouse.

[0069] In one embodiment, selecting a target delivery warehouse corresponding to the order to be printed from the delivery warehouse set includes:

[0070] Calculate the delivery cost of each candidate delivery warehouse in the delivery warehouse set according to the destination address in the order attribute information;

[0071] The delivery costs of the candidate delivery warehouses are ranked, and the target delivery warehouse corresponding to the order to be printed is determined.

[0072] The delivery cost refers to the cost incurred by each alternative delivery warehouse when delivering the goods corresponding to the order to be printed.

[0073] Specifically, the server will first calculate the delivery distance between each alternative delivery warehouse in the delivery warehouse set and the destination address according to the destination address in the order attribute information, and then combine the single-kilometer delivery cost corresponding to each alternative delivery warehouse to obtain the delivery cost of each alternative delivery warehouse. Finally, the delivery costs of each pair of alternative delivery warehouses are sorted, and the alternative delivery warehouse with the smallest delivery cost is selected as the target delivery warehouse corresponding to the order to be printed.

[0074] In this embodiment, the delivery cost of each alternative delivery warehouse in the delivery warehouse set is calculated according to the destination address in the order attribute information, the delivery cost of each alternative delivery warehouse is sorted, and the target delivery warehouse corresponding to the order to be printed is determined, thereby realizing the determination of the target delivery warehouse.

[0075] In one embodiment, querying preset printer configuration information according to the target delivery warehouse to determine the printer identifier corresponding to the order to be printed includes:

[0076] Query preset printer configuration information according to the target delivery warehouse, and determine the printer identification set corresponding to the target delivery warehouse;

[0077] Query the historical order printing records according to the printer identification set, determine the historical printer identification corresponding to the printer that has completed the latest printing task, and determine the next order printer identification corresponding to the historical printer identification according to the printer identification set;

[0078] According to the next order printer ID, determine the printer ID corresponding to the order to be printed.

[0079] The historical order printing record refers to the historical printing status of the printer corresponding to the printer identification set. For example, when there are three printers in the printer identification set, the historical order printing record may specifically refer to the past printing status of the three printers. After each order printing is completed, the server will generate and store an order printing record according to the printer identification corresponding to the printer that printed the order.

[0080] Specifically, the server queries the preset printer configuration information according to the target delivery warehouse, and can determine the printer identification set corresponding to the target delivery warehouse, query the historical order printing records according to the printer identification set, determine the historical printer identification corresponding to the printer that has recently completed the printing task, and use the next order printer identification corresponding to the historical printer identification in the printer identification set as the printer identification corresponding to the order to be printed. Among them, each printer identification in the printer identification set is in order. For example, when there are three printer identifications A, B, and C in the printer identification set, the order corresponding to these three printer identifications can be ①, ②, and ③ respectively. If the historical order printing records are queried and it is determined that the historical printer identification corresponding to the printer that has recently completed the printing task is ②, then it can be determined that the next order printer identification corresponding to the historical printer identification ③ can be used as the printer identification corresponding to the order to be printed.

[0081] In this embodiment, by querying the preset printer configuration information, it is possible to determine the printer identification set corresponding to the target delivery warehouse, and then the historical order printing records can be queried based on the printer identification set to determine the historical printer identification, and the printer identification corresponding to the order to be printed can be determined based on the historical printer identification.

[0082] In one embodiment, before sending a printer query request carrying a printer identifier to a cloud printing server, the method further includes:

[0083] Send a connection request to the main server in the preset cloud printing service cluster;

[0084] When receiving a link feedback corresponding to the link request, determining that the main server is a cloud printing server;

[0085] When link feedback corresponding to the link request is not received, an alternative link request is sent to an alternative server in a preset cloud printing service cluster, and when link feedback corresponding to the alternative link request is received, the alternative server is determined to be a cloud printing server.

[0086] The link request refers to a request to establish a connection with a preset cloud printing service cluster. For example, the link request may specifically refer to a ping request, etc., which is not limited in this embodiment. The preset cloud printing service cluster refers to a cluster consisting of at least two cloud printing servers, including a main server and an alternative server.

[0087] Specifically, when it is necessary to communicate with the cloud printing server, the server will send a link request to the main server in the preset cloud printing service cluster. When the link feedback corresponding to the link request is received, it indicates that the current main server can work normally. The server will determine that the main server is a cloud printing server. When the link feedback corresponding to the link request is not received, it indicates that the current main server cannot work normally. The server will send an alternative link request to the alternative server in the preset cloud printing service cluster. When the link feedback corresponding to the alternative link request is received, the alternative server is determined to be a cloud printing server. Further, when there are at least two alternative servers in the preset cloud printing service cluster, the server will send alternative link requests to the alternative servers in turn according to the preset priorities of the alternative servers until the link feedback corresponding to the alternative link request is received, and then stop sending and establish a connection with the alternative server that sent the link feedback.

[0088] In this embodiment, by sending a link request to the main server in the preset cloud printing service cluster, when link feedback corresponding to the link request is received, the main server is determined to be the cloud printing server. When link feedback corresponding to the link request is not received, an attempt is made to connect to the alternative server. When link feedback corresponding to the alternative link request is received, the alternative server is determined to be the cloud printing server, thereby realizing the determination of the cloud printing server.

[0089] In one embodiment, before generating the data to be printed according to the order to be printed and sending the printing instruction carrying the data to be printed to the cloud printing server, the method further includes:

[0090] Sending a printer query request carrying a printer identifier to a cloud printing server, where the printer query request is used to instruct the cloud printing server to detect the working status of the printer corresponding to the printer identifier;

[0091] When receiving the printer abnormal working identification fed back by the cloud printing server, determining the target printer identification corresponding to the order to be printed according to the printer identification corresponding to the order to be printed and the preset printer configuration information;

[0092] The target printer ID is used as the new printer ID corresponding to the order to be printed, and the process returns to the step of sending a printer query request carrying the printer ID to the cloud printing server until no abnormal printer operation ID is received.

[0093] Specifically, after determining the printer identification corresponding to the order to be printed, the server will send a printer query request carrying the printer identification to the cloud printing server, and instruct the cloud printing server to detect the working status of the printer corresponding to the printer identification through the printer query request. After receiving the printer query request carrying the printer identification, the cloud printing server will determine the corresponding printer to be detected according to the printer identification therein, and detect the working status of the printer to be detected by calling the machine. When the online prompt fed back by the printer to be detected is received within the preset call waiting time, the cloud printing server can determine that the printer to be detected is working normally at this time, and will feed back the normal working identification of the printer to the server. After receiving the normal working identification of the printer, the server can send a print instruction carrying the data to be printed to the cloud printing server for order printing. When the online prompt fed back by the printer to be detected is not received within the preset call waiting time, the cloud printing server can determine that the printer to be detected is not working normally at this time, and will feed back the abnormal working identification of the printer to the server.

[0094] Specifically, when receiving the printer abnormal working status indicator fed back by the cloud printing server, it indicates that the currently confirmed printer corresponding to the order to be printed cannot work properly. The server will confirm the next-order printer indicator corresponding to the currently confirmed printer indicator corresponding to the order to be printed in the preset printer configuration information according to the printer indicator corresponding to the order to be printed, and use the next-order printer indicator as the target printer indicator corresponding to the order to be printed. After determining the target printer indicator, the server will use the target printer indicator as the new printer indicator corresponding to the order to be printed, and return to the step of sending a printer query request carrying the printer indicator to the cloud printing server until no more printer abnormal working status indicators are received, and continue to send print instructions carrying the data to be printed to the cloud printing server for the next printing operation.

[0095] In this embodiment, by sending a printer query request carrying the printer identification to the cloud printing server, when a printer abnormal operation identification is received as feedback from the cloud printing server, a new printer identification corresponding to the order to be printed is re-determined, and the step of sending a printer query request carrying the printer identification to the cloud printing server is returned until the printer abnormal operation identification is no longer received, thereby achieving effective detection of whether the printer is operating normally.

[0096] In one embodiment, the method further includes: obtaining the print serial number of the printed order, performing print task statistics according to the print serial number, and determining print exception information.

[0097] Specifically, after completing the printing task within the preset time period, the server will obtain the print serial number of the printed order, and perform print task statistics based on the print serial number to confirm whether there is any printing abnormality information. Among them, the preset time period can be set as needed, for example, the preset time period can be one day. Printing abnormality information refers to abnormal information such as printing missed orders and duplicate orders.

[0098] In this embodiment, the printing exception information can be obtained by obtaining the printing serial number of the printed order, performing printing task statistics according to the printing serial number, and determining the printing exception information.

[0099] This application also provides an application scenario, such as Figure 3 As shown, the application scenario applies the above-mentioned order printing method. Specifically, the application of the order printing method in this application scenario is as follows:

[0100] The server receives the order to be printed sent by the terminal, determines the target delivery warehouse corresponding to the order to be printed according to the order to be printed, queries the preset printer configuration information according to the target delivery warehouse, determines the printer identifier corresponding to the order to be printed, sends a link request to the main server in the preset cloud printing service cluster, and when receiving the link feedback corresponding to the link request, determines that the main server is the cloud printing server; when not receiving the link feedback corresponding to the link request, sends an alternative link request to the alternative server in the preset cloud printing service cluster; when receiving the link feedback corresponding to the alternative link request, determines that the alternative server is the cloud printing server; generates data to be printed according to the order to be printed, and sends a print instruction carrying the data to be printed to the cloud printing server, where the print instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0101] It should be understood that although Figure 2The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0102] In one embodiment, Figure 4 As shown, an order printing device is provided, including: an acquisition module 402, a query module 404 and a printing module 406, wherein:

[0103] The acquisition module 402 is used to receive the order to be printed, and determine the target delivery warehouse corresponding to the order to be printed according to the order to be printed;

[0104] A query module 404 is used to query preset printer configuration information according to a target delivery warehouse to determine a printer identifier corresponding to the order to be printed;

[0105] The printing module 406 is used to generate the data to be printed according to the order to be printed, and send a printing instruction carrying the data to be printed to the cloud printing server, where the printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0106] The above-mentioned order printing device, after receiving the order to be printed, first determines the target delivery warehouse corresponding to the order to be printed, and then queries the preset printer configuration information according to the target delivery warehouse, determines the printer identification corresponding to the order to be printed, generates the data to be printed according to the order to be printed, and sends the printing instruction carrying the data to be printed to the cloud printing server, so that the cloud printing server forwards the data to be printed to the printer corresponding to the printer identification, so that the printer completes printing according to the data to be printed. During the whole process, after determining the target delivery warehouse, the preset printer configuration information is used to realize cloud printing of the order to be printed, which reduces manual operation and can improve the efficiency of waybill printing.

[0107] In one embodiment, the acquisition module is also used to query the preset delivery warehouse configuration information according to the order attribute information in the order to be printed, and obtain the delivery warehouse set corresponding to the order attribute information; when there is a preset designated delivery warehouse in the delivery warehouse set, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed, and the preset designated delivery warehouse corresponds to the destination address or cargo information in the order attribute information; when there is no preset designated delivery warehouse in the delivery warehouse set, the target delivery warehouse corresponding to the order to be printed is filtered out from the delivery warehouse set.

[0108] In one embodiment, the acquisition module is also used to calculate the delivery cost of each alternative delivery warehouse in the delivery warehouse set according to the destination address in the order attribute information, sort the delivery cost of each alternative delivery warehouse, and determine the target delivery warehouse corresponding to the order to be printed.

[0109] In one embodiment, the query module is also used to query preset printer configuration information according to the target delivery warehouse, determine the printer identification set corresponding to the target delivery warehouse, query historical order printing records according to the printer identification set, determine the historical printer identification corresponding to the printer that has most recently completed the printing task, determine the next-order printer identification corresponding to the historical printer identification according to the printer identification set, and determine the printer identification corresponding to the order to be printed based on the next-order printer identification.

[0110] In one embodiment, the order printing device also includes a link module, which is used to send a link request to a main server in a preset cloud printing service cluster. When a link feedback corresponding to the link request is received, the main server is determined to be a cloud printing server. When a link feedback corresponding to the link request is not received, an alternative link request is sent to an alternative server in the preset cloud printing service cluster. When a link feedback corresponding to the alternative link request is received, the alternative server is determined to be a cloud printing server.

[0111] In one embodiment, the order printing device also includes a printer configuration module, which is used to send a printer query request carrying a printer identifier to a cloud printing server. The printer query request is used to instruct the cloud printing server to detect the working status of the printer corresponding to the printer identifier. When an abnormal printer operation identifier is fed back by the cloud printing server, the target printer identifier corresponding to the order to be printed is determined based on the printer identifier corresponding to the order to be printed and the preset printer configuration information. The target printer identifier is used as the new printer identifier corresponding to the order to be printed, and the step of sending a printer query request carrying the printer identifier to the cloud printing server is returned until the abnormal printer operation identifier is no longer received.

[0112] In one embodiment, the order printing device also includes a statistical module, which is used to obtain the print serial number of the printed order, perform print task statistics based on the print serial number, and determine print exception information.

[0113] The specific definition of the order printing device can be found in the definition of the order printing method above, which will not be repeated here. Each module in the above-mentioned order printing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0114] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store historical order printing record data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an order printing method is implemented.

[0115] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0116] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0117] Receive the order to be printed, and determine the target delivery warehouse corresponding to the order to be printed according to the order to be printed;

[0118] Query the preset printer configuration information according to the target delivery warehouse and determine the printer ID corresponding to the order to be printed;

[0119] The data to be printed is generated according to the order to be printed, and a printing instruction carrying the data to be printed is sent to the cloud printing server. The printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0120] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0121] According to the order attribute information in the order to be printed, query the preset delivery warehouse configuration information to obtain the delivery warehouse set corresponding to the order attribute information;

[0122] When there is a preset designated delivery warehouse in the delivery warehouse set, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed, and the preset designated delivery warehouse corresponds to the destination address or goods information in the order attribute information;

[0123] When there is no preset designated delivery warehouse in the delivery warehouse set, the target delivery warehouse corresponding to the order to be printed is filtered out from the delivery warehouse set.

[0124] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0125] Calculate the delivery cost of each candidate delivery warehouse in the delivery warehouse set according to the destination address in the order attribute information;

[0126] The delivery costs of the candidate delivery warehouses are ranked, and the target delivery warehouse corresponding to the order to be printed is determined.

[0127] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0128] Query preset printer configuration information according to the target delivery warehouse, and determine the printer identification set corresponding to the target delivery warehouse;

[0129] Query the historical order printing records according to the printer identification set, determine the historical printer identification corresponding to the printer that has completed the latest printing task, and determine the next order printer identification corresponding to the historical printer identification according to the printer identification set;

[0130] According to the next order printer ID, determine the printer ID corresponding to the order to be printed.

[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0132] Send a connection request to the main server in the preset cloud printing service cluster;

[0133] When receiving a link feedback corresponding to the link request, determining that the main server is a cloud printing server;

[0134] When link feedback corresponding to the link request is not received, an alternative link request is sent to an alternative server in a preset cloud printing service cluster, and when link feedback corresponding to the alternative link request is received, the alternative server is determined to be a cloud printing server.

[0135] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0136] Sending a printer query request carrying a printer identifier to a cloud printing server, where the printer query request is used to instruct the cloud printing server to detect the working status of the printer corresponding to the printer identifier;

[0137] When receiving the printer abnormal working identification fed back by the cloud printing server, determining the target printer identification corresponding to the order to be printed according to the printer identification corresponding to the order to be printed and the preset printer configuration information;

[0138] The target printer ID is used as the new printer ID corresponding to the order to be printed, and the process returns to the step of sending a printer query request carrying the printer ID to the cloud printing server until no abnormal printer operation ID is received.

[0139] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0140] Get the print serial number of the printed order, perform print task statistics based on the print serial number, and determine the printing exception information.

[0141] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0142] Receive the order to be printed, and determine the target delivery warehouse corresponding to the order to be printed according to the order to be printed;

[0143] Query the preset printer configuration information according to the target delivery warehouse and determine the printer ID corresponding to the order to be printed;

[0144] The data to be printed is generated according to the order to be printed, and a printing instruction carrying the data to be printed is sent to the cloud printing server. The printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier.

[0145] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0146] According to the order attribute information in the order to be printed, query the preset delivery warehouse configuration information to obtain the delivery warehouse set corresponding to the order attribute information;

[0147] When there is a preset designated delivery warehouse in the delivery warehouse set, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed, and the preset designated delivery warehouse corresponds to the destination address or goods information in the order attribute information;

[0148] When there is no preset designated delivery warehouse in the delivery warehouse set, the target delivery warehouse corresponding to the order to be printed is filtered out from the delivery warehouse set.

[0149] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0150] Calculate the delivery cost of each candidate delivery warehouse in the delivery warehouse set according to the destination address in the order attribute information;

[0151] The delivery costs of the candidate delivery warehouses are ranked, and the target delivery warehouse corresponding to the order to be printed is determined.

[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0153] Query preset printer configuration information according to the target delivery warehouse, and determine the printer identification set corresponding to the target delivery warehouse;

[0154] Query the historical order printing records according to the printer identification set, determine the historical printer identification corresponding to the printer that has completed the latest printing task, and determine the next order printer identification corresponding to the historical printer identification according to the printer identification set;

[0155] According to the next order printer ID, determine the printer ID corresponding to the order to be printed.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0157] Send a connection request to the main server in the preset cloud printing service cluster;

[0158] When receiving a link feedback corresponding to the link request, determining that the main server is a cloud printing server;

[0159] When link feedback corresponding to the link request is not received, an alternative link request is sent to an alternative server in a preset cloud printing service cluster, and when link feedback corresponding to the alternative link request is received, the alternative server is determined to be a cloud printing server.

[0160] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0161] Sending a printer query request carrying a printer identifier to a cloud printing server, where the printer query request is used to instruct the cloud printing server to detect the working status of the printer corresponding to the printer identifier;

[0162] When receiving the printer abnormal working identification fed back by the cloud printing server, determining the target printer identification corresponding to the order to be printed according to the printer identification corresponding to the order to be printed and the preset printer configuration information;

[0163] The target printer ID is used as the new printer ID corresponding to the order to be printed, and the process returns to the step of sending a printer query request carrying the printer ID to the cloud printing server until no abnormal printer operation ID is received.

[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0165] Get the print serial number of the printed order, perform print task statistics based on the print serial number, and determine the printing exception information.

[0166] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0167] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0168] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An order printing method, characterized in that: The method comprises: Receiving an order to be printed, and determining a target delivery warehouse corresponding to the order to be printed according to the order to be printed; Querying preset printer configuration information according to the target delivery warehouse to determine a set of printer identifiers corresponding to the target delivery warehouse; the preset printer configuration information includes a correspondence between the warehouse and the printer identifier; Query the historical order printing records according to the printer identification set to determine the historical printer identification corresponding to the printer that has completed the latest printing task; Determining a next-order printer identification corresponding to the historical printer identification according to the order of the printer identifications in the printer identification set; Using the next order printer identification as the printer identification corresponding to the order to be printed; Send a connection request to the main server in the preset cloud printing service cluster; When no link feedback corresponding to the link request is received, sending the alternative link request to the alternative servers in the preset cloud printing service cluster in sequence according to the priority of the alternative servers, and when the link feedback corresponding to the alternative link request is received, stopping sending, and determining that the alternative server sending the link feedback is the cloud printing server; Generate data to be printed according to the order to be printed, and send a printing instruction carrying the data to be printed to the cloud printing server, wherein the printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier corresponding to the order to be printed.

2. The method according to claim 1, characterized in that The step of determining, according to the order to be printed, a target delivery warehouse corresponding to the order to be printed comprises: According to the order attribute information in the order to be printed, query the preset delivery warehouse configuration information to obtain the delivery warehouse set corresponding to the order attribute information; When there is a preset designated delivery warehouse in the delivery warehouse set, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed, and the preset designated delivery warehouse corresponds to the destination address or the goods information in the order attribute information; When there is no preset designated delivery warehouse in the delivery warehouse set, a target delivery warehouse corresponding to the order to be printed is screened out from the delivery warehouse set.

3. The method according to claim 2, characterized in that The step of selecting a target delivery warehouse corresponding to the order to be printed from the delivery warehouse set includes: Calculating the delivery cost of each candidate delivery warehouse in the delivery warehouse set according to the destination address in the order attribute information; The delivery costs of the candidate delivery warehouses are sorted to determine the target delivery warehouse corresponding to the order to be printed.

4. The method according to claim 1, characterized in that: The method further comprises: When a link feedback corresponding to the link request is received, it is determined that the main server is a cloud printing server.

5. The method according to claim 1, characterized in that Before generating the data to be printed according to the order to be printed and sending a print instruction carrying the data to be printed to the cloud printing server, the method further includes: Sending a printer query request carrying the printer identifier to a cloud printing server, wherein the printer query request is used to instruct the cloud printing server to detect a working status of a printer corresponding to the printer identifier; When receiving the printer abnormal working identification fed back by the cloud printing server, determining the target printer identification corresponding to the order to be printed according to the printer identification corresponding to the order to be printed and the preset printer configuration information; The target printer identifier is used as a new printer identifier corresponding to the order to be printed, and the process returns to the step of sending a printer query request carrying the printer identifier to the cloud printing server until no abnormal printer operation identifier is received.

6. The method according to claim 1, characterized in that Also includes: Obtain the print serial number of the printed order, perform print task statistics based on the print serial number, and determine print exception information.

7. An order printing device, characterized in that: The device comprises: An acquisition module, used for receiving an order to be printed, and determining a target delivery warehouse corresponding to the order to be printed according to the order to be printed; A query module is used to query preset printer configuration information according to the target delivery warehouse to determine a printer identification set corresponding to the target delivery warehouse; the preset printer configuration information includes a correspondence between a warehouse and a printer identification; query historical order printing records according to the printer identification set to determine a historical printer identification corresponding to the printer that has recently completed the printing task; determine a next-order printer identification corresponding to the historical printer identification according to the order of the printer identifications in the printer identification set; and use the next-order printer identification as the printer identification corresponding to the order to be printed; A link module, used for sending a link request to a main server in a preset cloud printing service cluster; when no link feedback corresponding to the link request is received, sending alternative link requests to the alternative servers in the preset cloud printing service cluster in sequence according to the priority of the alternative servers, and when link feedback corresponding to the alternative link request is received, stopping sending, and determining that the alternative server that sends the link feedback is a cloud printing server; A printing module is used to generate data to be printed according to the order to be printed, and send a printing instruction carrying the data to be printed to the cloud printing server, wherein the printing instruction is used to instruct the cloud printing server to forward the data to be printed to the printer corresponding to the printer identifier corresponding to the order to be printed.

8. The device according to claim 7, characterized in that The acquisition module is further used to: query preset delivery warehouse configuration information according to the order attribute information in the order to be printed, and acquire a delivery warehouse set corresponding to the order attribute information; When there is a preset designated delivery warehouse in the delivery warehouse set, the preset designated delivery warehouse is used as the target delivery warehouse corresponding to the order to be printed, and the preset designated delivery warehouse corresponds to the destination address or cargo information in the order attribute information; when there is no preset designated delivery warehouse in the delivery warehouse set, the target delivery warehouse corresponding to the order to be printed is filtered out from the delivery warehouse set.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.