A bill data processing method, device and computer readable storage medium

By generating bill templates and data carrier tables, parsing and storing bill data, it solves the problems of high bill data processing costs and poor flexibility of institutions in various industries, and achieves unified management and flexible configuration of bill data.

CN112257395BActive Publication Date: 2024-09-13CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011076583.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-10
Publication Date
2024-09-13
Estimated Expiration
2040-10-10

AI Technical Summary

Technical Problem

Institutions in various industries independently build billing systems to process bill data. The implementation cost is high, and it is not flexible and reliable enough, and it is difficult to meet the unified storage and management needs of bill data in diverse formats.

Method used

By generating a bill template based on the mapping relationship between element field names and freely configurable element names, a data carrier table is generated, and the bill data is parsed based on the template and stored in the backend database according to the preset data structure to achieve unified management of bill data.

Benefits of technology

It enables each institution to flexibly configure bill templates and data carrier tables, achieves centralized and unified hosting of diverse bill data, and reduces development costs and implementation complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112257395B
    Figure CN112257395B
Patent Text Reader

Abstract

The present invention provides a bill data processing method, device, system and computer-readable storage medium, the method comprising: generating a bill template according to a mapping relationship between an element field name and a freely configurable element name; generating a data carrier table according to the bill template, and obtaining at least one set of bill data based on the data carrier table; parsing the data carrier table according to the bill template, thereby storing the bill data in a background database according to a preset data structure. Using the above method, the bill data of each business scenario can be centrally and uniformly managed on the basis of flexible configuration of bill templates and data carrier tables by each organization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data storage, and in particular relates to a bill data processing method, device and computer-readable storage medium. Background Art

[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] The existing convenient payment services are rich and varied. The bill data processing processes of different industry-end institutions are similar, but the bill data formats and data elements are diverse. Therefore, each industry-end institution usually independently designs, develops and maintains the bill system according to its own needs. However, the implementation cost of small and medium-sized industry institutions to independently build a bill system for bill data processing is high.

[0004] Therefore, it is an urgent problem to design a universal billing data processing system to achieve unified storage and management of billing data in various formats, thereby resolving the current dilemma of each industry end institution customizing its own system, with high development costs, limited implementation, and lack of flexibility and reliability. Summary of the invention

[0005] In view of the problems existing in the above-mentioned prior art, a bill data processing method, device and computer-readable storage medium are proposed. The above-mentioned problems can be solved by using this method, device and computer-readable storage medium.

[0006] The present invention provides the following solutions.

[0007] In a first aspect, a bill data processing method is provided, comprising: generating a bill template according to a mapping relationship between an element field name and a freely configurable element name; generating a data carrier table according to the bill template, and obtaining at least one set of bill data based on the data carrier table; parsing the data carrier table according to the bill template, thereby storing the bill data in a background database according to a preset data structure.

[0008] In a possible implementation, generating a bill template based on a mapping relationship between an element field name and a freely configurable element name also includes: obtaining one or more first element names for identification, and setting a first mapping relationship based on the first element name and the corresponding first element field name; obtaining one or more second element names for display, and setting a second mapping relationship based on the second element name and the corresponding second element field name, and generating a bill template based on the first mapping relationship and the second mapping relationship.

[0009] In a possible implementation, generating a bill template based on a mapping relationship between element names and element fields also includes: obtaining one or more third element names for indicating payment information, and setting a third mapping relationship based on the third element name and the corresponding third element field name; generating a custom bill template based on the first mapping relationship, the second mapping relationship, and the third mapping relationship.

[0010] In a possible implementation, the method further includes: determining a corresponding configuration bitmap based on at least one attribute information corresponding to each element name, and adding the configuration bitmap corresponding to each element name in the bill template; wherein the configuration bitmap is used to indicate extended functions applied to the element content corresponding to each element name.

[0011] In one possible implementation, a data carrier table is generated according to a bill template, and at least one set of bill data is obtained based on the data carrier table, further comprising: obtaining at least one row of bill data by using each element name as a column name of the data carrier table, wherein each row of bill data includes element content corresponding to each element name; or, obtaining at least one column of bill data by using each element name as a row name of the data carrier table, wherein each column of bill data includes element content corresponding to each element name.

