WO2019157778A1 - Postage slip printing method, electronic device, and computer readable storage medium - Google Patents

Postage slip printing method, electronic device, and computer readable storage medium Download PDF

Info

Publication number
WO2019157778A1
WO2019157778A1 PCT/CN2018/083065 CN2018083065W WO2019157778A1 WO 2019157778 A1 WO2019157778 A1 WO 2019157778A1 CN 2018083065 W CN2018083065 W CN 2018083065W WO 2019157778 A1 WO2019157778 A1 WO 2019157778A1
Authority
WO
WIPO (PCT)
Prior art keywords
postal
printing
group
printed
print
Prior art date
Application number
PCT/CN2018/083065
Other languages
French (fr)
Chinese (zh)
Inventor
李永平
高凌云
牛华
李长缤
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019157778A1 publication Critical patent/WO2019157778A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/126Job scheduling, e.g. queuing, determine appropriate device
    • G06F3/1262Job scheduling, e.g. queuing, determine appropriate device by grouping or ganging jobs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1278Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
    • G06F3/1285Remote printer device, e.g. being remote from client or server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1242Image or content composition onto a page
    • G06F3/1243Variable data printing, e.g. document forms, templates, labels, coupons, advertisements, logos, watermarks, transactional printing, fixed content versioning

Definitions

  • the present application relates to the field of printing, and in particular to a postal printing method, an electronic device, and a computer readable storage medium.
  • the express delivery APP on the market only has the express number inquiry function. Directly by looking for the surrounding courier, call the courier to pick up the courier.
  • the courier company there are fewer ways to use the online filling form to push the courier information.
  • the information is first transmitted to the courier company, and then the company dispatches the courier.
  • the member is responsible for a certain area, unable to complete the one-to-one information push and fully realize the electronic face-to-face mailing.
  • the purpose of the present application is to provide a method for printing a postal order, an electronic device, and a computer readable storage medium, thereby overcoming the problems existing in the prior art to some extent.
  • the present application discloses a postal order printing method, which includes the following steps:
  • Step 01 Obtain a number P of postal orders to be printed
  • Step 02 Determine whether the number P of the postal order exceeds N, and the N is an upper limit value of a single printing. If yes, the process proceeds to step 03, and if not, directly prints;
  • Step 03 grouping the postal sheets to be printed according to a preset grouping rule
  • Step 04 Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
  • the present application also discloses an electronic device including a memory and a processor for storing a postal printing system executed by a processor, the postal printing system comprising:
  • a data collection module for collecting the number of postal orders to be printed
  • a judging module configured to determine whether the number of postal orders to be printed exceeds N, and the N is an upper limit value of a single printing;
  • a grouping module configured to group the postal order to be printed, and send the grouped postal order to the printing module
  • a printing module for printing the postal order to be printed.
  • the present application also discloses a computer readable storage medium having a postal printing system stored therein, the postal printing system being executable by at least one processor to implement the following steps:
  • Step 01 Obtain a number P of postal orders to be printed
  • Step 02 Determine whether the number P of the postal order exceeds N, and the N is an upper limit value of a single printing. If yes, the process proceeds to step 03, and if not, directly prints;
  • Step 03 grouping the postal sheets to be printed according to a preset grouping rule
  • Step 04 Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
  • the present application uses the group printing mode to group the postal order exceeding the preset number of prints, thereby avoiding the problem of repeatedly inputting the postal number operation caused by the limitation of the print interface, and improving the postal order. Printing efficiency.
  • 1 is a flow chart showing an embodiment of a method for printing a postal order of the present application.
  • FIG. 2 is a flow chart showing still another embodiment of the postal printing method of the present application.
  • 3 is a flow chart showing still another embodiment of the postal printing method of the present application.
  • FIG. 4 is a schematic diagram showing the program modules of an embodiment of the postal printing system of the present application.
  • FIG. 5 is a block diagram showing a program module of still another embodiment of the postal printing system of the present application.
  • FIG. 6 is a schematic diagram showing the hardware architecture of an embodiment of an electronic device of the present application.
  • a postal printing method comprising the following steps:
  • Step 01 Obtain a number P of postal orders to be printed.
  • the number of postal orders to be printed is obtained by the data collection module, and the obtained number of postal orders is used to determine whether the upper limit value of the number of prints per print device interface is exceeded.
  • Step 02 Determine whether the number P of the postal order exceeds N, and the N is an upper limit of a single printing. If yes, the process proceeds to step 03, and if not, directly prints.
  • the N is the upper limit of the postal order that can be printed by the printing device interface. If the number of the postal order to be printed P does not exceed the upper limit, the print request can be directly sent to the printing device. In the printing process, if the number P of postal orders to be printed exceeds the upper limit value, the postal order needs to be grouped and then printed.
  • Step 03 grouping the postal sheets to be printed according to a preset grouping rule
  • the postal order to be printed is grouped by a group of T postal orders in chronological order on the postal order, where 0 ⁇ T ⁇ N.
  • the postal order to be printed is divided into P/T groups in chronological order, that is, the first to T postal orders are the first group, and the (S-1) ⁇ T+1 ⁇
  • the S ⁇ T sheet post is the group S, wherein the value of T is N/2 ⁇ T ⁇ N, 1 ⁇ S ⁇ P/T.
  • Step 04 Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
  • the grouped postal order is sent to the printing module for printing processing, which specifically includes the following substeps:
  • Step 04-1 detecting the status of the printing device, including the number of print files accommodated by the printing device interface, the device warm-up status, and the interface communication status;
  • Step 04-2 sending a print instruction and calling a print interface, sending a group print instruction to the printing device, and inputting the print data through the print interface;
  • Step 04-3 printing the first group of postal orders, and sending the print data of the first group of postal orders to the printing device through the printing interface to start printing;
  • Step 04-5 judging whether the first group of postal printing is finished, if the printing is finished, proceeding to the next step, if not printing, continuing to print;
  • Step 04-6 the loop calling interface prints the remaining Group S postal order.
  • step 4 further includes: after step 04-7, after the end of the S group postal printing, the number of the actually printed postal orders is detected and it is judged whether there is any omission, and if there is a omission, the omission is omitted.
  • the postal order number is automatically placed in the postal order of the S+1 group to be printed. If there is no omission, the next set will continue to be printed.
  • FIG. 3 another postal printing method is illustrated, which includes the following steps:
  • Step 01 Obtain a number P of postal orders to be printed.
  • the number of postal orders to be printed is obtained by the data collection module, and the obtained number of postal orders is used to determine whether the upper limit value of the number of prints per print device interface is exceeded.
  • Step 02 Determine whether the number P of the postal order exceeds N, and the N is an upper limit of a single printing. If yes, the process proceeds to step 03, and if not, directly prints.
  • the N is the upper limit of the postal order that can be printed by the printing device interface. If the number of the postal order to be printed P does not exceed the upper limit, the print request can be directly sent to the printing device. In the printing process, if the number P of postal orders to be printed exceeds the upper limit value, the postal order needs to be grouped and then printed.
  • Step 03 grouping the postal sheets to be printed according to a preset grouping rule
  • the postal order to be printed is grouped by a group of T postal orders in chronological order on the postal order, where 0 ⁇ T ⁇ N.
  • the postal order to be printed is divided into P/T groups in chronological order, that is, the first to T postal orders are the first group, and the (S-1) ⁇ T+1 ⁇
  • the S ⁇ T sheet post is the group S, wherein the value of T is N/2 ⁇ T ⁇ N, 1 ⁇ S ⁇ P/T.
  • Step 04 Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
  • the grouped postal order is sent to the printing module for printing processing, which specifically includes the following substeps:
  • Step 04-1 detecting the status of the printing device, including the number of print files accommodated by the printing device interface, the device warm-up status, and the interface communication status;
  • Step 04-2 sending a print instruction and calling a print interface, sending a group print instruction to the printing device, and inputting the print data through the print interface;
  • Step 04-3 printing the first group of postal orders, and sending the print data of the first group of postal orders to the printing device through the printing interface to start printing;
  • Step 04-5 judging whether the first group of postal printing is finished, if the printing is finished, proceeding to the next step, if not printing, continuing to print;
  • Step 04-6 the loop calling interface prints the remaining Group S postal order.
  • step 4 further includes: after step 04-7, after the end of the S group postal printing, the number of the actually printed postal orders is detected and it is judged whether there is any omission, and if there is a omission, the omission is omitted.
  • the postal order number is automatically placed in the postal order of the S+1 group to be printed. If there is no omission, the next set will continue to be printed.
  • Step 05 Each time a group of postal orders is printed, the number of completed prints is automatically recorded, and when the accumulated number of prints of the record reaches P, a print end instruction is sent to the printing device to stop the printing operation.
  • a postal printing system comprising:
  • the data collection module 201 is configured to collect the number of postal orders to be printed
  • the determining module 202 is configured to determine whether the number of postal orders to be printed exceeds N, and the N is an upper limit value of a single printing;
  • a grouping module 203 configured to group the postal order to be printed
  • the printing module 204 is configured to perform a printing process on the postal order to be printed.
  • the printing module 204 includes a normal printing sub-module 2041 and a group printing sub-module 2042, and the normal printing sub-module 2041 is configured to perform a printing process on a postal order that does not exceed N in number to be printed.
  • the packet printing sub-module 2042 performs packet printing processing for a postal order whose number of prints exceeds N.
  • the postal printing system further includes a print count module 205 for recording the number of postal orders that have been cumulatively printed.
  • the electronic device 2 is an apparatus capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance.
  • the electronic device 2 can be a smartphone, a tablet, a laptop, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including a stand-alone server, or a server cluster composed of multiple servers).
  • the electronic device 2 includes at least, but not limited to, a memory 21, a processor 22, a network interface 23, and a postal printing system 20 that are communicably coupled to one another via a system bus. among them:
  • the memory 21 includes at least one type of computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the memory 21 may be an internal storage module of the electronic device 2, such as a hard disk or a memory of the electronic device 2.
  • the memory 21 may also be an external storage device of the electronic device 2, such as a plug-in hard disk equipped on the electronic device 2, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, flash card, etc.
  • the memory 21 may also include both an internal storage module of the electronic device 2 and an external storage device thereof.
  • the memory 21 is generally used to store an operating system installed in the electronic device 2 and various types of application software, such as program codes of the postal printing system 20, and the like. Further, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.
  • the processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 22 is typically used to control the overall operation of the electronic device 2, such as performing control and processing associated with data interaction or communication with the electronic device 2.
  • the processor 22 is configured to run program code or process data stored in the memory 21, such as running the postal printing system 20 and the like.
  • the network interface 23 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 2 and other electronic devices.
  • the network interface 23 is configured to connect the electronic device 2 to an external terminal through a network, establish a data transmission channel, a communication connection, and the like between the electronic device 2 and an external terminal.
  • the network may be an intranet, an Internet, a Global System of Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, or a 5G network.
  • Wireless or wired networks such as network, Bluetooth, Wi-Fi, etc.
  • Figure 6 only shows an electronic device having components 20-23, but it should be understood that not all illustrated components may be implemented and that more or fewer components may be implemented instead.
  • the postal printing system 20 stored in the memory 21 may also be divided into one or more program modules, the one or more program modules being stored in the memory 21, and by one or A plurality of processors (this embodiment is processor 22) are executed to complete the application.
  • FIG. 6 shows a schematic diagram of a program module of the first embodiment of the postal printing system 20.
  • the postal printing system 20 can be divided into a data collection module 201, a determination module 202, and a grouping.
  • the program module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function. The specific functions of the program modules 201-204 are described in detail in the third embodiment, and details are not described herein again.
  • the embodiment provides a computer readable storage medium on which the postal printing system 20 is stored, and the postal printing system 20 is implemented by one or more processors to implement the above-described postal printing method. Or the operation of an electronic device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The present application discloses a postage slip printing method, an electronic device, and a computer readable storage medium. The method comprises the following steps: step 01, acquiring the number P of postage slips to be printed; step 02, determining whether the number P of postage slips is larger than N, where N is an upper limit of a single printing, and if so, performing step 03, or if not, directly performing printing; step 03, grouping, according to a preset grouping rule, the postage slips to be printed; and step 04, sequentially printing, according to a time on the first postage slip in each group, the grouped postage slips in order from earliest to latest. The method enables grouping of postage slips that exceed a preset printing number, thereby avoiding the issue of repeatedly inputting a postage slip number caused by limitation of a printing interface, and improving efficiency when printing postage slips.

