CN115438635A - Report generation method, report generation device, and computer storage medium - Google Patents

Report generation method, report generation device, and computer storage medium Download PDF

Info

Publication number
CN115438635A
CN115438635A CN202211089175.5A CN202211089175A CN115438635A CN 115438635 A CN115438635 A CN 115438635A CN 202211089175 A CN202211089175 A CN 202211089175A CN 115438635 A CN115438635 A CN 115438635A
Authority
CN
China
Prior art keywords
target enterprise
report
file
component
target
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.)
Pending
Application number
CN202211089175.5A
Other languages
Chinese (zh)
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.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202211089175.5A priority Critical patent/CN115438635A/en
Publication of CN115438635A publication Critical patent/CN115438635A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis

Abstract

The present specification provides a report generation method, apparatus, and computer storage medium, the method may include: acquiring a report display requirement of a target enterprise; generating a report framework of the target enterprise based on the report display requirement of the target enterprise; determining a mode for acquiring information to be filled associated with each component in a report frame of the target enterprise according to the attribute of the database corresponding to the target enterprise; and then, importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report.

Description

Report generation method, report generation device and computer storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a report generation method and apparatus, and a computer storage medium.
Background
A business valuation report is a reporting material generated by the collection, consolidation, and analysis of business data to present the status of a business's development. The enterprise evaluation report plays an important role in evaluating the development and enterprise risk of the enterprise, and can clearly show the current operation condition and the future development direction of the enterprise to investors, so that the investors are helped to accurately judge the possible investment risk of the enterprise.
Disclosure of Invention
The embodiment of the specification provides a report generation method, a report generation device and a computer storage medium, which can reduce the workload of manually filling data by personnel and avoid errors possibly generated by typesetting to a great extent.
In a first aspect, the present specification provides a report generation method, the method comprising:
acquiring a report display requirement of a target enterprise;
generating a report framework for the target enterprise based on the report display requirements of the target enterprise; wherein the reporting framework of the target enterprise comprises at least one of: paragraph components, chart components, table components, picture components;
under the condition that the attribute of the database corresponding to the target enterprise is an open attribute, acquiring information to be filled associated with each component in a report frame of the target enterprise from the database corresponding to the target enterprise;
receiving externally input information to be filled related to each component in a report frame of the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is a private attribute;
and importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report.
In a second aspect, the present specification provides a report generating apparatus comprising:
the first acquisition module is used for acquiring the report display requirements of the target enterprise;
the generating module is used for generating a report framework of the target enterprise based on the report display requirement of the target enterprise; wherein the reporting framework of the target enterprise comprises at least one of: paragraph components, chart components, table components, and picture components;
a second obtaining module, configured to obtain information to be filled associated with each component in a report frame of the target enterprise from the database corresponding to the target enterprise when the attribute of the database corresponding to the target enterprise is an open attribute;
the receiving module is used for receiving externally input information to be filled related to each component in a report frame of the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is a private attribute;
and the importing module is used for importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report.
In a third aspect, the illustrative embodiments provide a computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to carry out the above-mentioned method steps.
In a fourth aspect, embodiments of the present specification provide an electronic device, which may include: a processor and a memory;
wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In a fifth aspect, the illustrative embodiments provide a program product comprising instructions which, when executed on a computer, cause the computer to perform the above-mentioned method steps.
The embodiment of the specification can display the requirement by acquiring the report of the target enterprise; generating a report framework of the target enterprise based on the report display requirement of the target enterprise; under the condition that the attribute of the database corresponding to the target enterprise is an open attribute, acquiring information to be filled associated with each component in a report frame of the target enterprise from the database corresponding to the target enterprise; receiving externally input information to be filled related to each component in a report frame of a target enterprise under the condition that the attribute of a database corresponding to the target enterprise is a private attribute; and importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report. Therefore, the report framework required by the target enterprise can be customized in a mode of determining the report display requirement of the target enterprise, and the problem that documents need to be manually written is solved. Further, the method reduces the workload of personnel for manually filling data and largely avoids errors possibly caused by reprinting by importing the filling information required by each component in the report framework. In addition, the data isolation is realized by determining the attribute of the database, and the data privacy of the user is effectively protected.
Drawings
In order to more clearly illustrate the technical solutions in the present specification, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present specification, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a system architecture diagram of a report generation method provided herein;
FIG. 2a is a schematic flow chart of a report generation method provided herein;
FIG. 2b is a schematic diagram of a target enterprise report framework for a report generation method provided herein;
FIG. 2c is a schematic illustration of a target enterprise report for a report generation method provided herein;
FIG. 3a is a schematic flow diagram of another report generation method provided herein;
FIG. 3b is a schematic diagram of a PDF offline report generated by another report generation method provided in the present specification;
FIG. 3c is a schematic diagram of an offline PDF generation process of another report generation method provided in the present specification;
FIG. 4 is a schematic diagram of a report generation platform of a report generation method provided in the present specification;
fig. 5 is a schematic structural diagram of a report generation apparatus provided in an embodiment of the present specification;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification.
Detailed Description
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with this description. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
In the description of the present specification, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meanings of the above terms in the present specification can be understood in specific cases by those of ordinary skill in the art. Further, in the description of the present specification, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the related technology of the specification, an industry report is generated mainly by manually arranging industry data into a report document, so that the efficiency is low, and for a report document in a standardized format, typesetting errors easily occur when the report document is manually compiled, especially under the condition that a plurality of people need to collaborate to complete the document. In addition, enterprises that need to keep data secret do not meet the requirement of data isolation.
Fig. 1 is a system architecture diagram of a report generation method applied to an embodiment of the present specification. The report generation method provided by the embodiments of the present specification can be applied to a server. Specifically, the server may be connected to the terminal through a network. The network is used to provide a communication link between the terminal and the server. The network may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few. Terminals include, but are not limited to: wearable devices, handheld devices, personal computers, tablet computers, in-vehicle devices, smart phones, computing devices or other processing devices connected to a wireless modem, and the like. The terminal devices in different networks may be called different names, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, personal Digital Assistant (PDA), fifth generation mobile communication technology (5 g) network, or a terminal device in a future evolution network, and the like. The terminal system is an operating system that can run on the terminal, is a program for managing and controlling terminal hardware and terminal applications, and is an indispensable system application of the terminal. The system comprises but is not limited to Android system, IOS system, windows Phone (WP) system, ubuntu mobile version operating system and the like.
It should be understood that the number of terminals, networks, and servers in fig. 1 are merely illustrative. There may be any number of terminals, networks and servers, as desired for the reality. For example, the server may be a server cluster composed of a plurality of servers. The user can use the server to interact with the terminal through the network so as to obtain the optimized version and the like.
In this specification, fig. 2a shows a schematic flow chart of a report generation method. As shown in fig. 2a, the report generating method may include the steps of:
s201, obtaining report display requirements of the target enterprise.
The report display requirement in the embodiment of the present specification is used to indicate the enterprise-related information displayed in the generated report by the target enterprise plan, for example: basic information of the target enterprise, management financial data, right of stock conditions and the like.
S202, generating a report framework of the target enterprise based on the report display requirement of the target enterprise.
In the embodiment of the present specification, the reporting framework of the target enterprise may include at least one of the following components: paragraph components, chart components, table components, picture components.
Possibly, the embodiment of the specification can build a report framework of a target enterprise by means of a dragging component. Referring to fig. 2b, fig. 2b is a schematic diagram illustrating a target enterprise reporting framework obtained by using a dragging method. The paragraph component is used to introduce the basic information 21 of the target enterprise, and the table component is used to display the business finance data 22.
Possibly, the data in the database corresponding to the target enterprise in the embodiment of the present specification may include: historical data and predictive data.
Specifically, in the embodiment of the present specification, data in a database corresponding to a target enterprise may be obtained in the following manner: determining the industry of a target enterprise; determining a data prediction model corresponding to a target enterprise based on the industry of the target enterprise; and inputting the historical data of the target enterprise into a data prediction model corresponding to the target enterprise to obtain the prediction data of the target enterprise.
It can be understood that industries where each enterprise is located may be different, and therefore, when predicting future data of a target enterprise, problems such as industry attributes and industry prospects need to be considered to determine a corresponding data prediction model so as to obtain accurate prediction data. For example, enterprise rating reports for a vehicle enterprise may require the use of an automotive industry data model to predict the sale of automobiles 5 or 10 years into the future. Enterprise evaluation reporting for home needs to use a home industry data model to predict the sale of home in the next 5 or 10 years.
Possibly, the data prediction model in the embodiment of the present specification is artificial intelligence model data, which can output prediction data by collecting historical data and characteristic information of related industries.
S203, judging whether the attribute of the database corresponding to the target enterprise is an open attribute or a private attribute.
It will be appreciated that embodiments of the present description require determining attributes of the database of the target enterprise, and thus the manner in which the data is obtained, prior to generating the reporting framework for the target enterprise. Specifically, the attributes of the database in the embodiments of the present specification may include an open attribute and a private attribute.
It is understood that the open attribute in the embodiment of the present specification is used to indicate a database open to the public, that is, the server may directly obtain the relevant data of the enterprise from the database of the target enterprise. For example, a public cloud, in particular, a public cloud generally refers to a cloud that can be used and is provided by a third-party provider for a user, and the core attribute of the cloud is a shared resource service. The private database is used to represent a database that is not open to the public, that is, the server cannot obtain the relevant data of the enterprise from the database of the enterprise. For example, a private cloud, and in particular, a private cloud is built for one user to use alone, thus providing effective control over data, security, and quality of service, with the core attribute being proprietary resources.
S2041, under the condition that the attribute of the database corresponding to the target enterprise is an open attribute, acquiring information to be filled related to each component in the report frame of the target enterprise from the database corresponding to the target enterprise.
It can be understood that, when the attribute of the database corresponding to the target enterprise is an open attribute, the server may directly obtain corresponding data from the database corresponding to the target enterprise according to the to-be-filled information associated with each component in the report frame of the target enterprise.
Possibly, the embodiment of the present specification may implement association between a component and corresponding information to be populated in a database by means of data identifier correspondence, data interface binding, and the like.
S2042, receiving externally input information to be filled related to each component in the report frame of the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is a private attribute.
It is to be appreciated that when the attribute of the database corresponding to the target enterprise is a private attribute, the information to be populated associated with the components in the reporting framework of the target enterprise can be determined manually. For example, since the attribute of the database corresponding to the target enterprise is a private attribute, the information to be populated of the administration finance data table component of the target enterprise cannot be directly obtained from the database of the target enterprise. The embodiment of the specification can determine the information to be filled of the business finance data table component from the database corresponding to the target enterprise in a manual mode. For example, employee a of the financial department of the target enterprise may look up the required business financial data in the database of the target enterprise through the encrypted employee port and upload the business financial data to the server. Therefore, independent deployment of sensitive data can be realized in a data isolation mode, data privacy of users is effectively protected, and problems of data leakage and the like are avoided.
And S205, importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report.
Referring to FIG. 2c, FIG. 2c illustrates a target enterprise report of import completion in an embodiment of the subject specification. Specifically, after the server obtains the information to be filled associated with each component in the report frame of the target enterprise, the information to be filled associated with each component can be guided into the corresponding position of the report frame in a page plug-in mode, and the report of the target enterprise can be obtained.
Possibly, the embodiment of the specification can also perform testing at the report frame building stage, automatically import the test data into the template of the test view, facilitate the testers to intuitively feel the overall effect of the document, and if the testers are not satisfied with the generation effect of the test report, also modify the content of the test data and the format of the frame until the satisfied test report is generated.
It can be understood that, in this embodiment, if the data structure of the to-be-populated information associated with each component in the report frame of the target enterprise is different from the data structure corresponding to the component, the data structure of the to-be-populated information associated with each component in the report frame of the target enterprise needs to be adjusted, so as to obtain the to-be-populated information associated with each component in the report frame of the target enterprise, where the to-be-populated information is the same as the data structure corresponding to the component.
Specifically, the data structures adopted by different databases may be different, and therefore, when the data structure to be imported into the framework is different from the data structure corresponding to the component, direct import may cause data errors, and a problem of code confusion occurs, and therefore, a user is required to check whether the data structures of the two are consistent before importing the data, and if the data structures are not consistent, the user is required to adjust the data in the database to the data structure corresponding to the component. For example, the component in the report frame is made in a just-in-time compilation programming language (JavaScript, JS), and the database corresponding to the information to be filled is made in a C language, so that the data structure of the C language corresponding to the information to be filled needs to be rewritten into the JS language, so that the information to be filled can be smoothly imported into the component in the report frame, and errors possibly occurring in the importing process are avoided.
The embodiment of the specification can display the requirement by acquiring the report of the target enterprise; generating a report frame of the target enterprise based on the report display requirement of the target enterprise; under the condition that the attribute of the database corresponding to the target enterprise is an open attribute, acquiring information to be filled associated with each component in a report frame of the target enterprise from the database corresponding to the target enterprise; under the condition that the attribute of the database corresponding to the target enterprise is a private attribute, receiving externally input information to be filled related to each component in a report frame of the target enterprise; and importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report. Therefore, the report framework required by the target enterprise can be customized in a mode of determining the report display requirement of the target enterprise, and the problem that documents need to be manually written is solved. Further, the method reduces the workload of personnel for manually filling data and largely avoids errors possibly caused by reprinting by importing the filling information required by each component in the report framework. In addition, the data isolation is realized by determining the attribute of the database, and the data privacy of the user is effectively protected.
Fig. 3a is a schematic flow chart of a report generation method according to an embodiment of the present disclosure. As shown in fig. 3a, the report generation method may include the steps of:
s301, report display requirements of the target enterprise are obtained.
Specifically, S301 is identical to S201, and is not described herein again.
S302, generating a report frame of the target enterprise based on the report display requirement of the target enterprise.
Specifically, S302 is identical to S202, and is not described herein again.
And S303, judging whether the attribute of the database corresponding to the target enterprise is an open attribute or a private attribute.
Specifically, S303 is identical to S203, and is not described herein again.
S3041, when the attribute of the database corresponding to the target enterprise is an open attribute, obtaining information to be filled associated with each component in the report frame of the target enterprise from the database corresponding to the target enterprise.
Specifically, S3041 is identical to S2041, and will not be described herein.
S3042, receiving externally input information to be populated associated with each component in the report framework of the target enterprise, if the attribute of the database corresponding to the target enterprise is a private attribute.
Specifically, S3402 is identical to S2402, and is not described herein again.
S305, importing the information to be filled associated with each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a page view file of the target enterprise.
In the embodiment of the present specification, the page view file of the target enterprise is used to represent a web page view generated in the server.
It is understood that the user may browse the page view file of the target enterprise by sliding a mouse or by pulling down a page sliding key.
S306, generating a portable document format file of the target enterprise based on the page view file of the target enterprise.
In this embodiment, a Portable Document Format (PDF) file is used to represent a target enterprise report for generating an offline Document.
Specifically, the embodiment of the present specification may obtain at least one component that needs to be revised in a page view file of a target enterprise; correspondingly revising the page view file of the target enterprise based on at least one component needing revision in the page view file of the target enterprise to obtain the page view revision file of the target enterprise; a portable document format file for the target business is generated based on the page view revision file for the target business.
Possibly, the embodiment of the specification can generate the page view into a file in a carried document format through a puppeteer tool. Specifically, the file with the document format is a PDF stream, and the PDF stream refers to a full screen capture of the page view file.
Further, in this embodiment, if the page view revision file of the target enterprise does not meet the preset requirement, the page view revision file of the target enterprise is rolled back to the page view file of the target enterprise before revision, and the page view revision file of the target enterprise is revised again until the page view revision file of the target enterprise meets the preset requirement, so as to obtain the page view revision file of the target enterprise.
The preset requirement in the embodiment of the present specification represents information that a preset target enterprise report needs to be displayed. For example, the staff 1 of the target enterprise deletes the shareholder holding information of the target enterprise in the online document, but the staff 2 of the target enterprise finds that the shareholder holding information is the display information that needs to be met in the preset requirements when the staff 2 of the target enterprise reviews the repaired online document, so the staff 2 of the target enterprise rolls back the reviewed repaired online document.
S307, cutting and paging the portable document format file of the target enterprise based on the preset report page size to obtain a target enterprise report.
Specifically, the embodiments of the present description may perform cutting and paging on a portable document format file of a target enterprise based on a report page size to obtain at least one content page of a target enterprise report; and generating the target enterprise report based on the content page of the at least one target enterprise report and the preset packaging page.
It can be understood that, in the embodiments of the present disclosure, the puppeteer generated PDF stream may be segmented and paged according to a preset report page size, then the paged PDF documents are processed and optimized by using a PDF-lib tool, and finally, the PDF documents are spliced to obtain a PDF offline report. The packaging pages in the implementation of the specification are preset, and a user can select the predefined packaging pages according to needs.
Referring to fig. 3b, fig. 3b shows a schematic diagram of a PDF offline report, which may include: packaging sheets (cover 31 and back 34) and content sheets (pages 32 and 33). The front cover 31 and the back cover 34 may be packaging pages customized by a user when building a report frame, and the pages 32 and the pages 33 are obtained by cutting and paging a PDF streaming file based on a preset page size.
Further, referring to fig. 3c, fig. 3c shows a generation process of an offline PDF. Specifically, as can be observed from fig. 3b, the staff 1 of the target enterprise can build the report template of the industry where the staff is located in a visual manner, and after the building is completed, a report frame which is not filled with any industry data can be obtained. Furthermore, the online document can be generated after the acquired associated information stored in the database is automatically imported in a mode of binding the artificial intelligence model data. Possibly, staff member 1 of the target enterprise and staff member 2 of the target enterprise may revise the online document in the server if they consider the data and/or format in the generated online document to need further revisions, respectively, e.g., make additional interpretations of the data in the document, modify data that may have errors, delete data that needs to be kept secret, etc. After the staff of the relevant target enterprise finishes modifying the online document, the export button can be clicked, and an offline PDF report is generated based on the modified online document.
Referring to fig. 4, in a specific example, the report generation method adopted by the embodiment of the present specification may be applied to the report generation platform 41 shown in fig. 4. Specifically, the report generation platform may include: the system comprises a function module, a platform service module, a PDF generation capability module and a visual building capability module. The function module can realize the functions of building a report template, binding artificial intelligence mode data, generating an online document, editing and exporting a PDF report and the like. The platform service module may implement: a report template management service for managing report templates (e.g., wrapper pages, page sizes, etc.), a document data hosting or proxy access data service for managing data interfaces, a PDF generation service for generating offline PDF files, and the like. The PDF generation capability module can realize functions of automatic paging, header and footer adaptation, generation of a PDF file by a hypertext markup language (html) view by Pupperteer, setting of the size of an A4 page, increase of light and shade watermarks, splicing and optimization of PDFs by PDF-lib and the like. The visual building capability module can adopt a User interface platform as a service (UIPaas) low-code platform to realize functions of designer customization, page plug-in customization and the like, and can adopt an r-design basic component library to realize functions of visual code output, report component atomic capability and the like. The low-code development platform is software, and a user who does not know the code can create and construct the software by using a graphical guide to drag and draw, configure parameters and the like.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 5 is a schematic configuration diagram of a report generation device provided in the present specification. The device is used for a server and executes the report generation method of any one of the above embodiments of the present specification. As shown in fig. 5, the report generating means may include:
a first obtaining module 51, configured to obtain a report display requirement of a target enterprise;
a generating module 52, configured to generate a report framework of the target enterprise based on the report display requirement of the target enterprise; wherein the reporting framework of the target enterprise comprises at least one of: paragraph components, chart components, table components, picture components;
a second obtaining module 53, configured to obtain information to be filled associated with each component in a reporting frame of the target enterprise from the database corresponding to the target enterprise when the attribute of the database corresponding to the target enterprise is an open attribute;
a receiving module 54, configured to receive externally input information to be populated associated with each component in a report frame of the target enterprise, where an attribute of the database corresponding to the target enterprise is a private attribute;
and the importing module 55 is configured to import the information to be filled associated with each component in the report frame of the target enterprise into the component of the report frame of the target enterprise to obtain a target enterprise report.
In some embodiments, the import module 55 includes:
the first obtaining unit is used for importing information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a page view file of the target enterprise;
the generating unit is used for generating a portable document format file of the target enterprise based on the page view file of the target enterprise;
and the second obtaining unit is used for cutting and paging the portable document format file of the target enterprise based on the preset report page size to obtain the target enterprise report.
In some embodiments, after the first obtaining unit and before the generating unit, the importing module 55 further includes:
the acquisition unit is used for acquiring at least one component needing revision in the page view file of the target enterprise;
the generation unit includes:
the first obtaining subunit is configured to revise the page view file of the target enterprise correspondingly based on at least one component that needs to be revised in the page view file of the target enterprise, so as to obtain the page view revised file of the target enterprise;
a first generating subunit, configured to generate a portable document format file of the target enterprise based on the page view revision file of the target enterprise.
In some embodiments, before the first generating unit, the generating unit further comprises:
and the judging unit is used for rolling back the page view revision file of the target enterprise to the page view file of the target enterprise before revision if the page view revision file of the target enterprise does not meet the preset requirement, and revising the page view file of the target enterprise again until the page view revision file of the target enterprise meets the preset requirement to obtain the page view revision file of the target enterprise.
In some embodiments, the second obtaining unit includes:
a second obtaining subunit, configured to perform cutting and paging on the portable document format file of the target enterprise based on the report page size, so as to obtain at least one content page of the target enterprise report;
and the second generating subunit is used for generating the target enterprise report based on the content page of the at least one target enterprise report and a preset packaging page.
In some embodiments, before the importing module 55, the apparatus further includes:
and the adjusting module is used for adjusting the data structure of the information to be filled related to each component in the report frame of the target enterprise if the data structure of the information to be filled related to each component in the report frame of the target enterprise is different from the data structure corresponding to the component, so as to obtain the information to be filled related to each component in the report frame of the target enterprise, wherein the data structure of the information to be filled related to each component in the report frame of the target enterprise is the same as the data structure corresponding to the component.
In some embodiments, the data in the database corresponding to the target enterprise includes: historical data and predictive data;
before the generating module 52, the apparatus further includes:
the first determining module is used for determining the industry of the target enterprise;
the second determination module is used for determining a data prediction model corresponding to the target enterprise based on the industry where the target enterprise is located;
and the obtaining module is used for inputting the historical data of the target enterprise into the data prediction model corresponding to the target enterprise to obtain the prediction data of the target enterprise.
It should be noted that, when the report generating apparatus provided in the foregoing embodiment executes the report generating method, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules, so as to complete all or part of the above described functions. In addition, the report generation apparatus and the report generation method provided in the above embodiments belong to the same concept, and details of implementation processes thereof are referred to in the method embodiments and are not described herein again.
The above-mentioned serial numbers are for description purposes only and do not represent the merits of the embodiments.
Referring to fig. 6, a schematic structural diagram of an electronic device is provided for the present specification. As shown in fig. 6, the electronic device 60 may include: at least one processor 61, at least one network interface 64, a user interface 63, a memory 65, at least one communication bus 62.
Wherein a communication bus 62 is used to enable the connection communication between these components.
The user interface 63 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 63 may also include a standard wired interface and a wireless interface.
The network interface 64 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 61 may include one or more processing cores, among others. The processor 61 interfaces with various components throughout the electronic device 60 using various interfaces and lines to perform various functions of the electronic device 60 and to process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 65, as well as invoking data stored in the memory 65. Alternatively, the processor 61 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 61 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 61, but may be implemented by a single chip.
The Memory 65 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 65 includes a non-transitory computer-readable medium. The memory 65 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 65 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 65 may optionally be at least one memory device located remotely from the processor 61. As shown in fig. 6, the memory 65, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a report generation application program.
Acquiring a report display requirement of a target enterprise;
generating a report framework for the target enterprise based on the report display requirements of the target enterprise; wherein the reporting framework of the target enterprise comprises at least one of: paragraph components, chart components, table components, picture components;
acquiring information to be filled related to each component in a report frame of the target enterprise from the database corresponding to the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is an open attribute;
receiving externally input information to be filled related to each component in a report frame of the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is a private attribute;
and importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report.
In some embodiments, when the processor 61 imports the information to be populated associated with each component in the report frame of the target enterprise into the component of the report frame of the target enterprise to obtain the target enterprise report, specifically execute:
importing information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a page view file of the target enterprise;
generating a portable document format file of the target enterprise based on the page view file of the target enterprise;
and cutting and paging the portable document format file of the target enterprise based on the preset report page size to obtain the target enterprise report.
In some embodiments, after the processor 61 performs the importing the information to be filled related to each component in the reporting frame of the target enterprise into the component of the reporting frame of the target enterprise to obtain the page view file of the target enterprise, before the generating the portable document format file of the target enterprise based on the page view file of the target enterprise, the processor further performs:
acquiring at least one component needing to be revised in a page view file of the target enterprise;
when the processor 61 executes the generation of the portable document format file of the target enterprise based on the page view file of the target enterprise, specifically execute:
correspondingly revising the page view file of the target enterprise based on at least one component needing revision in the page view file of the target enterprise to obtain the page view revision file of the target enterprise;
and generating a portable document format file of the target enterprise based on the page view revision file of the target enterprise.
In some embodiments, the processor 61, prior to executing the generating of the portable document format file of the target enterprise based on the page view revision file of the target enterprise, further executes:
if the page view revision file of the target enterprise does not meet the preset requirement, rolling back the page view revision file of the target enterprise to the page view file of the target enterprise before revision, and revising the page view file of the target enterprise again until the page view revision file of the target enterprise meets the preset requirement to obtain the page view revision file of the target enterprise.
In some embodiments, when the processor 61 performs the cutting and paging of the portable document format file of the target enterprise based on the preset report page size to obtain the target enterprise report, specifically performs:
cutting and paging the portable document format file of the target enterprise based on the report page size to obtain at least one content page of the target enterprise report;
and generating the target enterprise report based on the content page of the at least one target enterprise report and a preset packaging page.
In some embodiments, before the step of importing the information to be populated associated with each component in the reporting frame of the target enterprise into the component of the reporting frame of the target enterprise to obtain the target enterprise report, the processor 61 further performs:
and if the data structure of the information to be filled associated with each component in the report frame of the target enterprise is different from the data structure corresponding to the component, adjusting the data structure of the information to be filled associated with each component in the report frame of the target enterprise to obtain the information to be filled associated with each component in the report frame of the target enterprise, which has the same data structure corresponding to the component.
In some embodiments, the database corresponding to the target enterprise includes: historical data and predictive data;
the processor 61, prior to executing the report framework for generating the target business based on the report exhibition requirements of the target business, further executes:
determining the industry of the target enterprise;
determining a data prediction model corresponding to the target enterprise based on the industry of the target enterprise;
and inputting the historical data of the target enterprise into a data prediction model corresponding to the target enterprise to obtain the prediction data of the target enterprise.
The present specification also provides a computer-readable storage medium having stored therein instructions, which when run on a computer or processor, cause the computer or processor to perform one or more of the steps in the embodiments of fig. 2a and 3a described above. The respective constituent modules of the above-described report generation apparatus may be stored in the computer-readable storage medium if they are implemented in the form of software functional units and sold or used as independent products.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in this specification are wholly or partially performed. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., digital Versatile Disk (DVD)), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
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 a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. And the aforementioned storage medium includes: various media capable of storing program codes, such as a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk. The technical features in the present examples and embodiments may be arbitrarily combined without conflict.
The above-mentioned embodiments are only described as preferred embodiments of the present disclosure, and do not limit the scope of the present disclosure, and various modifications and improvements of the technical solution of the present disclosure made by those skilled in the art without departing from the design spirit of the present disclosure should fall within the protection scope defined by the claims of the present disclosure.