[0012] In a possible implementation, the data carrier table is parsed according to the bill template, so that the bill data is stored in the background database according to the preset data structure, and the method also includes: determining the preset data structure, the preset data structure at least including: the element content to be filled corresponding to each element field name; parsing the bill template to obtain an element mapping set, the element mapping set including: the mapping relationship between the element name and the element field name; parsing the data carrier table row by row or column by column according to the element mapping set, so as to fill the element content to be filled corresponding to each element field name in the preset data structure according to the element content corresponding to each element name in the bill data.

[0013] In a possible implementation, the preset data structure also includes: a bill template number and a bill data number, wherein the bill template number is a unique identifier of the bill template, and the bill data number is a unique identifier of each group of bill data.

[0014] In a possible implementation, it also includes: displaying the name of the first element for identification on the first interface according to the bill template; obtaining input user information, and identifying in the background database according to the user information and the first element name to locate and obtain target bill data; and displaying the element content corresponding to the second element field name in the target bill data on the second interface.

[0015] In a possible implementation, the method further includes: obtaining billing operation instructions for target billing data, the billing operation instructions including at least a billing number of the target billing data; updating the target billing data in a background database according to the billing operation instructions; and displaying the billing operation results on a third interface.

[0016] In a second aspect, a bill data processing device is provided, including: a bill template unit, used to generate a bill template according to a mapping relationship between an element field name and a freely configurable element name; a data acquisition unit, used to generate a data carrier table according to the bill template, and acquire at least one set of bill data based on the data carrier table; a data storage unit, used to parse the data carrier table according to the bill template, thereby storing the bill data in a background database according to a preset data structure.

[0017] In a possible embodiment, the bill template unit is also used to: obtain one or more first element names for identification, and set a first mapping relationship based on the first element name and the corresponding first element field name; obtain one or more second element names for display, and set a second mapping relationship based on the second element name and the corresponding second element field name, and generate a bill template based on the first mapping relationship and the second mapping relationship.

[0018] In one possible implementation, the bill template unit is also used to: obtain one or more third element names used to indicate payment information, and set a third mapping relationship based on the third element name and the corresponding third element field name; generate a custom bill template based on the first mapping relationship, the second mapping relationship and the third mapping relationship.

[0019] In one possible implementation, the bill template unit is further used to: determine a corresponding configuration bitmap based on at least one attribute information corresponding to each element name, and add the configuration bitmap corresponding to each element name to the bill template; wherein the configuration bitmap is used to indicate extended functions applied to the element content corresponding to each element name.

[0020] In one possible implementation, the data acquisition unit is further used to: obtain at least one row of billing data by using each element name as a column name of a data carrier table, wherein each row of billing data includes element content corresponding to each element name; or obtain at least one column of billing data by using each element name as a row name of a data carrier table, wherein each column of billing data includes element content corresponding to each element name.

[0021] In one possible implementation, the data storage unit is further used to: determine a preset data structure, the preset data structure at least including: the element content to be filled corresponding to each element field name; parse the bill template to obtain an element mapping set, the element mapping set including: the mapping relationship between the element name and the element field name; parse the data carrier table row by row or column by column according to the element mapping set, so as to fill the element content to be filled corresponding to each element field name in the preset data structure according to the element content corresponding to each element name in the bill data.

[0022] In a possible implementation, the preset data structure also includes: a bill template number and a bill data number, wherein the bill template number is a unique identifier of the bill template, and the bill data number is a unique identifier of each group of bill data.

[0023] In a possible embodiment, the device is also used to: display the name of the first element for identification on the first interface according to the bill template; obtain the input user information, and identify it in the background database according to the user information and the first element name to locate the target bill data; and display the element content corresponding to the second element field name in the target bill data on the second interface.

[0024] In a possible implementation, the device is also used to: obtain billing operation instructions for target billing data, the billing operation instructions at least including the billing number of the target billing data; update the target billing data in the background database according to the billing operation instructions; and display the billing operation results on a third interface.

[0025] In a third aspect, a billing data processing device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute: the method of the first aspect.

[0026] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a program, and when the program is executed by a multi-core processor, the multi-core processor executes the method of the first aspect.