Description

邮政单打印方法、电子装置及计算机可读存储介质Postal order printing method, electronic device and computer readable storage medium
本申请申明享有2018年2月13日递交的申请号为201810148315.9、名称为“邮政单打印方法、电子装置及计算机可读存储介质”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。The present application claims priority to Chinese Patent Application No. 201101148315.9, entitled "Post Order Printing Method, Electronic Device, and Computer Readable Storage Medium", which is filed on February 13, 2018, the entire contents of which are The manner of reference is incorporated in the present application.
技术领域Technical field
本申请涉及打印领域,具体涉及一种邮政单打印方法、电子装置及计算机可读存储介质。The present application relates to the field of printing, and in particular to a postal printing method, an electronic device, and a computer readable storage medium.
背景技术Background technique
随着电子商务的发展,快递的数量越来越多,如何提高末端配送效率,实现快递企业的快速送件和提高揽件效率是急需解决的问题,市场上的快递APP只有快递单号查询功能,直接通过查找周边快递员,打电话叫快递员来取快递,现有技术中采用网上填单推送快递信息的收件方式较少,一般是先把信息传送至快递公司,再由公司调度快递员负责某一区域,无法完成一对一信息推送和全面实现电子面单寄件,目前在邮寄物品时,都需要手工填写单子,容易导致字迹潦草无法辨认、书写错误导致退单以及手工录入手法信息错误,因此,为了避免手工填单的众多问题,电子填单并统一打印邮寄单应运而生,而对于每个打印接口有规定的打印数量,不能同一批打印较多的邮寄单,从而造成需多次输入打印的邮寄单号进行打印,造成打印耗时长,且容易导致重复输入或漏输入某些邮寄单号。With the development of e-commerce, the number of express delivery is increasing. How to improve the terminal distribution efficiency, realize the fast delivery of express delivery enterprises and improve the efficiency of the delivery is an urgent problem to be solved. The express delivery APP on the market only has the express number inquiry function. Directly by looking for the surrounding courier, call the courier to pick up the courier. In the prior art, there are fewer ways to use the online filling form to push the courier information. Generally, the information is first transmitted to the courier company, and then the company dispatches the courier. The member is responsible for a certain area, unable to complete the one-to-one information push and fully realize the electronic face-to-face mailing. At present, when the items are mailed, they need to manually fill in the order, which is easy to cause the inscription to be recognizable, the writing error leads to the return of the order and the manual entry method. The information is wrong. Therefore, in order to avoid many problems of manual filling, electronic filling and unified printing of mailing orders have emerged. However, for each printing interface, there is a prescribed number of prints, and it is impossible to print more mailing orders in the same batch, resulting in It is necessary to input the printed mailing number number for printing many times, which causes the printing to take a long time and easily leads to heavy Enter the mailing list or some missing input numbers.
发明内容Summary of the invention
本申请的目的在于提供一种邮政单打印的方法、电子装置以及计算机可 读存储介质,进而在一定程度上克服现有技术中存在的问题。The purpose of the present application is to provide a method for printing a postal order, an electronic device, and a computer readable storage medium, thereby overcoming the problems existing in the prior art to some extent.
本申请是通过下述技术方案来解决上述技术问题:The present application solves the above technical problems by the following technical solutions:
本申请公开了一种邮政单打印方法,包括如下步骤:The present application discloses a postal order printing method, which includes the following steps:
步骤01、获取待打印的邮政单数量P;Step 01: Obtain a number P of postal orders to be printed;
步骤02、判断所述邮政单数量P是否超过N,所述N为单次打印的上限值,若超过,则进入步骤03,若未超过,则直接打印;Step 02: Determine whether the number P of the postal order exceeds N, and the N is an upper limit value of a single printing. If yes, the process proceeds to step 03, and if not, directly prints;
步骤03、按预设的分组规则对待打印的邮政单进行分组;Step 03: grouping the postal sheets to be printed according to a preset grouping rule;
步骤04、对所述分组后的邮政单按每组第一份邮政单上的时间先后顺序进行打印处理。Step 04: Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
本申请还公开了一种电子装置,包括存储器和处理器,所述存储器用于存储被处理器执行的邮政单打印系统,所述邮政单打印系统包括:The present application also discloses an electronic device including a memory and a processor for storing a postal printing system executed by a processor, the postal printing system comprising:
数据采集模块,用于采集待打印的邮政单数量;a data collection module for collecting the number of postal orders to be printed;
判断模块,用于判断所述待打印的邮政单数量是否超过N,所述N为单次打印的上限值;a judging module, configured to determine whether the number of postal orders to be printed exceeds N, and the N is an upper limit value of a single printing;
分组模块,用于对待打印的邮政单进行分组,并将分组后的邮政单发送至打印模块;a grouping module, configured to group the postal order to be printed, and send the grouped postal order to the printing module;
打印模块,用于对待打印的邮政单进行打印处理。A printing module for printing the postal order to be printed.
本申请还公开了一种计算机可读存储介质,所述计算机可读存储介质内存储有邮政单打印系统,所述邮政单打印系统可被至少一个处理器所执行,以实现以下步骤:The present application also discloses a computer readable storage medium having a postal printing system stored therein, the postal printing system being executable by at least one processor to implement the following steps:
步骤01、获取待打印的邮政单数量P;Step 01: Obtain a number P of postal orders to be printed;
步骤02、判断所述邮政单数量P是否超过N,所述N为单次打印的上限值,若超过,则进入步骤03,若未超过,则直接打印;Step 02: Determine whether the number P of the postal order exceeds N, and the N is an upper limit value of a single printing. If yes, the process proceeds to step 03, and if not, directly prints;
步骤03、按预设的分组规则对待打印的邮政单进行分组;Step 03: grouping the postal sheets to be printed according to a preset grouping rule;
步骤04、对所述分组后的邮政单按每组第一份邮政单上的时间先后顺序进行打印处理。Step 04: Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
本申请的积极效果:本申请采用分组打印模式对超过预设打印数量的邮政单进行分组处理,可以避免因打印接口的限制而导致的反复多次输入邮政单号操作的问题,提高了邮政单的打印效率。The positive effect of the present application: the present application uses the group printing mode to group the postal order exceeding the preset number of prints, thereby avoiding the problem of repeatedly inputting the postal number operation caused by the limitation of the print interface, and improving the postal order. Printing efficiency.
附图说明DRAWINGS
图1示出了本申请邮政单打印方法一实施例的流程图。1 is a flow chart showing an embodiment of a method for printing a postal order of the present application.
图2示出了本申请邮政单打印方法又一实施例的流程图。2 is a flow chart showing still another embodiment of the postal printing method of the present application.
图3示出了本申请邮政单打印方法又一实施例的流程图。3 is a flow chart showing still another embodiment of the postal printing method of the present application.
图4示出了本申请邮政单打印系统一实施例的程序模块示意图。4 is a schematic diagram showing the program modules of an embodiment of the postal printing system of the present application.
图5示出了本申请邮政单打印系统又一实施例的程序模块示意图。FIG. 5 is a block diagram showing a program module of still another embodiment of the postal printing system of the present application.
图6示出了本申请电子装置一实施例的硬件架构示意图。FIG. 6 is a schematic diagram showing the hardware architecture of an embodiment of an electronic device of the present application.
具体实施方式Detailed ways
实施例一Embodiment 1
示出了一种邮政单打印方法,包括如下步骤:A postal printing method is shown, comprising the following steps:
步骤01、获取待打印的邮政单数量P。Step 01: Obtain a number P of postal orders to be printed.
通过数据采集模块获取待打印的邮政单数量,获取的邮政单数量用于判断是否超过打印设备接口每次打印数量的上限值。The number of postal orders to be printed is obtained by the data collection module, and the obtained number of postal orders is used to determine whether the upper limit value of the number of prints per print device interface is exceeded.
步骤02、判断所述邮政单数量P是否超过N,所述N为单次打印的上限值,若超过,则进入步骤03,若未超过,则直接打印。Step 02: Determine whether the number P of the postal order exceeds N, and the N is an upper limit of a single printing. If yes, the process proceeds to step 03, and if not, directly prints.
该步骤中,所述N为打印设备接口单次所能打印的邮政单的上限值,若待打印的邮政单数量P未超过所述上限值,则可直接发送打印请求至打印设备进行打印处理,若待打印的邮政单数量P超过所述上限值,则需对邮政单进行分组处理后再进行打印。In this step, the N is the upper limit of the postal order that can be printed by the printing device interface. If the number of the postal order to be printed P does not exceed the upper limit, the print request can be directly sent to the printing device. In the printing process, if the number P of postal orders to be printed exceeds the upper limit value, the postal order needs to be grouped and then printed.
步骤03、按预设的分组规则对待打印的邮政单进行分组;Step 03: grouping the postal sheets to be printed according to a preset grouping rule;
实际分组时,按邮政单上的时间先后顺序将所述待打印的邮政单按每T张邮政单为一组进行分组,其中0<T≤N。In actual grouping, the postal order to be printed is grouped by a group of T postal orders in chronological order on the postal order, where 0<T≤N.
若P为T整数倍,按时间先后顺序将所述待打印的邮政单分为P/T组,即第1~T张邮政单为第一组,第(S-1)×T+1~S×T张邮政单为第S组,其中T的取值为N/2≤T≤N,1≤S≤P/T。If P is an integer multiple of T, the postal order to be printed is divided into P/T groups in chronological order, that is, the first to T postal orders are the first group, and the (S-1)×T+1~ The S×T sheet post is the group S, wherein the value of T is N/2≤T≤N, 1≤S≤P/T.
若P不是T的整数倍,如P=S×T+m(m<T),则第S×T+1~S×T+m张邮政单为分组的最后一组。If P is not an integer multiple of T, such as P=S×T+m (m<T), then the S×T+1~S×T+m postal order is the last group of the group.
步骤04、对所述分组后的邮政单按每组第一份邮政单上的时间先后顺序进行打印处理。Step 04: Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
分组完成后,将分组后的邮政单发送至打印模块进行打印处理,具体包括如下子步骤:After the grouping is completed, the grouped postal order is sent to the printing module for printing processing, which specifically includes the following substeps:
步骤04-1、检测打印设备状态,包括打印设备接口容纳的打印文件数量、设备预热状态、以及接口通信状态;Step 04-1, detecting the status of the printing device, including the number of print files accommodated by the printing device interface, the device warm-up status, and the interface communication status;
步骤04-2、发送打印指令并调用打印接口,发送分组打印指令至打印设备,并通过打印接口进行打印数据的输入;Step 04-2, sending a print instruction and calling a print interface, sending a group print instruction to the printing device, and inputting the print data through the print interface;
步骤04-3、对第一组邮政单进行打印,将第一组邮政单的打印数据通过打印接口发送至打印设备开始打印;Step 04-3, printing the first group of postal orders, and sending the print data of the first group of postal orders to the printing device through the printing interface to start printing;
步骤04-5、判断第一组邮政是否打印完,若打印完,则进入下一步,若未打印完,则继续打印;Step 04-5, judging whether the first group of postal printing is finished, if the printing is finished, proceeding to the next step, if not printing, continuing to print;
步骤04-6、循环调用接口对剩余的第S组邮政单进行打印。Step 04-6, the loop calling interface prints the remaining Group S postal order.
在另一个实施例中,步骤4还包括:步骤04-7、S组邮政单打印结束后,检测该组实际已打印的邮政单数量并判断是否有遗漏,若有遗漏,则整理被遗漏的邮政单号并自动排入第S+1组的邮政单中待打印,若没有遗漏,则继 续打印下一组。In another embodiment, step 4 further includes: after step 04-7, after the end of the S group postal printing, the number of the actually printed postal orders is detected and it is judged whether there is any omission, and if there is a omission, the omission is omitted. The postal order number is automatically placed in the postal order of the S+1 group to be printed. If there is no omission, the next set will continue to be printed.
实施例二 Embodiment 2
参阅图3,示出了另一种邮政单打印方法,包括如下步骤:Referring to FIG. 3, another postal printing method is illustrated, which includes the following steps:
步骤01、获取待打印的邮政单数量P。Step 01: Obtain a number P of postal orders to be printed.
通过数据采集模块获取待打印的邮政单数量,获取的邮政单数量用于判断是否超过打印设备接口每次打印数量的上限值。The number of postal orders to be printed is obtained by the data collection module, and the obtained number of postal orders is used to determine whether the upper limit value of the number of prints per print device interface is exceeded.
步骤02、判断所述邮政单数量P是否超过N,所述N为单次打印的上限值,若超过,则进入步骤03,若未超过,则直接打印。Step 02: Determine whether the number P of the postal order exceeds N, and the N is an upper limit of a single printing. If yes, the process proceeds to step 03, and if not, directly prints.
该步骤中,所述N为打印设备接口单次所能打印的邮政单的上限值,若待打印的邮政单数量P未超过所述上限值,则可直接发送打印请求至打印设备进行打印处理,若待打印的邮政单数量P超过所述上限值,则需对邮政单进行分组处理后再进行打印。In this step, the N is the upper limit of the postal order that can be printed by the printing device interface. If the number of the postal order to be printed P does not exceed the upper limit, the print request can be directly sent to the printing device. In the printing process, if the number P of postal orders to be printed exceeds the upper limit value, the postal order needs to be grouped and then printed.
步骤03、按预设的分组规则对待打印的邮政单进行分组;Step 03: grouping the postal sheets to be printed according to a preset grouping rule;
实际分组时,按邮政单上的时间先后顺序将所述待打印的邮政单按每T张邮政单为一组进行分组,其中0<T≤N。In actual grouping, the postal order to be printed is grouped by a group of T postal orders in chronological order on the postal order, where 0<T≤N.
若P为T整数倍,按时间先后顺序将所述待打印的邮政单分为P/T组,即第1~T张邮政单为第一组,第(S-1)×T+1~S×T张邮政单为第S组,其中T的取值为N/2≤T≤N,1≤S≤P/T。If P is an integer multiple of T, the postal order to be printed is divided into P/T groups in chronological order, that is, the first to T postal orders are the first group, and the (S-1)×T+1~ The S×T sheet post is the group S, wherein the value of T is N/2≤T≤N, 1≤S≤P/T.
若P不是T的整数倍,如P=S×T+m(m<T),则第S×T+1~S×T+m张邮政单为分组的最后一组。If P is not an integer multiple of T, such as P=S×T+m (m<T), then the S×T+1~S×T+m postal order is the last group of the group.
步骤04、对所述分组后的邮政单按每组第一份邮政单上的时间先后顺序进行打印处理。Step 04: Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
分组完成后,将分组后的邮政单发送至打印模块进行打印处理,具体包括如下子步骤:After the grouping is completed, the grouped postal order is sent to the printing module for printing processing, which specifically includes the following substeps:
步骤04-1、检测打印设备状态,包括打印设备接口容纳的打印文件数量、设备预热状态、以及接口通信状态;Step 04-1, detecting the status of the printing device, including the number of print files accommodated by the printing device interface, the device warm-up status, and the interface communication status;
步骤04-2、发送打印指令并调用打印接口,发送分组打印指令至打印设备,并通过打印接口进行打印数据的输入;Step 04-2, sending a print instruction and calling a print interface, sending a group print instruction to the printing device, and inputting the print data through the print interface;
步骤04-3、对第一组邮政单进行打印,将第一组邮政单的打印数据通过打印接口发送至打印设备开始打印;Step 04-3, printing the first group of postal orders, and sending the print data of the first group of postal orders to the printing device through the printing interface to start printing;
步骤04-5、判断第一组邮政是否打印完,若打印完,则进入下一步,若未打印完,则继续打印;Step 04-5, judging whether the first group of postal printing is finished, if the printing is finished, proceeding to the next step, if not printing, continuing to print;
步骤04-6、循环调用接口对剩余的第S组邮政单进行打印。Step 04-6, the loop calling interface prints the remaining Group S postal order.
在另一个实施例中,步骤4还包括:步骤04-7、S组邮政单打印结束后,检测该组实际已打印的邮政单数量并判断是否有遗漏,若有遗漏,则整理被遗漏的邮政单号并自动排入第S+1组的邮政单中待打印,若没有遗漏,则继续打印下一组。In another embodiment, step 4 further includes: after step 04-7, after the end of the S group postal printing, the number of the actually printed postal orders is detected and it is judged whether there is any omission, and if there is a omission, the omission is omitted. The postal order number is automatically placed in the postal order of the S+1 group to be printed. If there is no omission, the next set will continue to be printed.
步骤05、每打印完一组邮政单,自动记录已完成的打印数量,当记录的累计打印数量到达P时,发送打印结束指令至打印设备停止打印操作。Step 05: Each time a group of postal orders is printed, the number of completed prints is automatically recorded, and when the accumulated number of prints of the record reaches P, a print end instruction is sent to the printing device to stop the printing operation.
实施例三Embodiment 3
参阅图4-5,示出了一种邮政单打印系统,包括:Referring to Figures 4-5, a postal printing system is illustrated, comprising:
数据采集模块201,用于采集待打印的邮政单数量;The data collection module 201 is configured to collect the number of postal orders to be printed;
判断模块202,用于判断所述待打印的邮政单数量是否超过N,所述N为单次打印的上限值;The determining module 202 is configured to determine whether the number of postal orders to be printed exceeds N, and the N is an upper limit value of a single printing;
分组模块203,用于对待打印的邮政单进行分组;a grouping module 203, configured to group the postal order to be printed;
打印模块204,用于对待打印的邮政单进行打印处理。The printing module 204 is configured to perform a printing process on the postal order to be printed.
在另一个实施例中,所述打印模块204包括普通打印子模块2041和分组打印子模块2042,所述普通打印子模块2041用于对待打印的数量未超过N的邮政单进行打印处理,所述分组打印子模块2042用于对待打印的数量超过N的邮政单进行分组打印处理。In another embodiment, the printing module 204 includes a normal printing sub-module 2041 and a group printing sub-module 2042, and the normal printing sub-module 2041 is configured to perform a printing process on a postal order that does not exceed N in number to be printed. The packet printing sub-module 2042 performs packet printing processing for a postal order whose number of prints exceeds N.
在另一个实施例中,所述邮政单打印系统还包括打印计数模块205,用于记录已累计打印完的邮政单数量。In another embodiment, the postal printing system further includes a print count module 205 for recording the number of postal orders that have been cumulatively printed.
实施例四Embodiment 4
参阅图,6,本实施例提供一种电子装置。是本申请电子装置一实施例的硬件架构示意图。本实施例中,所述电子装置2是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。例如,可以是智能手机、平板电脑、笔记本电脑、台式计算机、机架式服务器、刀片式服务器、塔式服务器或机柜式服务器(包括独立的服务器,或者多个服务器所组成的服务器集群)等。如图所示,所述电子装置2至少包括,但不限于,可通过系统总线相互通信连接存储器21、处理器22、网络接口23、以及邮政单打印系统20。其中:Referring to FIG. 6, this embodiment provides an electronic device. It is a schematic diagram of the hardware architecture of an embodiment of the electronic device of the present application. In the embodiment, the electronic device 2 is an apparatus capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance. For example, it can be a smartphone, a tablet, a laptop, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including a stand-alone server, or a server cluster composed of multiple servers). As shown, the electronic device 2 includes at least, but not limited to, a memory 21, a processor 22, a network interface 23, and a postal printing system 20 that are communicably coupled to one another via a system bus. among them:
所述存储器21至少包括一种类型的计算机可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器21可以是所述电子装置2的内部存储模块,例如该电子装置2的硬盘或内存。在另一些实施例中,所述存储器21也可以是所述电子装置2的外部存储设备,例如该电子装置2上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。当然, 所述存储器21还可以既包括所述电子装置2的内部存储模块也包括其外部存储设备。本实施例中,所述存储器21通常用于存储安装于所述电子装置2的操作系统和各类应用软件,例如所述邮政单打印系统20的程序代码等。此外,所述存储器21还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 21 includes at least one type of computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. In some embodiments, the memory 21 may be an internal storage module of the electronic device 2, such as a hard disk or a memory of the electronic device 2. In other embodiments, the memory 21 may also be an external storage device of the electronic device 2, such as a plug-in hard disk equipped on the electronic device 2, a smart memory card (SMC), and a secure digital device. (Secure Digital, SD) card, flash card, etc. Of course, the memory 21 may also include both an internal storage module of the electronic device 2 and an external storage device thereof. In this embodiment, the memory 21 is generally used to store an operating system installed in the electronic device 2 and various types of application software, such as program codes of the postal printing system 20, and the like. Further, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.
所述处理器22在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器22通常用于控制所述电子装置2的总体操作,例如执行与所述电子装置2进行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器22用于运行所述存储器21中存储的程序代码或者处理数据,例如运行所述的邮政单打印系统20等。The processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the electronic device 2, such as performing control and processing associated with data interaction or communication with the electronic device 2. In this embodiment, the processor 22 is configured to run program code or process data stored in the memory 21, such as running the postal printing system 20 and the like.
所述网络接口23可包括无线网络接口或有线网络接口,该网络接口23通常用于在所述电子装置2与其他电子装置之间建立通信连接。例如,所述网络接口23用于通过网络将所述电子装置2与外部终端相连,在所述电子装置2与外部终端之间的建立数据传输通道和通信连接等。所述网络可以是企业内部网(Intranet)、互联网(Internet)、全球移动通讯系统(Global System of Mobile communication,GSM)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、4G网络、5G网络、蓝牙(Bluetooth)、Wi-Fi等无线或有线网络。The network interface 23 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 2 and other electronic devices. For example, the network interface 23 is configured to connect the electronic device 2 to an external terminal through a network, establish a data transmission channel, a communication connection, and the like between the electronic device 2 and an external terminal. The network may be an intranet, an Internet, a Global System of Mobile communication (GSM), a Wideband Code Division Multiple Access (WCDMA), a 4G network, or a 5G network. Wireless or wired networks such as network, Bluetooth, Wi-Fi, etc.
需要指出的是,图6仅示出了具有部件20-23的电子装置,但是应理解的是,并不要求实施所有示出的部件,可以替代的实施更多或者更少的部件。It is noted that Figure 6 only shows an electronic device having components 20-23, but it should be understood that not all illustrated components may be implemented and that more or fewer components may be implemented instead.
在本实施例中,存储于存储器21中的所述邮政单打印系统20还可以被分割为一个或者多个程序模块,所述一个或者多个程序模块被存储于存储器21中,并由一个或多个处理器(本实施例为处理器22)所执行,以完成本 申请。In the present embodiment, the postal printing system 20 stored in the memory 21 may also be divided into one or more program modules, the one or more program modules being stored in the memory 21, and by one or A plurality of processors (this embodiment is processor 22) are executed to complete the application.
例如,图6示出了所述邮政单打印系统20第一实施例的程序模块示意图,该实施例中,所述基于邮政单打印系统20可以被划分为数据采集模块201、判断模块202、分组模块203、打印模块204。其中,本申请所称的程序模块是指能够完成特定功能的一系列计算机程序指令段。所述程序模块201-204的具体功能在实施例三中已有详细描述,在此不再赘述。For example, FIG. 6 shows a schematic diagram of a program module of the first embodiment of the postal printing system 20. In this embodiment, the postal printing system 20 can be divided into a data collection module 201, a determination module 202, and a grouping. Module 203, print module 204. Wherein, the program module referred to in the present application refers to a series of computer program instruction segments capable of performing a specific function. The specific functions of the program modules 201-204 are described in detail in the third embodiment, and details are not described herein again.
实施例五Embodiment 5
本实施例提供一种计算机可读存储介质,该计算机可读存储介质上存储有所述邮政单打印系统20,该邮政单打印系统20被一个或多个处理器执行时实现上述邮政单打印方法或电子装置的操作。The embodiment provides a computer readable storage medium on which the postal printing system 20 is stored, and the postal printing system 20 is implemented by one or more processors to implement the above-described postal printing method. Or the operation of an electronic device.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (15)

  1. 一种邮政单打印方法,其特征在于,包括如下步骤:A postal printing method, characterized in that it comprises the following steps:
    步骤01、获取待打印的邮政单数量P;Step 01: Obtain a number P of postal orders to be printed;
    步骤02、判断所述邮政单数量P是否超过N,所述N为单次打印的上限值,若超过,则进入步骤03,若未超过,则直接打印;Step 02: Determine whether the number P of the postal order exceeds N, and the N is an upper limit value of a single printing. If yes, the process proceeds to step 03, and if not, directly prints;
    步骤03、按预设的分组规则对待打印的邮政单进行分组;Step 03: grouping the postal sheets to be printed according to a preset grouping rule;
    步骤04、对所述分组后的邮政单按每组第一份邮政单上的时间先后顺序进行打印处理。Step 04: Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
  2. 根据权利要求1所述的方法,其特征在于,步骤03包括:The method of claim 1 wherein step 03 comprises:
    按邮政单上的时间先后顺序将所述待打印的邮政单按每T张邮政单为一组进行分组,其中0<T≤N;According to the chronological order on the postal order, the postal order to be printed is grouped by a group of T postal orders, wherein 0<T≤N;
    若P为T整数倍,第一组为第1~T张,第S组为第(S-1)×T+1到第S×T张邮政单,所述N/2≤T≤N,1≤S≤P/T;If P is an integral multiple of T, the first group is the first to the Tth sheets, and the second group is the (S-1)×T+1 to the S×T sheet post, and the N/2≤T≤N, 1≤S≤P/T;
    若P=S×T+m,m<T,则分组最后一组为S×T+1~S×T+m。If P = S × T + m, m < T, the last group of the group is S × T + 1 ~ S × T + m.
  3. 根据权利要求2所述的方法,其特征在于,步骤04包括:The method of claim 2 wherein step 04 comprises:
    步骤04-1、检测打印设备状态,包括打印设备接口容纳的打印文件数量、设备预热状态、以及接口通信状态;Step 04-1, detecting the status of the printing device, including the number of print files accommodated by the printing device interface, the device warm-up status, and the interface communication status;
    步骤04-2、发送打印指令并调用打印接口,发送分组打印指令至打印设备,并通过打印接口进行打印数据的输入;Step 04-2, sending a print instruction and calling a print interface, sending a group print instruction to the printing device, and inputting the print data through the print interface;
    步骤04-3、对第一组邮政单进行打印,将第一组邮政单的打印数据通过打印接口发送至打印设备开始打印;Step 04-3, printing the first group of postal orders, and sending the print data of the first group of postal orders to the printing device through the printing interface to start printing;
    步骤04-4、判断第一组邮政单是否打印完,若打印完,则进入下一步,若未打印完,则继续打印;Step 04-4, judging whether the first group postal order is printed, if the printing is finished, proceeding to the next step, if not printing, continuing to print;
    步骤04-5、循环调用接口对剩余的第S组邮政单依次进行打印。Step 04-5, the loop calling interface sequentially prints the remaining Group S postal orders.
  4. 根据权利要求3所述的方法,其特征在于,步骤4还包括:步骤04-6、 S组邮政单打印结束后,检测该组实际已打印的邮政单数量并判断是否有遗漏,若有遗漏,则整理被遗漏的邮政单号并自动排入第S+1组的邮政单中待打印,若没有遗漏,则继续打印下一组。The method according to claim 3, wherein the step 4 further comprises: after step 04-6, after the printing of the S group postal order, detecting the number of the actually printed postal orders and determining whether there is any omission, if there is a omission , the omitted postal order number is automatically sorted and automatically placed in the postal order of the S+1 group to be printed. If there is no omission, the next set is continued.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:步骤05、每打印完一组邮政单,自动记录已完成的打印数量,当记录的累计打印数量到达P时,发送打印结束指令至打印设备停止打印操作。The method according to claim 1, wherein the method further comprises: step 05, automatically printing the completed number of prints after printing a set of postal orders, and transmitting the print when the accumulated number of prints of the record reaches P. End the command to the printing device to stop the printing operation.
  6. 根据权利要求1所述的方法,其特征在于,N优选为100。The method of claim 1 wherein N is preferably 100.
  7. 一种电子装置,包括存储器和处理器,其特征在于,所述存储器用于存储被处理器执行的邮政单打印系统,所述邮政单打印系统包括:An electronic device comprising a memory and a processor, wherein the memory is for storing a postal printing system executed by a processor, the postal printing system comprising:
    数据采集模块,用于采集待打印的邮政单数量;a data collection module for collecting the number of postal orders to be printed;
    判断模块,用于判断所述待打印的邮政单数量是否超过N,所述N为单次打印的上限值,若超过N,则发送待打印的邮政单至分组模块进行分组,若未超过N,则直接发送打印模块进行打印;a judging module, configured to determine whether the number of postal orders to be printed exceeds N, and the N is an upper limit of a single printing. If the value exceeds N, the postal to be printed is sent to the grouping module for grouping, if not exceeded N, directly send the print module to print;
    分组模块,用于对待打印的邮政单进行分组,并将分组后的邮政单发送至打印模块;a grouping module, configured to group the postal order to be printed, and send the grouped postal order to the printing module;
    打印模块,用于对待打印的邮政单进行打印处理。A printing module for printing the postal order to be printed.
  8. 根据权利要求7所述的电子装置,其特征在于,所述打印模块包括普通打印子模块和分组打印子模块,所述普通打印子模块用于对待打印的数量未超过N的邮政单进行打印处理,所述分组打印子模块用于对待打印的数量超过N的邮政单进行分组打印处理。The electronic device according to claim 7, wherein the printing module comprises a normal printing sub-module and a group printing sub-module, and the ordinary printing sub-module is used for printing a postal order whose number of prints does not exceed N The packet printing sub-module performs packet printing processing for a postal order whose number of prints exceeds N.
  9. 根据权利要求7所述的电子装置,其特征在于,所述邮政单打印系统还包括打印计数模块,用于记录已累计打印完的邮政单数量。The electronic device according to claim 7, wherein said postal printing system further comprises a print counting module for recording the number of postal orders that have been cumulatively printed.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有邮政单打印系统,所述邮政单打印系统可被至少一个处理器所执行,以实现以下步骤:A computer readable storage medium, characterized in that the computer readable storage medium stores a postal printing system, the postal printing system being executable by at least one processor to implement the following steps:
    步骤01、获取待打印的邮政单数量P;Step 01: Obtain a number P of postal orders to be printed;
    步骤02、判断所述邮政单数量P是否超过N,所述N为单次打印的上限值,若超过,则进入步骤03,若未超过,则直接打印;Step 02: Determine whether the number P of the postal order exceeds N, and the N is an upper limit value of a single printing. If yes, the process proceeds to step 03, and if not, directly prints;
    步骤03、按预设的分组规则对待打印的邮政单进行分组;Step 03: grouping the postal sheets to be printed according to a preset grouping rule;
    步骤04、对所述分组后的邮政单按每组第一份邮政单上的时间先后顺序进行打印处理。Step 04: Perform print processing on the grouped postal order in chronological order on the first postal list of each group.
  11. 根据权利要求10所述的计算机可读存储介质,其特征在于,步骤03包括:The computer readable storage medium of claim 10, wherein step 03 comprises:
    按邮政单上的时间先后顺序将所述待打印的邮政单按每T张邮政单为一组进行分组,其中0<T≤N;According to the chronological order on the postal order, the postal order to be printed is grouped by a group of T postal orders, wherein 0<T≤N;
    若P为T整数倍,第一组为第1~T张,第S组为第(S-1)×T+1到第S×T张邮政单,所述N/2≤T≤N,1≤S≤P/T;If P is an integral multiple of T, the first group is the first to the Tth sheets, and the second group is the (S-1)×T+1 to the S×T sheet post, and the N/2≤T≤N, 1≤S≤P/T;
    若P=S×T+m,m<T,则分组最后一组为S×T+1~S×T+m。If P = S × T + m, m < T, the last group of the group is S × T + 1 ~ S × T + m.
  12. 根据权利要求11所述的计算机可读存储介质,其特征在于,步骤04包括:The computer readable storage medium of claim 11 wherein step 04 comprises:
    步骤04-1、检测打印设备状态,包括打印设备接口容纳的打印文件数量、设备预热状态、以及接口通信状态;Step 04-1, detecting the status of the printing device, including the number of print files accommodated by the printing device interface, the device warm-up status, and the interface communication status;
    步骤04-2、发送打印指令并调用打印接口,发送分组打印指令至打印设备,并通过打印接口进行打印数据的输入;Step 04-2, sending a print instruction and calling a print interface, sending a group print instruction to the printing device, and inputting the print data through the print interface;
    步骤04-3、对第一组邮政单进行打印,将第一组邮政单的打印数据通过打印接口发送至打印设备开始打印;Step 04-3, printing the first group of postal orders, and sending the print data of the first group of postal orders to the printing device through the printing interface to start printing;
    步骤04-4、判断第一组邮政单是否打印完,若打印完,则进入下一步,若未打印完,则继续打印;Step 04-4, judging whether the first group postal order is printed, if the printing is finished, proceeding to the next step, if not printing, continuing to print;
    步骤04-5、循环调用接口对剩余的第S组邮政单依次进行打印。Step 04-5, the loop calling interface sequentially prints the remaining Group S postal orders.
  13. 根据权利要求12所述的计算机可读存储介质,其特征在于,步骤4还包括:步骤04-6、S组邮政单打印结束后,检测该组实际已打印的邮政单数量并判断是否有遗漏,若有遗漏,则整理被遗漏的邮政单号并自动排入第 S+1组的邮政单中待打印,若没有遗漏,则继续打印下一组。The computer readable storage medium according to claim 12, wherein the step 4 further comprises: after step 04-6, after the end of the S group postal printing, detecting the number of the actually printed postal orders and determining whether there is any omission. If there is any omission, the omitted postal order number will be sorted out and automatically placed in the postal order of the S+1 group to be printed. If there is no omission, continue to print the next set.
  14. 根据权利要求10所述的计算机可读存储介质,其特征在于,所述步骤还包括:步骤05、每打印完一组邮政单,自动记录已完成的打印数量,当记录的累计打印数量到达P时,发送打印结束指令至打印设备停止打印操作。A computer readable storage medium according to claim 10, wherein said step further comprises: step 05, automatically printing the number of completed prints each time a set of postal orders is printed, and when the cumulative number of prints of the record reaches P When the print end command is sent to the printing device to stop the printing operation.
  15. 根据权利要求10所述的计算机可读存储介质,其特征在于,N优选为100。The computer readable storage medium of claim 10, wherein N is preferably 100.
