Order printing method and device

By depositing the order set to be printed in the task queue in the cloud warehouse management system and obtaining the printing plug-in in an orderly manner for printing, the problem of inconsistent order printing on different trading platforms is solved, orderly printing is achieved, and the reliability and management efficiency of fast delivery are improved.

CN120371229APending Publication Date: 2025-07-25BEIJING JINGDONG YUANSHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410108040.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the cloud warehouse management system, when the same wave of orders comes from different trading platforms, parallel printing of each printing plug-in cannot ensure that the printing order and the submitted wave order are consistent, resulting in problems such as wrong delivery and multiple shipments, increasing the verification and review cost, and reducing the merchant's experience.

Method used

By depositing the set of orders to be printed into the task queue corresponding to the wave times, using the queue's first-in-first-out feature, the orders to be printed are obtained from the task queue in an orderly manner, and the corresponding printing plug-in is determined for order printing, so as to achieve ordering of order printing.

Benefits of technology

It ensures the consistency of printing order and wave order, improves the reliability of fast delivery business and the management efficiency of printing orders, reduces the risks of wrong delivery and multiple delivery, and improves the user experience of merchants.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371229A_ABST
    Figure CN120371229A_ABST
Patent Text Reader

Abstract

The invention discloses an order printing method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: in response to a received order printing request, obtaining a to-be-printed order set and a wave order of the to-be-printed order set; storing the to-be-printed order set into a task queue corresponding to the wave number; the to-be-printed orders in the to-be-printed order set are sequentially obtained from the task queue, printing plug-ins corresponding to the to-be-printed orders are determined, the to-be-printed orders are delivered to the printing plug-ins for order printing, and the to-be-printed orders in the to-be-printed order set correspond to different printing plug-ins. According to the embodiment, ordering of order printing is achieved, the consistency of the printing sequence and the wave sequence is guaranteed, reliable guarantee is provided for rapid delivery business, and management of the printing order is also facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a method and apparatus for order printing. Background Art

[0002] The cloud warehouse management system is based on an integrated and shared cloud logistics infrastructure platform, undertakes orders from different trading platforms, provides warehousing management services for external merchants, and also provides printing services for orders from different trading platforms. The current printing service sorts each order in the same wave, submits the orders to be printed to the printing plug-in in sequence, and realizes the sequential printing of orders by sorting the orders before printing.

[0003] In the process of implementing the present invention, the inventors found the following problems in the prior art:

[0004] Since the cloud warehouse management system undertakes orders from different trading platforms, and orders from different trading platforms correspond to different printing plug-ins. For example, orders from trading platform A use printing plug-in A. Then, when orders in the same wave come from different trading platforms, for the orders submitted for printing in sequence, due to the parallel printing of each printing plug-in, it is impossible to ensure that the printing order is consistent with the wave order submitted, which may lead to problems such as wrong delivery and over-delivery when using pre-printing for fast delivery, increasing the cost of verification and review, and reducing the user experience of merchants. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a method and apparatus for order printing, which realizes the ordering of order printing, ensures the consistency between the printing order and the wave order, not only provides a reliable guarantee for the fast delivery service, but also facilitates the management of printed orders.

[0006] To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for order printing, including:

[0007] In response to receiving an order printing request, obtaining a set of orders to be printed and the wave of the set of orders to be printed;

[0008] Storing the set of orders to be printed into the task queue corresponding to the wave;

[0009] Sequentially obtaining the orders to be printed in the set of orders to be printed from the task queue, determining the printing plug-in corresponding to the order to be printed, and handing the order to be printed to the printing plug-in for order printing, where each order to be printed in the set of orders to be printed corresponds to a different printing plug-in.

[0010] Optionally, before storing the to-be-printed order set into the task queue corresponding to the wave, the method further includes: obtaining a set of printing plugins corresponding to the to-be-printed order set; checking and determining that the status of each printing plugin in the set of printing plugins is normal.