[0027] At least one of the above technical solutions adopted in the embodiment of the present application can achieve the following beneficial effects: In this embodiment, each institution can generate a customized bill template according to its own needs based on the mapping relationship between the uniformly set element field name and the self-set element name; generate a data carrier table maintained by each institution according to the customized bill template, and obtain at least one set of bill data based on the data carrier table; then, parse according to the customized bill template and the self-maintained data carrier table, and store the bill data in the background database according to the uniformly set preset data structure. In this way, on the basis of the flexible configuration of bill templates and data carrier tables by each institution, the bill data of each business scenario can be centrally and uniformly managed.

[0028] It should be understood that the above description is only an overview of the technical solution of the present invention, so that the technical means of the present invention can be more clearly understood and implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described below by way of example. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The advantages and benefits described herein and other advantages and benefits will be apparent to those of ordinary skill in the art by reading the detailed description of the exemplary embodiments below. The accompanying drawings are only used for the purpose of illustrating exemplary embodiments and are not to be considered as limiting the present invention. Moreover, the same reference numerals are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0030] Figure 1 A flowchart of a bill data processing method according to an embodiment of the present invention;

[0031] Figure 2 A schematic diagram of the structure of a bill template according to an embodiment of the present invention;

[0032] Figure 3 A schematic diagram of a first interface of a schematic tuition payment system;

[0033] Figure 4 is a schematic diagram of a second interface of a schematic tuition payment system;

[0034] Figure 5 A flowchart of a bill data processing method according to another embodiment of the present invention;

[0035] Figure 6 A schematic diagram of the structure of a bill data processing device according to an embodiment of the present invention;

[0036] Figure 7 FIG. 4 is a schematic diagram of the structure of a bill data processing device according to another embodiment of the present invention.

[0037] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION

[0038] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0039] In the present invention, it should be understood that terms such as “including” or “having” are intended to indicate the existence of features, numbers, steps, behaviors, components, parts or a combination thereof disclosed in the specification, and are not intended to exclude the possibility of the existence of one or more other features, numbers, steps, behaviors, components, parts or a combination thereof.

[0040] It should also be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0041] An embodiment of the present invention provides a bill data processing method. The inventive concept of the method is first introduced below.

[0042] The existing convenient payment services are rich and varied. Each industry-end institution usually designs billing system solutions independently according to its own needs, and develops and maintains billing systems. As for the processing of bill elements, they are usually formatted according to the types and characteristics of their respective expenses. Analysis shows that each convenient payment scenario has roughly the same process. First, a bill data is generated. Secondly, the bill data is located and paid according to the bill elements of each scenario (such as room number in property fees, school number in tuition fees, etc.). Finally, the status change of the bill data is maintained. A universal bill data processing device can be designed to solve the current dilemma of customized systems of each industry-end institution, high development cost, limited implementation, and insufficient flexibility and reliability.

[0043] Based on this, the embodiment of the present invention provides a flexible and configurable bill data processing device. Each institution can generate a customized bill template according to its own needs based on the mapping relationship between the uniformly set element field name and the self-set element name; generate a data carrier table maintained by each institution according to the customized bill template, and obtain at least one set of bill data based on the data carrier table; then, parse according to the customized bill template and the self-maintained data carrier table, and store the bill data in the background database according to the uniformly set preset data structure. In this way, on the basis of the flexible configuration of bill templates and data carrier tables by each institution, the bill data of each business scenario can be centrally and uniformly managed.

[0044] Those skilled in the art will appreciate that the described application scenario is only an example in which the embodiments of the present invention can be implemented. The scope of application of the embodiments of the present invention is not limited in any way. After introducing the basic principles of the present invention, various non-limiting embodiments of the present invention are specifically described below.

[0045] Figure 1 This is a flow chart of a billing data processing method 100 according to an embodiment of the present application. In this flow, from the device perspective, the execution subject may be one or more electronic devices; from the program perspective, the execution subject may be the program installed on these electronic devices.

[0046] like Figure 1 As shown, the method 100 may include:

[0047] Step 101: Generate a bill template according to the mapping relationship between the element field name and the freely configurable element name;

[0048] In this embodiment, the above-mentioned element field names are uniformly fixed configuration information, and the element names are freely configurable information. Different industry-end organizations can generate customized bill templates according to their own needs based on the technical solution provided by the present disclosure.

