CN116069269A - Custom receipt printing method, device, equipment and storage medium - Google Patents

Custom receipt printing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116069269A
CN116069269A CN202211611411.5A CN202211611411A CN116069269A CN 116069269 A CN116069269 A CN 116069269A CN 202211611411 A CN202211611411 A CN 202211611411A CN 116069269 A CN116069269 A CN 116069269A
Authority
CN
China
Prior art keywords
target
receipt
template
printing
custom
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
Application number
CN202211611411.5A
Other languages
Chinese (zh)
Inventor
申冬亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211611411.5A priority Critical patent/CN116069269A/en
Publication of CN116069269A publication Critical patent/CN116069269A/en
Pending legal-status Critical Current

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/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
    • 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
    • G06F3/1257Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/20Point-of-sale [POS] network systems
    • G06Q20/209Specified transaction journal output feature, e.g. printed receipt or voice output

Abstract

After a business system completes an order, the business information and transaction data contained in an order message of the business system are called, a target receipt template and a target printing terminal are determined based on the business information, a parameter value in the transaction data is replaced with a preset parameter value of a parameter field to be replaced in the target receipt template through identifying the parameter field to be replaced in the target receipt template, a target content receipt file is generated, and the target content receipt file is sent to the target printing terminal to realize printing, so that the technical problems that even if the order is completed by different businesses, the types of businesses needing to be docked by the acquirer are various, the properties of the businesses of the different businesses are different, the corresponding transaction receipt template also has different types, and the existing cloud printing receipt technology is difficult to meet the diversified requirements are solved.

Description