[0011] Optionally, the to-be-printed orders in the to-be-printed order set in the task queue exist in the form of printing tasks; determining the printing plugin corresponding to the to-be-printed order includes: determining the plugin name and connection status of the printing plugin corresponding to the printing task of the to-be-printed order; in the case of an abnormal connection status, re-establishing the connection between the printing plugin with abnormal status and the corresponding printing task.

[0012] Optionally, handing the to-be-printed order to the printing plugin for order printing includes: using a thread pool to send the data of the to-be-printed order to the corresponding printing plugin for order printing.

[0013] Optionally, after handing the to-be-printed order to the printing plugin for order printing, the method further includes: listening to the execution result of the printing plugin, obtaining the printing result of the to-be-printed order, and feeding back the printing result to the requester of the order printing request.

[0014] Optionally, in the case where the execution result of the printing plugin is printing failure, the method further includes: according to the preset number of retries, in combination with the preset printing timeout, using a retry mechanism to perform fault tolerance processing on the to-be-printed order with printing failure.

[0015] Optionally, the printing of the to-be-printed order set is implemented in the form of a component; the method further includes: collecting the printing status of each to-be-printed order in the to-be-printed order set through a thread pool, and obtaining the order printing progress of the wave according to the printing status of each to-be-printed order and the total number of to-be-printed orders in the to-be-printed order set, and displaying it in a visual client interface.

[0016] According to a second aspect of the embodiments of the present invention, there is provided an order printing device, including:

[0017] A printing information acquisition module, configured to obtain a to-be-printed order set and the wave of the to-be-printed order set in response to receiving an order printing request;

[0018] A task queue formation module, configured to store the to-be-printed order set into the task queue corresponding to the wave;

[0019] An order printing module, which is used to sequentially obtain the orders to be printed in the set of orders to be printed from the task queue, determine the printing plug-in corresponding to the order to be printed, and hand over the order to be printed to the printing plug-in for order printing. Each order to be printed in the set of orders to be printed corresponds to a different printing plug-in.

[0020] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for order printing, including:

[0021] One or more processors;

[0022] A storage device for storing one or more programs,

