A file generation method, device, computer equipment and storage medium

By pre-designing data domain files and configuring data link lists, dynamically finding and using suitable data links and data domain files, the problem of duplicate page construction caused by differences in business needs in different regions is solved, and development costs and system complexity is reduced.

CN118605863BActive Publication Date: 2025-05-09BEIJING TOPFENGLIAN INFORMATION TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411080359.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2025-05-09
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

In the business management scenario, due to the differences in demand for the same business in different regions, developers need to develop a large number of duplicate pages, which increases labor costs and system complexity.

Method used

By pre-designing multiple data domain files and configuring the association between different regions and business needs using the data link list, we can dynamically find and use suitable data links and data domain files, thereby generating corresponding forms and document files.

Benefits of technology

This method reduces development costs and system complexity, realizes the reuse of data domain files, and adapts to changes in different regions and business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605863B_ABST
    Figure CN118605863B_ABST
Patent Text Reader

Abstract

The present disclosure provides a file generation method and device, including: receiving a business processing request; wherein the business processing request carries business information and regional information; based on the business information and regional information, searching for a target data link corresponding to the business information and regional information from a pre-established data link table; wherein the target data link is associated with multiple data domain files, each data domain file is composed of a back-end function interface file and a front-end data rendering file, and each data link is configured with corresponding business information and regional information; based on each data domain file in the target data link, a form file is displayed, and based on the form information input by the user in the displayed form file, a corresponding document file is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of information processing technology, and in particular to a file generation method, device, computer equipment and storage medium. Background Art

[0002] In the business processing scenario, even in the same system, the business requirements for the same business in different regions may be different. For example, to process a business registration business, 10 items of information may need to be registered in region A, while 15 items of information may need to be registered in region B. In view of this situation, developers can only carry out targeted development, that is, develop different pages for different business requirements in different regions. However, since the differences between different business requirements are not large, this separate development method will lead to a lot of duplication of content, and if the number of regions, types of business that can be processed, and types of enterprises is large, the number of pages that need to be developed will also be relatively large. For example, if there are 10 regions, 10 types of business, and 10 types of enterprises, the number of pages that need to be developed is 10. 10 10. This will lead to an increase in labor costs and a corresponding increase in system complexity. Summary of the invention

[0003] The embodiments of the present disclosure at least provide a file generation method, apparatus, computer equipment and storage medium.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for generating a file, comprising:

[0005] Receiving a business processing request; wherein the business processing request carries business information and regional information;

[0006] Based on the business information and regional information, a target data link corresponding to the business information and regional information is searched from a pre-established data link table; wherein the target data link is associated with a plurality of data domain files, each data domain file is composed of a back-end function interface file and a front-end data rendering file, and each data link is configured with corresponding business information and regional information;

[0007] Based on each data domain file in the target data chain, a form file is displayed, and based on the form information input by the user in the displayed form file, a corresponding document file is generated.

[0008] In a possible implementation manner, the front-end data rendering file includes a front-end form file;

[0009] The display of the form file based on each data domain file in the target data chain includes:

[0010] For any data domain file in the target data chain, the backend function interface file contained in the data domain file is called, and the frontend form file contained in the data domain file is rendered to display the form file.

[0011] In a possible implementation manner, the front-end data rendering file further includes a front-end document file, wherein the front-end document file includes a document template, wherein the document template indicates basic document information and form information that needs to be acquired by calling an interface;

[0012] The generating of a corresponding document based on the form information input by the user in the displayed form file includes:

[0013] For any data domain file in the target data chain, call the backend function interface file contained in the data domain file to obtain the form information indicated by the document template;

[0014] Generate a corresponding document file based on the acquired form information and the document basic information.

[0015] In a possible implementation, the backend function interface file is used to call the following interfaces: list data rendering interface, form data rendering interface, save data interface, delete data interface, data field removal interface, document removal interface;

[0016] The front-end form file is used to perform the following operations: list data rendering, form data rendering, save data, delete data;

[0017] The front-end document file is used to perform the following operations: form data rendering and document rendering.

[0018] In a possible implementation manner, the business information includes a business type and an enterprise type.

[0019] In a possible implementation manner, generating a corresponding document file based on the form information input by the user in the form file includes:

[0020] Determine whether each data domain file needs to generate documents;

[0021] For each data domain file for which a document needs to be generated, the backend interface corresponding to each data domain file is called to determine whether each data domain file needs to be removed; wherein the backend interface is a data domain removal interface;

[0022] Based on the form information input by the user in the form file corresponding to the data domain file that does not need to be removed, a corresponding document file is generated.

[0023] In a possible implementation manner, the method further includes:

[0024] Based on the document file corresponding to the data domain file in the target data chain, an application corresponding to the business processing request is generated.

[0025] In a second aspect, the present disclosure also provides a file generation device, including:

[0026] A receiving module, used to receive a business processing request; wherein the business processing request carries business information and regional information;

[0027] A search module is used to search for a target data link corresponding to the business information and the regional information from a pre-established data link table based on the business information and the regional information; wherein the target data link is associated with a plurality of data domain files, each of which is composed of a back-end function interface file and a front-end data rendering file, and each data link is configured with corresponding business information and regional information;

[0028] A generation module is used to display a form file based on each data domain file in the target data chain, and to generate a corresponding document file based on the form information input by the user in the displayed form file.

[0029] In a third aspect, an embodiment of the present disclosure further provides a computer device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are performed.

[0030] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned first aspect or any possible implementation of the first aspect are executed.

[0031] The disclosed embodiments provide a file generation method, apparatus, computer equipment, and storage medium, which can pre-design multiple data domain files, and different business needs in different regions can be met by configuring data linked tables. In this way, after the user initiates a business processing request, based on the business information and regional information carried in the business processing request, the user can find the target data link corresponding to the business information and regional information from the pre-established multiple data linked tables for different business needs in different regions, and then display the form and generate the document file based on the data domain file in the target data link. Through this method, it is only necessary to configure the data linked table to realize the reuse of the data domain file, which can reduce the development cost and the complexity of the system accordingly.

[0032] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0034] Figure 1 A flowchart of a file generation method provided by an embodiment of the present disclosure is shown;

[0035] Figure 2 A schematic diagram of the architecture of a file generating device provided by an embodiment of the present disclosure is shown;

[0036] Figure 3 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0038] After research, it was found that in the business processing scenario, even in the same system, the business needs of different regions for the same business may be different. For example, to handle business registration business, 10 items of information may need to be registered in region A, while 15 items of information may need to be registered in region B. In view of this situation, developers can only carry out targeted development when developing, that is, develop different pages for different business needs in different regions. However, since the differences between different business needs are not large, this separate development method will lead to a lot of duplication of content, and if the number of regions, types of business that can be handled, and types of enterprises are large, the number of pages that need to be developed will also be relatively large. For example, if there are 10 regions, 10 types of business, and 10 types of enterprises, the number of pages that need to be developed is 10. 10 10. This will lead to an increase in labor costs and a corresponding increase in system complexity.

[0039] Based on the above research, the present disclosure provides a file generation method, device, computer equipment and storage medium, which can pre-design multiple data domain files, and different business needs in different regions can be met by configuring data linked tables. In this way, after the user initiates a business processing request, based on the business information and regional information carried in the business processing request, the user can find the target data link corresponding to the business information and regional information from the pre-established multiple data linked tables for different business needs in different regions, and then display the form and generate the document file based on the data domain file in the target data link. Through this method, it is only necessary to configure the data linked table to realize the reuse of the data domain file, which can reduce the development cost and the complexity of the system accordingly.

[0040] For example, if there are 10 regions, 10 types of businesses, and 10 types of enterprises, then based on the method provided by the present disclosure, 10+10+10 data domain files can be developed, and then the data linked list can be configured to meet the requirements of 10 10 Requirements for 10 business scenarios to avoid a lot of repeated development.

[0041] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0042] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.

[0043] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the personal information involved in the present disclosure (including but not limited to attribute information, facial images, etc.) is obtained with the authorization of the user. Specifically, a prompt message requesting authorization is sent to the user through a pop-up window on the page, information push, etc., and the above personal information is obtained after the user agrees to the authorization.

