Report data processing method, device, equipment, storage medium and program product

By responding to user needs in the report tool, converting and splicing the numerical values ​​and unit identifiers of data items, the problem of limited output forms of the report tool is solved, a flexible data output form is realized, user customization is supported, and the problems caused by version upgrades are avoided. problem.

CN113220754BActive Publication Date: 2024-10-29AGRICULTURAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110559229.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-21
Publication Date
2024-10-29
Estimated Expiration
2041-05-21

AI Technical Summary

Technical Problem

Existing reporting tools provide limited data output formats and cannot meet user-defined output needs. Especially when output on a thousand-cent or ten-thousand-cent scale is required, they lack flexibility and scalability.

Method used

By responding to the report request, the value of the data item is generated according to the user's demand information, converted into data information and strings in the target output form, and spliced ​​with the unit identifier to achieve customized output of the report data.

Benefits of technology

It expands and enriches the output forms of report data, supports user-defined data output forms, avoids the economic costs and version compatibility risks caused by version upgrades, and achieves flexible data output.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113220754B_ABST
    Figure CN113220754B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, device, storage medium and program product for processing report data. The method of the present application generates numerical values ​​corresponding to data items in a report in response to a report request and according to report requirement information, wherein the report requirement information includes a target output form corresponding to the data item; if the target output form is not a preset output form, the numerical values ​​corresponding to the data item are converted into data information of the target output form, and the data information is converted into a character string; the character string is concatenated with a unit identifier corresponding to the data item to obtain report data corresponding to the data item, the numerical values ​​of the target output form are obtained by numerically converting the numerical values ​​of the data items in the report, and then processed into a character string, and finally the unit identifiers of the statistical dimensions are concatenated to output data of any statistical dimension in the form of a character string, thereby expanding and enriching the output form of the report data and supporting user-defined data output forms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer technology, and in particular to a method, device, equipment, storage medium and program product for processing report data. Background Art

[0002] In software development, reports are an important form of data presentation, such as the common annual reports, quarterly reports, etc. Currently, most users develop reports by introducing third-party reporting tools, but the data output forms provided by third-party reporting tools are limited.

[0003] When the user wants to output data in other forms, for example, the user wants to output data in the form of thousandths or ten thousandths, but the reporting tool only provides the output form of percentages, then the data cannot be output in the form the user wants, and there is a situation where the data output form required by the user is not available. Summary of the invention

[0004] The present application provides a method, apparatus, device, storage medium and program product for processing report data, so as to solve the problem that the report tool lacks the data output format required by users.

[0005] In one aspect, the present application provides a method for processing report data, comprising:

[0006] In response to the report request, generating values ​​corresponding to data items in the report according to report requirement information, wherein the report requirement information includes a target output format corresponding to the data items;

[0007] Convert the numerical value corresponding to the data item into data information in the target output form, and convert the data information into a character string;

[0008] Concatenate the character string with the unit identifier corresponding to the data item to obtain report data corresponding to the data item;

[0009] The report data is output.

[0010] On the other hand, the present application provides a report data processing device, including:

[0011] A value acquisition module, used to generate, in response to a report request, a value corresponding to a data item in the report according to report requirement information, wherein the report requirement information includes a target output format corresponding to the data item;

[0012] A numerical processing module, used for converting the numerical value corresponding to the data item into data information in the target output form;

[0013] A string conversion module, used to convert the data information into a string;

[0014] A string concatenation module, used for concatenating the unit identifier corresponding to the data item at the end of the string to obtain the report data corresponding to the data item;

[0015] The report output module is used to output the report data.

[0016] On the other hand, the present application provides a report data processing device, including:

[0017] A processor, a memory, and a computer program stored on the memory and executable on the processor;

[0018] Wherein, the processor implements the above-mentioned report data processing method when running the computer program.

[0019] On the other hand, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned report data processing method.

[0020] On the other hand, the present application provides a computer program product, including a computer program, which implements the above-mentioned report data processing method when executed by a processor.