[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.

[0024] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, the method provided in the first aspect of the embodiment of the present invention is implemented.

[0025] One embodiment of the invention has the following advantages or beneficial effects: By responding to receiving an order printing request, obtaining a set of orders to be printed and the wave number of the set of orders to be printed; storing the set of orders to be printed into the task queue corresponding to the wave number; sequentially obtaining the orders to be printed in the set of orders to be printed from the task queue, determining the printing plug-in corresponding to the order to be printed, and handing over the order to be printed to the printing plug-in for order printing. Each order to be printed in the set of orders to be printed corresponds to a different printing plug-in. The technical solution realizes the orderliness of order printing, ensures the consistency between the printing order and the wave number order, not only provides a reliable guarantee for the fast delivery business, but also facilitates the management of printed orders. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. Among them:

[0027] Figure 1 is a schematic diagram of the main process of the method for order printing according to an embodiment of the present invention;

[0028] Figure 2 is a schematic diagram of the systematic functional principle of order printing according to an embodiment of the present invention;

[0029] Figure 3 is a schematic diagram of the main modules of the device for order printing according to an embodiment of the present invention;

[0030] Figure 4 is an exemplary system architecture diagram to which an embodiment of the present invention can be applied;

[0031] Figure 5 It is a schematic structural diagram of a computer system of a terminal device or a server suitable for implementing the embodiments of the present invention. Detailed implementation manners

[0032] It should be noted that in the technical solution of the present invention, in terms of the collection / collection, update, analysis, use, transmission, storage, etc. of user personal information, it complies with the provisions of relevant laws and regulations, is used for legal and reasonable purposes, and is not shared, leaked or sold outside these legal uses, and is subject to the supervision and management of national regulatory authorities. Necessary measures should be taken for user personal information to selectively prevent the use or access of personal information data to prevent illegal access to such personal information data, ensure that personnel with the right to access personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. In addition, once these user personal information data are no longer needed, the risk should be minimized by restricting or even prohibiting data collection and / or deleting data.

[0033] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings. Various details of the embodiments of the present invention are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted below.

[0034] Considering that the cloud warehouse management system undertakes orders from different trading platforms, and the orders of different trading platforms correspond to different printing components. For example, the orders of trading platform A use printing component A. Then, when the orders in the same wave come from different trading platforms, for the orders submitted for printing in sequence, since each printing plugin prints in parallel, it is impossible to ensure that the printing order is consistent with the submission order, which may lead to problems such as shipping the wrong goods or overshipping when using pre-printing for fast shipping, increasing the cost of verification and review, reducing the user experience of merchants, and not being able to well meet the actual needs.

[0035] To solve the above problems existing in the prior art, the present invention proposes a method for printing orders. For the set of orders to be printed in the same wave, using the first-in-first-out feature of the queue and using the queue as the underlying data structure, the set of orders to be printed is stored in the task queue corresponding to the wave, and the orders to be printed in it are orderly retrieved from the task queue and sent to the corresponding printing plugin for printing, realizing the orderliness of order printing, ensuring the consistency between the printing order and the wave order, not only providing a reliable guarantee for the fast shipping business, but also facilitating the management of printed orders.

[0036] Figure 1 It is a schematic diagram of the main process of the order printing method according to an embodiment of the present invention. As Figure 1 shown, the order printing method according to the embodiment of the present invention includes the following steps S101 to S103.

[0037] Step S101, in response to receiving an order printing request, obtain a set of orders to be printed and the wave number of the set of orders to be printed.

[0038] Specifically, wave management of orders is a method to improve the efficiency of warehouse picking operations. It combines different orders into an order set according to a certain standard. When the cloud warehouse management system receives an order printing request, it parses the order printing request to obtain a set of orders to be printed composed of multiple orders to be printed within a period of time and the wave number of the set of orders to be printed. The specific method for obtaining the set of orders to be printed is determined according to a pre-agreed manner. The order numbers of each order to be printed can be packed into the order printing request, so that parsing the order printing request can directly obtain the order numbers of all orders to be printed, and then obtain the set of orders to be printed composed of all orders to be printed according to the order numbers. It is also possible to store all the order data to be printed in a specified storage unit, add the address of the storage unit to the order printing request, parse the order printing request to obtain the address, and access the address to obtain the set of orders to be printed.

[0039] Step S102, deposit the set of orders to be printed into the task queue corresponding to the wave number.

[0040] Specifically, considering that the warehouse picking operation is executed batch by batch according to the wave number, a task queue group is established, and each wave number corresponds to a task queue. During peak sales periods or when the transaction volume is large, in order to improve the shipping efficiency, orders are usually printed before picking. When shipping, the operators ship the orders in the order of the orders in the wave number and stick the order labels in order. Therefore, the orders to be printed need to be sorted according to a specified sorting rule to obtain the wave number order. The sorting rule herein is usually sorted according to the order of the order placement time. Of course, it is also possible to sort according to the area where the goods are stored, as long as the order sorting rule is consistent with the shipping order. Based on the sorted set of orders to be printed, they are deposited into the task queue corresponding to the wave number in sequence.

[0041] According to an embodiment of the present invention, before depositing the set of orders to be printed into the task queue corresponding to the wave number, the method further includes: obtaining a set of printing plugins corresponding to the set of orders to be printed; checking and determining that the status of each printing plugin in the set of printing plugins is normal.

[0042] Specifically, before storing the order set to be printed into the task queue corresponding to the wave, it is also necessary to verify the printing plugins required for printing the order set to be printed in this wave. Since the order set to be printed is a set of orders in a wave, and the orders to be printed in the set may come from different trading platforms, the order set to be printed corresponds to a set of printing plugins composed of multiple printing plugins. Determine the corresponding set of printing plugins according to the trading platform information of each order to be printed in the order set to be printed obtained; check and determine that the connection status of each printing plugin is normal. If there is an abnormality, send an exception prompt message to restore the normal connection status as soon as possible.

[0043] Step S103: Sequentially obtain the orders to be printed in the order set to be printed from the task queue, determine the printing plugin corresponding to the order to be printed, and hand over the order to be printed to the printing plugin for order printing. Each order to be printed in the order set to be printed corresponds to a different printing plugin.

[0044] Specifically, the order set to be printed in the embodiment of the present invention is a set composed of multiple orders to be printed. Utilize the first-in, first-out characteristic of the queue to sequentially obtain the orders to be printed in the order set to be printed from the task queue. Determine the corresponding printing plugin according to the trading platform information in the order to be printed, and then submit the order to be printed to the corresponding printing plugin for printing. Obtain the orders to be printed in the same order as the wave through the task queue, and orderly schedule the corresponding printing plugins to ensure the consistency of the order.

[0045] According to an embodiment of the present invention, the orders to be printed in the order set to be printed in the task queue exist in the form of printing tasks; determining the printing plugin corresponding to the order to be printed includes: determining the plugin name and connection status of the printing plugin corresponding to the printing task of the order to be printed; in the case of an abnormal connection status, re - establish the connection between the printing plugin with abnormal status and the corresponding printing task.

[0046] Specifically, after storing the order set to be printed into the task queue, generate printing tasks for each order to be printed with the order to be printed in the order set to be printed as the dimension, and determine the plugin name of the printing plugin through the trading platform information in the order to be printed, that is, clarify a certain printing plugin corresponding to the trading platform information, and the connection status of this plugin, such as whether the connection is normal and whether it is in an idle state. If the connection status is abnormal, it is necessary to re - establish the connection between the printing plugin and this printing task to ensure subsequent normal printing.

[0047] According to another embodiment of the present invention, handing over the order to be printed to the printing plugin for order printing includes: using a thread pool to send the data of the order to be printed to the corresponding printing plugin for order printing.

[0048] Specifically, considering that each to-be-printed order in the to-be-printed order set of the embodiments of the present invention corresponds to a different printing plugin, in order to ensure the reliability of the scheduling of the printing plugin and the printing efficiency, the number of threads in the thread pool is defined according to the system resources and the types of printing plugins. The data of the to-be-printed order is sent to the corresponding printing plugin using the corresponding thread in the thread pool.

[0049] According to still another embodiment of the present invention, after handing over the to-be-printed order to the printing plugin for order printing, the method further includes: listening to the execution result of the printing plugin to obtain the printing result of the to-be-printed order, and feeding back the printing result to the requester of the order printing request.

[0050] Specifically, considering that the order printing in the existing cloud warehouse management system lacks the management of the printing process and results, in addition to ensuring the orderliness of order printing, the embodiments of the present invention also support the feedback of the printing results of each to-be-printed order in the to-be-printed order set. After handing over the to-be-printed order to the printing plugin for order printing, listen to the execution result of the printing plugin and feed back the printing result to the requester of the order printing request. Specifically, various ways can be used to listen to the execution result of the printing, such as waiting to obtain the status return value of the printing, or implementing it by listening to the printing driver.

[0051] According to yet another embodiment of the present invention, in the case where the execution result of the printing plugin is a printing failure, the method further includes: performing fault tolerance processing on the to-be-printed order with a printing failure using a retry mechanism in combination with a preset retry count and a preset printing timeout.

[0052] Specifically, in view that the working state of the printing plugin is easily affected by the external connection line, in order to ensure the printing success rate of the to-be-printed order as much as possible, the embodiments of the present invention use a retry mechanism. The data structure of each printing task in the task queue includes to-be-printed data, retry count, printing timeout, and printing result. In the case where the execution result of the printing plugin is a printing failure, according to the preset retry count and the printing timeout, retry printing the to-be-printed order with a printing failure. As long as it is within the printing timeout and does not exceed the retry count, the result of the printing task of the to-be-printed order is considered successful if the printing is successful.

[0053] According to another embodiment of the present invention, the printing of the to-be-printed order set is implemented in the form of a component; the method further includes: collecting the printing status of each to-be-printed order in the to-be-printed order set through a thread pool, obtaining the order printing progress of the wave according to the printing status of each to-be-printed order and the total number of to-be-printed orders in the to-be-printed order set, and displaying it in a visual client interface.

[0054] Specifically, for the convenience of popularization and application, the embodiment of the present invention constructs the order printing method into a printing management component, which is more convenient to use and maintain. In addition, to further improve the user experience, the embodiment of the present invention uses a thread pool to collect and statistically analyze the printing status of each pending print order in the pending print order set in real time. According to the printing status of each pending print order and the total number of pending print orders in the pending print order set, the order printing progress of this wave is calculated in real time and dynamically displayed in the front-end visual client interface, so that users can intuitively see the printing progress and improve user satisfaction.

[0055] Figure 2 It is a schematic diagram of the systematic functional principle of order printing in the embodiment of the present invention. It mainly includes a warehousing management platform with interactive capabilities; a printing plugin management module responsible for functions such as connecting each printing plugin, callback of printing results, and exception retry; a printing management component which is the core function of the embodiment of the present invention; and a printing driver responsible for listening to printing driver tasks and collecting printing results. When receiving an order printing request, the warehousing management platform obtains the pending print order and wave information, assembles the printing data according to a predetermined printing data format, sorts each pending print order in the pending print order set, and hands it over to the printing management component. The task transferrer in the printing management component is responsible for communicating with the warehousing management platform, receiving printing data, obtaining printing progress, printing results, and printing connection information, integrating and pushing them to the warehousing management platform for user display and relevant decision-making. The printing management component obtains the pending print order set and wave forwarded by the task transferrer, checks and determines that the status of each printing plugin in the printing plugin set corresponding to the pending print order set is a normal connection status. If there is an exception, an exception feedback is sent. Subsequently, the pending print orders are stored in the corresponding task queue according to the wave, printing tasks (task1, task2,...) of the pending print orders are generated, the printing tasks are sequentially obtained from the task queue, and according to the printing timeout time in the printing task, a timer Timer is assigned to each printing task. Before submitting the print, it is necessary to confirm and verify the connection status of the printing plugin corresponding to this printing task again. After the verification passes, the data of the pending print order is sent to the corresponding printing plugin for order printing using the threads in the thread pool. Listen to the execution result of the printing plugin to obtain the printing result of the pending print order. If the printing result fails, a retry mechanism is used to perform fault tolerance processing on this printing task, and the information that the printing is completed is sent to the timer to shut down this timing. At the same time, the printing result and the printing progress of this wave are fed back to the front-end warehousing management platform for display and recording of the printing result and printing progress.

[0056] As can be seen from the above, the order printing method provided by the embodiments of the present invention realizes accurate recording of printing results by orderly managing and printing orders across printing platforms in the same wave, solves the problems of disordered order printing and inaccurate printing results in existing cross-printing platforms, improves the operation efficiency of rapid delivery, solves pain points such as the mismatch between the delivery order and the order printing order, and moreover, increases the processing of abnormal printing results through fault tolerance processing, maximally improving the printing success rate. Additionally, by attaching the ability to provide real-time feedback on the printing progress and printing results of wave orders, it maximally meets the usage requirements.

[0057] Figure 3 It is a schematic diagram of the main modules of the order printing device according to an embodiment of the present invention. As Figure 3 shown, the order printing device 300 mainly includes a printing information acquisition module 301, a task queue formation module 302, and an order printing module 303.

[0058] The printing information acquisition module 301 is configured to, in response to receiving an order printing request, acquire a set of orders to be printed and the wave of the set of orders to be printed;

[0059] The task queue formation module 302 is configured to store the set of orders to be printed into the task queue corresponding to the wave;

[0060] The order printing module 303 is configured to sequentially acquire the orders to be printed in the set of orders to be printed from the task queue, determine the printing plugin corresponding to the order to be printed, and hand over the order to be printed to the printing plugin for order printing, where each order to be printed in the set of orders to be printed corresponds to a different printing plugin.

[0061] According to an embodiment of the present invention, the order printing device 300 further includes a status determination module (not shown in the figure), which is configured to: before storing the set of orders to be printed into the task queue corresponding to the wave, acquire the set of printing plugins corresponding to the set of orders to be printed; check and determine that the status of each printing plugin in the set of printing plugins is normal.

[0062] According to another embodiment of the present invention, the orders to be printed in the set of orders to be printed in the task queue exist in the form of printing tasks; the order printing module 303 is further configured to: determine the plugin name and connection status of the printing plugin corresponding to the printing task of the order to be printed; in the case of an abnormal connection status, re-establish the connection between the printing plugin with abnormal status and the corresponding printing task.

[0063] According to still another embodiment of the present invention, the order printing module 303 is further configured to: use a thread pool to send the data of the order to be printed to the corresponding printing plugin for order printing.

[0064] According to another embodiment of the present invention, the order printing device 300 further includes a result feedback module (not shown in the figure), which is configured to: after handing the order to be printed to the printing plugin for order printing, monitor the execution result of the printing plugin, obtain the printing result of the order to be printed, and feedback the printing result to the requester of the order printing request.

[0065] According to another embodiment of the present invention, in the case where the execution result of the printing plugin is a printing failure, the order printing device 300 further includes a fault tolerance processing module (not shown in the figure), which is configured to: according to the preset number of retries and in combination with the preset printing timeout time, use a retry mechanism to perform fault tolerance processing on the order to be printed with a printing failure.

[0066] According to still another embodiment of the present invention, the printing of the order set to be printed is implemented in the form of a component; the order printing device 300 further includes a progress feedback module (not shown in the figure), which is configured to: collect the printing status of each order to be printed in the order set to be printed through a thread pool, obtain the order printing progress of the wave according to the printing status of each order to be printed and the total number of orders to be printed in the order set to be printed, and display it in a visual client interface.

[0067] Figure 4 It is an exemplary system architecture diagram to which the embodiments of the present invention can be applied.

[0068] As Figure 4 shown, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 is used to provide a medium for a communication link between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0069] Users can use the terminal devices 401, 402, 403 to interact with the server 405 through the network 404 to receive or send messages, etc. Various communication client applications, such as an order printing application (only for example), may be installed on the terminal devices 401, 402, 403.