Claims (11)

1. A method of report generation, the method comprising:
acquiring a report display requirement of a target enterprise;
generating a report framework for the target enterprise based on the report display requirements of the target enterprise; wherein the reporting framework of the target enterprise comprises at least one of: paragraph components, chart components, table components, picture components;
acquiring information to be filled related to each component in a report frame of the target enterprise from the database corresponding to the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is an open attribute;
receiving externally input information to be filled related to each component in a report frame of the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is a private attribute;
and importing the information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a target enterprise report.
2. The method of claim 1, wherein the importing information to be populated associated with components in a reporting framework of the target enterprise into the components of the reporting framework of the target enterprise to obtain a target enterprise report comprises:
importing information to be filled related to each component in the report frame of the target enterprise into the components of the report frame of the target enterprise to obtain a page view file of the target enterprise;
generating a portable document format file of the target enterprise based on the page view file of the target enterprise;
and cutting and paging the portable document format file of the target enterprise based on the preset report page size to obtain the target enterprise report.
3. The method of claim 2, wherein after importing the information to be populated associated with the components in the reporting frame of the target enterprise into the components in the reporting frame of the target enterprise and obtaining the page view file of the target enterprise, and before generating the portable document format file of the target enterprise based on the page view file of the target enterprise, the method further comprises:
acquiring at least one component needing revision in the page view file of the target enterprise;
the generating a portable document format file of the target enterprise based on the page view file of the target enterprise comprises:
correspondingly revising the page view file of the target enterprise based on at least one component needing revision in the page view file of the target enterprise to obtain the page view revision file of the target enterprise;
and generating a portable document format file of the target enterprise based on the page view revision file of the target enterprise.
4. The method of claim 3, prior to generating the portable document format file for the target enterprise based on the target enterprise's page view revision file, the method further comprising:
if the page view revision file of the target enterprise does not meet the preset requirement, rolling back the page view revision file of the target enterprise to the page view file of the target enterprise before revision, and revising the page view file of the target enterprise again until the page view revision file of the target enterprise meets the preset requirement to obtain the page view revision file of the target enterprise.
5. The method of claim 2, wherein the paging portable document format file of the target business based on a preset report page size to obtain the target business report comprises:
cutting and paging the portable document format file of the target enterprise based on the report page size to obtain at least one content page reported by the target enterprise;
and generating the target enterprise report based on the content page of the at least one target enterprise report and a preset packaging page.
6. The method of claim 1, wherein before importing the information to be populated associated with the components of the reporting framework of the target enterprise into the components of the reporting framework of the target enterprise to obtain the target enterprise report, the method further comprises:
and if the data structure of the information to be filled associated with each component in the report frame of the target enterprise is different from the data structure corresponding to the component, adjusting the data structure of the information to be filled associated with each component in the report frame of the target enterprise to obtain the information to be filled associated with each component in the report frame of the target enterprise, which has the same data structure corresponding to the component.
7. The method of any of claims 1-6, wherein the data in the database corresponding to the target enterprise comprises: historical data and predictive data;
before generating the report framework for the target enterprise based on the report exhibition requirements of the target enterprise, the method further comprises:
determining the industry of the target enterprise;
determining a data prediction model corresponding to the target enterprise based on the industry of the target enterprise;
and inputting the historical data of the target enterprise into a data prediction model corresponding to the target enterprise to obtain the prediction data of the target enterprise.
8. A report generation apparatus, the apparatus comprising:
the first acquisition module is used for acquiring the report display requirements of the target enterprise;
the generating module is used for generating a report framework of the target enterprise based on the report display requirement of the target enterprise; wherein the reporting framework of the target enterprise comprises at least one of: paragraph components, chart components, table components, picture components;
a second obtaining module, configured to obtain information to be filled associated with each component in a report frame of the target enterprise from the database corresponding to the target enterprise when the attribute of the database corresponding to the target enterprise is an open attribute;
the receiving module is used for receiving externally input information to be filled related to each component in a report frame of the target enterprise under the condition that the attribute of the database corresponding to the target enterprise is a private attribute;
and the import module is used for importing the information to be filled associated with each component in the report frame of the target enterprise into the component of the report frame of the target enterprise to obtain a target enterprise report.
9. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1-7.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps according to any of claims 1-7.
11. A program product, characterized in that it comprises instructions which, when run on a computer, cause the computer to carry out the method steps according to any one of claims 1 to 7.
CN202211089175.5A 2022-09-07 2022-09-07 Report generation method, report generation device, and computer storage medium Pending CN115438635A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211089175.5A CN115438635A (en) 2022-09-07 2022-09-07 Report generation method, report generation device, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211089175.5A CN115438635A (en) 2022-09-07 2022-09-07 Report generation method, report generation device, and computer storage medium

