A report processing method and system

Through the report processing method and system, reports are directly generated using preset reports and query conditions, which solves the problem of high cost and low efficiency of existing report production methods, and realizes efficient and low-cost report production.

CN112287647BActive Publication Date: 2024-09-17AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing report production method is costly and inefficient. Technical personnel need to communicate frequently with business personnel, resulting in a waste of resources.

Method used

Provide a report processing method and system that presets configured reports and report templates, uses query conditions and table indicator information submitted by users to construct query statements, executes them in the database, and fills them directly into the report, reducing communication steps.

Benefits of technology

It reduces the cost of report production and improves efficiency, reduces the number of communications between technical personnel and business personnel, and improves the efficiency of report production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112287647B
    Figure CN112287647B
Patent Text Reader

Abstract

The present invention provides a report processing method and system. According to a report selection instruction, a report to be checked is determined from a plurality of preset configured reports; a query statement is constructed using query conditions and the index information of each table in the report to be checked; the query statement is executed in a database to obtain target data; according to the index information of each table in the report to be checked, the target data is filled in each table in the report to be checked to obtain a final result report; and the result report is fed back to the user using a query request or download request submitted by the user. In this scheme, after the report to be checked is determined, a query statement is constructed using query conditions and the index information of the report to be checked, and the query statement is executed in the database to obtain the target data. The target data is filled in the table of the report to be checked to obtain the final result report, and the result report is fed back to the user, so that the business personnel and technical personnel do not need to communicate frequently to produce the report, thereby reducing the production cost and improving the production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a report processing method and system. Background Art

[0002] In data processing work in various industries, making reports is a common way of working, that is, making reports that meet work requirements based on actual needs.

[0003] The current way to make reports is: the technical staff writes the corresponding code according to the business logic provided by the business staff, executes the written code to calculate the specific data, and then makes reports according to the requirements of the business staff and fills the calculated data into the report. However, with the increase in business types, each business needs to write corresponding codes and make corresponding reports. The technical staff needs to communicate frequently with the business staff and spend a lot of time writing codes and making reports. The cost of making reports is high and the efficiency is low. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a report processing method and system to solve the problems of high cost and low efficiency in the current report making method.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A first aspect of an embodiment of the present invention discloses a report processing method, the method comprising:

[0007] According to the report selection instruction, determine the report to be checked from a plurality of preset configured reports, wherein the configured reports are pre-built according to the report template, and the indicator information of each table is pre-configured in each of the configured reports;

[0008] Constructing a query statement using the query conditions submitted by the user and the indicator information of each table in the report to be queried;

[0009] Execute the query statement in the database to obtain target data;

[0010] According to the indicator information of each table in the report to be checked, the target data is filled in each table in the report to be checked to obtain the final result report;

[0011] The result report is fed back to the user using the query request or download request submitted by the user.

[0012] Preferably, the process of building each configured report includes:

[0013] Obtaining a report template and displaying the report template in a specified application software;

[0014] According to the table selection instruction and the indicator selection instruction, the indicator information of each table in the report template is configured to obtain a configured report. The table selection instruction at least includes the selected table in the report template, and the indicator selection instruction includes the indicator information corresponding to the selected table.

[0015] Preferably, the query statement is constructed by using the query conditions submitted by the user and the indicator information of each table in the report to be queried, including:

[0016] For each table in the report to be queried, a query formula corresponding to the table is constructed using the query conditions submitted by the user and the index information of the table;

[0017] For each table in the report to be checked, the query formula corresponding to the table is sequentially subjected to lexical analysis, grammatical analysis, semantic conversion and semantic analysis to obtain semantic information;

[0018] For each table in the report to be queried, semantic information corresponding to the table is assembled to obtain a query statement.

[0019] Preferably, executing the query statement in the database to obtain the target data includes:

[0020] Performing lexical analysis, syntax analysis, query analysis and semantic analysis on the query statement in the database in turn to obtain a corresponding query plan;

[0021] Execute the query plan to obtain target data.

