Report processing method, device, equipment and medium

Through the aspect-oriented programming method, the target data processor sections are obtained from the pre-built report processor library, the data is analyzed and Excel reports in different formats are solved, and the problems of high development costs and slow processing speed in traditional processing methods are achieved, and the multi-to-many Efficient processing of reports in this format.

CN114139509BActive Publication Date: 2024-11-01CHINA MERCHANTS FINANCE HLDG CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111450345.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-01
Publication Date
2024-11-01
Estimated Expiration
2041-12-01

AI Technical Summary

Technical Problem

Traditional Excel report processing methods require separate encoding in reports of different formats, resulting in increased development costs and lower processing speed, which is not conducive to code maintenance.

Method used

The target data processor section is obtained from the pre-constructed report processing program library by using the aspect-oriented programming method, and data processing is performed by analyzing data and position information annotations, supporting processing of multiple Excel report formats.

Benefits of technology

It improves the processing speed of reports in different formats, avoids the problem of developing separate code due to reports in different formats, and reduces development costs and maintenance time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139509B_ABST
    Figure CN114139509B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of development assistance technology, and discloses a report processing method, including: responding to a received processing request for processing an Excel report to be processed, obtaining the location information annotation of the Excel report to be processed and the report data in the report; parsing the report data according to the location information annotation and a preset target parsing function to obtain parsed data; using an aspect-oriented programming method to obtain a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request; and performing data processing on the Excel report to be processed containing the parsed data through the target data processing program aspect. The present invention also proposes a report processing device, equipment and storage medium. The present invention also relates to blockchain technology, and the parsed data can be stored in a blockchain node. The present invention can improve the processing speed of reports in different formats.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of development assistance technology, and in particular to a report processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] In data processing, Excel reports can be used to establish a corresponding relationship between data in the database and Excel reports. Excel reports can be used to automatically and quickly process data using computers.

[0003] The traditional way to process Excel reports is to open the workflow of the Excel report and process the acquired report data according to the workflow of the Excel report. This processing method is more applicable when the Excel report format is fixed. However, when the formats of each Excel report are not fixed, a separate coding program is required to process each format of Excel report, which increases the development cost and is not conducive to code maintenance, resulting in a lower processing speed for reports in different formats. Summary of the invention

[0004] The present invention provides a report processing method, device, electronic equipment and computer-readable storage medium, the main purpose of which is to improve the processing speed of reports in different formats.

[0005] To achieve the above object, the present invention provides a report processing method, comprising:

[0006] In response to the received processing request for processing the Excel report to be processed, obtaining the Excel report to be processed;

[0007] Obtaining the location information annotation of the report data in the Excel report to be processed;

[0008] Parsing the report data according to the position information annotation and a preset target parsing function to obtain parsed data;

[0009] Obtaining a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request by using an aspect-oriented programming method, wherein the pre-built report processing program library includes a plurality of programs for processing Excel reports in different formats;

[0010] The target data processing program is used to perform data processing on the Excel report to be processed containing the parsed data.

[0011] Optionally, before parsing the report data according to the position information annotation and a preset target parsing function to obtain parsed data, the method further includes:

[0012] Obtain a preset function repository, and add a generic class to all parsing functions in the function repository;

[0013] The resolution function of the added generic class in the function repository is called by a reflection method to obtain a target resolution function.

[0014] Optionally, the step of obtaining a target data processing program aspect from a pre-built report processing program library according to a format processing requirement represented by the processing request by using an aspect-oriented programming method includes:

[0015] Obtaining an instantiation command from the Spring framework according to the processing request;

[0016] Using the instantiation command to slice the report processing program in the report processing program library to obtain multiple slices of the report processing program;

[0017] Registering multiple report processing program aspects in the Spring framework to obtain multiple data processing program aspects;

[0018] A target data processing program aspect is selected from the plurality of data processing program aspects according to the format processing requirement.

[0019] Optionally, the parsed data includes a plurality of report fields and field data corresponding to the plurality of report fields, and the data processing of the Excel report to be processed containing the parsed data by the target data processing program section includes:

[0020] Determine whether the field data corresponding to the plurality of report fields is empty data;

[0021] If the field data corresponding to the first report field is empty data, adding an empty field identifier to the first report field by using the data processing program aspect;

[0022] If the field data corresponding to the second report field exists and is not empty data, the field data corresponding to the second report field is processed by the processing program section to obtain processed data.

[0023] Optionally, before responding to the received processing request for processing the Excel report to be processed, the method further includes:

[0024] The processing request of the Excel report to be processed is intercepted by using a preset interceptor.

[0025] Optionally, selecting a target data processing program aspect from a plurality of data processing program aspects according to the format processing requirement includes:

[0026] Querying the objects of action of multiple data processing program aspects;

[0027] Acquire a target action object for processing the Excel report to be processed containing the parsed data according to the format processing requirement;

[0028] An action object corresponding to the target action object is searched for among the plurality of action objects, and the target data processing program aspect is acquired from the plurality of data processing program aspects according to the action object corresponding to the target action object.

[0029] Optionally, after the processing procedure is used to process the field data corresponding to the second report field to obtain the processed data, the method further includes:

[0030] The processed data is stored in a preset processing database to obtain an empty data report;

[0031] The updated data in the preset update report database is added to the empty data report to obtain an updated Excel report.

[0032] In order to solve the above problem, the present invention further provides a report processing device, the device comprising:

[0033] A report acquisition module, used for responding to a received processing request for processing an Excel report to be processed, and acquiring the Excel report to be processed;

[0034] A data parsing module, used for obtaining the position information annotation of the report data in the Excel report to be processed, parsing the report data according to the position information annotation and a preset target parsing function to obtain parsed data;

[0035] Aspect acquisition module, used for acquiring a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request by using aspect-oriented programming method, wherein the pre-built report processing program library includes a plurality of programs for processing Excel reports in different formats;

[0036] The data processing module is used to perform data processing on the Excel report to be processed containing the parsed data through the target data processing program aspect.

[0037] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0038] at least one processor; and,

[0039] a memory communicatively connected to the at least one processor; wherein,

[0040] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the report processing method as described above.

[0041] In order to solve the above problems, the present invention also provides a computer-readable storage medium, including a data storage area and a program storage area, the data storage area stores created data, and the program storage area stores a computer program; wherein, when the computer program is executed by a processor, the report processing method as described above is implemented.

[0042] In an embodiment of the present invention, in response to a received processing request for processing an Excel report to be processed, the Excel report to be processed is obtained; the position information annotation of the report data in the Excel report to be processed is obtained; the report data is parsed according to the position information annotation and a preset target parsing function to obtain parsed data, and the report is parsed in advance to facilitate subsequent processing of the report, and then the target data processing program aspect is obtained from a pre-built report processing program library according to the format processing requirements by using the aspect-oriented programming method, and data processing is performed on the Excel report to be processed containing the parsed data through the target data processing program aspect, and program aspects for processing reports in various formats can be obtained from the report processing program library, thereby avoiding the need to develop codes according to Excel reports in different formats, which increases development costs and delays subsequent maintenance time, and improves the processing speed of reports in different formats. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A flowchart of a report processing method provided by an embodiment of the present invention;

[0044] Figure 2 A reference schematic diagram of a step in a report processing method is provided for one embodiment of the present invention;

[0045] Figure 3 A module diagram of a report processing device provided by an embodiment of the present invention;

[0046] Figure 4 A schematic diagram of the internal structure of an electronic device for implementing a report processing method provided by an embodiment of the present invention.

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0049] The embodiment of the present application provides a method for processing a report. The execution subject of the method for processing the report includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. Among them, the server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. In other words, the method for processing the report can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0050] Reference Figure 1 FIG. 1 is a flow chart of a method for processing a report provided by an embodiment of the present invention. In this embodiment, the method for processing a report includes:

[0051] S1. Respond to a received processing request for processing an Excel report to be processed, and obtain the Excel report to be processed.

[0052] In the embodiment of the present invention, the processing request is a request for performing various processes on the Excel report to be processed, for example, extracting report data in the Excel report to be processed, integrating various report data in the Excel report to be processed, etc.

[0053] In the embodiment of the present invention, before responding to the received processing request for processing the Excel report to be processed, the method further includes:

[0054] A preset interceptor is used to intercept a processing request for processing the Excel report to be processed.

[0055] In the embodiment of the present invention, the interceptor is mainly used to intercept user requests and perform corresponding processing, for example, the interceptor performs permission verification, records the log of processing requests, determines whether the user is logged in, etc.

[0056] Furthermore, the using a preset interceptor to intercept the processing request for processing the Excel report to be processed includes:

[0057] Customize the class that implements the interceptor interface through the preset model view controller framework;

[0058] Registering the interceptor in the configuration file of the Excel report to be processed by the class that implements the interceptor interface to obtain the interceptor;

[0059] In the configuration file of the Excel report to be processed, the interceptor corresponding to the configuration file is called to intercept the processing request for processing the Excel report to be processed by using the interceptor.

[0060] In the embodiment of the present invention, the model view controller framework (Spring MVC) is a framework design provided by the Spring framework to Web applications, wherein M refers to a business model, V refers to a user interface, and C refers to a controller. The model view controller can be used to configure the class of the interface for the Excel report to be processed. The configuration file is a file for configuring various interfaces and calling various devices for the Excel report to be processed.

[0061] In the embodiment of the present invention, the interceptor can intercept all processing requests for processing the Excel report to be processed, and screen and centrally process the processing requests.

[0062] Furthermore, in other embodiments of the present invention, before calling the interceptor corresponding to the configuration file in the configuration file of the Excel report to be processed, the method also includes: setting the request path that the interceptor needs to intercept and setting the request path that the interceptor does not need to intercept in the configuration file.

[0063] S2. Obtaining location information annotations of report data in the Excel report to be processed.

[0064] In the embodiment of the present invention, the location information annotation is an annotation about the location of the report data in the Excel report to be processed.

[0065] Furthermore, when adding location information annotations to the report data, if the Excel report to be processed contains report data, the location information is added to the report data; if the report data is empty, the report data is ignored and the process jumps to the next report data in the Excel report to be processed.

[0066] S3. Parse the report data according to the position information annotation and a preset target parsing function to obtain parsed data.

[0067] In the embodiment of the present invention, the target parsing function is used to parse the report data to obtain parsed data.

[0068] In the embodiment of the present invention, before parsing the report data according to the position information annotation and the preset target parsing function to obtain the parsed data, the method further includes:

[0069] Obtain a preset function repository, and add a generic class to all parsing functions in the function repository;

[0070] The resolution function of the added generic class in the function repository is called by a reflection method to obtain a target resolution function.

[0071] In the embodiment of the present invention, the generic class is a class that will clarify the function object only when the function is being called, and the reflection method is a method for dynamically obtaining or calling the generic class. The generic class can be constructed by a constructor in the Java programming language.

[0072] Furthermore, after parsing the report data according to the position information annotation and the preset target parsing function to obtain the parsed data, the method further includes:

[0073] A cache operation is performed on the Excel report to be processed that is composed of the parsed data.

[0074] In the embodiment of the present invention, the caching operation on the Excel report to be processed based on the parsed data includes:

[0075] Get the preset initial buffer;

[0076] The Excel report to be processed based on the parsed data is stored in the initial buffer to construct a report buffer.

[0077] In an embodiment of the present invention, the report buffer can preferentially obtain the parsed data from the report buffer when the parsed data in the Excel report to be processed is subsequently called. If the parsed data is not obtained, the report data in the Excel report to be processed is parsed again, thereby avoiding parsing the report data in the Excel report to be processed once each time the parsed data is called, resulting in a waste of computing resources.