[0044] To facilitate understanding of the present embodiment, a file generation method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution subject of the file generation method provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities. The computer device includes, for example: a terminal device or a server or other processing device. The terminal device can be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc.

[0045] See also Figure 1 FIG. 1 is a flowchart of a file generation method provided by an embodiment of the present disclosure, wherein the method includes steps 101 to 103, wherein:

[0046] Step 101: Receive a business processing request; wherein the business processing request carries business information and regional information.

[0047] Step 102: Based on the business information and regional information, search for a target data link corresponding to the business information and regional information from a pre-established data link table; wherein the target data link is associated with multiple data domain files, each data domain file is composed of a back-end function interface file and a front-end data rendering file, and each data link is configured with corresponding business information and regional information.

[0048] Step 103: Based on each data domain file in the target data chain, a form file is displayed, and based on the form information input by the user in the displayed form file, a corresponding document file is generated.

[0049] The following is a detailed description of the above steps.

[0050] Here, the business processing request may be generated by the user after triggering the target control in the target system. Specifically, all users can process business in the same system. After the user logs in to the system, the system can obtain the user's regional information. After the user triggers the target control, the system can obtain the business information corresponding to the target control and the regional information, and then carry the business information and regional information in the business processing request.

[0051] The geographical information may refer to the location of the device when the user initiates the request, or may refer to the geographical information set by the user. The business information includes business type and enterprise type. The business type is used to indicate the type of business being handled, and may include enterprise registration, enterprise cancellation, etc.; the enterprise type may exemplarily include a limited liability company, a partnership enterprise, etc.

[0052] The data domain file includes a back-end function interface file and a front-end data rendering file. The back-end function interface file is used to call the corresponding interface to implement the corresponding function; the front-end data rendering file includes a front-end form file and a front-end document file. The front-end form file is used to implement form rendering display and form interaction, and the front-end document file is used to implement document rendering display.

[0053] Specifically, the backend function interface file is used to call the following interfaces: list data rendering interface, form data rendering interface, save data interface, delete data interface, data field removal interface, document removal interface;

[0054] The front-end form file is used to perform the following operations: list data rendering, form data rendering, save data, delete data;

[0055] The front-end document file is used to perform the following operations: form data rendering and document rendering.

[0056] Here, the document file may refer to a text material used to handle business; the form file refers to a file filled out by a user to obtain information, and the information filled out by the user on the form file may be used to generate a specific document file for the user / the business handled by the user.

[0057] Each data domain file may correspond to a form and a document file. The data domain file is used to display the form and generate and display the corresponding document file based on the form information filled in by the user on the displayed form. The data domain file may be regarded as a logical code file corresponding to the form display and document file generation and display.

[0058] Optionally, each data domain file can be maintained by a data domain library table, and the data domain library table can record key information of each data domain file to facilitate the call of each data domain file when constructing a data domain linked list. Exemplarily, the data domain library table can be shown in Table 1 below:

[0059] Table 1

[0060]

[0061] In the above table, the data domain is identified as name information, which contains two subdomains, namely supplementinfo (supplementary information) and personinfo (personnel information).

[0062] Here, the subdomain can be understood as the data domain corresponding to the subform. For example, the name information can include multiple pieces of information, among which the supplementary information and personnel information are the information that needs to be filled in the subform. For example, the subform can be displayed in the form of a pop-up window.

[0063] Each data link is associated with multiple data domain files, and each data link is configured with corresponding business information and regional information. Exemplarily, the data link table is shown in the following table:

[0064] Table 2

[0065]

[0066] The above table is an example of a data link table. The data link table contains a data link with an identifier of 1001, the configured regional information is region A, the configured business type is establishment registration, the enterprise type is a limited company, and its associated data domain files are A, B, C, D, and E.

[0067] Specifically, when configuring the data link table, it can be set according to the business needs of different regions for different businesses. For example, if the M region needs to fill in A, B, C, D, and E forms for the establishment and registration of a limited company, the data link can be configured according to Table 2 above.

[0068] When searching for a corresponding target data link based on the business information and the regional information, the business information and the regional information in the business processing request may be used as an index to traverse the data link table to search for the target data link.

[0069] Among them, the business information and regional information of different data link configurations are not exactly the same.