[0022] Preferably, the target data is filled into each table in the report to be checked according to the indicator information of each table in the report to be checked, so as to obtain the final result report, including:

[0023] For each table in the report to be checked, determining data corresponding to the indicator information of the table from the target data;

[0024] Fill in the data corresponding to each form into each form to obtain the final result report.

[0025] Preferably, configuring the indicator information of each table in the report template according to the table selection instruction and the indicator selection instruction to obtain the configured report includes:

[0026] Determine the selected table in the report template according to the table selection instruction;

[0027] Display all indicator information to users;

[0028] According to the indicator selection instruction, determining the indicator information corresponding to the selected table from all the indicator information;

[0029] If a configuration completion instruction indicating that the report template has been configured is received, determining that the report template that has been configured is a configured report;

[0030] If the configuration completion instruction is not received, the process returns to the step of determining the selected table in the report template according to the table selection instruction.

[0031] Preferably, the step of feeding back the result report to the user by using the query request or download request submitted by the user comprises:

[0032] Using the query request submitted by the user, display the result report in the specified application software;

[0033] or,

[0034] The result report is downloaded in the form of an Excel spreadsheet using the download request submitted by the user.

[0035] A second aspect of an embodiment of the present invention discloses a report processing system, the system comprising:

[0036] A determination unit, configured to determine a report to be checked from a plurality of preset configured reports according to a report selection instruction, wherein the configured reports are pre-built according to a report template, and indicator information of each table is pre-configured in each of the configured reports;

[0037] A construction unit, used to construct a query statement using the query conditions submitted by the user and the indicator information of each table in the report to be queried;

[0038] An execution unit, used for executing the query statement in the database to obtain target data;

[0039] A filling unit is used to fill the target data into each table in the report to be checked according to the indicator information of each table in the report to be checked, so as to obtain a final result report;

[0040] The feedback unit is used to feed back the result report to the user by using the query request or download request submitted by the user.

[0041] Preferably, the determining unit for constructing each configured report comprises:

[0042] An acquisition module, used to acquire a report template and display the report template in a specified application software;

[0043] A configuration module is used to configure the indicator information of each table in the report template according to a table selection instruction and an indicator selection instruction to obtain a configured report. The table selection instruction at least includes the selected table in the report template, and the indicator selection instruction includes the indicator information corresponding to the selected table.

[0044] Preferably, the building block comprises:

[0045] A construction module is used to construct a query formula corresponding to each table in the report to be queried by using the query conditions submitted by the user and the index information of the table;

[0046] A processing module is used to perform lexical analysis, grammatical analysis, semantic conversion and semantic analysis on the query formula corresponding to each table in the report to be checked, so as to obtain semantic information;

[0047] The assembling module is used to assemble the semantic information corresponding to each table in the report to be checked to obtain a query statement.

[0048] Based on the above-mentioned embodiment of the present invention, a report processing method and system are provided. The method is as follows: according to the report selection instruction, determine the report to be checked from multiple preset configured reports; use the query conditions submitted by the user and the index information of each table in the report to be checked to construct a query statement; execute the query statement in the database to obtain the target data; according to the index information of each table in the report to be checked, fill in the target data in each table in the report to be checked to obtain the final result report; use the query request or download request submitted by the user to feed back the result report to the user. In this scheme, after determining the report to be checked, use the query conditions and the index information of the report to be checked to construct a query statement, and execute the query statement in the database to obtain the target data. Fill in the target data in the table of the report to be checked to obtain the final result report, and feed back the result report to the user. There is no need for business personnel and technical personnel to communicate frequently to make reports, which reduces the cost of making reports and improves the efficiency of making reports. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0050] Figure 1 A flow chart of a report processing method provided by an embodiment of the present invention;

[0051] Figure 2Another flow chart of a report processing method provided by an embodiment of the present invention;

[0052] Figure 3 A flowchart of constructing a query statement provided by an embodiment of the present invention;

[0053] Figure 4 A flowchart for determining a configured report provided by an embodiment of the present invention;

[0054] Figure 5 Another flow chart for determining a configured report provided by an embodiment of the present invention;