[0049] For example, first predefine 1 to N fixed element field names, such as element_1, element_2, ..., element_N. Based on this, for example, a property company can customize and generate a bill template for paying property fees on demand, where the element names can be the community, building, room number, household name, property fee amount, etc. related to the property fee. For example, a school can customize and generate a bill template for paying tuition fees on demand, where the element names can include the student number, school name, college name, class name, student name, and tuition amount in the tuition fee.

[0050] Furthermore, a key-value pair can be used to represent the mapping relationship between predefined element field names and element names, where key can be an element name and value can be a corresponding element field name. For example, in a school's custom bill template, the mapping relationship can include key-value pair 1 (key=student number, value=element_1), key-value pair 2 (key=name, value=element_2), and so on. Based on the above mapping relationships represented by key-value pair 1 (key=student number, value=element_1), key-value pair 2 (key=name, value=element_2), etc., a bill template can be generated.

[0051] In one possible implementation, the bill data can be further divided into a first element for identification and a second element for display. Thus, one or more first element names for identification can be obtained, and a first mapping relationship can be set according to the first element name and the corresponding first element field name. In addition, one or more second element names for display can be separately obtained, and a second mapping relationship can be set according to the second element name and the corresponding second element field name. A bill template can be generated based on the above-mentioned first mapping relationship and second mapping relationship.

[0052] For example, refer to Figure 2 , showing a schematic diagram of a bill template, which can predefine 1 to N fixed first element field names, such as first element_1, first element_2, ..., first element_N. These field names are used to customize user information of the bill data, and can generally be identification elements of the bill data, such as the student number in the tuition fee. The first mapping relationship can be, for example, a first key-value pair (key=student number, value=first element_1). In addition, 1 to N fixed second element field names can be predefined, such as second element_1, second element_2, ..., second element_N. The field names are used to customize the detailed information of the bill, and can generally be display elements of the bill data, such as the student name, school name, ..., tuition amount, bill term, etc. in the tuition payment system. The second mapping relationship can be, for example, a key-value pair (key=school name, value=second element_2). In addition, the bill template can also include the number of elements actually used, such as Figure 2 The number of the first element is 1 and the number of the second element is 7, so when reading data subsequently, only the corresponding number of elements need to be read.

[0053] refer to Figure 3 and Figure 4 , which shows a schematic tuition payment system, which can be understood. Figure 2 The bill template shown can use "student number" as the first element name for identification. Figure 3 After entering your student ID in the "Please enter your student ID" text box on the first interface shown, you can enter Figure 4 The second interface shown in the figure, in which the school name, college name, class name, student name, tuition amount, etc. in the tuition are used as the second element name for display. Figure 4 The second interface shown shows the second element content.

[0054] In some possible implementations, the bill data may be further divided into a third element for indicating payment information. Step 101 may also include: obtaining one or more third element names for indicating payment information, and setting a third mapping relationship based on the third element name and the corresponding third element field name; thereby generating the above-mentioned customized bill template based on the first mapping relationship, the second mapping relationship and the third mapping relationship.

[0055] Optionally, the third element may be a payment-related element included in the second element. For example, the third element name may be predefined as "tuition amount" in the tuition system, and the third mapping relationship may be, for example, a key-value pair (key=tuition amount, value=third element).

[0056] Still refer to Figure 4 It can be understood that after the user clicks the "Pay Tuition" button, the backend payment system or the third-party payment system can bring up the payment page for payment based on the third element name, that is, the third element content corresponding to the "tuition amount". Optionally, it should be understood that not all billing systems need to support the online payment function. Some billing systems only need to display billing information to users. Therefore, in this case, there is no need to further set the third element name and the third mapping relationship.

[0057] In a possible implementation, step 101 further includes: determining a corresponding configuration bitmap according to at least one attribute information corresponding to each element name, and adding the configuration bitmap corresponding to each element name to the bill template.