[0070] Optionally, if different regions handle the same business and their associated data domain files are the same, the data link table can contain multiple regional identifiers. For example, if regions M and N need to fill in A, B, C, D, and E forms for the establishment and registration of a limited company, the corresponding data link table can be shown in Table 3 below:

[0071] Table 3

[0072]

[0073] In one possible implementation, when displaying a form file based on each data domain file in the target data chain, for any data domain file in the target data chain, the back-end function interface file contained in the data domain file can be called to render the front-end form file contained in the data domain file to display the form file.

[0074] Here, which interface of the backend function interface file is specifically called can be determined according to the function performed by the frontend form file. For example, when rendering list data, the list data rendering interface can be called to render the list data; when rendering form data, the form data rendering interface can be called to render the form data.

[0075] After displaying the form file, the user can fill in the form information on the form file, and then obtain the form information and generate the document.

[0076] Optionally, the front-end document file included in the front-end data rendering file may include a document template, and the document template indicates basic document information and form information that needs to be obtained by calling an interface.

[0077] The basic document information is general document information, and the form information that needs to be obtained by calling the interface is the form information filled in by the user required to generate a specific document file. For example, the document file may contain the user's name, and the user's name can be obtained by calling the interface.

[0078] When generating a corresponding document file based on the form information entered by the user in the displayed form file, for any data domain file in the target data chain, the back-end function interface file contained in the data domain file can be called to obtain the form information indicated by the document template, and then the corresponding document file can be generated based on the obtained form information and the basic document information.

[0079] Exemplarily, the obtained form information can be filled in the corresponding position of the document basic information to generate the document file.

[0080] One data link is associated with multiple data domain files, and one data domain file corresponds to one form file. However, not all form files are used to generate document files. Some form files may only be used to obtain information without generating document files.

[0081] Therefore, in one possible implementation, when generating a corresponding document file based on the form information entered by the user in the form file, it is possible to first determine whether a document needs to be generated for each data field. For each data field file that needs to generate a document, the back-end interface corresponding to each data field file can be called to determine whether each data field file needs to be removed; wherein the back-end interface is a data field removal interface; and then the corresponding document file is generated based on the form information entered by the user in the form file corresponding to the data field file that does not need to be removed.

[0082] When judging whether each data domain file needs to generate a document, it can be determined by the data domain library table. Specifically, the data domain library table records whether each data domain file needs to generate a document, for example, refer to Table 1.

[0083] Here, the data domain file to be removed is a file that needs to generate a document but does not need to be adopted when generating the document. Whether the data domain file needs to be removed can be determined based on the information filled in by the user in the form file. For example, if two data domain files are parallel data domain files, one for collecting male user information and the other for collecting female user information, when filling in the form information, the user needs to select one form to fill in, and the data domain file corresponding to the other form is the data domain file that needs to be removed.

[0084] Optionally, if the information filled in by the user in a form file is empty, the data domain file corresponding to the form file may be determined as the data domain file to be removed.

[0085] When generating a corresponding document file based on the form information entered by the user in the form file corresponding to the data domain file that does not need to be removed, the corresponding form information can be obtained according to the corresponding instructions in the basic document information of the document template, and the form information can be filled in the corresponding position of the basic document information to generate the document file.

[0086] In this way, when different regions have new business needs, the corresponding data link can be directly configured for the business needs in the data link table without developing new pages. When new business needs require new form files, new data domain files can be designed to correspond to the new form files. In this way, when subsequent business needs also require the form file, the data domain files corresponding to the form file can be reused to reduce development complexity.

[0087] In one possible implementation, a data link is associated with multiple data domain files, and a data link may also correspond to multiple document files. The number of data domain files is greater than or equal to the number of document files. After generating multiple document files corresponding to the target data link, an application corresponding to the target data link can also be generated based on the document files corresponding to the data domain files in the target data link.

[0088] Exemplarily, each document file may be arranged in the order of the corresponding data domain file in the target data chain to generate an application corresponding to the target data chain.

[0089] The above file generation method will be described below in conjunction with specific examples. See Table 4 and Table 5 below, where Table 4 is a schematic diagram of a data domain library table and Table 5 is a schematic diagram of a data link table.