[0070] The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0071] The server 405 may be a server that provides various services, such as a background management server (only for example) that supports order printing performed by the user using the terminal devices 401, 402, and 403. The background management server may, in response to receiving an order printing request, obtain the set of orders to be printed and the wave number of the set of orders to be printed; store the set of orders to be printed into the task queue corresponding to the wave number; sequentially obtain the orders to be printed in the set of orders to be printed from the task queue, determine the printing plug-in corresponding to the order to be printed, hand over the order to be printed to the printing plug-in for order printing, and perform processing such as each order to be printed in the set of orders to be printed corresponding to a different printing plug-in, and feedback the processing result (such as printing data, etc.--only for example) to the terminal device.

[0072] It should be noted that the method for order printing provided in the embodiments of the present invention is generally executed by the server 405. Correspondingly, the device for order printing is generally disposed in the server 405.

[0073] It should be understood that Figure 4 the numbers of the terminal devices, the network, and the server in

[0074] are merely illustrative. According to the implementation requirements, there may be any number of terminal devices, networks, and servers. Figure 5 is a schematic structural diagram of a computer system suitable for use in implementing the terminal device or the server of the embodiments of the present invention. Figure 5 The terminal device or the server shown is merely an example and should not impose any limitation on the functions and the scope of use of the embodiments of the present invention.