Custom receipt printing method, device, equipment and storage medium
Technical Field
The present disclosure relates to the technical field of financial science and technology, and in particular, to a method, an apparatus, a device, and a storage medium for printing custom tickets.
Background
At present, a technical scheme for realizing cloud printing of the receipt exists, but the existing receipt cloud printing aims at merchant transaction receipt printing under a specific single scene, a receipt printing template is fixed, and if the receipt printing template needs to be modified, an equipment end application program is required to re-develop a test and the like.
For order receiving institutions, merchants that need to dock are of a wide variety, for example: catering, gas stations, hospitals, retail shops and the like, the properties of merchants of different merchants are different, the corresponding transaction receipt templates also have different patterns, and the conventional cloud printing receipt technology is difficult to meet diversified requirements.
Disclosure of Invention
The application provides a self-defined receipt printing method, device, equipment and storage medium, which solve the technical problems that the types of merchants with the receipt and the mechanism to be abutted are various, the properties of the merchants of different merchants are different, the corresponding transaction receipt templates can also have different patterns, and the prior cloud printing receipt technology is difficult to meet the diversified requirements.
In view of this, a first aspect of the present application provides a method for printing a custom receipt, the method comprising:
s1, after a merchant system completes an order, invoking merchant information and transaction data contained in an order message of the merchant system;
s2, determining a target receipt template and a target printing terminal according to the merchant information;
s3, identifying parameter fields to be replaced in the target receipt template, matching the parameter fields to be replaced with the transaction data, and replacing the parameter actual values in the transaction data with the corresponding preset parameter values of the parameter fields to be replaced in the target receipt template to generate a target content receipt file;
and S4, sending the target content ticket file to the target printing terminal, so that the target printing terminal prints the target content ticket file.
Optionally, the step S1 specifically includes:
and monitoring a message queue corresponding to the merchant system, and when the order message exists in the message queue, consuming the order message from the message queue in sequence, and calling merchant information and transaction data contained in the order message.
Optionally, before the step S1, the method further includes:
s01, constructing a target receipt template, wherein the target receipt template comprises a parameter field to be replaced and a corresponding preset parameter value;
s02, associating the target receipt template with merchant information.
Optionally, after the step S02, the method further includes:
receiving a template modification instruction, wherein the template modification instruction carries the updated target receipt template and the merchant information associated with the target receipt template;
and updating the target receipt template according to the template modification instruction.
Optionally, before the step S1, the method further includes:
and associating the target printing terminal with the merchant information.
A second aspect of the present application provides a custom receipt printing device, the device comprising:
the system comprises a calling unit, a transaction unit and a transaction unit, wherein the calling unit is used for calling merchant information and transaction data contained in an order message of a merchant system after the merchant system completes an order;
the determining unit is used for determining a target receipt template and a target printing terminal according to the merchant information;
the processing unit is used for identifying parameter fields to be replaced in the target receipt template, matching the parameter fields to be replaced with the transaction data, replacing the parameter actual values in the transaction data with the corresponding preset parameter values of the parameter fields to be replaced in the target receipt template, and generating a target content receipt file;
and the sending unit is used for sending the target content ticket file to the target printing terminal so that the target printing terminal prints the target content ticket file.
Optionally, the calling unit is specifically configured to:
and monitoring a message queue corresponding to the merchant system, and when the order message exists in the message queue, consuming the order message from the message queue in sequence, and calling merchant information and transaction data contained in the order message.
Optionally, the method further comprises:
the construction unit is used for constructing a target receipt template, wherein the target receipt template comprises a parameter field to be replaced and a corresponding preset parameter value;
and the first association unit is used for associating the target receipt template with merchant information.
A third aspect of the present application provides a custom receipt printing apparatus, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the steps of the method for printing a custom receipt according to the first aspect described above according to instructions in the program code.
A fourth aspect of the present application provides a computer readable storage medium for storing program code for performing the method of the first aspect described above.
From the above technical solutions, the embodiments of the present application have the following advantages:
in the application, after a business system completes an order, the business information and transaction data contained in an order message of the business system are called, a target receipt template and a target printing terminal are determined based on the business information, and a parameter actual value in the transaction data is replaced by a preset parameter value of a parameter field to be replaced in the target receipt template through identifying the parameter field to be replaced in the target receipt template, so that a target content receipt file is generated, and the target content receipt file is sent to the target printing terminal to realize printing.
Drawings
FIG. 1 is a flow chart of a first method of custom receipt printing in an embodiment of the present application;
FIG. 2 is a flow chart of a second method of custom receipt printing in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a custom receipt printing device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a custom receipt printing device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The application designs a self-defined receipt printing method, device, equipment and storage medium, which solve the technical problems that the types of merchants with the receipt and the mechanism to be abutted are various, the properties of the merchants of different merchants are different, the corresponding transaction receipt templates can also have different patterns, and the prior cloud printing receipt technology is difficult to meet the diversified requirements.
For ease of understanding, referring to fig. 1, fig. 1 is a flowchart of a first method of custom receipt printing method according to an embodiment of the present application, and as shown in fig. 1, specifically:
s1, after a merchant system completes an order, invoking merchant information and transaction data contained in an order message of the merchant system;
the step S1 specifically comprises the following steps:
and monitoring a message queue corresponding to the merchant system, and when the order information exists in the message queue, consuming the order information from the message queue in sequence and calling merchant information and transaction data contained in the order information.
It should be noted that, after the merchant system completes an order, merchant information and transaction data contained in the order message of the merchant system may be invoked.
Preferably, a message queue means is adopted, and the generated order message is sent to the message queue for queuing after the merchant system completes an order by monitoring the message queue corresponding to the merchant system.
And the order information in the message queue is monitored, and the order information can be consumed from the message queue in sequence so as to call the merchant information and the transaction data contained in the order information.
The adoption of the message queue can avoid the problem that the interface of the merchant system fails or crashes under the condition of large data volume, and the asynchronous processing mode can enable the merchant system to be more stable.
S2, determining a target receipt template and a target printing terminal according to merchant information;
it should be noted that, the merchant information may include different forms of content such as a merchant number, a merchant ID, etc., and mainly shows which merchant the order is completed by.
Different merchants associate different target receipt templates and target printing terminals, and the association relation between the merchant information and the target receipt templates and the association relation between the merchant information and the target printing terminals can be searched from the database according to the acquired merchant information, so that the target receipt templates customized by the merchants and the target printing terminals used by the merchants are positioned.
S3, identifying parameter fields to be replaced in the target receipt template, matching the parameter fields to be replaced with the transaction data, replacing the actual values of the parameters in the transaction data with the corresponding preset parameter values of the parameter fields to be replaced in the target receipt template, and generating a target content receipt file;
it should be noted that, the parameter field to be replaced, such as the transaction amount, in the target ticket template is identified, and then the parameter field to be replaced is matched with the transaction data, that is, a parameter field of the transaction amount will also exist in the transaction data.
After the matching is successful, the parameter value of the transaction amount parameter field in the transaction data, for example, 50 yuan, can be replaced with the preset parameter value corresponding to the parameter field to be replaced in the target receipt template, so that the target content receipt file is generated.
It will be appreciated that the target ticket template may contain a plurality of parameter fields to be replaced, only by matching with the parameter fields of the transaction data.
It may be further understood that the parameter field to be replaced in the target ticket template may not completely coincide with the parameter field in the transaction data, and then the corresponding matching may be further performed by creating a mapping relationship between the parameter field to be replaced in the target ticket template and the parameter field in the transaction data.
S4, the target content receipt file is sent to the target printing terminal, so that the target printing terminal prints the target content receipt file.
Further, referring to fig. 2, fig. 2 is a flowchart of a second method of the custom receipt printing method according to the embodiment of the present application, as shown in fig. 2, before step S1, further includes:
s01, constructing a target receipt template, wherein the target receipt template comprises a parameter field to be replaced and a corresponding preset parameter value;
s02, associating the target receipt template with merchant information.
It should be noted that, for merchants who have never created the target ticket template, the target ticket template can be created in a self-defined manner, and the content format and style of the target ticket template can be determined according to their own requirements.
Further, after step S02, the method further includes:
s03, receiving a template modification instruction, wherein the template modification instruction carries updated target receipt templates and merchant information associated with the target receipt templates;
s04, updating the target receipt template according to the template modification instruction.
It should be noted that, the merchant may change according to its own needs, for example, the business scene, and the situation of advertisement information display needs to be added in the target ticket template, so as to update the target ticket template.
Further, before step S1, the method further includes:
and associating the target printing terminal with the merchant information.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a custom receipt printing device according to an embodiment of the present application, and as shown in fig. 3, specifically:
a retrieving unit 301, configured to retrieve merchant information and transaction data included in an order message of the merchant system after the merchant system completes an order;
a determining unit 302, configured to determine a target receipt template and a target printing terminal according to merchant information;
the processing unit 303 is configured to identify a parameter field to be replaced in the target ticket template, match the parameter field to be replaced with the transaction data, replace a parameter actual value in the transaction data with a parameter value to be replaced in the target ticket template, and generate a target content ticket file;
and a transmitting unit 304 for transmitting the target content ticket file to the target printing terminal so that the target printing terminal prints the target content ticket file.
Further, the retrieving unit 301 is specifically configured to:
and monitoring a message queue corresponding to the merchant system, and when the order information exists in the message queue, consuming the order information from the message queue in sequence and calling merchant information and transaction data contained in the order information.
Further, the method further comprises the following steps:
a construction unit 305, configured to construct a target ticket template, where the target ticket template includes a parameter field to be replaced and a corresponding preset parameter value;
a first association unit 306, configured to associate the target ticket template with the merchant information.
Further, the method further comprises the following steps:
a receiving unit 307, configured to receive a template modification instruction, where the template modification instruction carries an updated target receipt template and merchant information associated with the target receipt template;
an updating unit 308, configured to update the target ticket template according to the template modification instruction.
Further, the method further comprises the following steps:
and a second association unit 309 for associating the target printing terminal with the merchant information.
The embodiment of the present application further provides another custom receipt printing device, as shown in fig. 4, for convenience of explanation, only the portions related to the embodiment of the present application are shown, and specific technical details are not disclosed, please refer to the method portion of the embodiment of the present application. The terminal can be any terminal equipment including a mobile phone, a tablet personal computer, a personal digital assistant (English full name: personal Digital Assistant, english abbreviation: PDA), a Sales terminal (English full name: point of Sales, english abbreviation: POS), a vehicle-mounted computer and the like, taking the mobile phone as an example of the terminal:
fig. 4 is a block diagram showing a part of a structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 4, the mobile phone includes: radio Frequency (RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuit 1060, wireless fidelity (wireless fidelity, wiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
The following describes the components of the mobile phone in detail with reference to fig. 4:
the RF circuit 1010 may be used for receiving and transmitting signals during a message or a call, and particularly, after receiving downlink information of a base station, the signal is processed by the processor 1080; in addition, the data of the design uplink is sent to the base station. Generally, RF circuitry 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (English full name: low Noise Amplifier, english abbreviation: LNA), a duplexer, and the like. In addition, the RF circuitry 1010 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (english: global System of Mobile communication, english: GSM), general packet radio service (english: general Packet Radio Service, GPRS), code division multiple access (english: code Division Multiple Access, english: CDMA), wideband code division multiple access (english: wideband Code Division Multiple Access, english: WCDMA), long term evolution (english: long Term Evolution, english: LTE), email, short message service (english: short Messaging Service, SMS), and the like.
The memory 1020 may be used to store software programs and modules that the processor 1080 performs various functional applications and data processing of the handset by executing the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 1020 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state memory device.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the handset. In particular, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 1031 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 1031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 1080 and can receive commands from the processor 1080 and execute them. Further, the touch panel 1031 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a track ball, a mouse, a joystick, etc.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041, and alternatively, the display panel 1041 may be configured in the form of a liquid crystal display (english full name: liquid Crystal Display, acronym: LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1031 may overlay the display panel 1041, and when the touch panel 1031 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 1080 to determine a type of touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in fig. 4, the touch panel 1031 and the display panel 1041 are two independent components for implementing the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for applications of recognizing the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the handset are not described in detail herein.
Audio circuitry 1060, a speaker 1061, and a microphone 1062 may provide an audio interface between a user and a cell phone. Audio circuit 1060 may transmit the received electrical signal after audio data conversion to speaker 1061 for conversion by speaker 1061 into an audio signal output; on the other hand, microphone 1062 converts the collected sound signals into electrical signals, which are received by audio circuit 1060 and converted into audio data, which are processed by audio data output processor 1080 for transmission to, for example, another cell phone via RF circuit 1010 or for output to memory 1020 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 1070, so that wireless broadband Internet access is provided for the user. Although fig. 4 shows a WiFi module 1070, it is understood that it does not belong to the necessary constitution of the handset, and can be omitted entirely as required within the scope of not changing the essence of the invention.
Processor 1080 is the control center of the handset, connects the various parts of the entire handset using various interfaces and lines, and performs various functions and processes of the handset by running or executing software programs and/or modules stored in memory 1020, and invoking data stored in memory 1020, thereby performing overall monitoring of the handset. Optionally, processor 1080 may include one or more processing units; preferably, processor 1080 may integrate an application processor primarily handling operating systems, user interfaces, applications, etc., with a modem processor primarily handling wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset further includes a power source 1090 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 1080 by a power management system, such as to provide for managing charging, discharging, and power consumption by the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In the embodiment of the present application, the processor 1080 included in the terminal further has the following functions:
s1, after a merchant system completes an order, invoking merchant information and transaction data contained in an order message of the merchant system;
s2, determining a target receipt template and a target printing terminal according to merchant information;
s3, identifying parameter fields to be replaced in the target receipt template, matching the parameter fields to be replaced with the transaction data, replacing the actual values of the parameters in the transaction data with the corresponding preset parameter values of the parameter fields to be replaced in the target receipt template, and generating a target content receipt file;
s4, the target content receipt file is sent to the target printing terminal, so that the target printing terminal prints the target content receipt file.
The present application also provides a computer readable storage medium storing program code for executing any one of the foregoing custom receipt printing methods of the respective embodiments.
In the embodiment of the application, after a business system completes an order, the business information and the transaction data contained in the order information of the business system are called, a target receipt template and a target printing terminal are determined based on the business information, the parameter actual value in the transaction data is replaced by identifying the parameter field to be replaced in the target receipt template, the preset parameter value of the parameter field to be replaced in the target receipt template is generated, and the target content receipt file is sent to the target printing terminal to realize printing.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The terms "first," "second," "third," "fourth," and the like in the description of the present application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A custom receipt printing method, comprising:
s1, after a merchant system completes an order, invoking merchant information and transaction data contained in an order message of the merchant system;
s2, determining a target receipt template and a target printing terminal according to the merchant information;
s3, identifying parameter fields to be replaced in the target receipt template, matching the parameter fields to be replaced with the transaction data, and replacing the parameter actual values in the transaction data with the corresponding preset parameter values of the parameter fields to be replaced in the target receipt template to generate a target content receipt file;
and S4, sending the target content ticket file to the target printing terminal, so that the target printing terminal prints the target content ticket file.
2. The method for printing a custom receipt according to claim 1, wherein the step S1 specifically includes:
and monitoring a message queue corresponding to the merchant system, and when the order message exists in the message queue, consuming the order message from the message queue in sequence, and calling merchant information and transaction data contained in the order message.
3. The method for printing a custom receipt according to claim 1, wherein the step S1 is preceded by:
s01, constructing a target receipt template, wherein the target receipt template comprises a parameter field to be replaced and a corresponding preset parameter value;
s02, associating the target receipt template with merchant information.
4. The method for printing a custom receipt according to claim 3, wherein the step S02 further comprises:
receiving a template modification instruction, wherein the template modification instruction carries the updated target receipt template and the merchant information associated with the target receipt template;
and updating the target receipt template according to the template modification instruction.
5. The method for printing a custom receipt according to claim 1, wherein the step S1 is preceded by:
and associating the target printing terminal with the merchant information.
6. A custom receipt printing apparatus, comprising:
the system comprises a calling unit, a transaction unit and a transaction unit, wherein the calling unit is used for calling merchant information and transaction data contained in an order message of a merchant system after the merchant system completes an order;
the determining unit is used for determining a target receipt template and a target printing terminal according to the merchant information;
the processing unit is used for identifying parameter fields to be replaced in the target receipt template, matching the parameter fields to be replaced with the transaction data, replacing the parameter actual values in the transaction data with the corresponding preset parameter values of the parameter fields to be replaced in the target receipt template, and generating a target content receipt file;
and the sending unit is used for sending the target content ticket file to the target printing terminal so that the target printing terminal prints the target content ticket file.
7. The custom receipt printing device according to claim 6, wherein the invoking unit is specifically configured to:
and monitoring a message queue corresponding to the merchant system, and when the order message exists in the message queue, consuming the order message from the message queue in sequence, and calling merchant information and transaction data contained in the order message.
8. The custom receipt printing device of claim 6, further comprising:
the construction unit is used for constructing a target receipt template, wherein the target receipt template comprises a parameter field to be replaced and a corresponding preset parameter value;
and the first association unit is used for associating the target receipt template with merchant information.
9. A custom receipt printing apparatus, the apparatus comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the custom receipt printing method of any of claims 1-5 according to instructions in the program code.
10. A computer readable storage medium for storing program code for performing the custom receipt printing method of any of claims 1-5.
CN202211611411.5A 2022-12-14 2022-12-14 Custom receipt printing method, device, equipment and storage medium Pending CN116069269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211611411.5A CN116069269A (en) 2022-12-14 2022-12-14 Custom receipt printing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211611411.5A CN116069269A (en) 2022-12-14 2022-12-14 Custom receipt printing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116069269A true CN116069269A (en) 2023-05-05

Family

ID=86170798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211611411.5A Pending CN116069269A (en) 2022-12-14 2022-12-14 Custom receipt printing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116069269A (en)

Similar Documents

Publication Publication Date Title
CN106303070B (en) notification message prompting method and device and mobile terminal
CN106681860B (en) A kind of data back up method and data backup device
CN110049187B (en) Display method and terminal equipment
CN110597793A (en) Data management method and device, electronic equipment and computer readable storage medium
US20140372930A1 (en) Method and device for displaying a list view through a sliding operation
CN106534288A (en) Data transmission method and mobile terminal
CN116303085A (en) Test reason analysis method, device, equipment and storage medium
CN115794654A (en) Test case distribution processing method, system, equipment and storage medium
CN116069269A (en) Custom receipt printing method, device, equipment and storage medium
CN109799994B (en) Terminal component generation method and device
CN110809234A (en) Figure category identification method and terminal equipment
CN112667868A (en) Data detection method and device
CN116382945A (en) Card making processing method, system, equipment and computer readable storage medium
CN116681438A (en) Custom generation method, device, equipment and storage medium for collection interface
CN116303060A (en) ESB call request processing method, device, system, equipment and storage medium
CN117539460A (en) Data set editing processing method and system
CN115544549A (en) Log desensitization processing method, device, equipment and storage medium
CN116737761A (en) Asynchronous reconciliation processing method, device, equipment and storage medium
CN116303086A (en) End-to-end testing method, configuration method, device, equipment and storage medium
CN116340695A (en) Solving method, device, equipment and storage medium for limiting theoretical model
CN115775183A (en) Transaction information pushing method, device, equipment and storage medium
CN117807132A (en) Distributed database histogram creation method, device, equipment and storage medium
CN117688085A (en) Distributed database switching method, device, system, equipment and storage medium
CN117011023A (en) Full link regression data management method, device, equipment and storage medium
CN106445482B (en) Display control method and device

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