[0058] refer to Figure 2 , where the configuration bitmap is a set of bitmaps composed of 0 and 1, where each "0" or "1" can represent an attribute information. For example, the above attribute information may include whether it is sensitive information (can be used to determine whether it is encrypted during transmission), whether it is a mobile phone number (can be used to extend the SMS notification function), whether it supports the front-end display control (can be used to implement a configurable front-end page)..., and so on. The element name corresponding to the first element_1 is "student number", and its corresponding attribute information is non-sensitive information, non-mobile phone number, supports front-end display controls,..., etc., from which it can be seen that its corresponding configuration bitmap can be 001000000000, where "0" means no and "1" means yes. Based on this, when the subsequent billing system is used, the first element content corresponding to the element name "student number" can be transmitted without encryption, cannot be used to extend the SMS notification function, and supports the front-end display control, and so on. In other words, in this embodiment, the configuration bitmap is used in the custom bill template to configure the attribute information for each element name, thereby facilitating the management of the extended functions corresponding to different elements.

[0059] Step 102: Generate a data carrier table according to the bill template, and obtain at least one set of bill data based on the data carrier table;

[0060] refer to Figure 2 , showing a schematic bill template, Table 1 shows the corresponding Figure 2 A data carrier table of a bill template is shown, and the carrier file in Table 1 is in EXCEL format, and may be in other formats in other examples. It can be seen that the column names of the data carrier table are the element names in the bill template.

[0061] Table 1:

[0062] Student ID Tuition Amount Name School Name College Name class Billing Status Billing period

[0063] Further, based on the data carrier table shown in Table 1, the institution's backend can input at least one set of bill data into the data carrier table to obtain the data carrier table filled with bill data as shown in Table 2, where a set of bill data is also a row of bill data shown in Table 2.

[0064] Table 2:

[0065] Student ID Tuition Amount Name School Name College Name class Billing Status Billing period 00001 800 Zhang San XX School XX College Grade 3, Class 2 Not paid October 2020 00002 800 Li Si XX School XX College Grade 3, Class 2 Paid November 2020

[0066] The above description provides the steps of obtaining at least one row of billing data by using each element name as the column name of the data carrier table, wherein each row of billing data includes the element content corresponding to each element name.

[0067] Optionally, each element name may be used as a row name of a data carrier table to obtain at least one column of billing data, wherein each column of billing data includes element content corresponding to each element name, which is not described in detail in this application.

[0068] Step 103: Parse the data carrier table according to the bill template, so as to store the bill data in the backend database according to the preset data structure.

[0069] In one possible implementation, reference Figure 5 The above step 103 may further include the following steps 501 to 503:

[0070] Step 501: Determine a preset data structure;

[0071] The preset data structure includes at least: the element content to be filled corresponding to each element field name.

[0072] For example, referring to Table 3, a schematic diagram of a preset data structure is shown. It can be understood that different institutions can have a unified preset data structure, where the left side of the table shows the element field names such as first element_1, first element_N, etc., and the right side shows blank content, that is, the element content to be filled.

[0073] Table 3:

[0074] Billing data number Bill Template Number First element_1 ··· First element_N Second element_1 ··· Second element_N The third element

[0075] Based on the preset data structure shown in Table 3, the billing data required to be saved by various industry-end institutions can be stored according to the data storage structure.

[0076] In a possible implementation, referring to Table 3, the preset data structure may further include: a bill template number and a bill data number, wherein the bill template number is a unique identifier of the bill template, and the bill data number is a unique identifier of each group of bill data.

[0077] Step 502: Parse the bill template to obtain a set of element mappings;

[0078] The element mapping set includes: a mapping relationship between an element name and an element field name. For example, the mapping relationship is: a key-value pair set such as the first key-value pair (key=student number, value=first element_1), the second key-value pair (key=school name, value=second element_2).

[0079] Step 503: Parse the data carrier table row by row or column by column according to the element mapping set, so as to fill the element content to be filled corresponding to each element field name in the preset data structure according to the element content corresponding to each element name in the bill data.

[0080] For example, the data carrier table shown in Table 2 is parsed row by row, where if the column name of Table 2 hits any element name in the element mapping set, the column data corresponding to the column name is saved in the data storage structure as the element content corresponding to any element field name, thereby obtaining a set of billing data shown in Table 4.

[0081] Table 4:

[0082] Billing data number 554295 Bill Template Number S3-1-0000 First element_1 00001 ··· # First element_N # Second element_1 Zhang San Second element_2 XX School Second element_3 XX College Second element_4 Grade 3, Class 2 Second element_5 October 2020 Second element_6 Not paid ··· # Second element_N # The third element 800

