CN112000660A - Multi-report data processing method and device, computer equipment and storage medium - Google Patents

Multi-report data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112000660A
CN112000660A CN202010635501.2A CN202010635501A CN112000660A CN 112000660 A CN112000660 A CN 112000660A CN 202010635501 A CN202010635501 A CN 202010635501A CN 112000660 A CN112000660 A CN 112000660A
Authority
CN
China
Prior art keywords
report
data
checked
information
accounted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010635501.2A
Other languages
Chinese (zh)
Other versions
CN112000660B (en
Inventor
王君涛
余永道
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Biying Technology Co ltd
Jiangsu Suning Cloud Computing Co ltd
Original Assignee
Suning Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN202010635501.2A priority Critical patent/CN112000660B/en
Publication of CN112000660A publication Critical patent/CN112000660A/en
Application granted granted Critical
Publication of CN112000660B publication Critical patent/CN112000660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a multi-report data processing method, a multi-report data processing device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a table sample of a service to be accounted and data mapping information of the table sample, wherein the data mapping information is used for representing position information of each cell in the table sample; acquiring structured data of a plurality of reports to be checked of the business to be checked; acquiring position rendering information of each report to be checked, wherein the position rendering information is used for indicating the position of a table sample cell rendered by the structured data of the report to be checked; rendering the structured data of each report to be checked into each cell of the sample according to the data mapping information and the rendering position information of each report to be checked to obtain a service report of the service to be checked, wherein the service report comprises the rendered form data of each report to be checked; and calculating the form data of each report to be checked in the business report according to a preset operation rule. The method can improve the operation efficiency of the data of the plurality of reports.

Description

Multi-report data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing multi-report data, a computer device, and a storage medium.
Background
As the company industry continues to increase, the number of corresponding subsidiaries also continues to increase. In the process of step-by-step service summarization, the services of the companies needing to participate in accounting are filled in more or less manually, so that on one hand, the efficiency is low, and on the other hand, the error rate is high.
The reasons for the low efficiency of manual operation are mainly: data in the report to be checked submitted by each company are uneven and are mostly borne in an Excel form, and the accuracy of the data is difficult to guarantee. Meanwhile, in the process of combining and calculating the data of the multiple to-be-calculated reports, the multiple to-be-calculated reports need to be manually opened on computer equipment, and the operation is very complicated in the process of calculating the data of the multiple to-be-calculated reports. In addition, because the number of cells in each report to be checked is large, when the data of the cells of the plurality of reports to be checked are calculated by using the calculation formula carried by the report, the data calculation efficiency is low, and the calculation process is complex and easy to make mistakes.
Disclosure of Invention
In view of the above, it is necessary to provide a multi-report data processing method, apparatus, computer device, and storage medium capable of improving the operation efficiency of data of a plurality of reports.
A multi-report data processing method comprises the following steps: acquiring a table sample of a service to be accounted and data mapping information of the table sample, wherein the data mapping information is used for representing position information of each cell in the table sample; acquiring structured data of a plurality of reports to be checked of the service to be checked, wherein the structured data is used for representing form data of each cell in the reports to be checked; acquiring position rendering information of each report to be checked, wherein the position rendering information is used for indicating the position of a table sample cell rendered by the structured data of the report to be checked; rendering the structured data of each report to be checked into each cell of the sample according to the data mapping information and the rendering position information of each report to be checked to obtain a service report of the service to be checked, wherein the service report comprises the rendered form data of each report to be checked; and calculating the form data of each report to be checked in the business report according to a preset operation rule.
In one embodiment, obtaining a table sample of a service to be accounted includes: and determining the service attribute of the service to be accounted, and acquiring a table sample of the service to be accounted according to the service attribute.
In one embodiment, acquiring structured data of a plurality of reports to be checked of the service to be checked includes: acquiring a first quantity of data query processes in a process pool, wherein the data query processes are used for acquiring structured data of a report to be checked; acquiring a second quantity of the plurality of reports to be checked; determining the distribution mode of the first quantity of data query processes according to the first quantity and the second quantity; and controlling a first number of data query processes according to the distribution mode to acquire the structured data of the multiple reports to be checked in a parallel query mode.
In one embodiment, determining the allocation of the first number of data query processes according to the first number and the second number includes: if the first quantity is larger than or equal to the second quantity, determining that the distribution mode is a first mode, wherein the first mode is used for indicating each data query process in the second quantity of data query processes in the first quantity of data query processes to respectively obtain the structured data of each report form to be checked; and if the first quantity is smaller than the second quantity, determining that the distribution mode is a second mode, wherein the second mode is used for indicating that each data query process in the data query processes of the first quantity is controlled to acquire the structured data of the multiple reports to be checked according to the ratio of the second quantity to the first quantity.
In one embodiment, the data mapping information is determined according to the first identification information of the form sample and the second identification information of each cell in the form, and the structured data of each report to be checked is rendered to each cell of the form sample according to the data mapping information and the rendering position information of each report to be checked, including: acquiring information of a region to be rendered of a table sample; determining the position information of the target cell in the corresponding table sample of the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information; and rendering the structured data of each report to be checked into the target cell of the sample according to the position information of the target cell and the rendering position information of each report to be checked.
In one embodiment, the target cells are multiple, and the second identification information of each cell in the form is determined according to the position offset information of each cell relative to the initial cell; determining the position information of the target cell in the corresponding table sample of the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information, wherein the position information comprises the following steps: acquiring position offset information in the second identification information of each target cell; and determining the position information of each target cell of the to-be-rendered area information according to the first identification information and the position offset information in the second identification information of each target cell.
In one embodiment, the multi-report data processing method further includes: receiving a report acquisition instruction, wherein the report acquisition instruction comprises identification information of each report to be checked; acquiring a plurality of to-be-accounted reports of the to-be-accounted service according to the identification information of each to-be-accounted report; preferably, the operation is performed on the form data of each report to be checked in the business report according to a preset operation rule, and the operation includes: storing intermediate operation result data of the operation process; when operation interruption occurs in the operation process and operation is started again, acquiring intermediate operation result data when operation is interrupted; and calculating the form data of each report to be checked in the business report according to a preset operation rule and the intermediate operation result data when the operation is interrupted.
A multi-report data processing apparatus, the apparatus comprising: the system comprises a first acquisition module, a second acquisition module and a calculation module, wherein the first acquisition module is used for acquiring a table sample of a service to be accounted and data mapping information of the table sample, and the data mapping information is used for representing position information of each cell in the table sample; the second acquisition module is used for acquiring the structured data of the multiple to-be-accounted reports of the to-be-accounted service, wherein the structured data is used for representing the form data of each cell in the to-be-accounted report; the third acquisition module is used for acquiring position rendering information of each report to be checked, and the position rendering information is used for indicating the position of the table sample cell rendered by the structured data of the report to be checked; the rendering module is used for rendering the structured data of each report to be checked into each cell of the sample according to the data mapping information and the rendering position information of each report to be checked so as to obtain a service report of the service to be checked, wherein the service report comprises the rendered form data of each report to be checked; and the operation module is used for operating the form data of each report to be checked in the business report according to a preset operation rule.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any of the above embodiments when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above embodiments.
According to the multi-report data processing method, the multi-report data processing device, the computer equipment and the storage medium, the structured data of the multiple to-be-checked reports of the to-be-checked business are rendered into each cell of the samples through the data mapping information of the samples and the position rendering information of each to-be-checked report, so that the business report of the to-be-checked business is obtained. Therefore, when the data operation is carried out on the plurality of to-be-checked reports of the to-be-checked business, the plurality of to-be-checked reports do not need to be opened, and the operation amount is reduced. Further, when data operation is performed on a plurality of reports to be checked of the service to be checked, only the operation is performed on the form data in a single report of the service to be checked according to the preset operation rule, and the operation is not performed on the plurality of reports to be checked of the service to be checked respectively, so that the operation efficiency of the data of the plurality of reports can be improved.
Drawings
FIG. 1 is a diagram of an application environment of a multi-report data processing method in an embodiment;
FIG. 2 is a flowchart illustrating a multi-report data processing method according to an embodiment;
FIG. 3 is a schematic flow chart of S104 in one embodiment;
FIG. 4 is a schematic diagram illustrating how structured data for multiple companies may be obtained, in one embodiment;
FIG. 5 is a diagram that illustrates parallel processing of structured data for multiple to-be-accounted reports by processes, under an embodiment;
FIG. 6 is a diagram of a mapping relationship in data mapping information for a table-like form, under an embodiment;
fig. 7 is a schematic data interaction diagram of a terminal executing a data operation process of a service to be accounted in an embodiment;
FIG. 8 is a flow diagram illustrating an exemplary process for accounting transactions of a single company;
FIG. 9 is a diagram illustrating assignment of Range ranges in one embodiment;
FIG. 10 is a diagram illustrating the distribution of parallel operations, according to one embodiment;
FIG. 11 is a schematic flow chart diagram illustrating operations on data of companies at upper and lower levels in one embodiment;
FIG. 12 is a block diagram of a multi-report data processing apparatus according to an embodiment;
FIG. 13 is an internal block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for processing the multi-report data is applied to the application environment shown in fig. 1. The user 200 operates the terminal 100 to implement the multi-report data processing method of the present application. Specifically, a data storage module 102 is disposed in the terminal 100, and the data storage module 102 is configured to store report data information of each service. For example, the data storage module 102 contains a table-like repository 1022 of business reports, a structured data set 1024, and a data mapping file 1026. The table sample base 1022 of the business report stores the table sample of the business report corresponding to each business to be checked, such as the table sample … … of the business report 1 and the table sample of the business report N. The structured data set 1024 includes structured data of each report to be checked, such as the structured data … … of the report to be checked 1. The data mapping file 1026 stores data mapping information of samples of each business report and position rendering information of each report to be accounted of each business report. Such as the data mapping information of the table sample of the business report 1, the position rendering information … … of each to-be-checked report of the business report 1, and the position rendering information of each to-be-checked report of the business report N. When the terminal 100 receives an instruction operated by the user 200 to generate data operation of a service to be accounted, the terminal 100 obtains a table sample of the service to be accounted from the table sample library 1022 of the service report, obtains the structured data of a plurality of reports to be accounted of the service to be accounted from the structured data set 1024, and obtains data mapping information of the table sample and position rendering information of each report to be accounted from the data mapping file 1026. Further, the structured data of each report to be checked is rendered into each cell of the table sample according to the data mapping information of the table sample and the rendering position information of each report to be checked to obtain a business report of the business to be checked, wherein the business report contains the rendered form data of each report to be checked. And finally, calculating the form data of each report to be checked in the business report according to a preset calculation rule. Therefore, the user 200 can realize the automatic operation of the plurality of to-be-checked reports of the to-be-checked business without opening the plurality of to-be-checked reports of the to-be-checked business and performing manual operation, and the efficiency of the data operation of the plurality of to-be-checked reports of the to-be-checked business is improved.
In an embodiment, as shown in fig. 2, the present application provides a multi-report data processing method, which is applied to the terminal 200 shown in fig. 1. Specifically, the multi-report data processing method comprises the following steps:
s102, a table sample of the service to be accounted and data mapping information of the table sample are obtained, and the data mapping information is used for representing position information of each cell in the table sample.
In this embodiment, the terminal stores table samples of a plurality of services. Wherein, each table sample is determined according to the accounting content of the corresponding service. For example, the accounting content related to the business to be accounted may include the content in multiple reports uploaded by multiple enterprises, or may be the content of multiple reports of a single enterprise. The accounting content related to the business to be accounted is contained in the report A, the report B and the report C, and the sample of the business to be accounted is set according to the content in the report A, the report B and the report C, so that the content of each related report can be stored according to the sample. Further, the terminal obtains data mapping information of the table sample, and the data mapping information is used for representing position information of each cell in the table sample. That is, the positions of the cells in the respective table samples are specified in the data mapping information, and the data mapping information can be used to accurately locate the cells in the table samples.
In a specific implementation, a business side specifies the business content of a business to be accounted, generates a corresponding business report, and provides the business report to developers. And a developer adds positioning and marking to a specific area in the business report through the VBA script to generate a corresponding sample file of the business to be checked. The added positioning and labeling can be used as data mapping information of the table sample. The specific area in the table sample can be restored by the data mapping information.
And S104, acquiring the structured data of the multiple to-be-accounted reports of the to-be-accounted service, wherein the structured data is used for representing the form data of each cell in the to-be-accounted report.
In this embodiment, the terminal further obtains the structured data of the multiple to-be-accounted reports of the to-be-accounted service. Specifically, when business accounting is performed on the business to be accounted, the business data of the business to be accounted is dispersed in a plurality of reports to be accounted. Each report to be checked corresponds to structured data. The structured data represents form data of each cell in the report to be checked. The structured data can be represented by a two-dimensional array, and two dimensions of the two-dimensional array respectively represent the position information of each cell of the report to be checked and the corresponding form data of each cell. The structured data can be stored in the terminal or stored to a corresponding server to be downloaded from the server by the terminal. The method for the terminal to obtain the structured data of the multiple reports to be accounted for in the business to be accounted for may be as follows: the terminal obtains the structured data of the multiple to-be-checked reports of the to-be-checked business from the local storage, or the terminal sends a request to the server to request the structured data of the corresponding to-be-checked reports and receives the structured data of the to-be-checked reports sent by the server.
And S106, obtaining position rendering information of each report to be checked, wherein the position rendering information is used for indicating the position of the table sample cell rendered by the structured data of the report to be checked.
In this embodiment, the terminal further needs to obtain position rendering information of each report to be accounted. And the position rendering information of each report to be checked is used for indicating the position of the table sample cell rendered by the structured data of each report to be checked. That is, the position rendering information of each report to be checked can be exactly positioned at the position where the structured data of each report to be checked is rendered to the table-like cells. For example, the position rendering information of the report to be accounted A indicates that the structured data a of the report to be accounted A needs to be rendered to the cell b of the table sample, and the position rendering information gives the position information of the cell b. Therefore, the structured data a of the report to be checked can be accurately rendered into the table sample cells according to the position rendering information of the report to be checked A.
And S108, rendering the structured data of each to-be-computed report to each cell of the sample according to the data mapping information and the rendering position information of each to-be-computed report to obtain a service report of the to-be-computed service, wherein the service report comprises the rendered form data of each to-be-computed report.
In this embodiment, the positions of the cells of the sample can be accurately located according to the data mapping information of the sample, and the positions of the cells of the sample, which need to be rendered to the structured data of each report to be accounted, can be determined according to the rendering position information of each report to be accounted, so that the structured data of each report to be accounted can be rendered into the cells of the sample according to the data mapping information and the rendering position information of each report to be accounted. For example, the rendering position information of the report to be accounted indicates that the structured data of the report to be accounted is rendered into the cells 21, 22 and 23 of the table sample, and the data mapping information of the table sample indicates the position information of the cells 21, 22 and 23 of the table sample, so that the structured data of the report to be accounted can be directly rendered into the cells 21, 22 and 23 of the table sample. Therefore, according to the method, the structured data of each report to be checked can be rendered into each cell of the table sample, so as to obtain the business report of the business to be checked. And the business report comprises the form data of each report to be checked obtained after rendering. Therefore, the form data of the plurality of to-be-accounted reports of the to-be-accounted service can be mapped into the same report, and when the data operation is performed on the form data of the plurality of to-be-accounted reports of the to-be-accounted service, the plurality of to-be-accounted reports do not need to be opened, so that the operation amount in the operation process is reduced. Meanwhile, the multiple reports to be checked are opened, the excessive capacity and the calculation resources of the terminal are occupied, and the form data of the multiple reports to be checked of the business to be checked are mapped into the same report, so that the operation pressure of the terminal can be relieved.
And S110, calculating the form data of each report to be calculated in the business report according to a preset calculation rule.
In this embodiment, after mapping the form data of the multiple to-be-accounted reports of the to-be-accounted service to the service report, the terminal performs operation on the form data of each to-be-accounted report in the service report according to a preset operation rule. It should be noted that, after the form data of the multiple reports to be checked of the service to be checked are mapped to the service report, the form data in the service report can be calculated by using the existing report calculation method. That is, the preset operation rule may be determined according to an operation manner in the existing report. For example, the preset operation rule may be implemented by using a self-contained operation function of an application program supporting the business report. Suppose that the business report is a report in an Excel format, and the tool supporting the business report is an Excel application. The Excel application provides a series of operational formulas. When a user selects a corresponding operation formula from the Excel application program according to the service accounting requirement of the service to be accounted, a preset operation rule can be determined according to the corresponding operation formula, so that the corresponding operation formula is adopted to operate the form data of each report to be accounted in the service report in the Excel application program. Therefore, the form data of each report to be checked in the service report can be automatically calculated through the set table formula in the Excel application program, so that the data operation of a plurality of reports to be checked in the service to be checked can be solved by adopting the terminal without using the server for operation, and the problems that the traditional server has overlarge operation amount and is too complex in design and difficult to realize are solved.
According to the multi-report data processing method, the structured data of the multiple reports to be checked of the business to be checked are rendered into each cell of the table sample through the data mapping information of the table sample and the position rendering information of each report to be checked, so that the business report of the business to be checked is obtained. Therefore, when the data operation is carried out on the plurality of to-be-checked reports of the to-be-checked business, the plurality of to-be-checked reports do not need to be opened, and the operation amount is reduced. Further, when data operation is performed on a plurality of reports to be checked of the service to be checked, only the form data in a single report of the service to be checked is required to be operated according to the preset operation rule, and the plurality of reports to be checked of the service to be checked are not required to be operated respectively.
In one embodiment, S102 includes: and determining the service attribute of the service to be accounted, and acquiring a table sample of the service to be accounted according to the service attribute.
In this embodiment, the terminal sets different samples for different services according to different service attributes. For example, the business to be accounted is a company business. The attributes of different companies are different, and the properties of their corresponding company services are also different. For example, the company attributes of the single company and the company attributes of the merger are different, and the corresponding company businesses are also different. That is, the terminal needs to dynamically determine the table sample of the service to be accounted. Specifically, the terminal determines a table sample of the service to be accounted according to the service attribute of the service to be accounted. Meanwhile, the terminal can abstract the common operation logic of different table samples and use the same code logic to adapt to different table samples. Therefore, the accuracy of obtaining the table sample of the service to be accounted can be improved.
In one embodiment, as shown in fig. 3, S104 includes:
s1042, acquiring a first quantity of data query processes in the process pool, wherein the data query processes are used for acquiring structured data of the report to be checked.
S1044, acquiring a second quantity of the plurality of reports to be accounted.
S1046, determining the distribution mode of the first quantity of data query processes according to the first quantity and the second quantity.
And S1048, controlling a first number of data query processes according to the distribution mode, and acquiring the structured data of the multiple to-be-checked statements in a parallel query mode.
In this embodiment, the terminal creates a process pool, which includes a plurality of data query processes. And the data query process is used for acquiring the structured data of the report to be checked. The terminal can create a data query process in the process pool and also can delete the data query process in the process pool. When the process in the process pool is used for obtaining the structured data of the report forms to be checked, the terminal firstly determines the first number of data query processes in the process pool, simultaneously determines the second number of a plurality of report forms to be checked, and determines the distribution mode of the data query processes of the first number according to the first number and the second number. The distribution mode is used for indicating the acquisition mode of acquiring the structured data of each report to be checked by each data inquiry process in the first number of data inquiry processes. For example, the allocation manner may indicate that any one of the first number of data query processes is only used to obtain the structured data of any report to be accounted. And finally, the terminal controls a first amount of data query processes according to the distribution mode and obtains the structured data of the multiple reports to be checked in a parallel query mode. Therefore, the efficiency of acquiring the structured data of the multiple reports to be accounted can be improved.
In one embodiment, S1046 includes: if the first quantity is larger than or equal to the second quantity, determining that the distribution mode is a first mode, wherein the first mode is used for indicating each data query process in the second quantity of data query processes in the first quantity of data query processes to respectively obtain the structured data of each report form to be checked; and if the first quantity is smaller than the second quantity, determining that the distribution mode is a second mode, wherein the second mode is used for indicating that each data query process in the data query processes of the first quantity is controlled to acquire the structured data of the multiple reports to be checked according to the ratio of the second quantity to the first quantity.
In this embodiment, the distribution manner of the first number of data query processes includes a first manner and a second manner. When the first number is greater than or equal to the second number, the allocation mode is the first mode. When the terminal controls a first number of data query processes in a first mode and obtains the structured data of a plurality of reports to be checked in a parallel query mode, the method specifically comprises the following steps: and acquiring a second number of data query processes from the first number of data query processes, and controlling each data query process in the second number of data query processes to be used for acquiring the structured data of one report to be checked, so that the structured data of a plurality of reports to be checked can be quickly acquired without process waiting, and the efficiency of acquiring the structured data of the plurality of reports to be checked is improved.
And when the first number is smaller than the second number, determining that the distribution mode is the second mode. When the terminal controls the data query process of the first quantity in the second mode to acquire the structured data of the multiple reports to be checked in the parallel query mode, the method specifically comprises the following steps: and acquiring the ratio of the second quantity to the first quantity, and further controlling each data query process in the first quantity of data query processes to acquire the structured data of the multiple reports to be checked according to the ratio. The third number of the data query processes used for acquiring the structured data of the two or more reports to be checked in the first number of data query processes is determined according to the ratio of the second number to the first number, and the structured data of the multiple reports to be checked are controlled in the third number of data query processes and the other number of data query processes in a parallel query manner. For example, as shown in fig. 4, a plurality of reports to be accounted are N reports of N companies at the same level, an APP (Application) process pool is set at the terminal, and X processes are configured in the process pool. The X processes are respectively used for acquiring N reports of N companies. At this time, the terminal requests the server interface to acquire the structured data of the N companies. Specifically, data acquisition is performed by using X processes in a process pool. And the terminal calculates the process of distributing the structured data of Z companies to each process, wherein Z is N/X. The way in which each process processes the structured data of multiple reports to be accounted in parallel can be seen in fig. 5. The Z companies comprise parallel same-level companies, such as parallel company A, parallel company B, parallel company C, and parallel company M. And the terminal applies processes to the APP process pool for each parallel company, and the applied processes are used for operation so as to obtain the structured data corresponding to the parallel companies. And releasing the process back to the APP process pool after the applied process completes the operation. The release back to the APP process pool can be used again to obtain structured data of other parallel companies. Therefore, the efficiency of acquiring the structured data of the multiple reports to be accounted can be improved.
In one embodiment, the data mapping information is determined based on first identification information of the form and second identification information of each cell within the form. S108 includes: acquiring information of a region to be rendered of a table sample; determining the position information of the target cell in the corresponding table sample of the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information; and rendering the structured data of each report form to be checked into the target cell of the sample according to the position information of the target cell and the rendering position information of each report form to be checked.
In the embodiment, the terminal sets first identification information for a form of a form sample of a service to be checked, and sets second identification information for cells in the form. In this case, the data mapping information of the form sample may be determined based on the first identification information of the form sample and the second identification information of each cell in the form sample. The first identification information is used for identifying a form of a form sample of the service to be accounted, and the second identification information is used for identifying the position of each cell in the form. As shown in fig. 6, the first identification information may be a unique code of the form, the second identification information may be a unique code of the cell, and a unique key value of the cell may be obtained according to the first identification information and the second identification information. The unique key value can uniquely locate the corresponding cell. Specifically, as shown in fig. 6, H01, H02, and H03 respectively represent unique IDs of corresponding sheet pages in the form. R01 and R02 respectively represent the corresponding line numbers in the form, and C01 and C02 respectively represent the corresponding column numbers in the form. P01 indicates that the data of the cell is filled in by formula operation, P02 indicates that the data of the cell is filled in manually, and P03 indicates that the data of the cell is filled in by server operation. The line number can be represented by a two-digit number, the front of the two-digit number is not automatically supplemented with 0, and the front of the three-digit number is not supplemented with 0. Therefore, when the to-be-rendered area information of the table sample is obtained, the position information of the target cell in the table sample corresponding to the to-be-rendered area information can be determined according to the first identification information and the second identification information in the data mapping information.
For example, when the terminal is setting the form sample, the form of the form sample of the service to be accounted is set with first identification information for identifying the form of the form sample of the service to be accounted. Meanwhile, the developer adds positioning and labeling to a specific area in the form through the VBA script. The specific area is the area containing the target cell in the form determined according to the information of the area to be rendered of the form sample. And generating data mapping information according to the added positioning and labeling, wherein the positioning and labeling can be the second identification information of each cell in the form. Further, the data mapping information may be encapsulated in a JSON file. The main program of the terminal can restore the information of the table sample by loading the JSON file, particularly, the position of the cell of the specific area in the table sample can be restored according to the positioning and marking in the JSON file. Therefore, the structured data of each report to be checked can be rendered into the target cell of the sample table according to the position information of the target cell and the rendering position information of each report to be checked, and the structured data of each report to be checked can be quickly and accurately rendered into the target cell of the sample table.
In one embodiment, the target cell is multiple, and the second identification information of each cell in the form is determined according to the position offset information of each cell relative to the initial cell. Determining the position information of the target cell in the corresponding table sample of the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information, wherein the position information comprises the following steps: acquiring position offset information in the second identification information of each target cell; and determining the position information of each target cell of the to-be-rendered area information according to the first identification information and the position offset information in the second identification information of each target cell.
In this embodiment, the terminal may set a reference number of an initial cell in the form, and may determine a position of each cell in the form according to the position offset information of each cell with respect to the initial cell. For example, the unique key value of each cell can be determined according to the unique key value of the initial cell and the position offset information of each cell relative to the initial cell, so that the unique key value of each target cell of the to-be-rendered area information can be quickly acquired. The unit cell assignment operation of each target unit cell can be accelerated through the unique key value of each target unit cell of the information of the region to be rendered, and the traditional cyclic unit cell assignment operation is replaced, so that the assignment efficiency of the unit cell is greatly improved, and the efficiency improvement of 100% -200% can be expected.
In an embodiment, before S104, the method further includes: receiving a report acquisition instruction, wherein the report acquisition instruction comprises identification information of each report to be checked; and acquiring a plurality of to-be-accounted reports of the to-be-accounted service according to the identification information of each to-be-accounted report.
In this embodiment, the terminal may set a UI interface. And a control used for triggering and selecting each report to be accounted for by a user is provided in the UI. And triggering the control of the UI by the user to generate a corresponding report acquisition instruction. The report acquisition instruction comprises identification information of each report to be checked. And the terminal receives the report acquisition instruction and acquires a plurality of reports to be accounted of the corresponding services to be accounted. Therefore, incremental or full-quantized data operation of the service to be accounted can be realized.
Specifically, if the information acquisition is abnormal in the process of acquiring the multiple to-be-accounted reports of the to-be-accounted service according to the identification information of each to-be-accounted report, for example, a request caused by network fluctuation is not returned, and the like, the program may be set to acquire the multiple to-be-accounted reports of the to-be-accounted service again.
In one embodiment, S110 includes: storing intermediate operation result data of the operation process; when operation interruption occurs in the operation process and operation is started again, acquiring intermediate operation result data when operation is interrupted; and calculating the form data of each report to be checked in the business report according to a preset operation rule and the intermediate operation result data when the operation is interrupted.
In the embodiment, when the terminal calculates the form data of each report to be checked in the business report, the terminal stores the intermediate calculation result data in the calculation process. When the operation process is interrupted and the operation is started again, for example, when the program is abnormal and cannot be recovered, the terminal uses the watchdog program to automatically restart the data operation of the service report after detecting the program abnormality. At this time, because the intermediate operation result data in the operation process is stored, the terminal can acquire the intermediate operation result data when the operation is interrupted and operate the form data of each report to be checked in the business report according to the preset operation rule and the intermediate operation result data when the operation is interrupted. Therefore, the time for the whole re-full operation caused by the interruption of the operation process is greatly shortened.
In an embodiment, after S104, the method further includes: generating a plurality of forms of the report to be checked according to the structured data of the report to be checked, wherein the form data corresponding to the structured data is stored in the form of each report to be checked; and backing up and storing the forms of the multiple reports to be checked.
Specifically, each time the terminal operates, the forms of the multiple reports to be checked are additionally stored in the formulated folder for data backup, and therefore a user can conveniently check the data.
Some specific embodiments are given below to describe the above-mentioned multi-report data processing method in detail.
Example 1:
the business to be accounted is the business to be accounted only related to the single company, and the terminal stores the table sample of the business to be accounted and the data mapping information of the table sample. The structured data of the multiple to-be-accounted reports of the to-be-accounted service can be obtained by performing data processing on the form data of the multiple to-be-accounted reports in advance to obtain corresponding structured data, and the corresponding structured data is stored in the terminal or the corresponding server. When the structured data of the multiple reports to be checked are stored in the server, the data operation process of the service to be checked executed by the terminal is shown in fig. 7.
And the terminal is provided with a client. When the business to be checked of company A is executed, the client loads the JSON mapping resource on the terminal, wherein the JSON mapping resource comprises a table sample of the business to be checked, data mapping information of the table sample, position rendering information of each report to be checked of the business to be checked and the like. Meanwhile, the client requests the server for inquiring the data of company A, specifically the structured data of a plurality of reports to be checked of the business to be checked of company A. The server side inquires DB (Data Base) according to the request to obtain the Data of the company A and returns the Data of the company A to the client side. The client renders the structured data of the multiple reports to be checked of the business to be checked of company A into the cells, specifically the cells in the form of the form sample, according to the mapping relation in the data mapping information, so as to generate the business report corresponding to the form sample. The business report is an Excel report. And performing data operation on the form data of the multiple reports to be checked of the service to be checked through self-operation of the Excel formula of the Excel report. Furthermore, the operation structure is obtained and analyzed into structured data, and then the structured data is sent to the server side. And the server stores the structured data so as to facilitate the inquiry of the client at the next time. The operation process of the business to be checked of the single company can also be seen in fig. 8. The JOSN file comprises the JOSN mapping resources, and the Range refers to the Range of table-like cells required to render the structured data of each report to be checked. A diagram of assignment for Range ranges is shown in fig. 9. Here, the Range is a Range of cells shown in the list of N rows M, and Cell1, Cell2, Cell3, Cell4, Cell5, Cell6, Cell7, Cell8, and Cell9 respectively represent cells in the sample. The Range in the sample is assigned by the Var data object M, N function. In the manner expressed by fig. 7, fig. 8 and fig. 9, the client implements data operation of the service to be accounted.
Example 2:
the business to be accounted is a business report related to a plurality of companies, and the terminal stores the data mapping information of the table samples and the table samples of the business to be accounted. And storing the plurality of to-be-accounted reports of the to-be-accounted service, namely the structured data of the service reports of the plurality of companies at the corresponding service terminals. The terminal needs to request the server for the structured data of the multiple reports to be accounted so as to perform operation on the form data of the business reports of the multiple companies. When the operation of the form data of a plurality of companies has a hierarchical relationship, that is, the operation result of a certain company is used as the operation basis of the form data operation of another company, the form data of the same-level company can be operated in parallel, and the form data of the non-same-level company can wait for the operation result of the company of the previous level and then execute the operation. The parallel operation manner of the form data of the companies at the same level can be seen in fig. 10. An Excel Application (Excel Application program) is arranged in the client, and an Excel Application process pool is provided with N processes. In the parallel operation process, the plurality of companies include a parallel company a, a parallel company B, and a parallel company C … … parallel company N. The client performs operations for each parallel company application process, as shown in fig. 10. The N processes are applied and acquired by N companies, and the parallel company A operates to finish the (N + 1) th parallel company application and acquisition process of the release process. For data operation of companies at upper and lower levels, see fig. 11. The company at level 1 is operated to obtain an operation result 1. The calculation result 1 is input to the company of level 2, and the company of level 2 is calculated to obtain the calculation result 2. And repeating the steps in sequence, and finally executing the operation of the merging company. For example, the company 11, the company 12, and the company 13 … … at the level 1, and the company 1N at the same level can be executed by the parallel operation method when performing data operation. Therefore, the data operation can be accelerated, and the efficiency of the data operation can be improved.
It should be understood that, although the steps in the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
The present application further provides a multi-report data processing apparatus, as shown in fig. 12, the apparatus includes a first obtaining module 10, a second obtaining module 20, a third obtaining module 30, a rendering module 40, and an operation module 50. The first obtaining module 10 is configured to obtain a table sample of a service to be accounted and data mapping information of the table sample, where the data mapping information is used to represent location information of each cell in the table sample; the second obtaining module 20 is configured to obtain structured data of a plurality of reports to be checked of the service to be checked, where the structured data is used to represent form data of each cell in the report to be checked; the third obtaining module 30 is configured to obtain position rendering information of each report to be accounted, where the position rendering information is used to indicate a position at which the structured data of the report to be accounted is rendered to a cell of the table sample; the rendering module 40 is configured to render the structured data of each to-be-computed report into each cell of the sample according to the data mapping information and the rendering position information of each to-be-computed report, so as to obtain a service report of the to-be-computed service, where the service report includes the rendered form data of each to-be-computed report; the operation module 50 is configured to perform operation on the form data of each report to be checked in the business report according to a preset operation rule.
In one embodiment, the first obtaining module 10 is specifically configured to determine a service attribute of a service to be accounted, and obtain a table sample of the service to be accounted according to the service attribute.
In one embodiment, the second obtaining module 20 is specifically configured to obtain a first number of data query processes in the process pool, where the data query processes are used to obtain structured data of a report to be checked; acquiring a second quantity of the plurality of reports to be checked; determining the distribution mode of the first quantity of data query processes according to the first quantity and the second quantity; and controlling a first number of data query processes according to the distribution mode to acquire the structured data of the multiple reports to be checked in a parallel query mode.
In one embodiment, the second obtaining module 20 is further specifically configured to determine that the allocation manner is the first manner if the first number is greater than or equal to the second number, where the first manner is used to indicate each data query process in the second number of data query processes in the first number of data query processes to obtain the structured data of each report to be accounted; and if the first quantity is smaller than the second quantity, determining that the distribution mode is a second mode, wherein the second mode is used for indicating that each data query process in the data query processes of the first quantity is controlled to acquire the structured data of the multiple reports to be checked according to the ratio of the second quantity to the first quantity.
In one embodiment, the data mapping information is determined according to first identification information of the table-like form and second identification information of each cell in the form; the rendering module 40 is specifically configured to obtain information of a region to be rendered of the table sample; determining the position information of the target cell in the corresponding table sample of the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information; and rendering the structured data of each report form to be checked into the target cell of the sample according to the position information of the target cell and the rendering position information of each report form to be checked.
In one embodiment, the target cells are multiple, and the second identification information of each cell in the form is determined according to the position offset information of each cell relative to the initial cell; the rendering module 40 is further specifically configured to obtain position offset information in the second identification information of each target cell; and determining the position information of each target cell of the to-be-rendered area information according to the first identification information and the position offset information in the second identification information of each target cell.
In one embodiment, the multi-report data processing apparatus further includes a fourth obtaining module (not shown), where the fourth obtaining module is configured to receive a report obtaining instruction, and the report obtaining instruction includes identification information of each report to be accounted; and acquiring a plurality of to-be-accounted reports of the to-be-accounted service according to the identification information of each to-be-accounted report.
In one embodiment, the operation module 50 is specifically configured to store intermediate operation result data of the operation process; when operation interruption occurs in the operation process and operation is started again, acquiring intermediate operation result data when operation is interrupted; and calculating the form data of each report to be checked in the business report according to a preset operation rule and the intermediate operation result data when the operation is interrupted.
For specific limitations of the multi-report data processing apparatus, reference may be made to the above limitations of the multi-report data processing method, which are not described herein again. All or part of each module in the multi-report data processing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 13. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer equipment is used for communicating with an external server through network connection. The computer program is executed by a processor to implement a multi-report data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a table sample of a service to be accounted and data mapping information of the table sample, wherein the data mapping information is used for representing position information of each cell in the table sample; acquiring structured data of a plurality of reports to be checked of the service to be checked, wherein the structured data is used for representing form data of each cell in the reports to be checked; acquiring position rendering information of each report to be checked, wherein the position rendering information is used for indicating the position of a table sample cell rendered by the structured data of the report to be checked; rendering the structured data of each report to be checked into each cell of the sample according to the data mapping information and the rendering position information of each report to be checked to obtain a service report of the service to be checked, wherein the service report comprises the rendered form data of each report to be checked; and calculating the form data of each report to be checked in the business report according to a preset operation rule.
In one embodiment, when the processor executes the computer program to implement the step of obtaining the table sample of the service to be accounted, the following steps are specifically implemented: and determining the service attribute of the service to be accounted, and acquiring a table sample of the service to be accounted according to the service attribute.
In one embodiment, when the processor executes the computer program to implement the step of obtaining the structured data of the multiple to-be-checked reports of the to-be-checked service, the following steps are specifically implemented: acquiring a first quantity of data query processes in a process pool, wherein the data query processes are used for acquiring structured data of a report to be checked; acquiring a second quantity of the plurality of reports to be checked; determining the distribution mode of the first quantity of data query processes according to the first quantity and the second quantity; and controlling a first number of data query processes according to the distribution mode to acquire the structured data of the multiple reports to be checked in a parallel query mode.
In one embodiment, when the processor executes the computer program to implement the step of determining the allocation manner of the first number of data query processes according to the first number and the second number, the following steps are specifically implemented: if the first quantity is larger than or equal to the second quantity, determining that the distribution mode is a first mode, wherein the first mode is used for indicating each data query process in the second quantity of data query processes in the first quantity of data query processes to respectively obtain the structured data of each report form to be checked; and if the first quantity is smaller than the second quantity, determining that the distribution mode is a second mode, wherein the second mode is used for indicating that each data query process in the data query processes of the first quantity is controlled to acquire the structured data of the multiple reports to be checked according to the ratio of the second quantity to the first quantity.
In one embodiment, the data mapping information is determined according to first identification information of the table-like form and second identification information of each cell in the form; when the processor executes the computer program to realize the step of rendering the structured data of each report to be checked to each cell of the table sample according to the data mapping information and the rendering position information of each report to be checked, the following steps are specifically realized: acquiring information of a region to be rendered of a table sample; determining the position information of the target cell in the corresponding table sample of the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information; and rendering the structured data of each report form to be checked into the target cell of the sample according to the position information of the target cell and the rendering position information of each report form to be checked.
In one embodiment, the target cells are multiple, and the second identification information of each cell in the form is determined according to the position offset information of each cell relative to the initial cell; when the processor executes the computer program to realize the step of determining the position information of the target cell in the corresponding table sample of the to-be-rendered area information according to the first identification information and the second identification information in the data mapping information, the following steps are specifically realized: acquiring position offset information in the second identification information of each target cell; and determining the position information of each target cell of the to-be-rendered area information according to the first identification information and the position offset information in the second identification information of each target cell.
In one embodiment, the processor, when executing the computer program, performs the steps of: receiving a report acquisition instruction, wherein the report acquisition instruction comprises identification information of each report to be checked; and acquiring a plurality of to-be-accounted reports of the to-be-accounted service according to the identification information of each to-be-accounted report.
In one embodiment, when the processor executes the computer program to implement the step of performing the operation on the form data of each report to be checked in the business report according to the preset operation rule, the following steps are specifically implemented: storing intermediate operation result data of the operation process; when operation interruption occurs in the operation process and operation is started again, acquiring intermediate operation result data when operation is interrupted; and calculating the form data of each report to be checked in the business report according to a preset operation rule and the intermediate operation result data when the operation is interrupted.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring a table sample of a service to be accounted and data mapping information of the table sample, wherein the data mapping information is used for representing position information of each cell in the table sample; acquiring structured data of a plurality of reports to be checked of the service to be checked, wherein the structured data is used for representing form data of each cell in the reports to be checked; acquiring position rendering information of each report to be checked, wherein the position rendering information is used for indicating the position of a table sample cell rendered by the structured data of the report to be checked; rendering the structured data of each report to be checked into each cell of the sample according to the data mapping information and the rendering position information of each report to be checked to obtain a service report of the service to be checked, wherein the service report comprises the rendered form data of each report to be checked; and calculating the form data of each report to be checked in the business report according to a preset operation rule.
In one embodiment, when the computer program is executed by the processor to implement the step of obtaining the table sample of the service to be accounted, the following steps are specifically implemented: and determining the service attribute of the service to be accounted, and acquiring a table sample of the service to be accounted according to the service attribute.
In one embodiment, when the computer program is executed by the processor to implement the step of obtaining the structured data of the multiple to-be-checked reports of the to-be-checked service, the following steps are specifically implemented: acquiring a first quantity of data query processes in a process pool, wherein the data query processes are used for acquiring structured data of a report to be checked; acquiring a second quantity of the plurality of reports to be checked; determining the distribution mode of the first quantity of data query processes according to the first quantity and the second quantity; and controlling a first number of data query processes according to the distribution mode to acquire the structured data of the multiple reports to be checked in a parallel query mode.
In one embodiment, when the computer program is executed by the processor to implement the step of determining the allocation manner of the first number of data query processes according to the first number and the second number, the following steps are specifically implemented: if the first quantity is larger than or equal to the second quantity, determining that the distribution mode is a first mode, wherein the first mode is used for indicating each data query process in the second quantity of data query processes in the first quantity of data query processes to respectively obtain the structured data of each report form to be checked; and if the first quantity is smaller than the second quantity, determining that the distribution mode is a second mode, wherein the second mode is used for indicating that each data query process in the data query processes of the first quantity is controlled to acquire the structured data of the multiple reports to be checked according to the ratio of the second quantity to the first quantity.
In one embodiment, the data mapping information is determined according to first identification information of the table-like form and second identification information of each cell in the form; when the computer program is executed by the processor to realize the step of rendering the structured data of each report to be checked to each cell of the sample according to the data mapping information and the rendering position information of each report to be checked, the following steps are specifically realized: acquiring information of a region to be rendered of a table sample; determining the position information of the target cell in the corresponding table sample of the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information; and rendering the structured data of each report form to be checked into the target cell of the sample according to the position information of the target cell and the rendering position information of each report form to be checked.
In one embodiment, the target cells are multiple, and the second identification information of each cell in the form is determined according to the position offset information of each cell relative to the initial cell; when the computer program is executed by the processor to realize the step of determining the position information of the target cell in the corresponding table sample of the to-be-rendered area information according to the first identification information and the second identification information in the data mapping information, the following steps are specifically realized: acquiring position offset information in the second identification information of each target cell; and determining the position information of each target cell of the to-be-rendered area information according to the first identification information and the position offset information in the second identification information of each target cell.
In one embodiment, the computer program when executed by the processor performs the steps of: receiving a report acquisition instruction, wherein the report acquisition instruction comprises identification information of each report to be checked; and acquiring a plurality of to-be-accounted reports of the to-be-accounted service according to the identification information of each to-be-accounted report.
In one embodiment, when the computer program is executed by the processor to implement the step of performing the operation on the form data of each report to be checked in the business report according to the preset operation rule, the following steps are specifically implemented: storing intermediate operation result data of the operation process; when operation interruption occurs in the operation process and operation is started again, acquiring intermediate operation result data when operation is interrupted; and calculating the form data of each report to be checked in the business report according to a preset operation rule and the intermediate operation result data when the operation is interrupted.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A multi-report data processing method, the method comprising:
acquiring a table sample of a service to be accounted and data mapping information of the table sample, wherein the data mapping information is used for representing position information of each cell in the table sample;
acquiring structured data of a plurality of reports to be checked of the service to be checked, wherein the structured data is used for representing form data of each cell in the reports to be checked;
acquiring position rendering information of each report to be checked, wherein the position rendering information is used for indicating the position of the structured data of the report to be checked, which is rendered to the cells of the table sample;
rendering the structured data of each report to be accounted into each cell of the sample according to the data mapping information and the rendering position information of each report to be accounted so as to obtain a business report of the business to be accounted, wherein the business report comprises the form data of each report to be accounted obtained after rendering;
and calculating the form data of each report to be checked in the business report according to a preset calculation rule.
2. The method of claim 1, wherein the obtaining the table sample of the service to be accounted comprises:
determining the service attribute of the service to be accounted, and acquiring the table sample of the service to be accounted according to the service attribute.
3. The method according to claim 1, wherein the obtaining of the structured data of the plurality of to-be-accounted reports of the to-be-accounted service comprises:
acquiring a first quantity of data query processes in a process pool, wherein the data query processes are used for acquiring structured data of the report to be checked;
acquiring a second quantity of the plurality of reports to be checked;
determining the distribution mode of the data query processes of the first quantity according to the first quantity and the second quantity;
and controlling the first quantity of data query processes according to the distribution mode to acquire the structured data of the plurality of reports to be checked in a parallel query mode.
4. The method of claim 3, wherein determining the allocation of the first number of the data query processes according to the first number and the second number comprises:
if the first quantity is larger than or equal to the second quantity, determining that the distribution mode is a first mode, wherein the first mode is used for indicating that each data query process in the second quantity of data query processes in the first quantity of data query processes respectively obtains the structured data of each report form to be accounted;
and if the first quantity is smaller than the second quantity, determining that the distribution mode is a second mode, wherein the second mode is used for indicating that each data query process in the first quantity of data query processes is controlled to acquire the structured data of the multiple reports to be accounted according to the ratio of the second quantity to the first quantity.
5. The method according to claim 1, wherein the data mapping information is determined according to first identification information of a form of the form sample and second identification information of each cell in the form, and the rendering the structured data of each report to be checked to each cell of the form sample according to the data mapping information and rendering position information of each report to be checked comprises:
acquiring information of a region to be rendered of the table sample;
determining the position information of the target cell in the table sample corresponding to the information of the area to be rendered according to the first identification information and the second identification information in the data mapping information;
and rendering the structured data of each report form to be checked into the target cell of the sample according to the position information of the target cell and the rendering position information of each report form to be checked.
6. The method according to claim 5, wherein the target cell is plural, and the second identification information of each cell in the form is determined according to the position offset information of each cell relative to the initial cell;
the determining, according to the first identification information and the second identification information in the data mapping information, the position information of the target cell in the table sample corresponding to the to-be-rendered area information includes:
acquiring the position offset information in the second identification information of each target cell;
and determining the position information of each target cell of the to-be-rendered area information according to the first identification information and the position offset information in the second identification information of each target cell.
7. The method of claim 1, further comprising:
receiving a report acquisition instruction, wherein the report acquisition instruction comprises identification information of each report to be checked;
acquiring a plurality of to-be-accounted reports of the to-be-accounted service according to the identification information of each to-be-accounted report;
preferably, the calculating the form data of each report to be checked in the business report according to a preset calculation rule includes:
storing intermediate operation result data of the operation process;
when operation interruption occurs in the operation process and operation is started again, acquiring intermediate operation result data when the operation is interrupted;
and calculating the form data of each report to be checked in the business report according to a preset operation rule and the intermediate operation result data when the operation is interrupted.
8. A multi-report data processing apparatus, characterized in that the apparatus comprises:
the system comprises a first acquisition module, a second acquisition module and a calculation module, wherein the first acquisition module is used for acquiring a table sample of a service to be accounted and data mapping information of the table sample, and the data mapping information is used for representing position information of each cell in the table sample;
the second acquisition module is used for acquiring the structured data of the multiple to-be-accounted reports of the to-be-accounted service, wherein the structured data is used for representing the form data of each cell in the to-be-accounted reports;
a third obtaining module, configured to obtain position rendering information of each report to be accounted, where the position rendering information is used to indicate a position at which the structured data of the report to be accounted is rendered to a cell of the form sample;
the rendering module is used for rendering the structured data of each report to be checked into each cell of the sample according to the data mapping information and the rendering position information of each report to be checked so as to obtain a business report of the business to be checked, wherein the business report comprises the form data of each report to be checked obtained after rendering;
and the operation module is used for operating the form data of each report to be checked in the business report according to a preset operation rule.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010635501.2A 2020-07-03 2020-07-03 Multi-report data processing method and device, computer equipment and storage medium Active CN112000660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010635501.2A CN112000660B (en) 2020-07-03 2020-07-03 Multi-report data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010635501.2A CN112000660B (en) 2020-07-03 2020-07-03 Multi-report data processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112000660A true CN112000660A (en) 2020-11-27
CN112000660B CN112000660B (en) 2022-11-15

Family

ID=73466433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010635501.2A Active CN112000660B (en) 2020-07-03 2020-07-03 Multi-report data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112000660B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966482A (en) * 2021-02-10 2021-06-15 中国工商银行股份有限公司 Report generation method, device and equipment
CN114595669A (en) * 2022-03-11 2022-06-07 北京梦诚科技有限公司 Calculation table identification method and system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234886A1 (en) * 2004-04-16 2005-10-20 Karim Mohraz Report designer tool and method
CN103019728A (en) * 2012-12-20 2013-04-03 厦门亿力吉奥信息科技有限公司 Effective complex report parsing engine and parsing method thereof
CN109816503A (en) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 Financial details data creation method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050234886A1 (en) * 2004-04-16 2005-10-20 Karim Mohraz Report designer tool and method
CN103019728A (en) * 2012-12-20 2013-04-03 厦门亿力吉奥信息科技有限公司 Effective complex report parsing engine and parsing method thereof
CN109816503A (en) * 2019-01-04 2019-05-28 深圳壹账通智能科技有限公司 Financial details data creation method, device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112966482A (en) * 2021-02-10 2021-06-15 中国工商银行股份有限公司 Report generation method, device and equipment
CN114595669A (en) * 2022-03-11 2022-06-07 北京梦诚科技有限公司 Calculation table identification method and system, electronic equipment and storage medium
CN114595669B (en) * 2022-03-11 2022-09-27 北京梦诚科技有限公司 Calculation table identification method and system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112000660B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US11392561B2 (en) Data migration using source classification and mapping
US20200104377A1 (en) Rules Based Scheduling and Migration of Databases Using Complexity and Weight
US9208188B2 (en) Tenant management of a hosted multi-tenant application
CN112000660B (en) Multi-report data processing method and device, computer equipment and storage medium
US20100313063A1 (en) Mitigating reduction in availability level during maintenance of nodes in a cluster
CN110941681B (en) Multi-tenant data processing system, method and device of power system
CN110309123A (en) Processing method, device, computer equipment and the storage medium of database manipulation
CN110109712A (en) Service Component loading method, device, computer equipment and storage medium
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
CN112288400A (en) Multi-system data interaction method and device, computer equipment and storage medium
CN111026647A (en) Code coverage rate obtaining method and device, computer equipment and storage medium
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN113010224A (en) Front-end micro-service method, device, computer equipment and storage medium
CN110298549B (en) Project task processing method, device, equipment and medium for airport construction engineering
CN111273962B (en) Configuration management method, device, computer readable storage medium and computer equipment
CN104700255B (en) Multi-process processing method, device and system
CN113282473A (en) Server performance testing method and device, computer equipment and storage medium
CN111506400A (en) Computing resource allocation system, method, device and computer equipment
CN112434004A (en) Data migration method and device for heterogeneous system, computer equipment and storage medium
CN115934129A (en) Software project updating method and device, computer equipment and storage medium
CN109451064A (en) Offline implementation method, device, computer equipment and the storage medium of web application
EP4154129A1 (en) Database management methods and associated apparatus
CN112686010A (en) Resource data report generation method and device, computer equipment and storage medium
CN113110835A (en) Layout management method, device, medium and equipment for medical operating system interface
US20230297486A1 (en) Arrangement plan search device, computer system, and arrangement plan search method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee after: Jiangsu Suning cloud computing Co.,Ltd.

Country or region after: China

Address before: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee before: Suning Cloud Computing Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240826

Address after: Room 3104, Building A5, No. 3 Gutan Avenue, Economic Development Zone, Gaochun District, Nanjing City, Jiangsu Province, 210000

Patentee after: Jiangsu Biying Technology Co.,Ltd.

Country or region after: China

Address before: No.1-1 Suning Avenue, Xuzhuang Software Park, Xuanwu District, Nanjing, Jiangsu Province, 210000

Patentee before: Jiangsu Suning cloud computing Co.,Ltd.

Country or region before: China