[0075] As Figure 5 shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage section 508 into the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0076] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. as well as a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as required. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is installed on the drive 510 as required so that a computer program read therefrom is installed into the storage section 508 as required.

[0077] Specifically, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product that includes a computer program carried on a computer-readable medium, and the computer program includes program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from the removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, the above-described functions defined in the system of the present invention are executed.

[0078] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0079] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0080] The units involved in the embodiments of the present invention can be implemented in software or in hardware. The described units can also be provided in a processor. For example, it can be described as: A processor includes: a print information acquisition module, a task queue formation module, and an order printing module.

[0081] Among them, the names of these modules do not constitute a limitation to the modules themselves in some cases. For example, the task queue formation module can also be described as "a module for storing the set of orders to be printed into the task queue corresponding to the wave."

[0082] On the other hand, the present invention also provides a computer-readable medium. The computer-readable medium can be included in the device described in the embodiments; or it can exist alone without being assembled into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device includes: in response to receiving an order printing request, acquiring a set of orders to be printed and the wave of the set of orders to be printed; storing the set of orders to be printed into the task queue corresponding to the wave; sequentially acquiring the orders to be printed in the set of orders to be printed from the task queue, determining the print plugin corresponding to the order to be printed, and handing the order to be printed to the print plugin for order printing, and each order to be printed in the set of orders to be printed corresponds to a different print plugin.