[0078] S4. Obtain a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request using an aspect-oriented programming method. The pre-built report processing program library includes multiple programs for processing Excel reports in different formats.

[0079] In an embodiment of the present invention, the report processing program library is a database composed of multiple different report processing programs, wherein the report processing program is a program for processing Excel reports in various formats, for example, a program for extracting data from Excel reports in different formats, a program for merging multiple Excel reports in different formats, etc.

[0080] For example, a report processing program obtained from an open source software project hosting platform or a report processing program preset by a user may be input into a pre-built blank database to obtain the report processing program library.

[0081] In the embodiment of the present invention, the aspect-oriented programming method (AOP) is a derivative paradigm of functional programming under the Spring framework, and is a method of dividing a program into various subprograms with different functions, namely, program aspects.

[0082] In another embodiment of the present invention, a reference schematic diagram for obtaining a program section is as follows: Figure 2 shown.

[0083] Furthermore, the aspect-oriented programming method is used to obtain the target data processing program aspect from the pre-built report processing program library according to the format processing requirements represented by the processing request, including:

[0084] Obtaining an instantiation command from the Spring framework according to the processing request;

[0085] Using the instantiation command to slice the report processing program in the report processing program library to obtain multiple slices of the report processing program;

[0086] Registering multiple report processing program aspects in the Spring framework to obtain multiple data processing program aspects;

[0087] A target data processing program aspect is selected from the plurality of data processing program aspects according to the format processing requirement.

[0088] In the embodiment of the present invention, the instantiation command is a command for cutting the report processing program and registering the aspect of the report processing program in the Spring framework.

[0089] Furthermore, the instantiation command can be used to cut a report processing program into multiple data processing program sections according to the logical structure. For example, if there is a report data extraction program and a logical structure for cleaning, deduplicating, formatting and extracting data from the report, the report data extraction program can be cut into a data processing program section for data cleaning, a data processing program section for data deduplication, a data processing program section for data formatting and a data processing program section for data extraction.

[0090] In the embodiment of the present invention, the step of selecting a target data processing program aspect from a plurality of data processing program aspects according to the format processing requirement includes:

[0091] Querying the objects of action of multiple data processing program aspects;

[0092] Acquire a target action object for processing the Excel report to be processed containing the parsed data according to the format processing requirement;

[0093] An action object corresponding to the target action object is searched for among the plurality of action objects, and the target data processing program aspect is acquired from the plurality of data processing program aspects according to the action object corresponding to the target action object.

[0094] Furthermore, the action object is the action mode of processing the report, such as data cleaning, data, data deduplication, etc.

[0095] S5. Performing data processing on the Excel report to be processed containing the parsed data through the target data processing program.

[0096] In an embodiment of the present invention, the target data processing program aspect is a program aspect for performing data processing on an Excel report to be processed containing the parsed data, wherein the parsed data includes a plurality of report fields and field data corresponding to the plurality of report fields.

[0097] Furthermore, the data processing of the Excel report to be processed containing the parsed data by the target data processing program section includes:

[0098] Determine whether the field data corresponding to the plurality of report fields is empty data;

[0099] If the field data corresponding to the first report field is empty data, adding an empty field identifier to the first report field by using the data processing program aspect;

[0100] If the field data corresponding to the second report field exists and is not empty data, the field data corresponding to the second report field is processed by the processing program section to obtain processed data.

[0101] In an embodiment of the present invention, the specific processing method of performing data processing on the report data using the target data processing program aspect will change with the target data processing program aspect. For example, if the target data processing program aspect is to extract the report data from the Excel report to be processed containing the parsed data and rebuild a new report, the data processing program aspect of the data extraction program and the data processing program aspect of the report construction program will be used. The data processing program aspect of the data extraction program and the data processing program aspect of the report construction program are both target data processing program aspects.

[0102] Furthermore, in an embodiment of the present invention, before step S2, the method may also include using the data processing program aspect to record SQL execution logs and using the data processing program aspect to record production environment exception information, and sending email alerts when an exception occurs in the production environment.