[0021] The report data processing method, apparatus, equipment, storage medium and program product provided in the present application generate numerical values ​​corresponding to data items in a report in response to a report request according to report requirement information, wherein the report requirement information includes a target output form corresponding to the data item; if the target output form is not a preset output form, the numerical value corresponding to the data item is converted into data information of the target output form, and the data information is converted into a character string; the character string is concatenated with a unit identifier corresponding to the data item to obtain report data corresponding to the data item, the numerical value of the target output form is obtained by numerically converting the numerical value of the data item in the report, and then processing it into a character string, and finally concatenating the unit identifier of the statistical dimension, and outputting data of any statistical dimension in the form of a character string, thereby expanding and enriching the output form of the report data and supporting user-defined data output forms. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0023] Figure 1 A schematic diagram of a process framework of a method for processing report data provided in an embodiment of the present application;

[0024] Figure 2 A flow chart of a method for processing report data provided in Example 1 of the present application;

[0025] Figure 3 A flow chart of a method for processing report data provided in Example 2 of the present application;

[0026] Figure 4 A schematic diagram of the structure of the apparatus for processing report data provided in Embodiment 3 of the present application;

[0027] Figure 5 A schematic diagram of the structure of the apparatus for processing report data provided in the fourth embodiment of the present application;

[0028] Figure 6 An example diagram of the framework of the apparatus for processing report data provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of the structure of the report data processing device provided in Example 5 of the present application.

[0030] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0031] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0032] First, the terms involved in this application are explained:

[0033] Report: Statistical data displayed in table or chart form in software development.

[0034] Reporting tools: software for rapid development of various types of reports.

[0035] Output format: data and units counted by different dimensions.

[0036] Data type: A general term for a set of values ​​with the same properties and a set of operations defined on this set of values. Different programming languages ​​support the processing of different types of data types.

[0037] Numeric type: A data type that can perform numerical arithmetic operations.

[0038] String: A computer data consisting of a single character or multiple characters.

[0039] Concatenation: connect one or more strings together according to certain rules.

[0040] Numerical conversion: converting data expressed in one unit or statistical dimension into data expressed in another unit or statistical dimension.

[0041] Statistical dimension: the basis for statistics and calculations based on certain units and divisions.

[0042] Unit identifier: A symbolic identifier that represents a statistical dimension.

[0043] Data processing: Integrate data into other rules to transform it into new data.

[0044] Data preprocessing: Processing data before passing it into a module.

[0045] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0046] The report data processing method provided in this application can be specifically applied to a system with a report function. The system includes a report tool, which can be a report tool provided by a third-party platform introduced by the system. This type of report tool is limited by the purchased version, and the data output form can only be the output form provided by the report tool. The process framework of the report data processing method provided in this application is as follows: Figure 1 As shown, first obtain the report requirements, and determine the output form of the report required by the user according to the report requirements. If the output form of the report is a data output form supported by the report tool, the report tool can be used to generate and output the report. If the output form of the report is a data output form not supported by the report tool, the output form of the numerical value in the report is converted, the string is converted, and the corresponding unit identifier is concatenated to obtain the report data in the required output form, and the report tool is used to directly output the string type report data.

[0047] The report data processing method provided in this application is intended to expand and enrich the data output form of the report.

[0048] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0049] Embodiment 1

[0050] Figure 2 A flow chart of a method for processing report data provided in Example 1 of the present application. In view of the problem that the report tool lacks the data output format required by the user, the embodiment of the present application provides a method for processing report data. The method in this embodiment is applied to a device for processing report data, which may be a device having a report tool and a report system having a report function, such as a mobile terminal such as a smart phone or a tablet, or a report server, etc. In other embodiments, the method may also be applied to other devices. This embodiment is schematically described using a device for processing report data as an example.

[0051] like Figure 2 As shown, the specific steps of this method are as follows:

[0052] Step S101 : in response to a report request, generating values ​​corresponding to data items in the report according to report requirement information, wherein the report requirement information includes target output formats corresponding to the data items.

[0053] In software development, reports are an important form of data presentation, such as the common annual reports and quarterly reports. Currently, most developers develop reports by introducing third-party reporting tools, which is more efficient than developing reports directly. However, the data output forms provided by third-party reporting tools are limited, and there is a lack of data output forms we need.

[0054] The version upgrades released by the reporting tool manufacturer and the customized version upgrades will incur additional economic costs, and the waiting time for the reporting tool manufacturer to upgrade the version is long. The introduction of different versions of reporting tools into the system will also bring version compatibility risks, and some functions of previously developed report files may no longer be supported. Even if the reporting tool version is upgraded, the expansion of data output formats is limited, and only the limited output formats provided by the reporting tool can be selected, which lacks flexibility.