[0083] According to the technical solution of the embodiments of the present invention, the following advantages or beneficial effects are achieved: By in response to receiving an order printing request, acquiring a set of orders to be printed and the wave of the set of orders to be printed; storing the set of orders to be printed into the task queue corresponding to the wave; sequentially acquiring the orders to be printed in the set of orders to be printed from the task queue, determining the print plugin corresponding to the order to be printed, and handing the order to be printed to the print plugin for order printing, and each order to be printed in the set of orders to be printed corresponds to a different print plugin, the order printing is made orderly, ensuring the consistency between the printing order and the wave order, which not only provides a reliable guarantee for the fast delivery service, but also facilitates the management of printed orders.

[0084] The specific implementation manners do not constitute a limitation to the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for order printing, characterized in that, including: Upon receiving an order printing request, obtain the set of orders to be printed and the wave number of the set of orders to be printed; Deposit the set of orders to be printed into the task queue corresponding to the wave number; Sequentially obtain the orders to be printed in the set of orders to be printed from the task queue, determine the printing plugin corresponding to the order to be printed, and hand over the order to be printed to the printing plugin for order printing. Each order to be printed in the set of orders to be printed corresponds to a different printing plugin.

2. The method according to claim 1, wherein Before depositing the set of orders to be printed into the task queue corresponding to the wave number, the method further includes: Obtain the set of printing plugins corresponding to the set of orders to be printed; Check and determine that the status of each printing plugin in the set of printing plugins is normal.

