Receipt content dynamic binding and solidifying method
The collection data of different channels is dynamically bound to the target back template, which solves the problem that existing technology cannot meet the requirements of different channels of different channels of data acquisition, and realizes the flexibility and efficiency of generating single -single generation.
Patent Information
- Application Number
- CN202411243021.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-01-28
AI Technical Summary
The existing return template development method cannot meet the needs of collecting data from large quantities of different channels, because the data fields and forms of different channels are different, and separate templates and interfaces are required.
By obtaining the collection data of the target channel, determine the target back template, and query its corresponding preset data binding relationship table to determine the binding relationship between the field and the target channel data involved in the target. Dynamic binding data To generate a return order.
With the need to develop single templates and interfaces alone, to meet the collection needs of different channels of different channels, and reduce the workload of R & D personnel.
Smart Images

Figure CN119379430A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to a method for dynamically binding and solidifying receipt content. Background Art
[0002] A bank receipt is a proof of transaction record provided by the bank to its customers. It is usually issued automatically by the bank after completing transactions such as deposits, withdrawals, and transfers.
[0003] At present, when generating receipts, the data fields involved in the existing receipt templates are usually fixed, and receipt templates and receipt generation interfaces need to be developed separately for different channels. However, banks have a large number of different channels of data collection and receipt connection requirements, and the data fields and forms of different collection sources are different. The existing separate development method cannot meet the needs of collecting large quantities of data from different channels. Summary of the invention
[0004] In view of this, the present application provides a method for dynamically binding and solidifying receipt content, the main purpose of which is to meet the needs of collecting large quantities of data from different channels.
[0005] According to the first aspect of the present application, a method for dynamically binding and solidifying receipt content is provided, the method comprising:
[0006] Obtain acquisition data from target channels;
[0007] Determine a target receipt template according to the business type corresponding to the collected data of the target channel;
[0008] Querying the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, wherein the preset data binding relationship table corresponding to the target receipt template records the binding relationship between the fields involved in the target receipt template and the collected data of the different channels;
[0009] According to the target binding relationship, the collected data of the target channel is dynamically bound to the target receipt template to generate a receipt.
[0010] According to a second aspect of the present application, a device for dynamically binding and solidifying receipt content is provided, the device comprising:
[0011] An acquisition unit, used to acquire the collection data of the target channel;
[0012] A determination unit, configured to determine a target receipt template according to a business type corresponding to the collected data of the target channel;
[0013] A query unit, used for querying the preset data binding relationship table corresponding to the target receipt template, and determining the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, wherein the preset data binding relationship table corresponding to the target receipt template records the binding relationship between the fields involved in the target receipt template and the collected data of the different channels;
[0014] The binding unit is used to dynamically bind the collected data of the target channel to the target receipt template according to the target binding relationship to generate a receipt.
[0015] According to a third aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned method for dynamically binding and solidifying receipt content is implemented.
[0016] According to the fourth aspect of the present application, an electronic device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned method for dynamically binding and solidifying receipt content when executing the program.
[0017] By means of the above technical solution, the present application provides a method for dynamically binding and solidifying the content of a receipt, which determines the target receipt template and queries the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, and can dynamically bind the collected data to the target receipt template to generate a receipt. That is, the present application can bind the fields involved in the target receipt template with the collected data of different channels through the preset data binding relationship table. When generating a receipt, the content of the collected data of different channels can be directly loaded according to the binding relationship to generate a receipt. Through this receipt generation method, the present application can avoid the development of separate receipt templates and receipt generation interfaces for different channels, thereby meeting the needs of collecting large quantities of data from different channels.
[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0020] Figure 1A schematic diagram of a process for dynamically binding and solidifying receipt content provided by an embodiment of the present application is shown;
[0021] Figure 2 A schematic diagram of a process for dynamically binding and solidifying receipt content provided by an embodiment of the present application is shown;
[0022] Figure 3 The overall process diagram of data binding and data solidification provided by the embodiment of the present application is shown;
[0023] Figure 4 A schematic diagram of the structure of a device for dynamically binding and solidifying receipt content provided by an embodiment of the present application is shown;
[0024] Figure 5 A schematic diagram of the structure of another receipt content dynamic binding and solidification device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.
[0026] The existing independent development method cannot meet the needs of collecting large amounts of data from different channels.
[0027] In order to solve the above problems, the embodiment of the present invention provides a method for dynamically binding and solidifying receipt content, such as Figure 1 As shown, the method includes:
[0028] Step 101: Obtain collection data of the target channel.
[0029] The target channel is at least one of the following channels: national settlement, online banking, mobile banking, ATM, POS, etc. The collected data specifically includes account name, account number, account type, account status, affiliated bank, transaction amount, currency type, transaction currency, counterparty account name, counterparty account number, counterparty bank, handling fee amount, handling fee type, etc.
[0030] The embodiment of the present invention is mainly applicable to scenarios where receipts are generated for large quantities of data from different channels. The execution subject of the embodiment of the present invention is a device or equipment capable of generating receipts, such as a server.
[0031] For the embodiment of the present invention, the collected data of different channels can be monitored in a message queue manner. When the collected data of a target channel among different channels is monitored, the collected data of the target channel is recorded in a database.
[0032] Specifically, the receipt generation system can monitor the le_hkedm_queue queue through the message queue (MQ). Each channel sends data to the receipt generation system through this queue. When the receiver monitoring interface of the receipt generation system obtains the collected data of the target channel in each channel, it uses the handlerMessage function to record the collected data completely into the database. After that, the integrity of the collected data is checked, and the system will automatically query the transaction system to supplement the missing content.
[0033] Step 102: Determine a target receipt template according to the business type corresponding to the collected data of the target channel.
[0034] Among them, business types include transfer in, transfer out, account opening, account closing, etc.
[0035] For the embodiment of the present invention, different business types correspond to different receipt templates. The business type involved in the transaction can be learned based on the collected data of the target channel, and then the target receipt template corresponding to the business type is obtained from multiple receipt templates, such as obtaining a transfer-in receipt template for a transfer-in transaction and obtaining an account opening receipt template for an account opening transaction.
[0036] Step 103: query the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel.
[0037] Among them, the preset data binding relationship table corresponding to the target receipt template records the binding relationship between the fields involved in the target receipt template and the collected data of the different channels.
[0038] The preset data binding relationship table may specifically be a mapping_info table.
[0039] For the embodiment of the present invention, before the receipt is generated, a binding is made between the fields involved in the target receipt template and the fields involved in the collected data of different channels, so as to generate a preset data binding relationship table corresponding to the target receipt template. During the process of formally collecting data and generating receipts, the preset data binding relationship table corresponding to the target receipt template is queried to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel.
[0040] For example, the fields involved in the collected data of the mobile banking channel are A, B and C, and the field involved in the target receipt template is D. By querying the preset data binding relationship table of the target receipt template, it is determined that field D involved in the target receipt template has a target binding relationship with field B involved in the collected data of the mobile banking channel. For another example, the fields involved in the collected data of the online banking channel are B, C and E, and the field involved in the target receipt template is D. By querying the preset data binding relationship table of the target receipt template, it is determined that field D involved in the target receipt template has a target binding relationship with field C involved in the collected data of the online banking channel.
[0041] The embodiment of the present invention can avoid developing templates and interfaces separately for different channels by binding the fields involved in the target receipt template with the fields involved in the collected data of different channels, thereby reducing the workload of R&D personnel and meeting the needs of collecting large quantities of data from different channels.
[0042] Step 104: According to the target binding relationship, dynamically bind the collected data of the target channel to the target receipt template to generate a receipt.
[0043] For the embodiment of the present invention, in order to generate a receipt, step 104 specifically includes: loading the target binding relationship into the MAP set in the form of a key-value pair; traversing the collected data of the target channel to determine the real value corresponding to the collected data field in the MAP set; mapping the real value to the target receipt template to generate a receipt.
[0044] Specifically, after determining the target binding relationship according to the preset data binding relationship table (mapping_info table), based on the target binding relationship, the fields involved in the target receipt template and the corresponding fields involved in the target channel's collected data are loaded into the MAP set in the form of key-value pairs, that is, the content of the MAP set is <fields involved in the target receipt template, corresponding fields involved in the target channel's collected data>, for example, field D involved in the target receipt template and field C involved in the online banking channel's collected data have a target binding relationship, and the corresponding content in the MAP set is <field D involved in the target receipt template, field C involved in the online banking channel's collected data>. Through this key-value pair format, the matching of the fields involved in the target receipt template and the collected data is completed.
[0045] Furthermore, in the exportPdfCommon function, the collected data of MQ is traversed, and the real value of the collected data of MQ is found according to the collected data field in the MAP set, and then the real value is mapped to the column field of the receipt, thereby completing the dynamic binding of the collected data. After dynamic binding, the column fields of the target receipt template have corresponding real values, and the receipt PDF can be automatically generated through basic tools such as Fanruan, ireport, or freemarker.
[0046] The embodiment of the present invention provides a method for dynamically binding and solidifying the content of a receipt, which determines the target receipt template and queries the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, and can dynamically bind the collected data to the target receipt template to generate a receipt. That is, the embodiment of the present invention can bind the fields involved in the target receipt template with the collected data of different channels through the preset data binding relationship table. When generating a receipt, the content of the collected data of different channels can be directly loaded according to the binding relationship to generate a receipt. The embodiment of the present invention can avoid the development of separate receipt templates and receipt generation interfaces for different channels through this receipt generation method, thereby meeting the needs of collecting large quantities of data from different channels.
[0047] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the implementation of this embodiment, this embodiment also provides another method for dynamically binding and solidifying receipt content, such as Figure 2 As shown, the method includes:
[0048] Step 201: Obtain receipt templates under different business types and a binding relationship configuration table corresponding to the receipt templates.
[0049] Among them, the binding relationship configuration table corresponding to the receipt template is configured with a mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of different channels.
[0050] For the embodiment of the present invention, before formally collecting data and generating a receipt template, it is necessary to bind the fields involved in the receipt template under each business type with the fields involved in the collected data of different channels. When binding, the receipt template corresponding to each business type uploaded and the binding relationship configuration table corresponding to the receipt template can be received through the TemplateService002 interface. The binding relationship configuration table can be in the form of excel, word, text, etc.
[0051] Step 202: parse the content of the binding relationship configuration table to obtain a mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of the different channels.
[0052] For the embodiment of the present invention, after obtaining the uploaded binding relationship configuration table, it needs to be parsed. For this process, step 202 specifically includes: uploading the binding relationship configuration table to a temporary directory; verifying the binding relationship configuration table under the temporary directory; if the binding relationship configuration table passes the verification, parsing the binding relationship configuration table using a preset parsing tool to read the mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of the different channels.
[0053] The preset parsing tool may be an Apache poi tool or other parsing tools, which is not specifically limited in the embodiment of the present invention.
[0054] Specifically, if the content in the binding relationship configuration table is correct, after verification, the Apache poi tool is used to parse and load the binding relationship configuration table to read the mapping relationship between the fields involved in the receipt template configured in each row and the fields involved in the collected data of different channels.
[0055] Step 203: Based on the mapping relationship, generate a preset data binding relationship table corresponding to the receipt template.
[0056] For the embodiment of the present invention, based on the mapping relationship, the fields involved in the receipt template are dynamically bound to the corresponding fields involved in the collected data from different channels to obtain the binding relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data from different channels; the binding relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data from different channels is written into the preset data binding relationship table corresponding to the receipt template.
[0057] Specifically, the binding relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of different channels is written into the mapping_info database table (preset data binding relationship table), thereby completing the loading of the data binding relationship.
[0058] The embodiment of the present invention can avoid developing templates and interfaces separately for different channels by binding the fields involved in the receipt templates under each business type with the fields involved in the collected data of different channels, thereby reducing the workload of R&D personnel and meeting the needs of collecting large quantities of data from different channels. In addition, since the content of the receipt template in this solution is dynamically loaded and does not need to be developed independently for each channel, it is only necessary to manage the relationship between the template fields and the collected data, which is more convenient to manage.
[0059] Step 204: Obtain collection data of the target channel.
[0060] For the embodiment of the present invention, when data collection is formally carried out, the collected data of the different channels can be monitored in a message queue manner. When the collected data of the target channel among the different channels is monitored, the collected data of the target channel is recorded in the database.
[0061] Step 205: Determine a target receipt template according to the business type corresponding to the collected data of the target channel.
[0062] For the embodiment of the present invention, different business types correspond to different receipt templates. The business type involved in the transaction can be learned based on the collected data of the target channel, and then the target receipt template corresponding to the business type is obtained from multiple receipt templates, such as obtaining a transfer-in receipt template for a transfer-in transaction and obtaining an account opening receipt template for an account opening transaction.
[0063] Step 206: query the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel.
[0064] Among them, the preset data binding relationship table corresponding to the target receipt template records the binding relationship between the fields involved in the target receipt template and the collected data of the different channels.
[0065] For the embodiment of the present invention, in the process of generating a receipt, the preset data binding relationship table corresponding to the target receipt template is queried to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel.
[0066] Step 207: According to the target binding relationship, dynamically bind the collected data of the target channel to the target receipt template to generate a receipt.
[0067] For the embodiment of the present invention, while generating the receipt, the dynamic binding data of each receipt can also be fully mirrored and solidified, such as Figure 3 For this process, step 207 specifically includes: adding the receipt information corresponding to the receipt in the preset receipt master table; determining the initial version data mirror of the receipt based on the fields involved in the receipt and the real value; and recording the initial version data mirror in the preset receipt mirror table of the database.
[0068] Specifically, when the receipt is generated, the function edmSolidify is called for solidification, that is, the fields involved in the receipt and the corresponding real values are combined into the initial version of the data mirror. After the receipt is generated, a receipt information can be added to the preset receipt master table. The receipt information can specifically include the name of the receipt, the transaction code, the path of the receipt PDF generation and other attributes. At the same time, the initial version of the data mirror is recorded in the preset receipt mirror table edm_solid_data of the database. In this way, the receipt name in the preset receipt master table can be used to query the multiple versions of the data mirror corresponding to the receipt in the preset receipt mirror table.
[0069] In some embodiments, the embodiments of the present invention can also modify the receipt, such as Figure 3 As shown. For this process, the method also includes: receiving a receipt modification request, the receipt modification request carrying receipt identification information; determining a target receipt based on the receipt identification information, and displaying a current version data image corresponding to the target receipt; receiving modification information for the current version data image, and generating a latest version data image corresponding to the target receipt based on the modification information.
[0070] The receipt identification information may specifically include the receipt name, transaction code, etc.
[0071] Specifically, by calling the EdmMainInfoService001 interface, you can query the data image corresponding to the receipt and display the current latest version of the data image. By calling the EdmMainInfoService002 interface, you can modify the data image. After the information is modified, a latest version of the data image will be generated, and the previous version of the data image will be saved.
[0072] The embodiment of the present invention can query the content and modification information of multiple versions of the receipt data mirror, so as to achieve the function of tracing the historical version of the receipt. In addition, the embodiment of the present invention can also print and download the PDF of the historical version of a receipt, so as to conveniently and quickly manage and use the historical receipt version.
[0073] The embodiment of the present invention provides a method for dynamically binding and solidifying the content of a receipt, which determines the target receipt template and queries the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, and can dynamically bind the collected data to the target receipt template to generate a receipt. That is, the embodiment of the present invention can bind the fields involved in the target receipt template with the collected data of different channels through the preset data binding relationship table. When generating a receipt, the content of the collected data of different channels can be directly loaded according to the binding relationship to generate a receipt. The embodiment of the present invention can avoid the development of separate receipt templates and receipt generation interfaces for different channels through this receipt generation method, thereby meeting the needs of collecting large quantities of data from different channels.
[0074] Further, as Figure 1 and Figure 2 The specific implementation of the method shown in the embodiment provides a device for dynamically binding and solidifying receipt content, such as Figure 4 As shown, the device includes: an acquisition unit 31, a determination unit 32, a query unit 33 and a binding unit 34.
[0075] The acquisition unit 31 may be used to acquire the collection data of the target channel.
[0076] The determining unit 32 may be configured to determine a target receipt template according to a business type corresponding to the collected data of the target channel.
[0077] The query unit 33 can be used to query the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, wherein the preset data binding relationship table corresponding to the target receipt template records the binding relationship between the fields involved in the target receipt template and the collected data of the different channels.
[0078] The binding unit 34 may be used to dynamically bind the collected data of the target channel to the target receipt template according to the target binding relationship to generate a receipt.
[0079] In some embodiments, Figure 5 As shown, the device further includes: a parsing unit 35 and a generating unit 36.
[0080] The acquisition unit 31 may also be used to acquire receipt templates under different business types and a binding relationship configuration table corresponding to the receipt templates.
[0081] The parsing unit 35 may be used to parse the content of the binding relationship configuration table to obtain a mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of the different channels.
[0082] The generating unit 36 may be configured to generate a preset data binding relationship table corresponding to the receipt template based on the mapping relationship.
[0083] In some embodiments, the parsing unit 35 can be specifically used to upload the binding relationship configuration table to a temporary directory; verify the binding relationship configuration table under the temporary directory; if the binding relationship configuration table passes the verification, the binding relationship configuration table is parsed using a preset parsing tool to read the mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of the different channels.
[0084] In some embodiments, the generation unit 36 can be specifically used to dynamically bind the fields involved in the receipt template with the corresponding fields involved in the collected data from different channels based on the mapping relationship, so as to obtain the binding relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data from different channels; and write the binding relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data from different channels into the preset data binding relationship table corresponding to the receipt template.
[0085] In some embodiments, the acquisition unit 31 can be specifically used to monitor the collected data of the different channels in a message queue manner, and when the collected data of the target channel among the different channels is monitored, the collected data of the target channel is recorded in a database.
[0086] In some embodiments, the determination unit 32 may be specifically configured to determine a target receipt template corresponding to the business type from a plurality of receipt templates according to the business type corresponding to the collected data of the target channel.
[0087] In some embodiments, the binding unit 34 can be specifically used to load the target binding relationship into a MAP set in the form of a key-value pair; traverse the collection data of the target channel to determine the real value corresponding to the collection data field in the MAP set; map the real value to the target receipt template to generate a receipt.
[0088] In some embodiments, the device further includes: a curing unit 37 .
[0089] The solidification unit 37 can be used to add the receipt information corresponding to the receipt in the preset receipt main table; determine the initial version data mirror of the receipt based on the fields involved in the receipt and the real value; and record the initial version data mirror in the preset receipt mirror table of the database.
[0090] In some embodiments, the apparatus further comprises: a modification unit 38 .
[0091] The modification unit 38 can be used to receive a receipt modification request, which carries receipt identification information; based on the receipt identification information, determine the target receipt, and display the current version data image corresponding to the target receipt; receive modification information for the current version data image, and based on the modification information, generate the latest version data image corresponding to the target receipt.
[0092] It should be noted that for other corresponding descriptions of the functional units involved in the device for dynamically binding and solidifying receipt content provided in this embodiment, please refer to Figure 1 and Figure 2 The corresponding description in will not be repeated here.
[0093] Based on the above Figure 1 and Figure 2 The method shown in the embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The method of dynamically binding and solidifying the receipt content is shown.
[0094] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0095] Based on the above Figure 1 and Figure 2 The method shown, and Figure 4 and Figure 5 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, which can be a personal computer, a tablet computer, a server, or other network equipment, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The method of dynamically binding and solidifying the receipt content is shown.
[0096] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0097] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0098] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware.
[0100] The embodiment of the present invention determines the target receipt template and queries the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, and can dynamically bind the collected data to the target receipt template to generate a receipt. That is, the embodiment of the present invention can bind the fields involved in the target receipt template with the collected data of different channels through the preset data binding relationship table. When generating a receipt, the content of the collected data of different channels can be directly loaded according to the binding relationship to generate a receipt. The embodiment of the present invention can avoid the development of separate receipt templates and receipt generation interfaces for different channels through this receipt generation method, thereby meeting the collection requirements of large quantities of data from different channels.
[0101] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.
[0102] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.
Claims
1. A method for dynamically binding and solidifying receipt content, characterized in that: include: Obtain acquisition data from target channels; Determine a target receipt template according to the business type corresponding to the collected data of the target channel; Querying the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, wherein the preset data binding relationship table corresponding to the target receipt template records the binding relationship between the fields involved in the target receipt template and the collected data of the different channels; According to the target binding relationship, the collected data of the target channel is dynamically bound to the target receipt template to generate a receipt.
2. The method according to claim 1, characterized in that: Before querying the preset data binding relationship table corresponding to the target receipt template to determine the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, the method further includes: Obtain receipt templates under different business types, and the binding relationship configuration table corresponding to the receipt templates; Parsing the contents of the binding relationship configuration table to obtain a mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of the different channels; Based on the mapping relationship, a preset data binding relationship table corresponding to the receipt template is generated.
3. The method according to claim 2, characterized in that The parsing of the content of the binding relationship configuration table to obtain a mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of the different channels includes: Upload the binding relationship configuration table to a temporary directory; Verifying the binding relationship configuration table in the temporary directory; If the binding relationship configuration table passes the verification, the binding relationship configuration table is parsed using a preset parsing tool to read the mapping relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data of the different channels; Based on the mapping relationship, a preset data binding relationship table corresponding to the receipt template is generated, including: Based on the mapping relationship, the fields involved in the receipt template are dynamically bound to the corresponding fields involved in the collected data from different channels, so as to obtain the binding relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data from different channels; The binding relationship between the fields involved in the receipt template and the corresponding fields involved in the collected data from different channels is written into the preset data binding relationship table corresponding to the receipt template.
4. The method according to claim 1, characterized in that The acquiring of the target channel's collection data includes: The collected data of the different channels are monitored by using a message queue, and when the collected data of a target channel among the different channels is monitored, the collected data of the target channel is recorded in a database; The step of determining a target receipt template according to the business type corresponding to the collected data of the target channel includes: According to the business type corresponding to the collected data of the target channel, a target receipt template corresponding to the business type is determined from multiple receipt templates.
5. The method according to claim 1, characterized in that The step of dynamically binding the target channel's collected data to the target receipt template according to the target binding relationship to generate a receipt includes: Loading the target binding relationship into a MAP set in the form of a key-value pair; Traversing the collected data of the target channel to determine the real value corresponding to the collected data field in the MAP set; The actual value is mapped to the target receipt template to generate a receipt.
6. The method according to claim 5, characterized in that After mapping the real value to the target receipt template to generate a receipt, the method further includes: Add the receipt information corresponding to the receipt in the preset receipt master table; Determine an initial version data image of the receipt based on the fields involved in the receipt and the real value; The initial version data image is recorded in the preset receipt image table of the database.
7. The method according to claim 6, characterized in that The method further comprises: receiving a receipt modification request, wherein the receipt modification request carries receipt identification information; Based on the receipt identification information, determine the target receipt, and display the current version data image corresponding to the target receipt; Receive modification information for the current version of the data image, and generate a latest version of the data image corresponding to the target receipt based on the modification information.
8. A device for dynamically binding and solidifying receipt content, characterized in that: include: An acquisition unit, used to acquire the collection data of the target channel; A determination unit, configured to determine a target receipt template according to a business type corresponding to the collected data of the target channel; A query unit, used for querying the preset data binding relationship table corresponding to the target receipt template, and determining the target binding relationship between the fields involved in the target receipt template and the collected data of the target channel, wherein the preset data binding relationship table corresponding to the target receipt template records the binding relationship between the fields involved in the target receipt template and the collected data of the different channels; The binding unit is used to dynamically bind the collected data of the target channel to the target receipt template according to the target binding relationship to generate a receipt.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.