[0090] Table 4

[0091]

[0092] In the above table, whether the instrument is synthesized is listed, 1 means synthesis, and 0 means no synthesis.

[0093] Table 5

[0094]

[0095] In the above table, in the business type column, 02 indicates establishment registration, and 03 indicates cancellation; in the enterprise type column, 1100 indicates a limited liability company, and 9600 indicates a partnership.

[0096] If the user wants to register a limited company in the Henan system, the system can use henan (regional information), 02 (establishment registration), 1100 (limited company) to query in the data link table. After querying the data with data identifier 10001, the target data link baseinfo-persioninfo-suppleinfo can be obtained, and then the following can be executed:

[0097] 1. Load the front-end form files of each data domain file one by one and display the form files. After the user interacts with the form files, the back-end interface can be called to obtain the form information filled in by the user.

[0098] Here, before the front-end form file of each data domain file is loaded, the back-end interface can be called to determine whether the data domain file needs to be removed. For example, if it is determined that a form file does not need to be filled out based on the form information previously filled out by the user, the data domain file corresponding to the form file can be directly removed.

[0099] 2. Synthesize documents based on the form information filled in by the user.

[0100] Here, when synthesizing documents, the subdomains also need to synthesize corresponding documents. For example, the persioninfo data domain file in the target data chain contains two subdomains, legalinfo-managerinfo. When synthesizing document files, the order is: baseinfo-persioninfo-legalinfo-managerinfo-suppleinfo.

[0101] In addition, before synthesizing the document, you can first determine whether each data domain file needs to be synthesized into a document (such as judging according to Table 4 above), and then call the back-end interface corresponding to each data domain file to determine whether the data domain file needs to be removed, and then synthesize the corresponding document file based on the data domain file that has been filtered twice, and then arrange multiple document files to obtain the final application.

[0102] The file generation method provided by the disclosed embodiment can pre-design multiple data domain files, and different business needs in different regions can be met by configuring data linked tables. In this way, after the user initiates a business processing request, based on the business information and regional information carried in the business processing request, the user can find the target data link corresponding to the business information and regional information from the pre-established multiple data linked tables, and then display the form and generate the document file based on the data domain file in the target data link. Through this method, it is only necessary to configure the data linked table to realize the reuse of the data domain file, which can reduce the development cost and the complexity of the system accordingly.

[0103] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0104] Based on the same inventive concept, a file generation device corresponding to the file generation method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned file generation method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0105] Reference Figure 2 , which is a schematic diagram of the architecture of a file generation device provided by an embodiment of the present disclosure, the device comprises: a receiving module 201, a searching module 202, and a generating module 203; wherein,

[0106] The receiving module 201 is used to receive a service processing request; wherein the service processing request carries service information and region information;

[0107] A search module 202 is used to search for a target data link corresponding to the business information and the regional information from a pre-established data link table based on the business information and the regional information; wherein the target data link is associated with a plurality of data domain files, each of which is composed of a back-end function interface file and a front-end data rendering file, and each data link is configured with corresponding business information and regional information;

[0108] The generation module 203 is used to display the form file based on each data domain file in the target data chain, and generate a corresponding document file based on the form information input by the user in the displayed form file.

[0109] In a possible implementation manner, the front-end data rendering file includes a front-end form file;

[0110] The generating module 203, when displaying a form file based on each data domain file in the target data chain, is used to:

[0111] For any data domain file in the target data chain, the backend function interface file contained in the data domain file is called, and the frontend form file contained in the data domain file is rendered to display the form file.

[0112] In a possible implementation manner, the front-end data rendering file further includes a front-end document file, wherein the front-end document file includes a document template, wherein the document template indicates basic document information and form information that needs to be acquired by calling an interface;

[0113] The generating module 203, when generating a corresponding document based on the form information input by the user in the displayed form file, is used to:

[0114] For any data domain file in the target data chain, call the backend function interface file contained in the data domain file to obtain the form information indicated by the document template;

[0115] Generate a corresponding document file based on the acquired form information and the document basic information.

[0116] In a possible implementation, the backend function interface file is used to call the following interfaces: list data rendering interface, form data rendering interface, save data interface, delete data interface, data field removal interface, document removal interface;