[0103] In the embodiment of the present invention, the aspect-oriented programming method can be used to isolate the various parts of the report processing program business logic, thereby reducing the coupling between the various parts of the business logic. The report processing program is sectioned to obtain the data processing program section, thereby improving the reusability of the program and improving the development efficiency.

[0104] Furthermore, after the target data processing program is used to process the Excel report to be processed containing the parsed data, the method further comprises:

[0105] The processed data is stored in a preset processing database to obtain an empty data report;

[0106] The updated data in the preset update report database is added to the empty data report to obtain an updated Excel report.

[0107] In the embodiment of the present invention, the processing database is a database used to store the processing data.

[0108] In an embodiment of the present invention, in response to a received processing request for processing an Excel report to be processed, the Excel report to be processed is obtained; the position information annotation of the report data in the Excel report to be processed is obtained; the report data is parsed according to the position information annotation and a preset target parsing function to obtain parsed data, and the report is parsed in advance to facilitate subsequent processing of the report, and then the target data processing program aspect is obtained from a pre-built report processing program library according to the format processing requirements by using the aspect-oriented programming method, and data processing is performed on the Excel report to be processed containing the parsed data through the target data processing program aspect, and program aspects for processing reports in various formats can be obtained from the report processing program library, thereby avoiding the need to develop codes according to Excel reports in different formats, which increases development costs and delays subsequent maintenance time, and improves the processing speed of reports in different formats.

[0109] like Figure 3 FIG. 1 is a schematic diagram of a module of a report processing device of the present invention.

[0110] The report processing device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the report processing device can include a report acquisition module 101, a data parsing module 102, a section acquisition module 103 and a data processing module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0111] In this embodiment, the functions of each module / unit are as follows:

[0112] The report acquisition module 101 is used to respond to a received processing request for processing an Excel report to be processed and acquire the Excel report to be processed;

[0113] The data parsing module 102 is used to obtain the position information annotation of the report data in the Excel report to be processed, and parse the report data according to the position information annotation and a preset target parsing function to obtain parsed data;

[0114] Aspect acquisition module 103, used to acquire a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request by using aspect-oriented programming method, wherein the pre-built report processing program library includes a plurality of programs for processing Excel reports in different formats;

[0115] The data processing module 104 is used to perform data processing on the Excel report to be processed containing the parsed data through the target data processing program aspect.

[0116] In detail, each module described in the report processing device 100 in the embodiment of the present invention is used in the same manner as described above. Figure 1 to Figure 2 The technical means used are the same as the report processing method described in , and can produce the same technical effects, so they will not be repeated here.

[0117] like Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing the report processing method of the present invention.

[0118] The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a report processing program.

[0119] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as a processing program for executing reports, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.

[0120] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device, such as the code of the report processing program, etc., but also be used to temporarily store data that has been output or is to be output.

[0121] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0122] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0123] Figure 4 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0124] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0125] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0126] The report processing program stored in the memory 11 in the electronic device is a combination of multiple computer programs. When running in the processor 10, it can achieve:

[0127] In response to the received processing request for processing the Excel report to be processed, obtaining the Excel report to be processed;

[0128] Obtaining the location information annotation of the report data in the Excel report to be processed;

[0129] Parsing the report data according to the position information annotation and a preset target parsing function to obtain parsed data;

[0130] Obtaining a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request by using an aspect-oriented programming method, wherein the pre-built report processing program library includes a plurality of programs for processing Excel reports in different formats;

[0131] The target data processing program is used to perform data processing on the Excel report to be processed containing the parsed data.

[0132] Specifically, the specific implementation method of the processor 10 for the above computer program can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0133] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0134] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0135] In response to the received processing request for processing the Excel report to be processed, obtaining the Excel report to be processed;

[0136] Obtaining the location information annotation of the report data in the Excel report to be processed;

[0137] Parsing the report data according to the position information annotation and a preset target parsing function to obtain parsed data;

[0138] Obtaining a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request by using an aspect-oriented programming method, wherein the pre-built report processing program library includes a plurality of programs for processing Excel reports in different formats;