[0055] In this embodiment, when statistics are required to generate a report, the user may send a report request to a device for processing report data, and the report request may carry report requirement information.

[0056] Among them, the report requirement information includes the data items contained in the report, the statistical dimensions, target output format, unit identifier, statistical rules, etc. corresponding to each data item. The report requirement information can also include other data information required for generating reports. It can be set and adjusted according to the needs of the actual application scenario, and no specific limitation is made here.

[0057] The report data processing equipment performs statistical data according to the report requirement information and can generate numerical values ​​corresponding to the data items in the report.

[0058] Step S102: convert the numerical value corresponding to the data item into data information in a target output format, and convert the data information into a character string.

[0059] In this embodiment, the report data processing device can convert the numerical value corresponding to the data item into data information in a target output form, and convert the data information into a character string.

[0060] Step S103: Concatenate the character string and the unit identifier corresponding to the data item to obtain report data corresponding to the data item.

[0061] After converting the data information of the target output form into a character string, the character string is concatenated with the unit identifier corresponding to the data item. The content of the concatenated character string is the representation of the target output form of the numerical value corresponding to the data item and contains the corresponding unit identifier, that is, the character string of the report data corresponding to the data item is obtained.

[0062] Step S104: output report data.

[0063] After obtaining the report data corresponding to the data item, the report data is output, so that a report can be generated.

[0064] In an embodiment of the present application, in response to a report request, numerical values ​​corresponding to data items in the report are generated according to report requirement information, wherein the report requirement information includes a target output form corresponding to the data items; if the target output form is not a preset output form, the numerical values ​​corresponding to the data items are converted into data information of the target output form, and the data information is converted into a string; the string is concatenated with a unit identifier corresponding to the data item to obtain report data corresponding to the data item, the numerical values ​​of the target output form are obtained by numerically converting the numerical values ​​of the data items in the report, and then processed into a string, and finally the unit identifiers of the statistical dimensions are concatenated, and data of any statistical dimension are output in the form of a string, thereby expanding and enriching the output form of the report data and supporting user-defined data output forms.

[0065] Embodiment 2

[0066] Figure 3A flow chart of the method for report data processing provided in Example 2 of the present application. On the basis of the above-mentioned Example 1, in this embodiment, the report data processing device is taken as an example of a report system with an introduced report tool, and the process of report data processing is described in detail. In this embodiment, the numerical value corresponding to the data item is converted into data information in a target output form, and the data information is converted into a character string, including: if it is determined that the target output form is not a preset output form, the numerical value corresponding to the data item is converted into data information in the target output form, and the data information is converted into a character string. If it is determined that the target output form is a preset output form, the numerical value corresponding to the data item is converted into report data in the target output form through the report tool.

[0067] like Figure 3 As shown, the specific steps of this method are as follows:

[0068] Step S201: In response to a report request, obtain report requirement information, where the report requirement information includes data items included in the report, statistical dimensions corresponding to the data items, target output format, and unit identifier.

[0069] In software development, reports are an important form of data presentation, such as the common annual reports and quarterly reports. Currently, most developers develop reports by introducing third-party reporting tools, which is more efficient than developing reports directly. However, the data output forms provided by third-party reporting tools are limited, and there is a lack of data output forms we need.

[0070] In this embodiment, when statistics are required to generate a report, the user may send a report request to a device for processing report data, and the report request may carry report requirement information.

[0071] After receiving the report request, the report data processing device can extract the report requirement information therefrom.

[0072] The report requirement information includes the data items included in the report, the statistical dimensions corresponding to the data items, the target output format and the unit identifier.

[0073] In addition, the report requirement information may also include statistical rules corresponding to each data item and other data information required for generating a report, which may be set and adjusted according to the needs of the actual application scenario and is not specifically limited here.

[0074] In this embodiment, the report may include one or more data items, and different data items may correspond to different statistical dimensions, target output forms, unit identifiers, statistical rules, etc. The user may customize the statistical dimensions of the data items in the report, as well as the target output forms, unit identifiers, statistical rules, etc. corresponding to the statistical dimensions according to the needs of actual applications.

[0075] If the report contains multiple data items, the following steps S202 to S207 are performed on each data item to determine the report data corresponding to each data item.