PCT/CN2018/083065 2018-02-13 2018-04-13 Postage slip printing method, electronic device, and computer readable storage medium WO2019157778A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810148315.9A CN108509160B (en) 2018-02-13 2018-02-13 Post order printing method, electronic device and computer readable storage medium
CN201810148315.9 2018-02-13

Publications (1)

Publication Number Publication Date
WO2019157778A1 true WO2019157778A1 (en) 2019-08-22

Family

ID=63375076

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083065 WO2019157778A1 (en) 2018-02-13 2018-04-13 Postage slip printing method, electronic device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108509160B (en)
WO (1) WO2019157778A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110802957B (en) * 2019-10-11 2021-11-02 杭州珐珞斯科技有限公司 Printing quantity control method and system for printing equipment
CN113724049A (en) * 2021-09-07 2021-11-30 上海寻梦信息技术有限公司 Information processing method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080186530A1 (en) * 2006-09-22 2008-08-07 Sharp Kabushiki Kaisha Printing system and printing method
CN101582016A (en) * 2009-05-27 2009-11-18 北京大学 Method and device for printing data
CN101751236A (en) * 2008-11-28 2010-06-23 佳能株式会社 Information processing apparatus, information processing method, medium storing program thereof, and information processing system
CN102799399A (en) * 2012-07-03 2012-11-28 青岛海信传媒网络技术有限公司 Network printing method and network printer
CN104346109A (en) * 2013-08-09 2015-02-11 华为终端有限公司 Method and device for home shared printing
CN104417102A (en) * 2013-08-29 2015-03-18 北大方正集团有限公司 Printing method and device
CN106406781A (en) * 2016-11-18 2017-02-15 北京红马科技有限公司 Ticket printing method for reducing paper dependence

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080186530A1 (en) * 2006-09-22 2008-08-07 Sharp Kabushiki Kaisha Printing system and printing method
CN101751236A (en) * 2008-11-28 2010-06-23 佳能株式会社 Information processing apparatus, information processing method, medium storing program thereof, and information processing system
CN101582016A (en) * 2009-05-27 2009-11-18 北京大学 Method and device for printing data
CN102799399A (en) * 2012-07-03 2012-11-28 青岛海信传媒网络技术有限公司 Network printing method and network printer
CN104346109A (en) * 2013-08-09 2015-02-11 华为终端有限公司 Method and device for home shared printing
CN104417102A (en) * 2013-08-29 2015-03-18 北大方正集团有限公司 Printing method and device
CN106406781A (en) * 2016-11-18 2017-02-15 北京红马科技有限公司 Ticket printing method for reducing paper dependence