[0139] The target data processing program is used to perform data processing on the Excel report to be processed containing the parsed data.

[0140] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0141] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, 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 modules.

[0143] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0144] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0145] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0146] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0147] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.

[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for processing a report. It is characterized in that The method comprises: In response to the received processing request for processing the Excel report to be processed, obtaining the Excel report to be processed; Obtaining the location information annotation of the report data in the Excel report to be processed; Parsing the report data according to the position information annotation and a preset target parsing function to obtain parsed data; Obtaining a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request by using an aspect-oriented programming method, wherein the pre-built report processing program library includes a plurality of programs for processing Excel reports in different formats; Performing data processing on the Excel report to be processed containing the parsed data through the target data processing program section; Wherein, before parsing the report data according to the position information annotation and the preset target parsing function to obtain the parsed data, the method further includes: obtaining a preset function repository, adding a generic class to all the parsing functions in the function repository; calling the parsing function with the added generic class in the function repository by a reflection method to obtain the target parsing function; The method of using aspect-oriented programming to obtain a target data processing program aspect from a pre-built report processing program library according to the format processing requirement represented by the processing request includes: obtaining an instantiation command from a Spring framework according to the processing request; using the instantiation command to cut the report processing program in the report processing program library to obtain multiple report processing program aspects; registering multiple report processing program aspects in the Spring framework to obtain multiple data processing program aspects; querying the action objects of multiple data processing program aspects; obtaining a target action object for processing the Excel report to be processed containing the parsed data according to the format processing requirement; searching for an action object corresponding to the target action object among the multiple action objects, and obtaining the target data processing program aspect from the multiple data processing program aspects according to the action object corresponding to the target action object; The parsed data includes multiple report fields and field data corresponding to the multiple report fields. The target data processing program aspect performs data processing on the to-be-processed Excel report containing the parsed data, including: determining whether the field data corresponding to the multiple report fields is empty data; if the field data corresponding to a first report field is empty data, using the data processing program aspect to add an empty field identifier to the first report field; if the field data corresponding to a second report field is not empty data, using the processing program aspect to perform data processing on the field data corresponding to the second report field to obtain processed data.

2. The report processing method according to claim 1, It is characterized in that Before responding to the received processing request for processing the Excel report to be processed, the method further includes: A preset interceptor is used to intercept a processing request for processing the Excel report to be processed.

3. The report processing method according to claim 1, It is characterized in that After the processing program is used to process the field data corresponding to the second report field to obtain the processed data, the method further includes: The processed data is stored in a preset processing database to obtain an empty data report; The updated data in the preset update report database is added to the empty data report to obtain an updated Excel report.

4. A report processing device, used to implement the report processing method according to any one of claims 1 to 3, It is characterized in that The device comprises: A report acquisition module, used for responding to a received processing request for processing an Excel report to be processed, and acquiring the Excel report to be processed; A data parsing module, used for obtaining the position information annotation of the report data in the Excel report to be processed, parsing the report data according to the position information annotation and a preset target parsing function to obtain parsed data; Aspect acquisition module, used to acquire a target data processing program aspect from a pre-built report processing program library according to the format processing requirements represented by the processing request by using aspect-oriented programming method, wherein the pre-built report processing program library includes a plurality of programs for processing Excel reports in different formats; The data processing module is used to perform data processing on the Excel report to be processed containing the parsed data through the target data processing program aspect.

5. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the report processing method according to any one of claims 1 to 3.

6. A computer-readable storage medium, comprising a data storage area and a program storage area, wherein the data storage area stores created data and the program storage area stores a computer program; in, When the computer program is executed by a processor, the report processing method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Method for implementing exception framework on the basis of cloud computing

    CN103246514A

  • Multi-source data processing method and terminal equipment

    CN110262854A

  • Bank log desensitization method and device

    CN113221182A

  • Ndma db schema, dicom to relational schema translation, and xml to sql query transformation

    US20060282447A1