[0083] The "#" indicates that the reserved element field name has no corresponding element name. It is understandable that in order to meet various practical usage scenarios, more element field names are usually reserved. It is understandable that a unique number can be set for each line of bill data as the bill data number. This allows the group of bill data to be located more quickly when the group of bill data is updated later.

[0084] In a possible implementation, the above method also includes: displaying the name of the first element for identification on the first interface according to the bill template; obtaining input user information, and identifying in the background database according to the user information to locate and obtain target bill data; and displaying the element content corresponding to the second element field name in the target bill data on the second interface.

[0085] For example, Figure 3 As shown, it can be Figure 3 The first interface shown shows the name of the first element for identification, such as "student number". After entering the user information (i.e. the student number entered by the user) in the text box, the backend database is identified based on the entered user information and the bill template number. If the target bill data is matched, you can enter Figure 4 In the second interface shown, the school name, college name, class name, student name, tuition amount, etc. in the tuition are used as the second element name for display. Figure 4 The second interface shown shows the corresponding second element content.

[0086] In a possible implementation, the method further includes: obtaining billing operation instructions for target billing data, the billing operation instructions including at least a billing number of the target billing data; updating the target billing data in a background database according to the billing operation instructions; and displaying the billing operation results on a third interface.

[0087] For example, refer to Figure 4 From Table 4, it can be understood that users Figure 4 After clicking the "Pay Tuition Fees" button on the second interface, the backend payment system or the third-party payment system can bring up the payment page for payment based on the third element content "800 yuan" corresponding to the "tuition fee amount", which is equivalent to executing a bill operation instruction for the target bill data. It can be seen from Table 4 that the acquired target bill data contains a bill data number for quickly locating data, so that the target bill data can be updated in the backend database according to the bill operation instruction, such as updating the element content corresponding to the "Second Element_6" in Table 4 from "Unpaid" to "Paid", and displaying the bill operation result on the third interface, such as displaying a payment success message.

[0088] According to various aspects of the embodiments of the present invention, a flexible and configurable bill data processing method is proposed, and different institutions can customize the bill data templates according to the business scenarios, and self-adapt to form suitable carrier files according to the customized bill templates to maintain data content, and the bill data of each business scenario can still be centrally and uniformly managed.

[0089] Based on the same technical concept, an embodiment of the present invention further provides a bill data processing device for executing the bill data processing method provided in any of the above embodiments. Figure 6 A schematic diagram of the structure of a bill data processing device provided by an embodiment of the present invention.

[0090] like Figure 6 As shown, the device 600 includes:

[0091] The bill template unit 601 is used to generate a bill template according to the mapping relationship between the element field name and the freely configurable element name;

[0092] The data acquisition unit 602 is used to generate a data carrier table according to the bill template, and acquire at least one set of bill data based on the data carrier table;

[0093] The data storage unit 603 is used to parse the data carrier table according to the bill template, so as to store the bill data into the background database according to the preset data structure.

[0094] In a possible implementation, the bill template unit 601 is also used to: obtain one or more first element names for identification, and set a first mapping relationship based on the first element name and the corresponding first element field name; obtain one or more second element names for display, and set a second mapping relationship based on the second element name and the corresponding second element field name, and generate a bill template based on the first mapping relationship and the second mapping relationship.

[0095] In a possible implementation, the bill template unit 601 is also used to: obtain one or more third element names for indicating payment information, and set a third mapping relationship based on the third element name and the corresponding third element field name; generate a custom bill template based on the first mapping relationship, the second mapping relationship and the third mapping relationship.

[0096] In one possible implementation, the bill template unit 601 is also used to: determine the corresponding configuration bitmap based on at least one attribute information corresponding to each element name, and add the configuration bitmap corresponding to each element name in the bill template; wherein the configuration bitmap is used to indicate the extended function applied to the element content corresponding to each element name.

[0097] In one possible implementation, the data acquisition unit 602 is further used to: obtain at least one row of billing data by using each element name as a column name of a data carrier table, wherein each row of billing data includes element content corresponding to each element name; or obtain at least one column of billing data by using each element name as a row name of a data carrier table, wherein each column of billing data includes element content corresponding to each element name.