[0055] Figure 6 A structural block diagram of a report processing system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0058] As can be seen from the background technology, when making reports, technical personnel need to communicate frequently with business personnel, and then make reports based on the data and requirements provided by the business personnel. Making reports requires a lot of time for communication and code writing, and the cost of making reports is high and the efficiency is low.

[0059] Therefore, the embodiment of the present invention provides a report processing method and system, after determining the report to be checked, a query statement is constructed using the query conditions and the indicator information of the report to be checked, and the query statement is executed in the database to obtain the target data. The target data is filled in the table of the report to be checked to obtain the final result report, and the result report is fed back to the user to reduce the cost of making reports and improve the efficiency of making reports.

[0060] See also Figure 1, shows a flow chart of a report processing method provided by an embodiment of the present invention, the report processing method comprising:

[0061] Step S101: according to a report selection instruction, a report to be checked is determined from a plurality of preset configured reports.

[0062] It should be noted that the configured reports are constructed in advance according to the report template, and the indicator information of each table in each configured report is pre-configured.

[0063] It is understandable that when building each configured report, the user uploads the report template, selects a table in the report template and configures the corresponding indicator information for the selected table. The specific process of configuring the configured report is as follows:

[0064] Obtain a report template and display the report template in a specified application software (such as a browser). According to the table selection instruction and the indicator selection instruction, configure the indicator information of each table in the report template to obtain a configured report. The table selection instruction at least includes the selected table in the report template, and the indicator selection instruction includes the indicator information corresponding to the selected table.

[0065] It should be noted that the table template is determined according to the actual needs of the user, and the format of the report template can be Excel or WPS table format.

[0066] In the specific implementation of step S101 , according to the report selection instruction, a report to be checked is determined from a plurality of preset configured reports, and a report query page is generated according to the report configuration information corresponding to the report to be checked, and the report query page is displayed to the user.

[0067] It should be noted that before configuring each configured report, the corresponding report configuration information is pre-configured and stored in the database.

[0068] Step S102: construct a query statement using the query conditions submitted by the user and the indicator information of each table in the report to be queried.

[0069] In the specific implementation of step S102, the user selects the corresponding query condition according to actual needs, and after the user selects the query condition, the query condition is obtained accordingly. The query condition and the index information of each table in the report to be queried are used to construct the query statement corresponding to each table.

[0070] It should be noted that the type of the query statement may be Structured Query Language (SQL) or other types of languages, which are not specifically limited here.

[0071] Step S103: Execute the query statement in the database to obtain the target data.

[0072] In the specific implementation of step S103, lexical analysis, syntax analysis, query analysis and semantic analysis are performed on the query statement in the database in turn to obtain a corresponding query plan, and the query plan is executed to obtain the target data.

[0073] That is to say, for the query statement corresponding to each table, the query statement is subjected to lexical analysis, syntax analysis, query analysis and semantic analysis in the database in turn to obtain a corresponding query plan, and the query plan is executed to obtain the target data corresponding to the query statement.

[0074] Step S104: according to the indicator information of each table in the report to be checked, fill in the target data correspondingly into each table in the report to be checked to obtain the final result report.

[0075] In the specific implementation of step S104, for each table in the report to be checked, data corresponding to the indicator information of the table is determined from the target data, and the data corresponding to each table is filled into each table to obtain the final result report.

[0076] That is, for each table, after determining the data in the target data corresponding to the indicator information of the table, determine the position of the table in the report to be checked, and fill the data in the target data corresponding to the table into the position. After filling in the data of each table, the final result report is obtained.

[0077] Step S105: using the query request or download request submitted by the user, the result report is fed back to the user.

[0078] In the specific implementation of step S105, the query request submitted by the user is used to display the result report in the specified application software, or the download request submitted by the user is used to download the result report in the form of an Excel table.

[0079] In the embodiment of the present invention, after determining the report to be checked, a query statement is constructed using the query conditions and the index information of the report to be checked, and the query statement is executed in the database to obtain the target data. The target data is filled in the table of the report to be checked to obtain the final result report, and the result report is fed back to the user, so that the business personnel and technical personnel do not need to communicate frequently to make the report, which reduces the cost of making the report and improves the efficiency of making the report.