[0076] Step S202: Generate numerical values ​​corresponding to data items in the report according to the report requirement information.

[0077] After obtaining the report requirement information, data statistics are performed according to the statistical dimensions of the data items in the report requirement information to obtain the values ​​corresponding to the data items.

[0078] In addition, when performing data statistics, statistical rules corresponding to the data items are also required, and the statistical rules are included in the report requirements.

[0079] Step S203: determine whether the target output format corresponding to the data item is a preset output format.

[0080] The preset output form refers to the data output form that can be selected by default. The number of such data output forms is limited and cannot meet the needs of users.

[0081] Exemplarily, the preset output format may be a data output format currently supported by the reporting tool.

[0082] In this step, it is first determined whether the target output form corresponding to the data item is the data output form currently supported by the reporting tool. If the target output form is the data output form currently supported by the reporting tool, step S204 can be executed to directly use the reporting tool to convert the value corresponding to the data item into report data of the target output form.

[0083] If the target output format is not the data output format currently supported by the reporting tool, you can execute steps S205-S207, convert the numerical values ​​of the data items in the report to obtain the numerical values ​​of the target output format, then convert them into strings, and finally concatenate the unit identifiers of the statistical dimensions to output the report data of the data items in the form of strings.

[0084] Step S204: If it is determined that the target output format is the preset output format, the numerical value corresponding to the data item is converted into report data of the target output format through a report tool.

[0085] Among them, the reporting tool can adopt any existing reporting tool, can output string type data, and has the function of outputting report data in the supported data output format. It can be a third-party reporting tool introduced by the system. The functions of the reporting tool are not described in detail in this embodiment.

[0086] Step S205: If it is determined that the target output form is not the preset output form, a numerical value conversion rule corresponding to the target output form is obtained, and the numerical value corresponding to the data item is converted into data information of the target output form according to the numerical value conversion rule.

[0087] In this embodiment, even if the target output form is not the preset output form, the numerical value conversion rule corresponding to the target output form can be obtained, and the numerical value corresponding to the data item can be converted into data of the target output form based on the numerical value conversion rule.

[0088] Optionally, the report data processing device may provide an interface for users to customize numerical value conversion rules corresponding to the target output format.

[0089] For example, the user can customize the numerical conversion rules corresponding to the target output form by uploading files, editing online through the editing interface of the numerical conversion rules provided by the device, and so on.

[0090] For example, the numerical value corresponding to the data item is 32.01 in percentage. If the target output format is in thousandths, 32.01 is converted to 320.10.

[0091] Step S206: Convert the data information in the target output format into a character string.

[0092] After obtaining the data information in the target output format corresponding to the data item, the data information in the target output format is converted into a character string.

[0093] The data information may be converted into a character string by any method capable of achieving a similar function, which will not be described in detail in this embodiment.

[0094] Step S207: Obtain the string concatenation rule corresponding to the data item, and concatenate the string with the unit identifier corresponding to the data item according to the string concatenation rule to obtain the report data corresponding to the data item.

[0095] In practical applications, each statistical dimension corresponds to a data output form and a unit identifier, and different data output forms correspond to different unit identifiers.

[0096] In order to ensure that the unit identifier of the data item in the output report is correct and corresponds to the target output format, the string of the data information corresponding to the data item is concatenated with the unit identifier corresponding to the data item to obtain a string of report data containing both the value and the unit identifier. Outputting report data in the form of a string can achieve output of report data in any output format.

[0097] For example, if the value corresponding to the data item is 32.01 in percentage, and the target output format is in thousandths, then the percentage 32.01 is converted to 320.10 in thousandths, and then the thousandth 320.10 is converted to the string "320.10". Since the unit identifier corresponding to the percentage is "%" and the unit identifier corresponding to the thousandth is "‰", the unit identifier "‰" can be added after the string "320.10" to obtain the thousandth report data "320.10‰", thereby realizing the conversion of the percentage output 32.01% to the thousandth output "320.10‰".

[0098] Optionally, the report data processing device may provide an interface for users to define string concatenation rules corresponding to statistical dimensions.

[0099] For example, the user can customize the string concatenation rule corresponding to the statistical dimension by uploading a file, editing online through an editing interface of the string concatenation rule provided by the device, and the like.

[0100] Step S208: Output report data through a report tool.

[0101] After determining the character string of the report data of the data item, the character string is directly output through the report tool, so as to achieve the purpose of expanding the data output form of the report tool without upgrading the report tool version.

[0102] In an embodiment of the present application, in response to a report request, report requirement information is obtained, and users are supported to customize the data output form and unit identifier corresponding to each statistical dimension in the report requirement information. After the numerical values ​​corresponding to the data items in the report are generated according to the report requirement information, if it is determined that the target output form is a preset output form, the numerical values ​​corresponding to the data items are converted into report data of the target output form through a report tool. If it is determined that the target output form is not a preset output form, the numerical values ​​corresponding to the data items are converted into data information of the target output form, the data information is converted into a string, and the string is concatenated with the unit identifier corresponding to the data item to obtain a string of report data corresponding to the data item, and the string of report data is directly output through the report tool. Data of any statistical dimension can be output in the form of a string, which realizes the expansion and enrichment of the output form of the report data, and supports user-defined data output forms.

[0103] Embodiment 3

[0104] Figure 4 This is a schematic diagram of the structure of the report data processing device provided in the third embodiment of the present application. The report data processing device provided in the embodiment of the present application can execute the processing flow provided in the method embodiment of report data processing. Figure 4As shown, the report data processing device 30 includes: a value acquisition module 301, a value processing module 302, a string conversion module 303, a string concatenation module 304 and a report output module 305.

[0105] Specifically, the value acquisition module 301 is used to generate values ​​corresponding to data items in the report in response to a report request according to report requirement information, wherein the report requirement information includes target output formats corresponding to the data items.

[0106] The numerical processing module 302 is used to convert the numerical value corresponding to the data item into data information in a target output form.

[0107] The character string conversion module 303 is used to convert data information into a character string.

[0108] The string concatenation module 304 is used to concatenate the unit identifier corresponding to the data item at the end of the string to obtain the report data corresponding to the data item.

[0109] The report output module 305 is used to output report data.

[0110] The device provided in the embodiment of the present application can be specifically used to execute the method embodiment provided in the above-mentioned embodiment 1, and the specific functions will not be repeated here.

[0111] In an embodiment of the present application, in response to a report request, numerical values ​​corresponding to data items in the report are generated according to report requirement information, wherein the report requirement information includes a target output form corresponding to the data items; if the target output form is not a preset output form, the numerical values ​​corresponding to the data items are converted into data information of the target output form, and the data information is converted into a string; the string is concatenated with a unit identifier corresponding to the data item to obtain report data corresponding to the data item, the numerical values ​​of the target output form are obtained by numerically converting the numerical values ​​of the data items in the report, and then processed into a string, and finally the unit identifiers of the statistical dimensions are concatenated, and data of any statistical dimension are output in the form of a string, thereby expanding and enriching the output form of the report data and supporting user-defined data output forms.

[0112] Embodiment 4

[0113] Figure 5 This is a schematic diagram of the structure of the apparatus for processing report numbers provided in the fourth embodiment of the present application. Based on the above second embodiment, in this embodiment, the numerical processing module is further used for:

[0114] If it is determined that the target output format is not the preset output format, the numerical value corresponding to the data item is converted into data information of the target output format.

[0115] In an optional embodiment, Figure 5As shown, the report data processing device 30 further includes: a report tool module 306, which is used to:

[0116] If it is determined that the target output format is the preset output format, the numerical value corresponding to the data item is converted into report data of the target output format through the report tool.

[0117] In an optional embodiment, Figure 5 As shown, the report data processing device 30 further includes: an output form determination module 307, which is used to:

[0118] Before converting the numerical value corresponding to the data item into data information in a target output format and converting the data information into a character string, if it is determined that the target output format is not a data output format supported by the reporting tool, then it is determined that the target output format is not a preset output format; if it is determined that the target output format is a data output format supported by the reporting tool, then it is determined that the target output format is a preset output format.

[0119] In an optional implementation manner, the report output module is further used to:

[0120] Output report data through the reporting tool.

[0121] In an optional implementation manner, the numerical processing module includes:

[0122] The numerical conversion rule submodule is used to obtain the numerical conversion rules corresponding to the target output form.

[0123] The numerical conversion submodule is used to convert the numerical value corresponding to the data item into data information in the target output form according to the numerical conversion rules.

[0124] In an optional implementation manner, the string concatenation module includes:

[0125] The string concatenation rule submodule is used to obtain the string concatenation rule corresponding to the data item.

[0126] The string concatenation submodule concatenates the string with the unit identifier corresponding to the data item according to the string concatenation rule to obtain the report data corresponding to the data item.

[0127] In an optional embodiment, Figure 5 As shown, the report data processing device 30 also includes:

[0128] The report request acquisition module 308 is used to:

[0129] According to the report requirement information, before generating the numerical values ​​corresponding to the data items in the report, in response to the report request, the report requirement information is obtained, the report requirement information includes the data items included in the report, the statistical dimensions corresponding to the data items, the target output format and the unit identifier.

[0130] The device provided in the embodiment of the present application can be specifically used to execute the method embodiment provided in the above-mentioned embodiment 2, and the specific functions will not be repeated here.

[0131] In an embodiment of the present application, in response to a report request, report requirement information is obtained, and users are supported to customize the data output form and unit identifier corresponding to each statistical dimension in the report requirement information. After the numerical values ​​corresponding to the data items in the report are generated according to the report requirement information, if it is determined that the target output form is a preset output form, the numerical values ​​corresponding to the data items are converted into report data of the target output form through a report tool. If it is determined that the target output form is not a preset output form, the numerical values ​​corresponding to the data items are converted into data information of the target output form, the data information is converted into a string, and the string is concatenated with the unit identifier corresponding to the data item to obtain a string of report data corresponding to the data item, and the string of report data is directly output through the report tool. Data of any statistical dimension can be output in the form of a string, which realizes the expansion and enrichment of the output form of the report data, and supports user-defined data output forms.

[0132] In an optional implementation, the framework of the report data processing device can be as follows: Figure 6 As shown, it includes: a report requirement acquisition module, an output form judgment module, a numerical conversion rule receiving module, a numerical conversion module, a numerical processing module, a string conversion module, a string concatenation rule receiving module, a string concatenation module, a string processing module, a data output form expansion module, a report tool module, and a report output module.

[0133] The report requirement acquisition module is used to obtain the statistical report requirement to be developed.

[0134] The output format determination module is used to determine whether the statistical report requirements to be developed are in an output format supported by the reporting tool.

[0135] The module for receiving numerical conversion rules provides an interface for users to formulate numerical conversion rules.

[0136] The numerical conversion module is used to convert data according to the numerical conversion rule received by the numerical conversion rule receiving module.

[0137] Furthermore, the numerical conversion module can be used to perform statistical operations on the data to achieve data processing and preprocessing.

[0138] The numerical processing module is composed of a numerical conversion rule receiving module and a numerical conversion module, which completes receiving numerical conversion rules and converting data according to the numerical conversion rules.

[0139] The string conversion module is used to convert non-string type data into string type data.

[0140] The module for receiving string concatenation rules is used to provide an interface for users to formulate string concatenation rules.

[0141] The string concatenation module is used to concatenate strings according to the string concatenation rule received by the string concatenation rule receiving module.

[0142] The string processing module is composed of a string conversion module, a string concatenation module and a module for receiving string concatenation rules, and is used to complete the conversion of strings, receive string concatenation rules, and concatenate strings and statistical dimension identifiers according to the string concatenation rules.

[0143] The data output form expansion module consists of a numerical processing module and a string processing module.

[0144] The reporting tool module is a third-party reporting tool.

[0145] Report output module, used to output statistical reports.

[0146] Accordingly, based on Figure 6 The framework of the report data processing device shown can implement the following method steps:

[0147] Step S1, obtaining a statistical report requirement to be developed through a report requirement obtaining module.

[0148] Step S2, send the acquired statistical report requirements to be developed to the output form judgment module for output form judgment. If the target output form of the requirement is a data output form supported by the reporting tool, it is directly sent to the reporting tool module; if the target output form of the requirement is a data output form not supported by the reporting tool, it is sent to the data output form expansion module for processing.

[0149] Step S3, the data output form expansion module sends the received statistical result data used in the report requirement to the numerical processing module, and the numerical conversion module in the numerical processing module converts the data according to the rules stored in the numerical conversion rule module.

[0150] Step S4, the numerical conversion module sends the converted data to the string processing module, the string processing module sends the data to the string conversion module, and the string conversion module converts the data into a string.

