CN114610249A - Data processing method and system - Google Patents
Data processing method and system Download PDFInfo
- Publication number
- CN114610249A CN114610249A CN202210259172.5A CN202210259172A CN114610249A CN 114610249 A CN114610249 A CN 114610249A CN 202210259172 A CN202210259172 A CN 202210259172A CN 114610249 A CN114610249 A CN 114610249A
- Authority
- CN
- China
- Prior art keywords
- data
- printing
- printed
- module
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1211—Improving printing performance
- G06F3/1215—Improving printing performance achieving increased printing speed, i.e. reducing the time between printing start and printing end
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/124—Parallel printing or parallel ripping
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1257—Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1275—Print workflow management, e.g. defining or changing a workflow, cross publishing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1287—Remote printer device, e.g. being remote from client or server via internet
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
- G06F3/1289—Remote printer device, e.g. being remote from client or server in server-client-printer device configuration, e.g. the server does not see the printer
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Managing shopping lists, e.g. compiling or processing purchase lists
- G06Q30/0635—Managing shopping lists, e.g. compiling or processing purchase lists replenishment orders; recurring orders
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Technology Law (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
本说明书实施例提供数据处理方法及系统,其中所述数据处理方法包括:接收数据打印指令,其中,所述数据打印指令中携带有待打印数据的标识信息;根据所述待打印数据的标识信息获取所述待打印数据;确定与所述待打印数据相关联的目标打印模板,其中,所述目标打印模板基于对待处理打印模板进行调整获得;基于所述目标打印模板以及所述待打印数据生成待打印文件,并将所述待打印文件发送至文件打印模块进行打印。从而避免了打印效率较低的问题,提供满足高效率、高频的打印场景下的打印需求的打印能力。
The embodiments of this specification provide a data processing method and system, wherein the data processing method includes: receiving a data printing instruction, wherein the data printing instruction carries identification information of the data to be printed; the to-be-printed data; determine a target print template associated with the to-be-printed data, wherein the target print template is obtained by adjusting the to-be-processed print template; generate a to-be-printed template based on the target print template and the to-be-printed data The file is printed, and the to-be-printed file is sent to the file printing module for printing. Thus, the problem of low printing efficiency is avoided, and printing capabilities that meet the printing requirements in high-efficiency and high-frequency printing scenarios are provided.
Description
技术领域technical field
本说明书实施例涉及计算机技术领域,特别涉及一种数据处理方法。The embodiments of this specification relate to the field of computer technology, and in particular, to a data processing method.
背景技术Background technique
随着互联网技术的不断发展,许多提供互联网服务的服务方,在需要进行数据打印的情况下,都会将需要打印的数据完整的发送给进行数据打印的打印方,例如,在网购场景下,许多商户都会在网购平台上售卖商品,而用户通过网购平台上购买商户售卖的商品后,该网购平台需要将商品购买订单发送给商户进行打印。With the continuous development of Internet technology, many service providers that provide Internet services, when data printing is required, will send the complete data to be printed to the printing party for data printing. For example, in online shopping scenarios, many Merchants will sell goods on the online shopping platform, and after the user purchases the goods sold by the merchant on the online shopping platform, the online shopping platform needs to send the purchase order of the goods to the merchant for printing.
现有技术中,服务方既要提供互联网服务,又要发送需要进行打印的数据,从而导致服务方的打印效率较低,不能满足高效率、高频的打印场景下的打印需求。In the prior art, the service provider not only needs to provide Internet services, but also needs to send data that needs to be printed, so that the printing efficiency of the service provider is low and cannot meet the printing requirements in high-efficiency and high-frequency printing scenarios.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本说明书实施例提供了一种数据处理方法。本说明书一个或者多个实施例同时涉及一种数据处理系统,一种计算设备,一种计算机可读存储介质,一种计算机程序,以解决现有技术中存在的技术缺陷。In view of this, the embodiments of this specification provide a data processing method. One or more embodiments of this specification simultaneously relate to a data processing system, a computing device, a computer-readable storage medium, and a computer program, so as to solve the technical defects existing in the prior art.
根据本说明书实施例的第一方面,提供了一种数据处理方法,包括:According to a first aspect of the embodiments of the present specification, a data processing method is provided, including:
接收数据打印指令,其中,所述数据打印指令中携带有待打印数据的标识信息;receiving a data printing instruction, wherein the data printing instruction carries identification information of the data to be printed;
根据所述待打印数据的标识信息获取所述待打印数据;Acquire the data to be printed according to the identification information of the data to be printed;
确定与所述待打印数据相关联的目标打印模板,其中,所述目标打印模板基于对待处理打印模板进行调整获得;determining a target printing template associated with the data to be printed, wherein the target printing template is obtained by adjusting the printing template to be processed;
基于所述目标打印模板以及所述待打印数据生成待打印文件,并将所述待打印文件发送至文件打印模块进行打印。A to-be-printed file is generated based on the target print template and the to-be-printed data, and the to-be-printed file is sent to a file printing module for printing.
根据本说明书实施例的第二方面,提供了一种数据处理系统,所述系统包括打印处理模块以及文件打印模块,其中,According to a second aspect of the embodiments of the present specification, a data processing system is provided, the system includes a printing processing module and a file printing module, wherein,
所述打印处理模块,被配置为接收数据打印指令,其中,所述数据打印指令中携带有待打印数据的标识信息;根据所述待打印数据的标识信息获取所述待打印数据;确定与所述待打印数据相关联的目标打印模板,其中,所述目标打印模板基于对待处理打印模板进行调整获得;基于所述目标打印模板以及所述待打印数据生成待打印文件,并将所述待打印文件发送至文件打印模块进行打印;The printing processing module is configured to receive a data printing instruction, wherein the data printing instruction carries identification information of the data to be printed; obtain the data to be printed according to the identification information of the data to be printed; A target printing template associated with the data to be printed, wherein the target printing template is obtained by adjusting the printing template to be processed; a document to be printed is generated based on the target printing template and the data to be printed, and the document to be printed is generated Send to the file printing module for printing;
所述文件打印模块,被配置为打印所述待打印文件。The file printing module is configured to print the to-be-printed file.
根据本说明书实施例的第三方面,提供了一种计算设备,包括:According to a third aspect of the embodiments of the present specification, a computing device is provided, including:
存储器和处理器;memory and processor;
所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令,该计算机可执行指令被处理器执行时实现所述数据处理方法的步骤。The memory is used for storing computer-executable instructions, and the processor is used for executing the computer-executable instructions, which implement the steps of the data processing method when the computer-executable instructions are executed by the processor.
根据本说明书实施例的第四方面,提供了一种计算机可读存储介质,其存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现所述数据处理方法的步骤。According to a fourth aspect of the embodiments of the present specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, implements the steps of the data processing method.
根据本说明书实施例的第五方面,提供了一种计算机程序,其中,当所述计算机程序在计算机中执行时,令计算机执行所述数据处理方法的步骤。According to a fifth aspect of the embodiments of the present specification, there is provided a computer program, wherein, when the computer program is executed in a computer, the computer is caused to execute the steps of the data processing method.
本说明书提供的数据处理方法,包括接收数据打印指令,其中,所述数据打印指令中携带有待打印数据的标识信息;根据所述待打印数据的标识信息获取所述待打印数据;确定与所述待打印数据相关联的目标打印模板,其中,所述目标打印模板基于对待处理打印模板进行调整获得;基于所述目标打印模板以及所述待打印数据生成待打印文件,并将所述待打印文件发送至文件打印模块进行打印。The data processing method provided in this specification includes receiving a data printing instruction, wherein the data printing instruction carries identification information of the data to be printed; obtaining the data to be printed according to the identification information of the data to be printed; A target printing template associated with the data to be printed, wherein the target printing template is obtained by adjusting the printing template to be processed; a document to be printed is generated based on the target printing template and the data to be printed, and the document to be printed is generated Send to the file printing module for printing.
具体地,该数据处理方法在接收到数据打印指令的情况下,主动获取待打印数据,并在基于该待打印数据,以及相关联的目标打印模板生成待打印文件后,将该待打印文件发送至文件打印模块进行打印,从而避免了打印效率较低的问题,提供满足高效率、高频的打印场景下的打印需求的打印能力。Specifically, the data processing method actively acquires the data to be printed when receiving a data printing instruction, and sends the to-be-printed file after generating the to-be-printed file based on the to-be-printed data and the associated target printing template Print to the file printing module, thereby avoiding the problem of low printing efficiency, and providing printing capabilities that meet the printing needs of high-efficiency and high-frequency printing scenarios.
附图说明Description of drawings
图1是本说明书一个实施例提供的一种数据处理系统的处理流程示意图;1 is a schematic diagram of a processing flow of a data processing system provided by an embodiment of this specification;
图2是本说明书一个实施例提供的一种数据处理方法的流程图;2 is a flowchart of a data processing method provided by an embodiment of the present specification;
图3是本说明书一个实施例提供的一种数据处理方法的处理过程流程图;Fig. 3 is a processing process flow chart of a data processing method provided by an embodiment of this specification;
图4是本说明书一个实施例提供的一种数据处理系统的结构示意图;4 is a schematic structural diagram of a data processing system provided by an embodiment of this specification;
图5是本说明书一个实施例提供的一种计算设备的结构框图。FIG. 5 is a structural block diagram of a computing device provided by an embodiment of the present specification.
具体实施方式Detailed ways
在下面的描述中阐述了很多具体细节以便于充分理解本说明书。但是本说明书能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本说明书内涵的情况下做类似推广,因此本说明书不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of this specification. However, this specification can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without departing from the connotation of this specification. Therefore, this specification is not limited by the specific implementation disclosed below.
在本说明书一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本说明书一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of this specification is for the purpose of describing a particular embodiment only and is not intended to limit the one or more embodiments of this specification. As used in the specification or embodiments and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used in this specification in one or more embodiments refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本说明书一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It will be understood that although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, a first could be termed a second, and similarly, a second could be termed a first, without departing from the scope of one or more embodiments of this specification. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."
首先,对本说明书一个或多个实施例涉及的名词术语进行解释。First, the terminology involved in one or more embodiments of the present specification is explained.
跨平台安装:指软件可部署在mac、windows、linux等操作系统下安装。Cross-platform installation: refers to the software that can be deployed and installed under operating systems such as mac, windows, and linux.
并发打印:同一个台电脑可同时驱动多台打印机同时打印的能力。Concurrent printing: The same computer can drive multiple printers to print at the same time.
Electron框架:是一种使用传统前端技术(如Nodejs,Javascript,HTML,CSS)开发一个跨平台桌面应用的框架。该桌面应用指的是在Windows、OSX及Linux等操作系统上运行的程序。Electron Framework: It is a framework for developing a cross-platform desktop application using traditional front-end technologies (such as Nodejs, Javascript, HTML, CSS). The desktop application refers to a program that runs on operating systems such as Windows, OSX, and Linux.
WebSocket:是一种在单个TCP连接上进行全双工通信的协议。WebSocket: is a protocol for full-duplex communication over a single TCP connection.
新商场:新零售场景下的商场活动;依托于互联网技术的新型商场运营活动。主要指线下线上活动一体化深度结合物流的零售新模式。New shopping malls: shopping mall activities under the new retail scene; new shopping mall operation activities relying on Internet technology. It mainly refers to a new retail model that integrates offline and online activities and deeply combines logistics.
随着互联网技术的不断发展,许多浏览器提供了基础的打印能力能够执行打印操作,然而对于高效率、高频打印场景的要求下,远远不满足打印的需要,例如,在网购场景下,浏览器所提供的基础的打印能力,并不能够满足高效率、高频打印的需求。With the continuous development of Internet technology, many browsers provide basic printing capabilities to perform printing operations. However, the requirements for high-efficiency and high-frequency printing scenarios are far from meeting the needs of printing. For example, in online shopping scenarios, The basic printing capabilities provided by browsers cannot meet the needs of high-efficiency and high-frequency printing.
基于此,本说明书提出了一种定制化的打印客户端,该打印客户端是专用打印软件;其优点在于,能够大规模的使用,且稳定性较强。但缺点在于:该软件不支持跨平台,仅限于windows操作系统下使用,并且必须配备专用打印机,并且该定制化的打印客户端不支持驱动多台打印机的能力。Based on this, this specification proposes a customized printing client, which is a dedicated printing software; the advantages are that it can be used on a large scale and has strong stability. But the disadvantage is: the software does not support cross-platform, it is only used under the windows operating system, and must be equipped with a dedicated printer, and the customized print client does not support the ability to drive multiple printers.
以及,本说明书提出了另一种是WEB打印控件,该控件支持打印编程接口,其优点在于:简单,稳定性强,并且可自定义编程;但缺点在于:不支持跨平台使用,仅限于windows操作系统下使用,且版本较低、不支持驱动多台打印机的能力。And, this manual proposes another kind of WEB printing control, which supports printing programming interface, its advantages are: simple, strong stability, and can be customized programming; but the disadvantage is: it does not support cross-platform use, only limited to windows It is used under the operating system, and the version is lower and does not support the ability to drive multiple printers.
因此,为了满足打印需求,本说明书实施例中提供了一种数据处理方法,该数据处理方法能够应用于打印处理模块,该打印处理模块可以理解为一款具备高效、高频、可控地操作软件(客户端软件)。通过该客户端软件实现web浏览器中承载互联网服务(例如网购服务)与操作系统打印驱动软件的闭环,可驱动多台打印机同时打印,并且具备跨平台安装打印的能力。Therefore, in order to meet the printing requirements, a data processing method is provided in the embodiments of this specification, and the data processing method can be applied to a printing processing module. The printing processing module can be understood as a high-efficiency, high-frequency, and controllable operation software (client software). The client software implements a closed loop of carrying Internet services (such as online shopping services) and operating system print driver software in a web browser, can drive multiple printers to print at the same time, and has the ability to install and print across platforms.
具体地,在本说明书中,提供了一种数据处理方法,本说明书同时涉及一种数据处理系统,一种计算设备,一种计算机可读存储介质以及一种计算机程序,在下面的实施例中逐一进行详细说明。Specifically, in this specification, a data processing method is provided, and this specification also relates to a data processing system, a computing device, a computer-readable storage medium, and a computer program. In the following embodiments They are explained in detail one by one.
图1示出了根据本说明书一个实施例提供的一种数据处理系统的流程示意图,其中,该数据处理系统的系统框架主要由四个部分构成:web服务侧、打印客户端、服务端以及打印机。具体地,该web服务侧作为整个打印任务的发起方,能够将打印请求发送至客户端软件,其中,该打印请求中携带有待打印订单数据的参数,该参数可以理解为订单号。该客户端作为链接终端(该终端上部署有客户端软件)、打印机的中转处理桥梁,在接收到web服务侧发送的对打印请求后,能够基于该打印请求中携带的订单号,向服务端请求订单数据。该服务端为处理web逻辑的部分,该服务端能够响应于客户端软件发送的请求,将订单数据发送至该客户端软件。Fig. 1 shows a schematic flowchart of a data processing system provided according to an embodiment of the present specification, wherein the system framework of the data processing system is mainly composed of four parts: a web service side, a printing client, a server and a printer . Specifically, as the initiator of the entire print task, the web service side can send a print request to the client software, wherein the print request carries the parameter of the order data to be printed, and the parameter can be understood as the order number. The client terminal acts as a link terminal (the terminal has client software deployed on it) and the transfer processing bridge of the printer. After receiving the print request sent by the web service side, it can send a request to the server terminal based on the order number carried in the print request. Request order data. The server is a part of processing web logic, and the server can send order data to the client software in response to a request sent by the client software.
该客户端软件在接收到订单数据后,将该订单数据渲染到客户端上,使用户感知到订单数据正在执行打印,并且该感知的状态可回传给web服务侧(即web服务端)。After receiving the order data, the client software renders the order data to the client, so that the user perceives that the order data is being printed, and the perceived state can be sent back to the web server (ie, the web server).
之后该客户端软件开始发起打印逻辑,获取打印机的当前状态,并基于该当前状态将打印页面生成的打印任务(处理结果)推送到打印机驱动的队列中,一旦打印机就绪后,自动开始打印并出纸。After that, the client software starts to initiate the printing logic, obtains the current state of the printer, and pushes the print task (processing result) generated by the print page to the queue of the printer driver based on the current state. Once the printer is ready, it will automatically start printing and output. Paper.
本说明书提供的数据处理方法的客户端软件,是采用Electron框架所开发的,从而实现该客户端软件能够支持多个操作系统安装部署,也即是能够支持多个操作系统下使用本软件。其次,在将打印任务发送给打印机时,本说明书提供的数据处理方法,采用的动态并发推送给多个可用打印机队列,具备并发打印的能力,也就是说,一台部署客户端软件的计算机(终端)可以挂载多个打印机同时打印的能力。从方案设计上,允许用户选择多个可用的打印机,并记录其打印的状态;并在进行推送的情况下,通过命令查询获得各个打印机的任务数,使用算法均分地将打印任务分配给各个打印机队列;其本质上是赋予其“负载均衡”能力的过程,使打印机不太“负重”进行工作,避免造成队列阻塞。当总打印数量过多时,客户端软件则会本地缓存数据(待打印文件),并通过分批打印或者均分打印的方式,慢慢稀释打印任务数量。避免了某些打印机驱动超出过渡队列,则会直接阻塞打印机打印的问题。The client software of the data processing method provided in this specification is developed using the Electron framework, so that the client software can support the installation and deployment of multiple operating systems, that is, it can support the use of the software under multiple operating systems. Secondly, when the print task is sent to the printer, the data processing method provided in this manual adopts the dynamic and concurrent push to multiple available printer queues, and has the ability to print concurrently, that is to say, a computer ( terminal) the ability to mount multiple printers to print at the same time. From the scheme design, it allows the user to select multiple available printers and record their printing status; and in the case of push, the number of tasks of each printer is obtained through command query, and the printing task is evenly distributed to each printer using an algorithm. Printer queue; it is essentially a process of giving it a "load balancing" capability, so that the printer is less "loaded" to work and avoid queue blocking. When the total number of prints is too large, the client software will cache the data (files to be printed) locally, and slowly dilute the number of print tasks by printing in batches or equally. Avoid the problem that some printer drivers exceed the transition queue and directly block printer printing.
图2示出了根据本说明书一个实施例提供的一种数据处理方法的流程图,具体包括以下步骤。Fig. 2 shows a flowchart of a data processing method according to an embodiment of the present specification, which specifically includes the following steps.
步骤202:接收数据打印指令,其中,所述数据打印指令中携带有待打印数据的标识信息。Step 202: Receive a data printing instruction, wherein the data printing instruction carries identification information of the data to be printed.
在实际应用中,本说明书提供的数据处理方法,能够应用于对打印操作进行处理的打印处理模块,该打印处理模块可以理解为能够对打印操作进行处理的客户端软件。In practical applications, the data processing method provided in this specification can be applied to a print processing module that processes print operations, and the print processing module can be understood as client software that can process print operations.
相应地,该待打印数据可以理解为需要进行打印的数据。在本说明书提供的数据处理场景应用于不同场景的情况下,该待打印数据也不同。例如,在网购场景下,该待打印数据可以理解订单数据;在银行场景下,该待打印数据可以理解为银行流水账单等。相应地,该标识信息可以理解为唯一标识一个待打印数据的信息,在说明书实施例中对该标识信息不做具体限制;例如,在待打印数据的订单数据的情况下,该标识信息可以理解为订单号;在待打印数据的银行流水账单的情况下,该标识信息可以理解为银行流水账单的编号。相应地,该数据打印指令可以理解为指示打印处理执行打印操作的指令。在实际应用中,该数据打印指令可以是打印请求模块向打印处理模块发送的指令。其中,该打印请求模块可以理解为请求打印处理模块执行打印操作的机构、平台等。例如,该打印请求模块可以理解为上述web服务,该web服务可以理解为网购平台、银行的互联网服务平台等。Correspondingly, the to-be-printed data can be understood as data that needs to be printed. When the data processing scenarios provided in this specification are applied to different scenarios, the data to be printed is also different. For example, in an online shopping scenario, the to-be-printed data can be understood as order data; in a banking scenario, the to-be-printed data can be understood as bank running bills and the like. Correspondingly, the identification information can be understood as information that uniquely identifies a piece of data to be printed, and the identification information is not specifically limited in the embodiments of the description; for example, in the case of order data of the data to be printed, the identification information can be understood is the order number; in the case of the bank statement of the data to be printed, the identification information can be understood as the number of the bank statement. Correspondingly, the data printing instruction can be understood as an instruction instructing the printing process to perform a printing operation. In practical applications, the data print instruction may be an instruction sent by the print request module to the print processing module. The print request module can be understood as a mechanism, a platform, etc. that request the print processing module to perform a print operation. For example, the print request module may be understood as the above-mentioned web service, and the web service may be understood as an online shopping platform, an Internet service platform of a bank, and the like.
具体地,该打印处理模块能够接收到指示其进行打印操作的数据打印指令,其中,该数据打印指令中携带有待打印数据的标识信息。Specifically, the printing processing module can receive a data printing instruction instructing it to perform a printing operation, wherein the data printing instruction carries the identification information of the data to be printed.
下面以数据处理方法在打印订单数据场景的应用,对接收数据打印指令进行说明,其中,该打印处理模块为客户端软件、待打印数据为订单数据、待打印数据的标识信息为订单号。基于此,客户端软件能够接收到指示其进行打印操作的订单打印指令,该订单打印指令中携带有订单数据的订单号。The following describes the application of the data processing method in the print order data scenario, where the print processing module is the client software, the data to be printed is the order data, and the identification information of the data to be printed is the order number. Based on this, the client software can receive an order printing instruction instructing it to perform a printing operation, and the order printing instruction carries the order number of the order data.
在实际应用中,该数据打印指令可以由打印请求模块发送至打印处理模块,从而指示该打印处理模块执行打印操作;而在打印请求模块向打印处理模块发送该数据打印指令的过程中,该打印请求模块需要获取该打印请求模块的当前状态信息,并根据该当前状态信息判断是否向该打印处理模块发送该数据打印指令,从而避免打印处理模块由于未配置完成、未打印完成和/或打印计数过多等问题,导致无法执行针对该待打印数据的打印操作的问题发生,具体实现方式如下。In practical applications, the data print instruction can be sent by the print request module to the print processing module, thereby instructing the print processing module to perform a print operation; and in the process of the print request module sending the data print instruction to the print processing module, the print The request module needs to obtain the current state information of the print request module, and judges whether to send the data print instruction to the print processing module according to the current state information, so as to avoid the print processing module due to unconfigured completion, unprinted completion and/or print count Too many problems, etc., lead to the problem that the printing operation for the to-be-printed data cannot be performed, and the specific implementation is as follows.
所述接收数据打印指令,包括:The received data printing instruction includes:
接收打印请求模块发送的状态获取请求;Receive the status acquisition request sent by the print request module;
响应于所述状态获取请求将当前状态信息发送至所述打印请求模块;sending current state information to the print request module in response to the state acquisition request;
接收所述打印请求模块发送的数据打印指令,其中,所述数据打印指令为所述打印请求模块根据所述当前状态信息所发送的指令。Receive a data print instruction sent by the print request module, wherein the data print instruction is an instruction sent by the print request module according to the current state information.
其中,该状态获取请求可以理解为打印请求模块请求获得打印处理模块的当前状态信息的请求,相应地,该当前状态信息可以理解为表征该打印处理模块的当前运行状态的信息。例如,该当前状态信息可以理解为表征该客户端软件是否安装的信息、该客户端软件的打印进程信息等。The state acquisition request can be understood as a request by the print request module to obtain current state information of the print processing module, and correspondingly, the current state information can be understood as information representing the current operating state of the print processing module. For example, the current state information can be understood as information representing whether the client software is installed, printing process information of the client software, and the like.
具体地,打印请求模块在需要对待打印数据进行打印的过程中,首先向打印处理模块发送针对打印处理模块的当前状态信息的状态获取请求;该打印处理模块在接收到打印请求模块发送的状态获取请求的情况下,响应于该状态获取请求,将其自身的当前状态信息发送至打印请求模块;该打印请求模块在接收到打印处理模块的当前状态信息之后,基于该当前状态信息判断打印处理模块能够执行打印操作的情况下,将携带有该待打印数据的标识信息的数据打印指令发送至打印处理模块,该打印处理模块接收打印请求模块发送的数据打印指令,并基于该数据打印指令执行后续针对该待打印数据的打印操作。Specifically, in the process of printing the data to be printed, the print request module first sends a state acquisition request for the current state information of the print processing module to the print processing module; the print processing module receives the state acquisition request sent by the print request module. In the case of request, in response to the state acquisition request, send its own current state information to the print request module; the print request module, after receiving the current state information of the print processing module, judges the print processing module based on the current state information. In the case where the printing operation can be performed, the data printing instruction carrying the identification information of the data to be printed is sent to the printing processing module, and the printing processing module receives the data printing instruction sent by the printing request module, and executes the follow-up based on the data printing instruction. A print operation for the data to be printed.
沿用上例,其中,打印请求模块为web服务端。基于此,web服务端触发调用逻辑,向客户端软件发送状态获取请求,该客户端软件响应于该状态获取请求,将自身的当前运行状态信息发送至web服务端。该web服务端基于该当前运行状态信息,能够检测该客户端是否还存在未打印完成等问题,其目的是为了判断当前的环境是否符合打印前置准备,以及规避打印计数的情况。Following the above example, the print request module is the web server. Based on this, the web server triggers the calling logic and sends a status acquisition request to the client software, and the client software sends its current running status information to the web server in response to the status acquisition request. Based on the current running status information, the web server can detect whether the client still has problems such as unfinished printing.
而该web服务端在基于当前运行状态信息,确定客户端软件符合打印前置准备的情况下,会将携带有订单号的订单打印指令发送该客户端软件;该客户端软件在接收到web服务端发送的订单打印指令后,能够基于该订单打印指令执行针对订单数据的打印操作。When the web server determines that the client software complies with the pre-printing preparations based on the current operating status information, it will send the order printing instruction carrying the order number to the client software; the client software receives the web service After receiving the order printing instruction sent by the terminal, the printing operation for the order data can be performed based on the order printing instruction.
在实际应用中,该web服务端在打印订单数据的过程中,还会触发调用逻辑,先去检查终端上是否安装有执行打印操作的客户端软件,从而进一步判断当前的环境是否符合打印前置准备。In practical applications, in the process of printing the order data, the web server will also trigger the calling logic to first check whether the client software that performs the printing operation is installed on the terminal, so as to further judge whether the current environment conforms to the printing requirements. Prepare.
步骤204:根据所述待打印数据的标识信息获取所述待打印数据。Step 204: Acquire the data to be printed according to the identification information of the data to be printed.
具体地,打印处理模块在接收到数据打印指令之后,能够基于该数据打印指令中携带有待打印数据的标识信息,获取到需要执行打印操作的待打印处理。从而避免了web服务端既要执行web服务,又要将数据下发至打印处理模块,所导致的处理效率较低的问题,提供满足高效率、高频的打印场景下的打印需求的打印能力。Specifically, after receiving the data printing instruction, the print processing module can acquire the to-be-printed processing that needs to perform the printing operation based on the identification information of the data to be printed carried in the data printing instruction. This avoids the problem of low processing efficiency caused by the web server not only executing web services but also sending data to the print processing module, and provides printing capabilities that meet the printing needs of high-efficiency and high-frequency printing scenarios. .
在本说明书提供的一实施例中,该待打印数据能够从数据提供模块获取,具体地,所述根据所述待打印数据的标识信息获取所述待打印数据,包括:In an embodiment provided in this specification, the data to be printed can be obtained from a data providing module. Specifically, the obtaining the data to be printed according to the identification information of the data to be printed includes:
基于所述待打印数据的标识信息生成数据获取请求,并将所述数据获取请求发送至数据提供模块;Generate a data acquisition request based on the identification information of the data to be printed, and send the data acquisition request to the data providing module;
接收所述数据提供模块响应于所述数据获取请求发送的待打印数据,其中,所述待打印数据为所述数据提供模块基于所述标识信息确定的数据。Receive data to be printed sent by the data providing module in response to the data acquisition request, wherein the data to be printed is data determined by the data providing module based on the identification information.
其中,数据提供模块可以理解为能够提供待打印数据的机构、平台、服务器、设备等,例如,数据处理系统中的服务端。在实际应用中,用户通过web服务端完成商品购买之后,该web服务端会生成用户购买商品的订单数据,并将该订单同步至服务端中。后续由服务端在接收到客户端软件的数据获取请求的情况下,查询订单数据并将该订单数据发送给客户端软件执行打印操作。The data providing module can be understood as an institution, platform, server, device, etc. that can provide data to be printed, for example, a server in a data processing system. In practical applications, after the user completes the purchase of goods through the web server, the web server generates order data for the user's purchased goods, and synchronizes the order to the server. Subsequently, when receiving a data acquisition request from the client software, the server queries the order data and sends the order data to the client software to perform a printing operation.
具体地,打印处理模块在接收到数据打印指令之后,基于该数据打印指令中携带的待打印数据的标识信息,生成数据获取请求,并将该数据获取请求发送至数据提供模块;该数据提供模块在接收到数据获取请求之后,响应于该数据获取请求,获取该数据获取请求中携带的标识信息,并基于该标识信息查询到与该标识信息相匹配的待打印数据,并将该待打印数据发送至该打印处理模块。该打印处理模块接收数据提供模块发送的待打印数据,后续对该待打印数据执行打印操作。Specifically, after receiving the data printing instruction, the print processing module generates a data acquisition request based on the identification information of the data to be printed carried in the data printing instruction, and sends the data acquisition request to the data providing module; the data providing module After receiving the data acquisition request, in response to the data acquisition request, the identification information carried in the data acquisition request is acquired, and based on the identification information, the to-be-printed data matching the identification information is queried, and the to-be-printed data is queried. sent to the print processing module. The print processing module receives the to-be-printed data sent by the data-providing module, and subsequently performs a print operation on the to-be-printed data.
沿用上例,客户端软件在接收到web服务端发送的订单打印指令之后,能够基于该订单打印指令中携带的订单号生成订单数据获取请求,并将该订单数据获取请求发送至服务端;服务端在接收到该订单数据获取请求的情况下,响应于该订单数据获取请求,基于该订单数据获取请求携带的订单号,从自身存储的订单数据中查询与该订单号相匹配的订单数据,并将该订单数据发送至客户端软件;客户端软件在接收到该订单数据后,对该订单数据执行后续的打印操作。Following the above example, after receiving the order printing instruction sent by the web server, the client software can generate an order data acquisition request based on the order number carried in the order printing instruction, and send the order data acquisition request to the server; service When the terminal receives the order data acquisition request, in response to the order data acquisition request, based on the order number carried in the order data acquisition request, the terminal queries the order data that matches the order number from the order data stored by itself, and send the order data to the client software; after receiving the order data, the client software performs subsequent printing operations on the order data.
本说明书提供的实施例中,打印处理模块将基于待打印数据的标识信息生成数据获取请求发送至数据提供模块;并能够接收数据提供模块响应于数据获取请求发送的待打印数据,从而避免了web服务端既要执行web服务,又要将数据下发至打印处理模块,所导致的处理效率较低的问题,提供满足高效率、高频的打印场景下的打印需求的打印能力。In the embodiment provided in this specification, the print processing module generates a data acquisition request based on the identification information of the data to be printed and sends it to the data providing module; and can receive the data to be printed sent by the data providing module in response to the data acquisition request, thereby avoiding the need for web The server not only needs to execute web services, but also needs to send data to the print processing module, which leads to the problem of low processing efficiency, and provides printing capabilities that meet the printing needs of high-efficiency and high-frequency printing scenarios.
进一步地,本说明书一实施例中,在数据提供模块在向打印处理模块发送待打印数据的过程中,为了避免数据泄露的问题,保存数据的安全性,需要对打印处理模块发送的数据获取请求进行验证,在验证通过的情况下,会将待打印数据发送至打印处理模块,例如,在银行流水账单打印场景下,部署在银行终端上的客户端软件,在向提供银行流水数据的服务端发送、针对该银行流水数据的数据获取请求后,该服务端会对该数据获取请求进行验证,验证发出数据获取请求的客户端软件,是否为被授权能够获取银行流水数据的客户端软件。在验证通过的情况下,将该银行流水数据发送至该客户端软件,以使该客户端软件能够执行后续的打印操作,从而避免了数据泄露的问题、保存数据的安全性;具体实现方式如下。Further, in an embodiment of this specification, in the process of sending the data to be printed to the print processing module by the data providing module, in order to avoid the problem of data leakage and preserve the security of the data, it is necessary to obtain a data request sent by the print processing module. Verification, if the verification is passed, the data to be printed will be sent to the print processing module. For example, in the scenario of bank statement printing, the client software deployed on the bank terminal will be sent to the server that provides bank statement data. After sending a data acquisition request for the bank flow data, the server will verify the data acquisition request to verify whether the client software that issued the data acquisition request is the client software authorized to obtain the bank flow data. In the case of passing the verification, the bank flow data is sent to the client software, so that the client software can perform subsequent printing operations, thereby avoiding the problem of data leakage and saving data security; the specific implementation is as follows .
所述根据所述待打印数据的标识信息获取所述待打印数据,包括:The acquiring the data to be printed according to the identification information of the data to be printed includes:
获取待验证信息,以及所述待打印数据的标识信息;Obtain the information to be verified, and the identification information of the data to be printed;
基于所述待验证信息以及所述标识信息生成数据获取请求,并将所述数据获取请求发送至数据提供模块;Generate a data acquisition request based on the to-be-verified information and the identification information, and send the data acquisition request to a data providing module;
接收所述数据提供模块响应于所述数据获取请求,对所述数据获取请求验证通过后,根据所述标识信息确定的待打印数据。Receive the data to be printed determined according to the identification information by the data providing module in response to the data acquisition request after verifying the data acquisition request.
其中,该待验证信息可以理解为表征打印处理模块是否能够获取待打印数据的信息,后续数据提供模块需要基于该待验证信息,对打印处理模块发送的数据获取请求进行验证;例如,该待验证信息可以理解为该打印处理模块被配置的账号信息、打印处理模块被配置通行密钥等。The information to be verified can be understood as information representing whether the print processing module can obtain the data to be printed, and the subsequent data providing module needs to verify the data acquisition request sent by the print processing module based on the information to be verified; The information can be understood as account information configured with the print processing module, access keys configured with the print processing module, and the like.
具体地,打印处理模块能够获取到其配置的待验证信息,以及接收到的数据打印指令中携带的待打印数据的标识信息;基于该待验证信息和标识信息生成数据获取请求,并将该数据获取请求发送至数据提供模块;该数据提供模块响应于接收到的数据获取请求,基于该数据获取请求中携带的待验证信息,对该数据获取请求进行验证;在验证通过后,数据提供模块基于该标识信息查询到与该标识信息相匹配的待打印数据,并将该待打印数据发送至该打印处理模块。该打印处理模块接收数据提供模块发送的待打印数据,后续对该待打印数据执行打印操作。Specifically, the print processing module can obtain the information to be verified configured and the identification information of the data to be printed carried in the received data printing instruction; generate a data acquisition request based on the information to be verified and the identification information, and send the data The acquisition request is sent to the data providing module; the data providing module responds to the received data acquisition request and verifies the data acquisition request based on the information to be verified carried in the data acquisition request; after the verification is passed, the data providing module is based on The identification information finds data to be printed that matches the identification information, and sends the to-be-printed data to the print processing module. The print processing module receives the to-be-printed data sent by the data-providing module, and subsequently performs a print operation on the to-be-printed data.
沿用上例,其中,该待验证信息为客户端软件上登录的账号信息,基于此,客户端软件在接收到web服务端发送的订单打印指令之后,客户端软件能够获取到其自身被登录的账号的账户信息,并基于该订单打印指令中携带的订单号,以及账户信息生成订单数据获取请求,并将该订单数据获取请求发送至服务端;服务端在接收到该订单数据获取请求的情况下,基于该订单数据获取请求中携带的账号信息,验证该客户端软件上登录的账号是否为授权账户。若是,基于该订单数据获取请求携带的订单号,从自身存储的订单数据中查询与该订单号相匹配的订单数据,并将该订单数据发送至客户端软件;客户端软件在接收到该订单数据后,对该订单数据执行后续的打印操作。若否,则向客户端软件发送未授权的通知,以提示使用该客户端的人员获知该客户端没有权限获取订单数据。Following the above example, the information to be verified is the account information logged in the client software. Based on this, after the client software receives the order printing instruction sent by the web server, the client software can obtain its own logged-in information. account information of the account, and generate an order data acquisition request based on the order number carried in the order print instruction and account information, and send the order data acquisition request to the server; the server receives the order data acquisition request Next, based on the account information carried in the order data acquisition request, verify whether the account logged in the client software is an authorized account. If so, based on the order number carried in the order data acquisition request, query the order data that matches the order number from the order data stored by itself, and send the order data to the client software; the client software receives the order After the data is stored, the subsequent printing operations are performed on the order data. If not, an unauthorized notification is sent to the client software to prompt the person using the client to know that the client does not have permission to obtain order data.
步骤206:确定与所述待打印数据相关联的目标打印模板,其中,所述目标打印模板基于对待处理打印模板进行调整获得。Step 206: Determine a target printing template associated with the data to be printed, wherein the target printing template is obtained by adjusting the printing template to be processed.
具体实施过程中,为了保证打印出的订单数据的规整性、格式统一,该打印处理模块在获得待打印数据之后,会为待打印数据确定目标打印模块,后续基于该待打印数据以及目标打印模块生成格式统一的待打印文件,从而保证打印出的订单数据的规整性。基于此,待处理打印模板可以理解为需要进行调整的打印模板。在实际应用中,客户端软件会提供原始打印模板(即待处理打印模板),但该原始打印模板并不能满足不同的个性化需求,不同的商户在打印订单的过程中,需要符合自身需求的打印模板进行打印。因此,为了满足不同商户的个性化需求,可以对待处理打印模板进行调整获得目标打印模板,后续基于该目标打印模板生成满足不同个性化需求的待打印文件,基于此,本说明书一实施例中,所述确定与所述待打印数据相关联的目标打印模板之前,还包括:In the specific implementation process, in order to ensure the regularity and format of the printed order data, after obtaining the data to be printed, the print processing module will determine the target printing module for the data to be printed, and then based on the data to be printed and the target printing module Generate files to be printed in a uniform format, so as to ensure the regularity of the printed order data. Based on this, the print template to be processed can be understood as a print template that needs to be adjusted. In practical applications, the client software will provide the original printing template (that is, the printing template to be processed), but the original printing template cannot meet different personalized needs. Different merchants need to meet their own needs in the process of printing orders. Print the template to print. Therefore, in order to meet the personalized needs of different merchants, the to-be-processed print template can be adjusted to obtain a target print template, and then based on the target print template, a to-be-printed file that meets different personalized needs can be generated. Based on this, in an embodiment of this specification, Before the determining the target printing template associated with the data to be printed, the method further includes:
接收针对待处理打印模板的模板调整请求,其中,所述模板调整请求中携带有模板调整信息;receiving a template adjustment request for a to-be-processed print template, wherein the template adjustment request carries template adjustment information;
基于所述模板调整信息对所述待处理打印模板进行调整,获得目标打印模板。The to-be-processed print template is adjusted based on the template adjustment information to obtain a target print template.
其中,该模板调整请求可以理解为对待处理打印模板进行调整的请求;相应地,该模板调整信息可以理解为对待处理打印模板进行调整的信息。例如,该模板调整信息可以为待处理打印模拟中特定模板元素进行修改、删除、新增等操作的信息。该模板元素可以理解为打印模板中的图片、文本显示区域、默认文字等。基于此,该模板调整信息可以为对待处理打印模板中图片和/或文本显示区域的位置进行调整的信息。或者,该模板调整信息可以为对待处理打印模板中的默认文字,进行修改、删除操作的信息。Wherein, the template adjustment request can be understood as a request for adjusting the print template to be processed; correspondingly, the template adjustment information can be understood as information for adjusting the print template to be processed. For example, the template adjustment information may be information on operations such as modification, deletion, and addition of specific template elements in the to-be-processed printing simulation. The template element can be understood as a picture, text display area, default text, etc. in the print template. Based on this, the template adjustment information may be information for adjusting the position of the image and/or text display area in the print template to be processed. Alternatively, the template adjustment information may be information for modifying or deleting the default text in the to-be-processed print template.
具体地,打印处理模块能够接收到针对待处理打印模板的模板调整请求后,响应于该模板调整请求,基于该模板调整请求中携带的模板调整信息对待处理打印模板进行调整,从而获得目标打印模板,从而满足不同的个性化需求,保证了打印模板的多样性、灵活性。Specifically, after receiving the template adjustment request for the to-be-processed print template, the print processing module can adjust the to-be-processed print template based on the template adjustment information carried in the template adjustment request in response to the template adjustment request, thereby obtaining the target print template , so as to meet different personalized needs and ensure the diversity and flexibility of printing templates.
在本说明书提供的实施例中,该打印处理模块可以具有多个打印模板,在获取到待打印数据的情况下,能够从多个打印模板中选择与该待打印数据相关联的目标打印模板,从而满足不同的个性化需求;具体地,所述确定与所述待打印数据相关联的目标打印模板,包括:In the embodiments provided in this specification, the print processing module may have multiple print templates, and when the data to be printed is acquired, a target print template associated with the to-be-printed data can be selected from the multiple print templates, So as to meet different personalized needs; specifically, the determining of the target printing template associated with the data to be printed includes:
确定所述待打印数据的数据类型信息;determining the data type information of the data to be printed;
基于所述数据类型信息,从待选择打印模板中选择与所述待打印数据相关联的目标打印模板。Based on the data type information, a target print template associated with the to-be-printed data is selected from the to-be-selected print templates.
其中,数据类型信息可以理解为表征待打印数据的类型的信息;例如,在待打印数据为订单数据的情况下,该数据类型信息可以为订单类型;在待打印数据为银行流水数据的情况下,该数据类型信息可以为银行流水类型。Wherein, the data type information can be understood as information representing the type of the data to be printed; for example, when the data to be printed is order data, the data type information can be the order type; when the data to be printed is bank flow data , the data type information can be bank flow type.
具体地,打印处理模块在获取到待打印数据之后,会确定该待打印数据的数据类型信息,并基于数据类型信息从待选择打印模板中,选择与待打印数据相关联的目标打印模板。例如,在数据类型信息为订单类型的情况下,从多个打印模板中选择与订单数据相关联的打印模板。在数据类型信息为银行流水类型的情况下,从多个打印模板中选择与银行流水数据相关联的打印模板。Specifically, after acquiring the to-be-printed data, the print processing module determines the data type information of the to-be-printed data, and selects a target print template associated with the to-be-printed data from the to-be-selected print templates based on the data type information. For example, in a case where the data type information is an order type, a print template associated with the order data is selected from a plurality of print templates. In the case where the data type information is a bank statement type, a print template associated with the bank statement data is selected from a plurality of print templates.
步骤208:基于所述目标打印模板以及所述待打印数据生成待打印文件,并将所述待打印文件发送至文件打印模块进行打印。Step 208: Generate a to-be-printed file based on the target print template and the to-be-printed data, and send the to-be-printed file to a file printing module for printing.
其中,该待打印文件可以理解为需要发送给文件打印模块进行打印的文件;该待打印文件的文件类型可以根据实际应用场景进行设置,本说明书对此不走具体限定。例如,该待打印文件的文件类型可以为Word、PDF、JPG等类型。The to-be-printed file can be understood as a file that needs to be sent to the file printing module for printing; the file type of the to-be-printed file can be set according to the actual application scenario, which is not specifically limited in this specification. For example, the file type of the to-be-printed file may be Word, PDF, JPG and the like.
该文件打印模块可以理解为能够对该待打印文件进行打印的设备,例如,打印机。The file printing module can be understood as a device capable of printing the to-be-printed file, such as a printer.
具体地,打印处理模块在获得待打印数据以及目标打印模板之后,能够将该待打印数据填充至目标打印模板中,从而获得待打印文件,将待打印文件发送至文件打印模块进行打印。在实际应用中,该打印处理模块能够以分批的方式将待打印文件发送至一个或多个文件打印模块,使得该文件打印模块能够分批的对待打印文件进行打印;或者,该打印处理模块能够以均分的方式将待打印文件发送至多个文件打印模块,使得多个打印机能够以平均分配的对待打印文件进行打印。Specifically, after obtaining the to-be-printed data and the target print template, the print processing module can fill the to-be-printed data into the target print template to obtain the to-be-printed file, and send the to-be-printed file to the file printing module for printing. In practical applications, the print processing module can send files to be printed to one or more file printing modules in batches, so that the file printing module can print the files to be printed in batches; or, the print processing module The files to be printed can be sent to multiple file printing modules in an evenly distributed manner, so that multiple printers can print the files to be printed in an evenly distributed manner.
本说明书提供的实施例中,本说明书提供的数据处理方法允许用户选择多个可用的打印机,并记录该打印机的打印状态,在推送打印任务(打印待打印文件的任务)时候,通过命令查询获得各个打印机的任务数,将打印任务分配给各个打印机队列,实现打印机的“负载均衡”,避免造成队列阻塞。当打印机的总打印数量过多,客户端软件则会本地缓存数据(即待打印文件),从而慢慢稀释打印任务数量。避免打印机驱动,超出过渡队列,导致阻塞打印机打印的问题,具体地,本说明书提供的数据处理方法中,所述文件打印模块为至少两个;In the embodiments provided in this specification, the data processing method provided in this specification allows the user to select multiple available printers and record the printing status of the printers. The number of tasks of each printer, and the printing tasks are allocated to each printer queue to achieve "load balancing" of the printers and avoid queue blocking. When the total number of prints of the printer is too large, the client software will cache the data (that is, the files to be printed) locally, thereby slowly diluting the number of print tasks. Avoid the problem of printer driving, exceeding the transition queue, and blocking the printing of the printer. Specifically, in the data processing method provided in this specification, there are at least two file printing modules;
相应地,所述将所述待打印文件发送至文件打印模块进行打印,包括:Correspondingly, the sending the to-be-printed file to the file printing module for printing includes:
获取至少两个文件打印模块中每个文件打印模块的当前状态信息;Obtain the current status information of each file printing module in at least two file printing modules;
基于所述当前状态信息从所述至少两个文件打印模块中,确定目标文件打印模块;Determine a target file printing module from the at least two file printing modules based on the current state information;
将所述待打印文件发送至所述目标文件打印模块进行打印。Sending the to-be-printed file to the target file printing module for printing.
其中,当前状态信息可以理解为表征文件打印模块的当前打印状态的信息,例如,该当前状态信息可以为打印机的打印数量。相应地,在文件打印模块为打印机的情况下,该目标文件打印模块可以理解为多个打印机中能够执行文件打印操作的打印机。在实际应用中,多个打印机中可能会有部分打印机的打印任务较多,导致处于负载的状态;基于此,该客户端软件可以从多个打印方中选择能够执行打印操作的打印机进行打印,避免阻塞打印机打印的问题。Wherein, the current state information may be understood as information representing the current printing state of the file printing module, for example, the current state information may be the printing quantity of the printer. Correspondingly, in the case where the file printing module is a printer, the target file printing module can be understood as a printer capable of performing a file printing operation among multiple printers. In practical applications, some of the multiple printers may have many printing tasks, resulting in a load state; based on this, the client software can select a printer that can perform printing operations from multiple printers to print, Avoid problems that block the printer from printing.
具体地,打印处理模块能够获取至少两个文件打印模块中每个文件打印模块的当前状态信息;基于当前状态信息从至少两个文件打印模块中,确定出能够执行打印任务的目标文件打印模块,并将待打印文件发送至目标文件打印模块进行打印。Specifically, the print processing module can obtain the current state information of each of the at least two file printing modules; based on the current state information, the target file printing module capable of executing the printing task is determined from the at least two file printing modules, And send the file to be printed to the target file printing module for printing.
沿用上例,客户端软件能够获取多个打印机的当前状态信息,并基于每个打印机的当前状态信息,从多个打印机中选择未负载的、能够执行打印任务的打印机,之后客户端软件开始发起打印逻辑,将在客户端打印页面生成的打印任务(携带有订单文件的任务),推送到打印机驱动的队列中,一旦打印机就绪后,就自动开始打印并出纸,从而完成针对订单文件的打印工作。Following the above example, the client software can obtain the current status information of multiple printers, and based on the current status information of each printer, select unloaded printers that can perform printing tasks from multiple printers, and then the client software starts to initiate The printing logic pushes the printing tasks (tasks carrying the order files) generated on the client's print page to the queue driven by the printer. Once the printer is ready, it will automatically start printing and output paper, thus completing the printing of the order files. Work.
需要说明的是,打印机中被推送打印任务的队列会有一个打印状态的返回,该打印状态可以为表征打印成功与否的值,客户端软件在接收到打印状态的情况下,将打印状态反馈到终端渲染界面(例如终端屏幕),从而提示用户打印成功。It should be noted that the queue of the pushed print task in the printer will return a print status, and the print status can be a value indicating whether the printing is successful or not. When the client software receives the print status, it will feedback the print status. Render the interface (such as the terminal screen) to the terminal, thereby prompting the user that the printing is successful.
在本说明书一实施例中,所述将所述待打印文件发送至所述目标文件打印模块进行打印,包括:In an embodiment of this specification, the sending the to-be-printed file to the target file printing module for printing includes:
将所述待打印文件分批发送至所述目标文件打印模块进行打印。Sending the to-be-printed files to the target file printing module in batches for printing.
沿用上例,客户端软件在将订单文件发送给打印机时,可以采用的动态并发的方式推送给多个可用打印机队列,具备并发打印的能力。而在采用的动态并发的方式推送打印任务的过程中,可以采用分批的方式将打印任务分批推送给多个可用打印机队列,从而实现灵活的推送打印任务,避免了打印机负载的问题。Following the above example, when the client software sends the order file to the printer, it can push it to multiple available printer queues in a dynamic and concurrent manner, with the ability to print concurrently. In the process of pushing printing tasks in a dynamic concurrent manner, the printing tasks can be pushed to multiple available printer queues in batches in batches, thereby realizing flexible pushing of printing tasks and avoiding the problem of printer load.
进一步地,本说明书提供的一实施例中,所述将所述待打印文件发送至所述目标文件打印模块进行打印,包括:Further, in an embodiment provided in this specification, the sending the to-be-printed file to the target file printing module for printing includes:
将所述待打印文件平均分配至多个所述目标文件打印模块,以使多个所述目标文件打印模块进行打印。The to-be-printed files are evenly distributed to a plurality of the target file printing modules, so that the plurality of target file printing modules print.
沿用上例,在采用的动态并发的方式推送打印任务的过程中,可以采用均分的方式将多个打印任务,平均推送给多个可用打印机,从而实现灵活的推送打印任务,避免了打印机负载的问题。Following the above example, in the process of pushing print tasks in a dynamic concurrent manner, multiple print tasks can be evenly pushed to multiple available printers in an evenly divided manner, so as to achieve flexible push print tasks and avoid printer load. The problem.
本说明书提供的数据处理方法,在接收到数据打印指令的情况下,主动获取待打印数据,并在基于该待打印数据,以及相关联的目标打印模板生成待打印文件后,将该待打印文件发送至文件打印模块进行打印,从而避免了打印效率较低的问题,提供满足高效率、高频的打印场景下的打印需求的打印能力。The data processing method provided in this specification actively obtains the data to be printed in the case of receiving a data printing instruction, and generates the to-be-printed file based on the to-be-printed data and the associated target printing template, and then generates the to-be-printed file. It is sent to the file printing module for printing, thereby avoiding the problem of low printing efficiency, and providing printing capabilities that meet the printing needs of high-efficiency and high-frequency printing scenarios.
下述结合附图3,以本说明书提供的数据处理方法在商户打印订单数据场景的应用为例,对所述数据处理方法进行进一步说明。其中,图3示出了本说明书一个实施例提供的一种数据处理方法的处理过程流程图,参见图3,在网购场景中,用户通过web服务端(如手机购物软件)购买商户所售卖的商品的情况下,web服务端需要向商品发送针对订单数据的打印指令,以指示商户打印该订单数据,并基于打印后的订单数据进行商品售卖的后续操作,如商品打包、商品发货等。The data processing method will be further described below by taking the application of the data processing method provided in this specification in a scenario where a merchant prints order data as an example with reference to FIG. 3 . Among them, FIG. 3 shows a process flow chart of a data processing method provided by an embodiment of this specification. Referring to FIG. 3, in an online shopping scenario, a user purchases a product sold by a merchant through a web server (such as mobile shopping software). In the case of a commodity, the web server needs to send a print instruction for the order data to the commodity to instruct the merchant to print the order data, and perform subsequent operations for commodity sales, such as commodity packaging, commodity delivery, etc., based on the printed order data.
基于此,在打印订单数据的流程中,首先是在web服务端触发调用逻辑,获取客户端软件的当前运行状态;基于该当前运行状态检查“客户端是否准备”,若是,则继续检查该“客户端是否在工作”,若否,则向商户提示未准备该客户端,并结束打印流程。其中,客户端是否准备可以为检查商品的是否安装有客户端软件;该客户端是否在工作可以为检查客户端软件是否还未打印完成。需要说明的是,客户端即客户端软件。Based on this, in the process of printing order data, the calling logic is first triggered on the web server to obtain the current running status of the client software; based on the current running status, check "whether the client is ready", if so, continue to check the " Whether the client is working", if not, it will prompt the merchant that the client is not ready, and end the printing process. Wherein, whether the client is ready can be checking whether the client software is installed on the commodity; whether the client is working can be checking whether the client software has not been printed. It should be noted that the client is the client software.
在检查该客户端是否在工作的过程中,若是,表示该客户端软件还未打印完成,则“提示在工作中”,告知商户客户端软件未打印完成。若否,web服务端则向客户端发送订单打印指令。该客户端接收并处理该订单打印指令。In the process of checking whether the client is working, if it is, it means that the client software has not finished printing, and it will “prompt at work” to inform the merchant that the client software has not finished printing. If not, the web server sends an order printing instruction to the client. The client receives and processes the order print instruction.
在实际应用中,web服务端检查是否安装客户端、以及客户端是否还未打印完成等基本检查,其目的是为了判断当前的环境是否符合打印前置准备,以及规避打印计数的情况。而本说明书提供的数据处理方法中的客户端,是基于开源Electron框架开发的,独立于web服务侧并具备系统底层感知能力。由于其框架适用于web开发者同样的技术栈,所以开发者能够合理切换身份进行研发,且能够支持多个操作系统安装部署,支持多个操作系统下使用该客户端软件。In practical applications, the web server checks basic checks such as whether the client is installed and whether the client has not finished printing. The purpose is to determine whether the current environment meets the pre-printing preparations and avoid the situation of printing counts. The client in the data processing method provided in this specification is developed based on the open source Electron framework, is independent of the web service side, and has the ability to perceive the bottom layer of the system. Since its framework is suitable for the same technology stack as web developers, developers can switch identities reasonably for research and development, and can support the installation and deployment of multiple operating systems, and support the use of the client software under multiple operating systems.
此外,在web到客户端过程的通信是通过WebSocket实时通信的,web服务端会向客户端发送必要的打印特征值,比如订单打印指令中携带的订单号。因此,客户端处理订单打印指令的过程中,客户端在接收到订单号之后,客户端立刻向商户展示接收过来的数据渲染,并开始处理数据,根据订单号生成订单数据获取请求,且将该订单数据获取请求发送至服务端。In addition, the communication in the process from web to client is real-time communication through WebSocket, and the web server will send necessary printing feature values to the client, such as the order number carried in the order printing instruction. Therefore, in the process of processing the order printing instruction by the client, after the client receives the order number, the client immediately displays the received data rendering to the merchant, starts processing the data, generates an order data acquisition request according to the order number, and executes the The order data acquisition request is sent to the server.
在接收到该订单数据获取请求后,服务器处理该订单数据获取请求;服务端先验证该请求是否授权,也即是,该请求是否经过授权的账号发起;若是,则将数据处理结果,以及订单数据返回给客户端,该数据处理结果可以是表征验证通过的结果。After receiving the order data acquisition request, the server processes the order data acquisition request; the server first verifies whether the request is authorized, that is, whether the request is initiated by an authorized account; The data is returned to the client, and the data processing result can be the result of the verification being passed.
而该客户端在接受到数据处理结果后,则确定处理成功(即订单数据获取成功),将数据处理结果渲染到客户端中向用户展示。After receiving the data processing result, the client determines that the processing is successful (that is, the order data is obtained successfully), and renders the data processing result to the client for display to the user.
若否,则确定请求不合法,即该请求不是经过授权的账号发起,服务端会向商户提示未授权,并直接终止掉流程;其中,向商户提示未授权的方式可以为,服务器则将数据处理结果返回给客户端,该数据处理结果可以是表征验证不通过的结果。If not, it is determined that the request is illegal, that is, the request is not initiated by an authorized account, and the server will prompt the merchant to be unauthorized and terminate the process directly. The processing result is returned to the client, and the data processing result may be a result indicating that the verification fails.
而该客户端在接受到数据处理结果后,则确定处理失败(即订单数据获取未成功),并将数据处理结果渲染到客户端中向用户展示。After receiving the data processing result, the client determines that the processing fails (that is, the order data acquisition is unsuccessful), and renders the data processing result to the client for display to the user.
也即是说,在客户端向服务端获取订单数据的过程中,服务端经过一系列的逻辑判断后,返回数据到客户端,其中,该数据包含处理成功或失败的状态数据。That is to say, in the process that the client obtains the order data from the server, the server returns data to the client after a series of logical judgments, wherein the data includes the status data of successful or failed processing.
在客户端获得订单数据后,该客户端开始发起打印逻辑;首先,该客户端会确定与订单数据相适配的订单数据打印模板;并将该订单数据填充至订单数据打印模板中,从而获得订单文件。需要说明的是,该订单数据打印模板可以根据不同商户的需求进行调整,从而获得满足不同商户个性化需求的打印模板。After the client obtains the order data, the client starts to initiate the printing logic; first, the client determines the order data printing template adapted to the order data; and fills the order data into the order data printing template, thereby obtaining order file. It should be noted that the order data printing template can be adjusted according to the needs of different merchants, so as to obtain a printing template that meets the personalized needs of different merchants.
其次,客户端在获得订单文件之后,调用窗体打印,通过窗体将订单文件展示给商户,并基于该订单文件生成打印任务。之后,该客户方将打印页面生成的打印任务,推送给多个打印机的打印驱动队列中,一旦打印机就绪后,自动开始打印并出纸。同时,推送的队列会有一个打印的状态返回,该状态可以理解为表征打印成功或失败的打印结果;客户端在接收到状态返回后,客户端将此值(打印结果)反馈到客户端的渲染界面中(即图3中的客户端渲染结果),提示商户打印成功。Secondly, after obtaining the order file, the client calls the form to print, displays the order file to the merchant through the form, and generates a print task based on the order file. After that, the client side pushes the print task generated by the print page to the print driver queues of multiple printers, and once the printer is ready, it automatically starts printing and outputs paper. At the same time, the pushed queue will return a print status, which can be understood as the print result representing the success or failure of printing; after the client receives the status return, the client feeds this value (print result) to the client's rendering In the interface (that is, the client-side rendering result in Figure 3), it prompts the merchant to print successfully.
本说明书提供的数据处理方法中,提供了一种基于跨平台并发驱动打印的软件开发,其中,该软件可跨平台安装,可应用于windows、mac、Linux操作系统下安装,并且可驱动多台打印机同时打印。从而在应用于新商场打印场景下,该软件可驱动多台打印机同时打印,且具备跨平台安装打印的能力。进一步解决了在高效率、高频场景下,无法满足打印需要的问题。In the data processing method provided in this specification, a software development based on cross-platform concurrent drive printing is provided, wherein the software can be installed across platforms, can be installed under Windows, Mac, and Linux operating systems, and can drive multiple The printer prints at the same time. Therefore, in the new shopping mall printing scenario, the software can drive multiple printers to print at the same time, and has the ability to install and print across platforms. It further solves the problem that printing needs cannot be met in high-efficiency and high-frequency scenarios.
与上述方法实施例相对应,本说明书还提供了数据处理实施例,图4示出了本说明书一个实施例提供的一种数据处理系统的结构示意图。如图4所示,所述系统包括打印处理模块402以及文件打印模块404,其中,Corresponding to the foregoing method embodiments, this specification also provides a data processing embodiment, and FIG. 4 shows a schematic structural diagram of a data processing system provided by an embodiment of this specification. As shown in FIG. 4, the system includes a print processing module 402 and a file printing module 404, wherein,
所述打印处理模块402,被配置为接收数据打印指令,其中,所述数据打印指令中携带有待打印数据的标识信息;根据所述待打印数据的标识信息获取所述待打印数据;确定与所述待打印数据相关联的目标打印模板,其中,所述目标打印模板基于对待处理打印模板进行调整获得;基于所述目标打印模板以及所述待打印数据生成待打印文件,并将所述待打印文件发送至文件打印模块404进行打印;The printing processing module 402 is configured to receive a data printing instruction, wherein the data printing instruction carries identification information of the data to be printed; obtain the data to be printed according to the identification information of the data to be printed; The target printing template associated with the to-be-printed data, wherein the target printing template is obtained by adjusting the to-be-processed printing template; the to-be-printed file is generated based on the target printing template and the to-be-printed data, and the to-be-printed The file is sent to the file printing module 404 for printing;
所述文件打印模块404,被配置为打印所述待打印文件。The file printing module 404 is configured to print the to-be-printed file.
可选地,所述系统包括数据提供模块,相应地,所述打印处理模块402,还被配置为:Optionally, the system includes a data providing module, and accordingly, the print processing module 402 is further configured to:
基于所述待打印数据的标识信息生成数据获取请求,并将所述数据获取请求发送至数据提供模块;Generate a data acquisition request based on the identification information of the data to be printed, and send the data acquisition request to the data providing module;
接收所述数据提供模块响应于所述数据获取请求发送的待打印数据,其中,所述待打印数据为所述数据提供模块基于所述标识信息确定的数据。Receive data to be printed sent by the data providing module in response to the data acquisition request, wherein the data to be printed is data determined by the data providing module based on the identification information.
可选地,所述打印处理模块402,还被配置为:Optionally, the print processing module 402 is further configured to:
获取待验证信息,以及所述待打印数据的标识信息;Obtain the information to be verified, and the identification information of the data to be printed;
基于所述待验证信息以及所述标识信息生成数据获取请求,并将所述数据获取请求发送至数据提供模块;Generate a data acquisition request based on the to-be-verified information and the identification information, and send the data acquisition request to a data providing module;
接收所述数据提供模块响应于所述数据获取请求,对所述数据获取请求验证通过后,根据所述标识信息确定的待打印数据。Receive the data to be printed determined according to the identification information by the data providing module in response to the data acquisition request after verifying the data acquisition request.
可选地,所述打印处理模块402,还被配置为:Optionally, the print processing module 402 is further configured to:
接收针对待处理打印模板的模板调整请求,其中,所述模板调整请求中携带有模板调整信息;receiving a template adjustment request for a to-be-processed print template, wherein the template adjustment request carries template adjustment information;
基于所述模板调整信息对所述待处理打印模板进行调整,获得目标打印模板。The to-be-processed print template is adjusted based on the template adjustment information to obtain a target print template.
可选地,所述打印处理模块402,还被配置为:Optionally, the print processing module 402 is further configured to:
确定所述待打印数据的数据类型信息;determining the data type information of the data to be printed;
基于所述数据类型信息,从待选择打印模板中选择与所述待打印数据相关联的目标打印模板。Based on the data type information, a target print template associated with the to-be-printed data is selected from the to-be-selected print templates.
可选地,所述系统包括打印请求模块,相应地,所述打印处理模块402,还被配置为:Optionally, the system includes a print request module, and accordingly, the print processing module 402 is further configured to:
接收打印请求模块发送的状态获取请求;Receive the status acquisition request sent by the print request module;
响应于所述状态获取请求将当前状态信息发送至所述打印请求模块;sending current state information to the print request module in response to the state acquisition request;
接收所述打印请求模块发送的数据打印指令,其中,所述数据打印指令为所述打印请求模块根据所述当前状态信息所发送的指令。Receive a data print instruction sent by the print request module, wherein the data print instruction is an instruction sent by the print request module according to the current state information.
可选地,所述文件打印模块404为至少两个;Optionally, there are at least two document printing modules 404;
相应地,所述打印处理模块402,还被配置为:Correspondingly, the print processing module 402 is further configured to:
获取至少两个文件打印模块中每个文件打印模块的当前状态信息;Obtain the current status information of each file printing module in at least two file printing modules;
基于所述当前状态信息从所述至少两个文件打印模块中,确定目标文件打印模块;Determine a target file printing module from the at least two file printing modules based on the current state information;
将所述待打印文件发送至所述目标文件打印模块进行打印。Sending the to-be-printed file to the target file printing module for printing.
可选地,所述打印处理模块402,还被配置为:Optionally, the print processing module 402 is further configured to:
将所述待打印文件分批发送至所述目标文件打印模块进行打印。Sending the to-be-printed files to the target file printing module in batches for printing.
可选地,所述系统包括打印请求模块,相应地,所述打印处理模块402,还被配置为:Optionally, the system includes a print request module, and accordingly, the print processing module 402 is further configured to:
将所述待打印文件平均分配至多个所述目标文件打印模块,以使多个所述目标文件打印模块进行打印。The to-be-printed files are evenly distributed to a plurality of the target file printing modules, so that the plurality of target file printing modules print.
本说明书提供的数据处理系统中,打印处理模块接收到数据打印指令的情况下,主动获取待打印数据,并在基于该待打印数据,以及相关联的目标打印模板生成待打印文件后,将该待打印文件发送至文件打印模块进行打印,从而避免了打印效率较低的问题,提供满足高效率、高频的打印场景下的打印需求的打印能力。In the data processing system provided in this specification, when the print processing module receives the data printing instruction, it actively obtains the data to be printed, and after generating the to-be-printed file based on the to-be-printed data and the associated target print template, the The file to be printed is sent to the file printing module for printing, thereby avoiding the problem of low printing efficiency, and providing printing capabilities that meet the printing requirements in high-efficiency and high-frequency printing scenarios.
上述为本实施例的一种数据处理系统的示意性方案。需要说明的是,该数据处理系统的技术方案与上述的数据处理方法的技术方案属于同一构思,数据处理系统的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。The above is a schematic solution of a data processing system of this embodiment. It should be noted that the technical solution of the data processing system and the technical solution of the above-mentioned data processing method belong to the same concept, and the details that are not described in detail in the technical solution of the data processing system can be referred to the description of the technical solution of the above-mentioned data processing method. .
图5示出了根据本说明书一个实施例提供的一种计算设备500的结构框图。该计算设备500的部件包括但不限于存储器510和处理器520。处理器520与存储器510通过总线530相连接,数据库550用于保存数据。FIG. 5 shows a structural block diagram of a computing device 500 provided according to an embodiment of the present specification. Components of the computing device 500 include, but are not limited to, memory 510 and processor 520 . The processor 520 is connected with the memory 510 through the bus 530, and the database 550 is used for saving data.
计算设备500还包括接入设备540,接入设备540使得计算设备500能够经由一个或多个网络560通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备540可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。Computing device 500 also includes access device 540 that enables computing device 500 to communicate via one or more networks 560 . Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. Access device 540 may include one or more of any type of network interface (eg, network interface card (NIC)), wired or wireless, such as IEEE 802.11 wireless local area network (WLAN) wireless interface, World Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and the like.
在本说明书的一个实施例中,计算设备500的上述部件以及图5中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图5所示的计算设备结构框图仅仅是出于示例的目的,而不是对本说明书范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。In one embodiment of the present specification, the above-described components of computing device 500 and other components not shown in FIG. 5 may also be connected to each other, such as through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 5 is only for the purpose of example, rather than limiting the scope of this specification. Those skilled in the art can add or replace other components as required.
计算设备500可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备500还可以是移动式或静止式的服务器。Computing device 500 may be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (eg, tablets, personal digital assistants, laptops, notebook computers, netbooks, etc.), mobile phones (eg, smartphones ), wearable computing devices (eg, smart watches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. Computing device 500 may also be a mobile or stationary server.
其中,处理器520用于执行如下计算机可执行指令,该计算机可执行指令被处理器520执行时实现上述数据处理方法的步骤。The processor 520 is configured to execute the following computer-executable instructions, and when the computer-executable instructions are executed by the processor 520, implement the steps of the above data processing method.
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的数据处理方法的技术方案属于同一构思,计算设备的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of the computing device and the technical solution of the above-mentioned data processing method belong to the same concept. For details not described in detail in the technical solution of the computing device, refer to the description of the technical solution of the above-mentioned data processing method.
本说明书一实施例还提供一种计算机可读存储介质,其存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现上述数据处理方法的步骤。An embodiment of the present specification further provides a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, implements the steps of the above data processing method.
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的数据处理方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。The above is a schematic solution of a computer-readable storage medium of this embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the above-mentioned data processing method belong to the same concept, and the details not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the above-mentioned data processing method.
本说明书一实施例还提供一种计算机程序,其中,当所述计算机程序在计算机中执行时,令计算机执行上述数据处理方法的步骤。An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above data processing method.
上述为本实施例的一种计算机程序的示意性方案。需要说明的是,该计算机程序的技术方案与上述的数据处理方法的技术方案属于同一构思,计算机程序的技术方案未详细描述的细节内容,均可以参见上述数据处理方法的技术方案的描述。The above is a schematic solution of a computer program of this embodiment. It should be noted that the technical solution of the computer program and the technical solution of the above-mentioned data processing method belong to the same concept, and the details that are not described in detail in the technical solution of the computer program can be referred to the description of the technical solution of the above-mentioned data processing method.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
所述计算机指令包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The computer instructions include computer program code, which may be in source code form, object code form, an executable file, some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Electric carrier signals and telecommunication signals are not included.
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本说明书实施例并不受所描述的动作顺序的限制,因为依据本说明书实施例,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本说明书实施例所必须的。It should be noted that, for the convenience of description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the embodiments of this specification are not subject to the described action sequences. Limitation, because certain steps may be performed in other orders or simultaneously according to embodiments of the present specification. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily all necessary for the embodiments of the specification.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
以上公开的本说明书优选实施例只是用于帮助阐述本说明书。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本说明书实施例的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本说明书实施例的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本说明书。本说明书仅受权利要求书及其全部范围和等效物的限制。The preferred embodiments of the present specification disclosed above are provided only to aid in the elaboration of the present specification. Alternative embodiments are not intended to exhaust all details, nor do they limit the invention to only the described embodiments. Obviously, many modifications and changes can be made in accordance with the contents of the embodiments of the present specification. These embodiments are selected and described in this specification to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can well understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210259172.5A CN114610249A (en) | 2022-03-16 | 2022-03-16 | Data processing method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210259172.5A CN114610249A (en) | 2022-03-16 | 2022-03-16 | Data processing method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114610249A true CN114610249A (en) | 2022-06-10 |
Family
ID=81862359
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210259172.5A Pending CN114610249A (en) | 2022-03-16 | 2022-03-16 | Data processing method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114610249A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115454363A (en) * | 2022-09-14 | 2022-12-09 | 北京木屋时代科技有限公司 | Instruction implementation method and device, storage medium and electronic device |
| CN115817049A (en) * | 2022-12-01 | 2023-03-21 | 广东中南钢铁股份有限公司 | Hot rolled steel product label printing method and system |
| CN117608504A (en) * | 2024-01-23 | 2024-02-27 | 南京功夫豆信息科技有限公司 | Intelligent printing method and system combined with user demand analysis |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002304270A (en) * | 2001-04-06 | 2002-10-18 | Canon Inc | Printing system, print management device, method, computer program, and computer-readable storage medium |
| CN102467356A (en) * | 2010-11-16 | 2012-05-23 | 佳能株式会社 | Print relay system and print relay system control method |
| CN110347355A (en) * | 2019-07-08 | 2019-10-18 | 武汉诚信卓远科技发展有限公司 | Cloud Method of printing, equipment and computer readable storage medium |
| CN111176590A (en) * | 2019-12-27 | 2020-05-19 | 深圳市微购科技有限公司 | Adaptation-based printing method, device, apparatus and computer-readable storage medium |
-
2022
- 2022-03-16 CN CN202210259172.5A patent/CN114610249A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002304270A (en) * | 2001-04-06 | 2002-10-18 | Canon Inc | Printing system, print management device, method, computer program, and computer-readable storage medium |
| CN102467356A (en) * | 2010-11-16 | 2012-05-23 | 佳能株式会社 | Print relay system and print relay system control method |
| CN110347355A (en) * | 2019-07-08 | 2019-10-18 | 武汉诚信卓远科技发展有限公司 | Cloud Method of printing, equipment and computer readable storage medium |
| CN111176590A (en) * | 2019-12-27 | 2020-05-19 | 深圳市微购科技有限公司 | Adaptation-based printing method, device, apparatus and computer-readable storage medium |
Non-Patent Citations (2)
| Title |
|---|
| 孙江涛: "《平面设计四合一教程》", 31 December 2000, 中国对外翻译出版公司, pages: 184 - 185 * |
| 邱力军: "《新编计算机基础与应用》", 31 August 2002, 西安:第四军医大学出版社, pages: 122 - 125 * |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115454363A (en) * | 2022-09-14 | 2022-12-09 | 北京木屋时代科技有限公司 | Instruction implementation method and device, storage medium and electronic device |
| CN115817049A (en) * | 2022-12-01 | 2023-03-21 | 广东中南钢铁股份有限公司 | Hot rolled steel product label printing method and system |
| CN117608504A (en) * | 2024-01-23 | 2024-02-27 | 南京功夫豆信息科技有限公司 | Intelligent printing method and system combined with user demand analysis |
| CN117608504B (en) * | 2024-01-23 | 2024-03-29 | 南京功夫豆信息科技有限公司 | Intelligent printing method and system combined with user demand analysis |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114610249A (en) | Data processing method and system | |
| US10620890B2 (en) | Terminal device and printer | |
| US9887742B2 (en) | Communication device | |
| US20140002845A1 (en) | Secure printing in a cloud-based print system | |
| US9971557B2 (en) | Information processing apparatus, control method, and storage medium | |
| KR20140079397A (en) | Roving printing in a cloud-based print service | |
| US9183477B2 (en) | Printing apparatus, method for controlling the same, and storage medium | |
| EP2699023A1 (en) | Near Field Communication Device | |
| CN111143031A (en) | A method and device for changing the capacity of a virtual machine | |
| US8351060B2 (en) | Method of and apparatus to print image directly | |
| CN104378526B (en) | Image processing system and control enter the method for its energy-saving mode | |
| US10846033B2 (en) | Print server, control method, and storage medium | |
| US20140240751A1 (en) | Printing apparatus, method for controlling the same, and storage medium | |
| CN115175183A (en) | Authentication method and authentication device based on 5G message | |
| CN114416160A (en) | Universal service interface preheating method and device | |
| US12073127B2 (en) | System and method of controlling system | |
| US9946498B2 (en) | Information processing apparatus and control method by request processing module operating on information processing apparatus | |
| US20160078469A1 (en) | Application Purchasing Method, And Terminal | |
| US20200341695A1 (en) | Information processing system, mobile terminal, and storage medium | |
| JP2018132881A (en) | Communication system and print mediation server and computer program for terminal device | |
| JP2010050966A (en) | System and method for cloning setting of document processor | |
| JP6822189B2 (en) | Printer | |
| US11836406B1 (en) | Information processing apparatus, printing apparatus, printing system, medium, and printing control method | |
| CN116450063A (en) | A format conversion method, device, system and electronic equipment | |
| US20160154612A1 (en) | Information processing apparatus, control method, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |