Bill file splitting method and system based on multi-dimensional configuration
Through the bill file splitting method based on multi-dimensional configuration, the existing technology problems of low bill file splitting efficiency and inability to implement custom headers are solved, and efficient and accurate bill data splitting and custom field export are achieved. Improved bill file utilization and database processing efficiency.
Patent Information
- Application Number
- CN202410100926.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-24
AI Technical Summary
The existing technology has uncontrollable human factors and low efficiency in the bill file splitting process, especially redundant and invalid fields when splitting in multiple dimensions, and the automatically generated files cannot realize the diversity of customized headers and report formats.
Adopting a bill file splitting method based on multi-dimensional configuration, by obtaining enterprise configuration information, matching bill data and generating multi-dimensional tables, supporting custom field export, using the OSS file system to improve data utilization and reduce database processing pressure.
It achieves efficient and accurate bill data splitting, supports multi-dimensional splitting and custom field export, improves the utilization of bill files, reduces database reading pressure, and ensures data accuracy and application requirements.
Smart Images

Figure CN117931737B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of form data processing, and specifically relates to a bill file splitting method and system based on multi-dimensional configuration. Background Art
[0002] At present, the main method for processing the splitting of bill files is to manually split the bills after exporting them. Usually, the bills are split into different sub-bill files manually according to different splitting rules.
[0003] In order to avoid anomalies caused by artificial data splitting, it is necessary to manually split the bill file, calculate the sub-bill separately, and then summarize and compare it with the original bill. One of the key technologies to implement this solution is to classify the different dimensions of the bill, filter the summary data by different search conditions, export the corresponding split data and generate the corresponding bill file. At the same time, the processing of custom bill headers is currently mainly achieved by redundancies in all headers in the export template to realize the export of all custom forms; or notify the query data to automatically generate files for export.
[0004] In the existing technology, the process of splitting bill files is uncontrollable due to human factors, and the splitting is performed after conditional filtering. When multiple dimensions appear, the efficiency is relatively low. Exporting custom fields through templates will result in too many redundant invalid fields; exporting through automatic file generation will not achieve multiple header formats, and the report format is single. Summary of the invention
[0005] The purpose of the present invention is to provide an efficient and accurate method and system for splitting bill data, which can split bills according to the configured splitting rules of different dimensions and can generate bill files by summarizing headers and filling fields according to custom fields.
[0006] In order to achieve the aforementioned object of the invention, the present invention adopts the following scheme:
[0007] One aspect of the present invention provides a bill file splitting method based on multi-dimensional configuration, comprising:
[0008] Step S1: Obtaining aggregated billing data;
[0009] Step S2: Acquire multi-dimensional enterprise configuration information, wherein the enterprise configuration information includes at least the following configuration items: ID, matching keyword, matching type of matching keyword, and target personnel information;
[0010] Step S3: matching corresponding bill data from the aggregated bill file according to the enterprise configuration information to obtain a matched bill data set and an unmatched bill data set;
[0011] Step S4: splitting the bill files in the matching bill data set according to the enterprise configuration information to generate a corresponding first table; directly generating a corresponding second table for the bill files in the unmatched bill data set;
[0012] Step S5: The first table and the second table are processed, packaged, and uploaded to the OSS file system.
[0013] Another aspect of the present invention provides a bill file splitting system based on multi-dimensional configuration, the system comprising:
[0014] A summary bill file acquisition module is used to obtain the summary bill data;
[0015] An enterprise configuration information acquisition module is used to acquire multi-dimensional enterprise configuration information, wherein the enterprise configuration information includes at least the following configuration items: ID, matching keyword, matching type of matching keyword, and target personnel information;
[0016] A matching bill set acquisition module, used to match corresponding bill data from the aggregated bill file according to the enterprise configuration information to obtain a matching bill data set and an unmatched bill data set;
[0017] A bill file splitting module, used to split the bill files in the matching bill data set according to the enterprise configuration information to generate a corresponding first table; for the bill files in the unmatched bill data set, directly generate a corresponding second table;
[0018] The file packaging and uploading module is used to process the first table and the second table, package them, and upload them to the OSS file system.
[0019] Compared with the prior art, the present invention has at least the following advantages: the present invention more flexibly supports multi-dimensional bill data splitting, can better support the export of custom fields, and improves the utilization rate of bills by uploading OSS, reducing the processing pressure of the database when reading data in the same bill period. By testing 1,000, 10,000, and 100,000 data, the results show that the bill data splitting is accurate and the present invention meets the application requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1This is a main flow chart of a method for splitting bill files according to an embodiment of the present invention;
[0022] Figure 2 This is another flow chart of a method for splitting bill files according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical scheme and advantages of the present invention clearer, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Examples of these preferred embodiments are illustrated in the accompanying drawings. The embodiments of the present invention shown in the accompanying drawings and described according to the accompanying drawings are merely exemplary, and the present invention is not limited to these embodiments.
[0024] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0025] One aspect of the present invention provides a bill file splitting method based on multi-dimensional configuration, comprising:
[0026] Step S1: Obtaining aggregated billing data;
[0027] Step S2: Acquire multi-dimensional enterprise configuration information, wherein the enterprise configuration information includes at least the following configuration items: ID, matching keyword, matching type of matching keyword, and target personnel information;
[0028] Step S3: matching corresponding bill data from the aggregated bill file according to the enterprise configuration information to obtain a matched bill data set and an unmatched bill data set;
[0029] Step S4: splitting the bill files in the matching bill data set according to the enterprise configuration information to generate a corresponding first table; directly generating a corresponding second table for the bill files in the unmatched bill data set;
[0030] Step S5: The first table and the second table are processed, packaged, and uploaded to the OSS file system.
[0031] In one embodiment, the processing of the first table and the second table in step S5 specifically includes: filling the bill file with the first table and the second table according to the preset template fields and custom fields to generate a corresponding excel file; generating an independent sheet in the excel file to record the detailed invoicing data; and generating the summary amount of each business line of each split bill in the excel file.
[0032] In one embodiment, the configuration of the ID includes: if the ID is configured as 1, it indicates the dimension of the invoice header; if the ID is configured as 2, it indicates the dimension of the department; if the ID is configured as 3, it indicates the dimension of the cost center; if the ID is configured as 4, it indicates the dimension of the work city; if the ID is configured as 5, it indicates the dimension of the company to which the payment belongs;
[0033] The configuration of the target person information includes: if the ID is not configured or configured as 0, it is represented as a traveler dimension; if the ID is configured as 1, it is represented as a booker dimension.
[0034] In one embodiment, the configuration of the matching type of the matching keyword includes: if the matching type is 0, it indicates keyword fuzzy matching; if the matching type is 1, it indicates keyword combination regular expression matching; if the matching type is 2, it indicates custom regular expression matching.
[0035] In one embodiment, the aggregated billing data is obtained in a concurrent manner, and all the obtained billing data is put into the memory for splitting.
[0036] Another aspect of the present invention provides a bill file splitting system based on multi-dimensional configuration, the system comprising:
[0037] A summary bill file acquisition module is used to obtain the summary bill data;
[0038] An enterprise configuration information acquisition module is used to acquire multi-dimensional enterprise configuration information, wherein the enterprise configuration information includes at least the following configuration items: ID, matching keyword, matching type of matching keyword, and target personnel information;
[0039] A matching bill set acquisition module, used to match corresponding bill data from the aggregated bill file according to the enterprise configuration information to obtain a matching bill data set and an unmatched bill data set;
[0040] A bill file splitting module, used to split the bill files in the matching bill data set according to the enterprise configuration information to generate a corresponding first table; for the bill files in the unmatched bill data set, directly generate a corresponding second table;
[0041] The file packaging and uploading module is used to process the first table and the second table, package them, and upload them to the OSS file system.
[0042] In one embodiment, the processing of the first table and the second table in the file packaging and uploading module specifically includes: filling the bill file with the first table and the second table according to the preset template fields and the custom fields to generate a corresponding Excel file; generating an independent sheet in the Excel file to record the detailed invoicing data; and generating the summary amount of each business line of each split bill in the Excel file.
[0043] In one embodiment, the configuration of the ID includes: if the ID is configured as 1, it indicates the dimension of the invoice header; if the ID is configured as 2, it indicates the dimension of the department; if the ID is configured as 3, it indicates the dimension of the cost center; if the ID is configured as 4, it indicates the dimension of the work city; if the ID is configured as 5, it indicates the dimension of the company to which the payment belongs;
[0044] The configuration of the target person information includes: if the ID is not configured or configured as 0, it is represented as a traveler dimension; if the ID is configured as 1, it is represented as a booker dimension.
[0045] In one embodiment, the configuration of the matching type of the matching keyword includes: if the matching type is 0, it indicates keyword fuzzy matching; if the matching type is 1, it indicates keyword combination regular expression matching; if the matching type is 2, it indicates custom regular expression matching.
[0046] In one embodiment, the aggregated billing data is obtained in a concurrent manner, and all the obtained billing data is put into the memory for splitting.
[0047] Figure 1 , Figure 2 It is the main flow chart of the technical solution of the present invention. Figure 1 As shown, the method and system for custom splitting of bill files and custom headers proposed by the present invention include the following steps:
[0048] (1) Configure bill splitting based on enterprise configuration, which is compatible with configuration methods in multiple dimensions
[0049] Configuration example: {"Id": 2, "Value": "xxxx-splitPattem-splitPatternDepartment", "Type": 1, "SubType": 1}, the configuration description is as follows:
[0050] SubType: If not configured or configured as 0, the default is the traveler; 1 is the dimension of the scheduled person;
[0051] Id: 1 is the invoice header; 2 is the department; 3 is the cost center; 4 is the work city; 5 is the payment company;
[0052] Value: matching keyword;
[0053] Type: keyword type, 0: keyword fuzzy; 1: keyword + regular expression; 2: custom regular expression.
[0054] Multi-dimensional bill splitting rules can be implemented by combining Id+Type+SubType into different configurations.
[0055] For example:
[0056] Id: 1, Type: 0, SubType: 0: the number of tickets is split according to the keywords in the ticket header of the traveler;
[0057] Id: 2, Type: 1, SubType: 1: split according to the keyword regular expression of the reservation department;
[0058] Special placeholders are supported in content matching; regular matching is supported;
[0059] {"Id":2,"Value":"xxxx Group-[\u4e00-\u9fa5]{1,}-[\u4e00-\u9fa5]{1,} Wanyang Operations","Type":1,"SubType":1},
[0060] The meaning of this configuration is to match "xxxx Group***** Wanyang Operation" (Value+Type) in the department (Id=2) of the reservation person (SubType=1). If the match is successful, the data will be split into separate groups.
[0061] (2) Read the bill data from the database and store it in memory, and split the data according to the reservation person (for example, if the SubType configuration value in the preface configuration description is 1, otherwise it is a traveler);
[0062] (3) The split data is grouped and summarized according to the configured splitting rules;
[0063] For example, when the booking department in the bill is "xxxx Group ***** Wanyang Operation", we will group the matched ones and separate the unmatched ones into others;
[0064] (4) The aggregated data is used to fill in the bill file according to the template fields + custom fields. Specifically, it includes:
[0065] a) Get the custom field configuration of the enterprise bill header, load the template, and use the NOPI component to automatically add, customize the cell style, and merge cells to display the header customization;
[0066] b) After obtaining the bill data, use the splitting rules and methods in (1) to group and summarize the split data by business line, build the corresponding sheet, fill in the rows in each sheet, and summarize and fill in the summary columns;
[0067] c) Automatically remove columns that have no data at all.
[0068] (5) Generate an independent sheet in the billing file to record invoicing details and other data; the billing file needs to reflect the invoice structure to facilitate the other party's settlement personnel to provide corresponding invoicing requirements.
[0069] a) Automatically construct invoice details based on bill details, invoice type, business rules, etc.;
[0070] b) Customize cell styles, merge cells, and automatically generate table headers through NOPI components;
[0071] c) Fill in the rows with the invoicing details data.
[0072] (6) The summary bill file automatically generates the summary amount of each business line of each split bill. The summary Excel file should have one more sheet of detailed summary amount than the split Excel file for data verification.
[0073] a) Group and summarize the split billing data by business line;
[0074] b) Automatically generate table headers and fill in row data through NOPI components.
[0075] (7) Data that fails to match or is not matched will be included in the unmatched bill;
[0076] (8) Package the generated files and upload them to the OSS file system.
[0077] To improve performance, the OSS file system is used to retain recently generated data to avoid excessive database processing pressure caused by repeated acquisition of original data. At the same time, distributed processing can effectively avoid the problem of time-consuming data processing and easy data loss due to large data volumes.
[0078] The key point of the present invention is to support multi-dimensional bill splitting, and support multiple matching methods such as full matching, placeholder matching, regular matching, etc. in split matching;
[0079] As described in the above example, we can support multi-dimensional bill splitting:
[0080] According to the configuration (id+subType), the booker or traveler is split according to their department, cost center, invoice header, work location, etc.
[0081] Matching method support:
[0082] (1) "xx area" full text matching method;
[0083] (2) "xxxx Group-[\u4e00-\u9fa5]{1,}-[\u4e00-\u9fa5]{1,} Wanyang Operation" contains the matching method of placeholders;
[0084] (3) “(?<=\()(.+?)(?=\))” (regular expression matching brackets), regular expression matching method.
[0085] All bill data are acquired concurrently to improve the efficiency of data acquisition; all data are put into memory for splitting, which improves the speed of splitting; the present invention supports automatic field export, can realize automatic generation of table headers, automatic merging of table headers, etc. to generate bill files, compress the generated files, and upload them to the OSS file server to improve the utilization rate of bill files.
[0086] It should be understood that although this specification is described according to implementation methods, not every implementation method contains only one independent technical solution. This narrative method of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions of each embodiment can also be appropriately combined to form other implementation methods that can be understood by those skilled in the art.
Claims
1. A bill file splitting method based on multi-dimensional configuration, characterized in that: include: Step S1: Obtain the summarized bill details data generated during the bill period; Step S2: Acquire multi-dimensional enterprise configuration information, wherein the enterprise configuration information includes at least the following configuration items: ID, matching keyword, matching type of matching keyword, and target personnel information; Step S3: matching corresponding bill data from the aggregated bill file according to the enterprise configuration information to obtain a matched bill data set and an unmatched bill data set; Step S4: splitting the bill files in the matching bill data set according to the enterprise configuration information to generate a corresponding first table; directly generating a corresponding second table for the bill files in the unmatched bill data set; Step S5: processing the first table and the second table, packaging them, and uploading them to the OSS file system; The processing of the first table and the second table in step S5 specifically includes: filling the first table and the second table with the bill file according to the preset template fields and the custom fields to generate a corresponding excel file; generating an independent sheet in the excel file to record the billing details; generating the summary amount of each business line of each split bill in the excel file; The configuration of the matching type of the matching keyword includes: if the matching type is 0, it indicates a fuzzy match of the keyword; if the matching type is 1, it indicates a regular expression match of the keyword combination; if the matching type is 2, it indicates a custom regular expression match; The first table and the second table are filled with the bill file according to the preset template fields and the custom fields to generate a corresponding Excel file; an independent sheet is generated in the Excel file to record the invoicing details, specifically including: according to the bill details, the invoice type and the business rules, the invoice details data is automatically constructed; the cell style is customized through the NOPI component, the cells are merged, and the table header is automatically generated; and the invoicing details data are filled in rows.
2. The bill file splitting method according to claim 1, characterized in that: The configuration of the ID includes: if the ID is configured as 1, it indicates the dimension of the invoice header; if the ID is configured as 2, it indicates the dimension of the department; if the ID is configured as 3, it indicates the dimension of the cost center; if the ID is configured as 4, it indicates the dimension of the work city; if the ID is configured as 5, it indicates the dimension of the company to which the payment belongs; The configuration of the target person information includes: if the ID is not configured or configured as 0, it is represented as a traveler dimension; if the ID is configured as 1, it is represented as a booker dimension.
3. The bill file splitting method according to claim 1, characterized in that: The summarized billing data is obtained in a concurrent manner, and all the obtained billing data are put into the memory for splitting.
4. A bill file splitting system based on multi-dimensional configuration, characterized in that: The system comprises: A summary bill file acquisition module is used to obtain the summary bill data; An enterprise configuration information acquisition module is used to acquire multi-dimensional enterprise configuration information, wherein the enterprise configuration information includes at least the following configuration items: ID, matching keyword, matching type of matching keyword, and target personnel information; A matching bill set acquisition module, used to match corresponding bill data from the aggregated bill file according to the enterprise configuration information to obtain a matching bill data set and an unmatched bill data set; A bill file splitting module, used to split the bill files in the matching bill data set according to the enterprise configuration information to generate a corresponding first table; for the bill files in the unmatched bill data set, directly generate a corresponding second table; A file packaging and uploading module, used for processing the first table and the second table, packaging them, and uploading them to the OSS file system; The processing of the first table and the second table in the file packaging and uploading module specifically includes: filling the first table and the second table with bill files according to preset template fields and custom fields to generate corresponding excel files; generating independent sheets in the excel files to record detailed invoicing data; generating the summary amount of each business line of each split bill in the excel files; The configuration of the matching type of the matching keyword includes: if the matching type is 0, it indicates a fuzzy match of the keyword; if the matching type is 1, it indicates a regular expression match of the keyword combination; if the matching type is 2, it indicates a custom regular expression match; The first table and the second table are filled with the bill file according to the preset template fields and the custom fields to generate a corresponding Excel file; an independent sheet is generated in the Excel file to record the invoicing details, specifically including: according to the bill details, the invoice type and the business rules, the invoice details data is automatically constructed; the cell style is customized through the NOPI component, the cells are merged, and the table header is automatically generated; and the invoicing details data are filled in rows.
5. The bill file splitting system according to claim 4 is characterized in that: The configuration of the ID includes: if the ID is configured as 1, it indicates the dimension of the invoice header; if the ID is configured as 2, it indicates the dimension of the department; if the ID is configured as 3, it indicates the dimension of the cost center; if the ID is configured as 4, it indicates the dimension of the work city; if the ID is configured as 5, it indicates the dimension of the company to which the payment belongs; The configuration of the target person information includes: if the ID is not configured or configured as 0, it is represented as a traveler dimension; if the ID is configured as 1, it is represented as a booker dimension.
6. The bill file splitting system according to claim 4, characterized in that: The summarized billing data is obtained in a concurrent manner, and all the obtained billing data are put into the memory for splitting.