Also Published As

Publication number Publication date
CN108509160A (en) 2018-09-07
CN108509160B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
WO2020177384A1 (en) Method and apparatus for reporting and processing user message status of message pushing, and storage medium
US10362086B2 (en) Method and system for automating submission of issue reports
WO2019196304A1 (en) Electronic apparatus, credit feedback message parsing method, and storage medium
CN111835467B (en) Message sending method, device, computer equipment and storage medium
CN111813573B (en) Communication method of management platform and robot software and related equipment thereof
CN107784205B (en) User product auditing method, device, server and storage medium
WO2019157778A1 (en) Postage slip printing method, electronic device, and computer readable storage medium
WO2019169763A1 (en) Electronic apparatus, service system risk control method, and storage medium
CN112115026A (en) Server cluster monitoring method and device, electronic equipment and readable storage medium
CN112084486A (en) User information verification method and device, electronic equipment and storage medium
WO2019062082A1 (en) Breakpoint data following method, electronic device, and computer readable storage medium
CN113163009A (en) Data transmission method, device, electronic equipment and storage medium
CN113312649A (en) Message processing method, device, equipment, system and storage medium
CN111562893A (en) Reprinting method and device
CN112637341B (en) File uploading method and device, electronic equipment and storage medium
WO2019071899A1 (en) Electronic device, vehicle data import method and storage medium
CN112104687B (en) Logistics routing service monitoring method and device, electronic equipment and storage medium
US9282080B2 (en) Customer vetted device status communication system and method
US20200314110A1 (en) Data transmission method, apparatus, terminal device, and medium
CN108471399A (en) Generation method, storage medium and the server of data packet in a kind of anti money washing operation
US8589605B2 (en) Inbound message rate limit based on maximum queue times
CN114520807A (en) File uploading and downloading method and device, computer equipment and storage medium
CN114201466A (en) Method, device and equipment for preventing cache breakdown and readable storage medium
CN114064784A (en) Enterprise research and development expense intelligent collection method and system and electronic equipment
WO2019169696A1 (en) Platform client data backflow method, electronic apparatus, device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18906698

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18906698

Country of ref document: EP

Kind code of ref document: A1