[0080] To better explain the above embodiments of the present invention Figure 1 The content in Figure 2 , combined with the user's operation process to give an example, it should be noted that, Figure 2 For illustration purposes only.

[0081] See also Figure 2 , shows another flow chart of a report processing method provided by an embodiment of the present invention, the report processing method comprising:

[0082] Step S201: The user enters the report query page.

[0083] It is understandable that the user completes the user login process in advance and enters the report query page after logging in.

[0084] Step S202: The user selects a report to be queried from a plurality of configured reports, and generates a report query page according to pre-configured report configuration information.

[0085] Step S203: The user selects a corresponding query condition and submits a query request or a download request.

[0086] Step S204: construct an SQL query statement according to the query condition selected by the user and the indicator information of each table corresponding to the report to be queried, and send the SQL query statement to the database.

[0087] Step S205: Execute the SQL query statement in the database to obtain the corresponding target data.

[0088] Step S206: fill in each table with the data corresponding to the indicator information of each table in the target data according to the position of each table in the report to be checked, and obtain the final result report.

[0089] Step S207: Display the result report in the browser, or download the result report in the form of an Excel spreadsheet.

[0090] It should be noted that the execution principles of steps S201 to S207 refer to the above-mentioned embodiment of the present invention. Figure 1 The contents in will not be repeated here.

[0091] The above embodiments of the present invention Figure 1 For the process of constructing the query statement involved in step S102, see Figure 3 , shows a flowchart of constructing a query statement provided by an embodiment of the present invention, including the following steps:

[0092] Step S301: for each table in the report to be queried, a query formula corresponding to the table is constructed using the query conditions submitted by the user and the index information of the table.

[0093] It should be noted that for each table of the report to be queried, the data corresponding to each table needs to be queried from the database, so it is necessary to first construct a query formula corresponding to the table, and then convert the query formula into a query statement that can be run in the database.

[0094] In the specific implementation of step S301 , for each table of the report to be queried, a query formula corresponding to the table is constructed using the query conditions and the index information of the table.

[0095] Step S302: for each table in the report to be checked, lexical analysis, syntax analysis, semantic conversion and semantic analysis are performed on the query formula corresponding to the table in turn to obtain semantic information.

[0096] In the process of specifically implementing step S302, for each table in the report to be queried, a lexical analysis is performed on the query formula corresponding to the table to obtain a lexical analysis result, and then a grammatical analysis is performed on the lexical analysis result to obtain a grammatical analysis result, and then a semantic conversion is performed on the grammatical analysis result to obtain a semantic conversion result, and then a semantic analysis is performed on the semantic conversion result to obtain semantic information corresponding to the query formula of the table.

[0097] In order to better explain how to perform lexical analysis, grammatical analysis, semantic conversion and semantic analysis on a query formula, the following content is used for explanation.

[0098] Lexical analysis: Use lexical analysis tools (such as the lex tool) to identify words by defining regular expressions, split the formula string corresponding to the query formula into multiple tokens, and obtain the corresponding lexical analysis results.

[0099] Syntax analysis: Use syntax analysis tools (such as the yacc tool) to perform syntax analysis on the lexical analysis results by defining reduction productions to generate a syntax analysis tree (i.e., syntax analysis results).

[0100] Semantic conversion: By merging the associated sub-formula nodes in the grammatical analysis tree, the grammatical analysis tree is optimized, and the optimized grammatical analysis tree is the semantic conversion result.

[0101] Semantic analysis: traverse each node of the optimized syntax analysis tree to obtain the semantic information of the assembled query statement.

[0102] Step S303: for each table in the report to be queried, assemble the semantic information corresponding to the table to obtain a query statement.

[0103] In the specific implementation of step S303, for each table in the report to be queried, the semantic information corresponding to the table is assembled to obtain the query statement corresponding to the table.