[0098] In a possible implementation, the data storage unit 603 is also used to: determine a preset data structure, the preset data structure at least including: the element content to be filled corresponding to each element field name; parse the bill template to obtain an element mapping set, the element mapping set including: the mapping relationship between the element name and the element field name; parse the data carrier table row by row or column by column according to the element mapping set, so as to fill the element content to be filled corresponding to each element field name in the preset data structure according to the element content corresponding to each element name in the bill data.

[0099] In a possible implementation, the preset data structure also includes: a bill template number and a bill data number, wherein the bill template number is a unique identifier of the bill template, and the bill data number is a unique identifier of each group of bill data.

[0100] In a possible implementation, the device 600 is also used to: display the name of the first element for identification on the first interface according to the bill template; obtain input user information, and identify it in the background database according to the user information and the first element name to locate and obtain target bill data; and display the element content corresponding to the second element field name in the target bill data on the second interface.

[0101] In a possible implementation, device 600 is also used to: obtain billing operation instructions for target billing data, the billing operation instructions at least including the billing number of the target billing data; update the target billing data in the background database according to the billing operation instructions; and display the billing operation results on a third interface.

[0102] It should be noted that the bill data processing device in the embodiment of the present application can implement the various processes of the embodiment of the aforementioned bill data processing method and achieve the same effects and functions, which will not be repeated here.

[0103] Figure 7 A bill data processing device according to an embodiment of the present application, for executing Figure 1 The bill data processing method shown, the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the above embodiment.

[0104] According to some embodiments of the present application, a non-volatile computer storage medium of a bill data processing method is provided, on which computer executable instructions are stored. The computer executable instructions are configured to execute the method described in the above embodiments when executed by a processor.

[0105] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, their descriptions are simplified, and the relevant parts can be referred to the partial description of the method embodiments.

[0106] The apparatus, device and computer-readable storage medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the apparatus, device and computer-readable storage medium also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the apparatus, device and computer-readable storage medium will not be repeated here.

[0107] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0108] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0111] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0112] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0113] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. In addition, although the operations of the method of the present invention are described in a particular order in the accompanying drawings, this does not require or imply that these operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0114] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.

Claims

1. A bill data processing method, characterized in that: include: Generate a bill template based on the mapping relationship between the element field name and the freely configurable element name; The generating of the bill template according to the mapping relationship between the element field name and the freely configurable element name also includes: Obtain one or more first element names for identification, and set a first mapping relationship according to the first element names and the corresponding first element field names; obtain one or more second element names for display, and set a second mapping relationship according to the second element names and the corresponding second element field names, and generate the bill template based on the first mapping relationship and the second mapping relationship; generating a data carrier table according to the bill template, and acquiring at least one set of bill data based on the data carrier table; The data carrier table is parsed according to the bill template, so that the bill data is stored in a background database according to a preset data structure.

2. The method according to claim 1, characterized in that The generating of the bill template according to the mapping relationship between the element name and the element field also includes: Obtain one or more third element names for indicating payment information, and set a third mapping relationship according to the third element names and corresponding third element field names; The bill template is generated based on the first mapping relationship, the second mapping relationship and the third mapping relationship.

3. The method according to claim 1, characterized in that The method further comprises: Determine a corresponding configuration bitmap according to at least one attribute information corresponding to each of the element names, and add the configuration bitmap corresponding to each of the element names to the bill template; The configuration bitmap is used to indicate the extended function applied to the element content corresponding to each element name.

4. The method according to claim 1, characterized in that: Generating a data carrier table according to the bill template, and acquiring at least one set of bill data based on the data carrier table, further comprising: Using each of the element names as a column name of the data carrier table to obtain at least one row of the bill data, wherein each row of the bill data includes element content corresponding to each of the element names; or, At least one column of the billing data is obtained by using each of the element names as a row name of the data carrier table, wherein each column of the billing data includes element content corresponding to each of the element names.