Publications (1)

Publication Number Publication Date
CN115438635A true CN115438635A (en) 2022-12-06

Family

ID=84246960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211089175.5A Pending CN115438635A (en) 2022-09-07 2022-09-07 Report generation method, report generation device, and computer storage medium

Country Status (1)

Country Link
CN (1) CN115438635A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117217185A (en) * 2023-11-07 2023-12-12 江西五十铃汽车有限公司 Document generation method and system
CN117291165A (en) * 2023-11-24 2023-12-26 中国民航信息网络股份有限公司 Data report generation method, device and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117217185A (en) * 2023-11-07 2023-12-12 江西五十铃汽车有限公司 Document generation method and system
CN117217185B (en) * 2023-11-07 2024-03-01 江西五十铃汽车有限公司 Document generation method and system
CN117291165A (en) * 2023-11-24 2023-12-26 中国民航信息网络股份有限公司 Data report generation method, device and equipment

Similar Documents

Publication Publication Date Title
CN115438635A (en) Report generation method, report generation device, and computer storage medium
US10510044B2 (en) Project management system providing digital form-based inspections in the field
US11734227B2 (en) Systems and methods for electronically generating submittal registers
CN102760059A (en) Automatic generating method for standardized test scripts of relay protection device of electrical system
US20230185702A1 (en) Method and Apparatus for Generating and Applying Deep Learning Model based on Deep Learning Framework
CN112988752A (en) Resource management method, device, storage medium and electronic equipment
CN112199373A (en) Form development method and system
CN114185750A (en) Process monitoring method, device, equipment and storage medium
CN116432624A (en) Micro-service API document generation method, device, equipment and storage medium
CN110717134A (en) Product description issuing method and device, storage medium and electronic equipment
CN115981643A (en) Configuration method, system, equipment and storage medium of business association component
US20180268376A1 (en) Facility management system using perspective definition metadata and method therefor
CN115905397A (en) Visual display method, device, system and medium for business data
CN114816430A (en) Business code development method, system and computer readable storage medium
CN110765610B (en) PDM integration method, PDM integration device, computer equipment and storage medium
CN116362634B (en) System, method, equipment and storage medium for integrated management of system and process
CN111949259A (en) Risk decision configuration method, system, electronic equipment and storage medium
CN110221827B (en) Data processing method and related device
US20240078001A1 (en) Retargeting dashboard content as interactive data snapshots for collaboration platforms
CN112085087B (en) Business rule generation method, device, computer equipment and storage medium
CN117592452A (en) Document template generation method and device, storage medium and electronic equipment
CN115185810A (en) Use case template generation method and device, storage medium and server
CN114397992A (en) Information analysis method and device, terminal equipment and computer readable medium
CN117473037A (en) Examination question bank construction method and system based on large language model and electronic equipment
CN117215527A (en) Page processing method, device, equipment and medium

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