[0104] In an embodiment of the present invention, a query formula is generated using query conditions and indicator information, and the query formula is subjected to lexical analysis, grammatical analysis, semantic conversion, and semantic analysis in sequence to obtain semantic information, and finally the semantic information is assembled to obtain a query statement. This eliminates the need for technical personnel and business personnel to frequently communicate and then manually write query statements, thereby improving the efficiency of report making and reducing the cost of report making.

[0105] The above embodiments of the present invention Figure 1 For the process of configuring the configured report involved in step S101, see Figure 4 , shows a flow chart of determining a configured report provided by an embodiment of the present invention, including the following steps:

[0106] Step S401: Determine the selected table in the report template according to the table selection instruction.

[0107] It should be noted that the report template uploaded by the user is saved in advance to the specified directory of the server, and the report template is displayed in the specified application software. In the specific implementation process of step S401, the user selects the table that needs to be configured with indicator information in the report template, that is, the selected table in the report template is determined according to the table selection instruction.

[0108] It should be noted that the table in the report template selected by the user is more than one (including one) table. For example, the user can determine which tables to select by selecting row and column information in the report template.

[0109] Step S402: Display all indicator information to the user.

[0110] In the specific process of implementing step S402, all existing indicator information is displayed to the user, so that the user can select the indicator information to be displayed in the selected table.

[0111] Step S403: According to the indicator selection instruction, the indicator information corresponding to the selected table is determined from all the indicator information.

[0112] In the specific implementation of step S403 , after the user selects the indicator information to be displayed in the selected table, the indicator information corresponding to the selected table is determined from all the indicator information according to the corresponding indicator selection instruction.

[0113] Step S404: Determine whether a configuration completion instruction indicating that the report template has been configured is received. If a configuration completion instruction indicating that the report template has been configured is received, execute step S405. If no configuration completion instruction is received, return to execute step S401.

[0114] It should be noted that after the user completes the configuration of the report template, the user sends a corresponding configuration completion instruction indicating that the configuration of the report template has been completed in a specified form (such as by clicking a confirmation button). In the specific implementation of step S404, it is determined whether the configuration completion instruction is received. If the configuration completion instruction is received, the report template that has completed the configuration is determined to be a configured report. If the configuration completion instruction is not received, the process returns to step S401 to continue to determine the indicator information of the table in the report template.

[0115] Step S405: Determine that the report template that has completed configuration is a configured report.

[0116] In the specific implementation of step S405, after completing the configuration of the report template, the corresponding relationship between the table in the report template and the indicator information can be established.

[0117] In an embodiment of the present invention, a report template is determined according to the actual needs of the user, and corresponding indicator information is configured for the table of the report template. After the report template is configured, the corresponding configured report is obtained, so that the obtained configured report meets the various needs of the user. There is no need for frequent communication between technical personnel and business personnel to produce reports that meet the needs of business personnel, thereby improving the efficiency of report production.

[0118] To better explain the present invention Figure 4 content, through Figure 5 , combined with the user's operation process to give an example, it should be noted that, Figure 5 For illustration purposes only.

[0119] See also Figure 5 , shows another flow chart of determining a configured report provided by an embodiment of the present invention, including the following steps:

[0120] Step S501: The user enters the report configuration page.

[0121] It is understandable that the user completes the user login process in advance and enters the report configuration page after logging in.

[0122] Step S502: The user configures report configuration information, and saves the report configuration information into a database.

[0123] Step S503: The user uploads the report template, saves the report template to a designated directory of the server, and displays the report template in a browser.

[0124] Step S504: The user selects a table in the report template and submits a request for obtaining indicator information.

[0125] Step S505: Display all indicator information to the user.

[0126] Step S506: The user selects the indicator information to be displayed in the selected table.

[0127] Step S507: Check whether the configuration of the report template is completed. If so, determine whether the configured report is obtained. If not, return to step S504.

[0128] Corresponding to a report processing method provided by the above embodiment of the present invention, see Figure 6 , the embodiment of the present invention also provides a structural block diagram of a report processing system, the report processing system includes: a determination unit 601, a construction unit 602, an execution unit 603, a filling unit 604 and a feedback unit 605;