5. The method according to claim 4, characterized in that Parsing the data carrier table according to the bill template, thereby storing the bill data in a background database according to a preset data structure, further comprising: Determine the preset data structure, the preset data structure at least including: the element content to be filled corresponding to each element field name; Parsing the bill template to obtain an element mapping set, the element mapping set including: a mapping relationship between the element name and the element field name; The data carrier table is parsed row by row or column by column according to the element mapping set, so as to fill the to-be-filled element content corresponding to each element field name in the preset data structure according to the element content corresponding to each element name in the billing data.

6. The method according to claim 5, characterized in that The preset data structure also includes: a bill template number and a bill data number, wherein the bill template number is a unique identifier of the bill template, and the bill data number is a unique identifier of each group of the bill data.

7. The method according to claim 6, characterized in that Also includes: Displaying the first element name for identification on a first interface according to the bill template; Obtain input user information, and identify the user information and the first element name in the backend database to locate and obtain target bill data; The element content corresponding to the second element field name in the target bill data is displayed on the second interface.

8. The method according to claim 7, characterized in that Also includes: Acquire a billing operation instruction for the target billing data, wherein the billing operation instruction at least includes a billing number of the target billing data; updating the target bill data in the background database according to the bill operation instruction; The bill operation result is displayed on the third interface.

9. A bill data processing device, characterized in that: include: A bill template unit, used to generate a bill template according to the mapping relationship between the element field name and the freely configurable element name; The bill template unit is further used to obtain one or more first element names for identification, and set a first mapping relationship according to the first element name and the corresponding first element field name; obtain one or more second element names for display, and set a second mapping relationship according to the second element name and the corresponding second element field name, and generate the bill template based on the first mapping relationship and the second mapping relationship; A data acquisition unit, configured to generate a data carrier table according to the bill template, and acquire at least one set of bill data based on the data carrier table; The data storage unit is used to parse the data carrier table according to the bill template, so as to store the bill data in the background database according to the preset data structure.

10. The device according to claim 9, characterized in that The bill template unit is also used for: Obtain one or more third element names for indicating payment information, and set a third mapping relationship according to the third element names and corresponding third element field names; The bill template is generated based on the first mapping relationship, the second mapping relationship and the third mapping relationship.

11. The device according to claim 9, characterized in that The bill template unit is also used for: Determine a corresponding configuration bitmap according to at least one attribute information corresponding to each of the element names, and add the configuration bitmap corresponding to each of the element names to the bill template; The configuration bitmap is used to indicate the extended function applied to the element content corresponding to each element name.

12. The device according to claim 9, characterized in that The data acquisition unit is further used for: Using each of the element names as a column name of the data carrier table to obtain at least one row of the bill data, wherein each row of the bill data includes element content corresponding to each of the element names; or, At least one column of the billing data is obtained by using each of the element names as a row name of the data carrier table, wherein each column of the billing data includes element content corresponding to each of the element names.

13. The device according to claim 12, characterized in that The data storage unit is further used for: Determine the preset data structure, the preset data structure at least including: the element content to be filled corresponding to each element field name; Parsing the bill template to obtain an element mapping set, the element mapping set including: a mapping relationship between the element name and the element field name; The data carrier table is parsed row by row or column by column according to the element mapping set, so as to fill the to-be-filled element content corresponding to each element field name in the preset data structure according to the element content corresponding to each element name in the billing data.

14. The device according to claim 13, characterized in that The preset data structure also includes: a bill template number and a bill data number, wherein the bill template number is a unique identifier of the bill template, and the bill data number is a unique identifier of each group of the bill data.

15. The device according to claim 14, characterized in that The device is also used for: Displaying the first element name for identification on a first interface according to the bill template; Obtain input user information, and identify the user information and the first element name in the backend database to locate and obtain target bill data; The element content corresponding to the second element field name in the target bill data is displayed on the second interface.

16. The device according to claim 15, characterized in that The device is also used for: Acquire a billing operation instruction for the target billing data, wherein the billing operation instruction at least includes a billing number of the target billing data; updating the target bill data in the background database according to the bill operation instruction; The bill operation result is displayed on the third interface.

17. A bill data processing device, characterized in that: include: at least one processor; And, a memory communicatively connected to at least one processor; wherein the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to execute: the method as described in any one of claims 1-8.

18. A computer-readable storage medium storing a program, wherein when the program is executed by a multi-core processor, the multi-core processor executes the method according to any one of claims 1 to 8.