[0151] Step S5, the string conversion module sends the converted string to the string concatenation module, and the string concatenation module concatenates the string and the unit identifier of the statistical dimension according to the string concatenation rule received by the string concatenation rule module.

[0152] Step S6: The string concatenation module sends the concatenated string to the report tool module.

[0153] Step S7: the report tool module sends the generated report to the report output module.

[0154] Step S8, complete the output of the statistical report requirements to be developed.

[0155] This embodiment provides an optional implementation.

[0156] Embodiment 5

[0157] Figure 7 This is a schematic diagram of the structure of the report data processing device provided in Example 5 of the present application. Figure 7 As shown, the device 70 includes: a processor 701 , a memory 702 , and a computer program stored in the memory 702 and executable on the processor 701 .

[0158] The processor 701 implements the report data processing method provided by any of the above method embodiments when running the computer program.

[0159] In an embodiment of the present application, in response to a report request, numerical values ​​corresponding to data items in the report are generated according to report requirement information, wherein the report requirement information includes a target output form corresponding to the data items; if the target output form is not a preset output form, the numerical values ​​corresponding to the data items are converted into data information of the target output form, and the data information is converted into a string; the string is concatenated with a unit identifier corresponding to the data item to obtain report data corresponding to the data item, the numerical values ​​of the target output form are obtained by numerically converting the numerical values ​​of the data items in the report, and then processed into a string, and finally the unit identifiers of the statistical dimensions are concatenated, and data of any statistical dimension are output in the form of a string, thereby expanding and enriching the output form of the report data and supporting user-defined data output forms.

[0160] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method provided by any of the above method embodiments is implemented.

[0161] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium, and at least one processor of the report data processing device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the report data processing device executes the method provided by any of the above method embodiments.

[0162] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0165] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0166] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0167] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0168] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for processing report data, characterized in that: include: In response to the report request, generating values ​​corresponding to data items in the report according to report requirement information, wherein the report requirement information includes a target output format corresponding to the data items; If it is determined that the target output form is not a preset output form, converting the numerical value corresponding to the data item into data information of the target output form, and converting the data information into a character string, the preset output form being a data output form supported by the reporting tool; Concatenate the character string with the unit identifier corresponding to the data item to obtain report data corresponding to the data item; The report data is output.

2. The method according to claim 1, characterized in that The method further comprises: If it is determined that the target output form is a preset output form, the numerical value corresponding to the data item is converted into report data of the target output form through a report tool.

3. The method according to claim 1, characterized in that The outputting of the report data comprises: The report data is outputted through the report tool.

4. The method according to claim 1 or 2, characterized in that: The step of converting the numerical value corresponding to the data item into data information in the target output form includes: Obtaining a numerical conversion rule corresponding to the target output form; According to the numerical conversion rule, the numerical value corresponding to the data item is converted into data information in the target output form.

5. The method according to claim 1 or 2, characterized in that: The concatenating the character string with the unit identifier corresponding to the data item to obtain the report data corresponding to the data item includes: Obtain the string concatenation rule corresponding to the data item; According to the string concatenation rule, the string and the unit identifier corresponding to the data item are concatenated to obtain the report data corresponding to the data item.

6. The method according to claim 1 or 2, characterized in that: In response to the report request, before generating the values ​​corresponding to the data items in the report according to the report requirement information, the method further includes: In response to a report request, the report requirement information is acquired, the report requirement information including data items included in the report, statistical dimensions corresponding to the data items, a target output format, and a unit identifier.

7. A report data processing device, characterized in that: include: A value acquisition module, used to generate, in response to a report request, a value corresponding to a data item in the report according to report requirement information, wherein the report requirement information includes a target output format corresponding to the data item; A numerical value processing module, configured to convert the numerical value corresponding to the data item into data information of the target output form if it is determined that the target output form is not a preset output form, wherein the preset output form is a data output form supported by the reporting tool; A string conversion module, used to convert the data information into a string; A string concatenation module, used for concatenating the unit identifier corresponding to the data item at the end of the string to obtain the report data corresponding to the data item; The report output module is used to output the report data.

8. A report data processing device, characterized in that: include: A processor, a memory, and a computer program stored on the memory and executable on the processor; Wherein, when the processor runs the computer program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.

Citation Information

Patent Citations

  • Report generation method and report engine

    CN105138504A