[0129] The determination unit 601 is used to determine the report to be checked from a plurality of preset configured reports according to the report selection instruction, wherein the configured reports are pre-built according to the report template, and the indicator information of each table is pre-configured in each configured report.

[0130] The construction unit 602 is used to construct a query statement using the query conditions submitted by the user and the indicator information of each table in the report to be queried.

[0131] The execution unit 603 is used to execute the query statement in the database to obtain the target data.

[0132] In a specific implementation, the execution unit 603 is specifically used to: perform lexical analysis, syntax analysis, query analysis and semantic analysis on the query statement in the database in sequence, obtain a corresponding query plan, and execute the query plan to obtain target data.

[0133] The filling unit 604 is used to fill the target data into each table in the report to be checked according to the indicator information of each table in the report to be checked, so as to obtain the final result report.

[0134] In a specific implementation, the filling unit 604 is specifically used to: for each table in the report to be checked, determine the data corresponding to the indicator information of the table from the target data, fill the data corresponding to each table into each table, and obtain the final result report.

[0135] The feedback unit 605 is used to feed back the result report to the user by using the query request or download request submitted by the user.

[0136] In a specific implementation, the feedback unit 605 is specifically used to: display the result report in a specified application software using a query request submitted by a user, or download the result report in an Excel spreadsheet format using a download request submitted by a user.

[0137] In the embodiment of the present invention, after determining the report to be checked, a query statement is constructed using the query conditions and the index information of the report to be checked, and the query statement is executed in the database to obtain the target data. The target data is filled in the table of the report to be checked to obtain the final result report, and the result report is fed back to the user, so that the business personnel and technical personnel do not need to communicate frequently to make the report, which reduces the cost of making the report and improves the efficiency of making the report.

[0138] Preferably, combined Figure 6 The content shown is used to construct the determination unit 601 of each configured report, including: an acquisition module and a configuration module. The execution principle of each module is as follows:

[0139] The acquisition module is used to obtain the report template and display the report template in the specified application software.

[0140] The configuration module is used to configure the indicator information of each table in the report template according to the table selection instruction and the indicator selection instruction to obtain the configured report. The table selection instruction includes at least the selected table in the report template, and the indicator selection instruction includes the indicator information corresponding to the selected table.

[0141] In a specific implementation, the configuration module is specifically used to: determine the selected table in the report template according to the table selection instruction, display all indicator information to the user, determine the indicator information corresponding to the selected table from all the indicator information according to the indicator selection instruction, if a configuration completion instruction indicating that the report template has been configured is received, determine that the report template that has been configured is a configured report, if the configuration completion instruction is not received, return to execute the step of determining the selected table in the report template according to the table selection instruction.

[0142] In an embodiment of the present invention, a report template is determined according to the actual needs of the user, and corresponding indicator information is configured for the table of the report template. After the report template is configured, the corresponding configured report is obtained, so that the obtained configured report meets the various needs of the user. There is no need for frequent communication between technical personnel and business personnel to produce reports that meet the needs of business personnel, thereby improving the efficiency of report production.

[0143] Preferably, combined Figure 6 The content shown, the construction unit 602 includes: a construction module, a processing module and an assembly module, and the execution principle of each module is as follows:

[0144] The construction module is used to construct a query formula corresponding to each table in the report to be queried by using the query conditions submitted by the user and the indicator information of the table.

[0145] The processing module is used to perform lexical analysis, grammatical analysis, semantic conversion and semantic analysis on the query formula corresponding to each table in the report to be checked, so as to obtain semantic information.

[0146] The assembly module is used to assemble the semantic information corresponding to each table in the report to be queried to obtain a query statement.

[0147] In an embodiment of the present invention, a query formula is generated using query conditions and indicator information, and the query formula is subjected to lexical analysis, grammatical analysis, semantic conversion, and semantic analysis in sequence to obtain semantic information, and finally the semantic information is assembled to obtain a query statement. This eliminates the need for technical personnel and business personnel to frequently communicate and then manually write query statements, thereby improving the efficiency of report making and reducing the cost of report making.