3. The method according to claim 1, characterized in that, The orders to be printed in the set of orders to be printed in the task queue exist in the form of printing tasks; Determining the printing plugin corresponding to the order to be printed includes: Determine the plugin name and connection status of the printing plugin corresponding to the printing task of the order to be printed; In the case of an abnormal connection status, re - establish the connection between the printing plugin with abnormal status and the corresponding printing task.

4. The method according to claim 1, characterized in that Handing over the order to be printed to the printing plugin for order printing includes: Use a thread pool to send the data of the order to be printed to the corresponding printing plugin for order printing.

5. The method according to claim 1, wherein After handing over the order to be printed to the printing plugin for order printing, the method further includes: Monitor the execution result of the printing plugin, obtain the printing result of the order to be printed, and feedback the printing result to the requester of the order printing request.

6. The method according to claim 1, wherein In the case where the execution result of the printing plugin is printing failure, the method further includes: According to the preset number of retries and in combination with the preset printing timeout, use a retry mechanism to perform fault tolerance processing on the order to be printed with printing failure.

7. The method according to claim 1, wherein The printing of the set of orders to be printed is implemented in the form of components; The method further includes: Collect the printing status of each order to be printed in the set of orders to be printed through a thread pool. According to the printing status of each order to be printed and the total number of orders to be printed in the set of orders to be printed, obtain the order printing progress of the wave number and display it in a visual client interface.

8. An order printing device, characterized in that, including: A printing information acquisition module, configured to obtain the set of orders to be printed and the wave number of the set of orders to be printed upon receiving an order printing request; A task queue construction module, configured to deposit the set of orders to be printed into the task queue corresponding to the wave number; An order printing module, configured to sequentially obtain the orders to be printed in the set of orders to be printed from the task queue, determine the printing plugin corresponding to the order to be printed, and hand over the order to be printed to the printing plugin for order printing. Each order to be printed in the set of orders to be printed corresponds to a different printing plugin.

9. A mobile electronic device terminal, characterized in that, including: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 - 7.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the method according to any one of claims 1-7.