[0117] The front-end form file is used to perform the following operations: list data rendering, form data rendering, save data, delete data;

[0118] The front-end document file is used to perform the following operations: form data rendering and document rendering.

[0119] In a possible implementation manner, the business information includes a business type and an enterprise type.

[0120] In a possible implementation, the generating module 203, when generating a corresponding document file based on the form information input by the user in the form file, is used to:

[0121] Determine whether each data domain file needs to generate documents;

[0122] For each data domain file for which a document needs to be generated, the backend interface corresponding to each data domain file is called to determine whether each data domain file needs to be removed; wherein the backend interface is a data domain removal interface;

[0123] Based on the form information input by the user in the form file corresponding to the data domain file that does not need to be removed, a corresponding document file is generated.

[0124] In a possible implementation manner, the generating module 203 is further configured to:

[0125] Based on the document file corresponding to the data domain file in the target data chain, an application corresponding to the business processing request is generated.

[0126] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0127] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 3 As shown, it is a schematic diagram of the structure of a computer device 300 provided in an embodiment of the present disclosure, including a processor 301, a memory 302, and a bus 303. Among them, the memory 302 is used to store execution instructions, including a memory 3021 and an external memory 3022; the memory 3021 here is also called an internal memory, which is used to temporarily store the operation data in the processor 301, and the data exchanged with the external memory 3022 such as a hard disk. The processor 301 exchanges data with the external memory 3022 through the memory 3021. When the computer device 300 is running, the processor 301 communicates with the memory 302 through the bus 303, so that the processor 301 executes the following instructions:

[0128] Receiving a business processing request; wherein the business processing request carries business information and regional information;

[0129] Based on the business information and regional information, a target data link corresponding to the business information and regional information is searched from a pre-established data link table; wherein the target data link is associated with a plurality of data domain files, each data domain file is composed of a back-end function interface file and a front-end data rendering file, and each data link is configured with corresponding business information and regional information;

[0130] Based on each data domain file in the target data chain, a form file is displayed, and based on the form information input by the user in the displayed form file, a corresponding document file is generated.

[0131] In a possible implementation manner, in the instruction executed by the processor 301, the front-end data rendering file includes a front-end form file;

[0132] The display of the form file based on each data domain file in the target data chain includes:

[0133] For any data domain file in the target data chain, the backend function interface file contained in the data domain file is called, and the frontend form file contained in the data domain file is rendered to display the form file.

[0134] In a possible implementation manner, in the instructions executed by the processor 301, the front-end data rendering file further includes a front-end document file, the front-end document file includes a document template, and the document template indicates basic document information and form information that needs to be obtained by calling an interface;

[0135] The generating of a corresponding document based on the form information input by the user in the displayed form file includes:

[0136] For any data domain file in the target data chain, call the backend function interface file contained in the data domain file to obtain the form information indicated by the document template;

[0137] Generate a corresponding document file based on the acquired form information and the document basic information.

[0138] In a possible implementation, in the instructions executed by the processor 301, the backend function interface file is used to call the following interfaces: list data rendering interface, form data rendering interface, save data interface, delete data interface, data field removal interface, document removal interface;

[0139] The front-end form file is used to perform the following operations: list data rendering, form data rendering, save data, delete data;

[0140] The front-end document file is used to perform the following operations: form data rendering and document rendering.

[0141] In a possible implementation manner, in the instructions executed by the processor 301, the business information includes a business type and an enterprise type.

[0142] In a possible implementation manner, in the instructions executed by the processor 301, generating a corresponding document file based on the form information input by the user in the form file includes:

[0143] Determine whether each data domain file needs to generate documents;

[0144] For each data domain file for which a document needs to be generated, the backend interface corresponding to each data domain file is called to determine whether each data domain file needs to be removed; wherein the backend interface is a data domain removal interface;

[0145] Based on the form information input by the user in the form file corresponding to the data domain file that does not need to be removed, a corresponding document file is generated.

[0146] In a possible implementation manner, in the instruction executed by the processor 301, the method further includes:

[0147] Based on the document file corresponding to the data domain file in the target data chain, an application corresponding to the business processing request is generated.