[0148] In summary, the embodiment of the present invention provides a report processing method and system. After determining the report to be checked, a query statement is constructed using the query conditions and the indicator information of the report to be checked, and the query statement is executed in the database to obtain the target data. The target data is filled in the table of the report to be checked to obtain the final result report, and the result report is fed back to the user. The business personnel and technical personnel do not need to communicate frequently to make the report, which reduces the cost of making the report and improves the efficiency of making the report.

[0149] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0150] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0151] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A report processing method, characterized in that: The method comprises: According to the report selection instruction, a report to be checked is determined from a plurality of preset configured reports, wherein the configured reports are pre-built according to a report template; Using the query conditions submitted by the user and the index information of each table in the report to be queried, a query statement is constructed, and the type of the query statement is structured query language; Execute the query statement in the database to obtain target data; According to the indicator information of each table in the report to be checked, the target data is filled in each table in the report to be checked to obtain the final result report; Feedback the result report to the user using the query request or download request submitted by the user; The process of building each configured report includes: Obtaining a report template and displaying the report template in a specified application software; According to the table selection instruction and the indicator selection instruction, the indicator information of each table in the report template is configured to obtain a configured report, wherein the table selection instruction at least includes the selected table in the report template, and the indicator selection instruction includes the indicator information corresponding to the selected table; The query statement is constructed by using the query conditions submitted by the user and the indicator information of each table in the report to be queried, including: For each table in the report to be queried, a query formula corresponding to the table is constructed using the query conditions submitted by the user and the index information of the table; For each table in the report to be checked, the query formula corresponding to the table is sequentially subjected to lexical analysis, grammatical analysis, semantic conversion and semantic analysis to obtain semantic information; For each table in the report to be queried, assemble the semantic information corresponding to the table to obtain a query statement; The step of executing the query statement in the database to obtain target data includes: Performing lexical analysis, syntax analysis, query analysis and semantic analysis on the query statement in the database in turn to obtain a corresponding query plan; Execute the query plan to obtain target data; According to the indicator information of each table in the report to be checked, the target data is filled in each table in the report to be checked to obtain the final result report, including: For each table in the report to be checked, determining data corresponding to the indicator information of the table from the target data; Fill in the data corresponding to each of the tables into each of the tables to obtain a final result report; The step of configuring the indicator information of each table in the report template according to the table selection instruction and the indicator selection instruction to obtain the configured report includes: Determine the selected table in the report template according to the table selection instruction; Display all indicator information to users; According to the indicator selection instruction, determining the indicator information corresponding to the selected table from all the indicator information; If a configuration completion instruction indicating that the report template has been configured is received, determining that the report template that has been configured is a configured report; If the configuration completion instruction is not received, the process returns to the step of determining the selected table in the report template according to the table selection instruction.

2. The method according to claim 1, characterized in that The step of feeding back the result report to the user by using the query request or download request submitted by the user includes: Using the query request submitted by the user, display the result report in the specified application software; or, The result report is downloaded in the form of an Excel spreadsheet using the download request submitted by the user.

3. A report processing system applied to the report processing method according to claim 1 or 2, characterized in that: The system comprises: A determination unit, configured to determine a report to be checked from a plurality of preset configured reports according to a report selection instruction, wherein the configured reports are pre-constructed according to a report template; A construction unit, used to construct a query statement using the query conditions submitted by the user and the indicator information of each table in the report to be queried, wherein the type of the query statement is structured query language; An execution unit, used for executing the query statement in the database to obtain target data; A filling unit is used to fill the target data into each table in the report to be checked according to the indicator information of each table in the report to be checked, so as to obtain a final result report; A feedback unit, used to feed back the result report to the user using the query request or download request submitted by the user; The determining unit for constructing each configured report comprises: An acquisition module, used to acquire a report template and display the report template in a specified application software; A configuration module is used to configure the indicator information of each table in the report template according to a table selection instruction and an indicator selection instruction to obtain a configured report. The table selection instruction at least includes the selected table in the report template, and the indicator selection instruction includes the indicator information corresponding to the selected table.