[0148] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the file generation method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0149] The present disclosure also provides a computer program product that carries a program code. The program code includes instructions that can be used to execute the steps of the file generation method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.

[0150] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).

[0151] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

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

[0153] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0154] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0155] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A file generation method, characterized in that: include: Receiving a business processing request; wherein the business processing request carries business information and regional information; Based on the business information and regional information, a target data link corresponding to the business information and regional information is searched from a pre-established data link table; wherein the target data link is associated with a plurality of data domain files, each data domain file is composed of a back-end function interface file and a front-end data rendering file, the back-end function interface file is used to call a corresponding interface to implement a corresponding function, and the front-end data rendering file is used to implement document rendering display, form rendering display and form interaction; each data link is configured with corresponding business information and regional information; the data domain file is a logic code file corresponding to form display and document file generation and display; Based on each data domain file in the target data chain, a form file is displayed, and based on the form information input by the user in the displayed form file, a corresponding document file is generated; the generating of the corresponding document file based on the form information input by the user in the displayed form file includes: Determine whether each data domain file needs to generate documents; For each data domain file for which a document needs to be generated, the backend interface corresponding to each data domain file is called to determine whether each data domain file needs to be removed; wherein the backend interface is a data domain removal interface; Based on the form information input by the user in the form file corresponding to the data domain file that does not need to be removed, a corresponding document file is generated.

2. The method according to claim 1, characterized in that The front-end data rendering file includes a front-end form file; The display of the form file based on each data domain file in the target data chain includes: For any data domain file in the target data chain, the backend function interface file contained in the data domain file is called, and the frontend form file contained in the data domain file is rendered to display the form file.

3. The method according to claim 2, characterized in that The front-end data rendering file also includes a front-end document file, which includes a document template. The document template indicates basic document information and form information that needs to be obtained by calling an interface; The generating of a corresponding document based on the form information input by the user in the displayed form file includes: For any data domain file in the target data chain, call the backend function interface file contained in the data domain file to obtain the form information indicated by the document template; Generate a corresponding document file based on the acquired form information and the document basic information.

4. The method according to claim 3, characterized in that: The backend function interface file is used to call the following interfaces: list data rendering interface, form data rendering interface, save data interface, delete data interface, data field removal interface, document removal interface; The front-end form file is used to perform the following operations: list data rendering, form data rendering, save data, delete data; The front-end document file is used to perform the following operations: form data rendering and document rendering.

5. The method according to claim 1, characterized in that: The business information includes business type and enterprise type.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Based on the document file corresponding to the data domain file in the target data chain, an application corresponding to the business processing request is generated.

7. A file generating device, characterized in that: include: A receiving module, used to receive a business processing request; wherein the business processing request carries business information and regional information; A search module is used to search for a target data link corresponding to the business information and regional information from a pre-established data link table based on the business information and regional information; wherein the target data link is associated with a plurality of data domain files, each of which is composed of a back-end function interface file and a front-end data rendering file, the back-end function interface file is used to call a corresponding interface to implement a corresponding function, and the front-end data rendering file is used to implement document rendering display, form rendering display and form interaction; each data link is configured with corresponding business information and regional information; the data domain file is a logic code file corresponding to form display and document file generation and display; A generating module, used for displaying a form file based on each data domain file in the target data chain, and generating a corresponding document file based on the form information input by the user in the displayed form file; The generating module, when generating a corresponding document file based on the form information input by the user in the displayed form file, is used to: Determine whether a document needs to be generated for each data domain file; for each data domain file that needs to generate a document, call the back-end interface corresponding to each data domain file to determine whether each data domain file needs to be removed; wherein the back-end interface is a data domain removal interface; based on the form information entered by the user in the form file corresponding to the data domain file that does not need to be removed, generate the corresponding document file.

8. A computer device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the file generation method according to any one of claims 1 to 6 are performed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the file generation method according to any one of claims 1 to 6 are executed.

Citation Information

Patent Citations

  • Contract generation method and device, electronic equipment and storage medium

    CN116739845A

  • Business data processing method and device, equipment, storage medium and program product

    CN117933206A

  • Page display method and device and computer storage medium

    CN118193100A