Form generation method and apparatus

By generating a logical data model and obtaining attribute configuration information, forms are automatically generated, solving the problems of low efficiency and poor flexibility in existing form generation technologies, and realizing low-code development and efficient form generation.

CN114371845BActive Publication Date: 2026-08-04INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
Filing Date
2021-12-14
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Existing form generation methods are inefficient and lack flexibility, making it difficult to meet the needs of comprehensive application systems such as government and enterprise business operation and maintenance systems.

Method used

By generating a logical data model based on the physical data model of the target business, obtaining attribute configuration information, and automatically generating forms, low-code development can be achieved using the model generation module, configuration acquisition module, and form generation module.

Benefits of technology

It enables users to generate personalized forms independently without any technical background, improving code conciseness, reducing development costs and system defect rates, and increasing form generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114371845B_ABST
    Figure CN114371845B_ABST
Patent Text Reader

Abstract

The application provides a form generation method and device, and the method comprises the following steps: generating a logical data model corresponding to a target service based on a physical data model corresponding to the target service; acquiring configuration information of each attribute in the logical data model corresponding to the target service; and generating a form of the target service based on the configuration information of each attribute. The form generation method and device provided by the application can generate a logical data model corresponding to a target service based on a physical data model corresponding to the target service, acquire configuration information of each attribute in the logical data model corresponding to the target service, and generate a form of the target service based on the configuration information of each attribute, so that users can independently generate various personalized forms without technical background, the code can be greatly simplified, the repeated code can be avoided, the form can be simply, efficiently and low-code developed, the development cost and system defect rate can be greatly reduced, and the form generation efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a form generation method and apparatus. Background Technology

[0002] Integrated application systems such as government and enterprise business operation and maintenance systems integrate data from multiple operation and maintenance capability centers, and the demand for automation and intelligent operation and maintenance of various ToB businesses is becoming increasingly urgent. For these integrated application systems, a large number of forms need to be developed to display various types of data.

[0003] There are two main ways to develop forms: one is to directly write and implement the form page using traditional manual programming; the other is to generate the form page by combining partial form configuration (such as the configuration of list display fields, the configuration of form display fields, etc.) with manual programming.

[0004] In summary, existing form development methods suffer from low development efficiency and poor flexibility, making it difficult to meet the application needs of comprehensive application systems such as government and enterprise business operation and maintenance systems. Therefore, improving the automation level of form generation and increasing development efficiency has become an urgent problem to be solved. Summary of the Invention

[0005] This invention provides a form generation method and apparatus to address the shortcomings of low efficiency in form generation in the prior art, and to achieve more efficient form generation.

[0006] This invention provides a form generation method, comprising:

[0007] Based on the physical data model corresponding to the target business, generate the logical data model corresponding to the target business;

[0008] Obtain the configuration information of each attribute in the logical data model corresponding to the target business;

[0009] Based on the configuration information of each attribute, a form for the target service is generated.

[0010] According to the form generation method provided by the present invention, before generating the logical data model corresponding to the target business based on the physical data model corresponding to the target business, the method further includes:

[0011] Generate the physical data model corresponding to the target service.

[0012] According to the form generation method provided by the present invention, the step of generating a logical data model corresponding to the target business based on the physical data model corresponding to the target business specifically includes:

[0013] Receive the user's first input; the first input carries information about the physical data model corresponding to the target service;

[0014] In response to the first input, the physical data model corresponding to the target service is mapped to generate the logical data model corresponding to the target service.

[0015] According to the form generation method provided by the present invention, the step of obtaining the configuration information of each attribute in the logical data model corresponding to the target business specifically includes:

[0016] For each of the aforementioned attributes, a second input is received; the second input carries configuration information for the attribute.

[0017] According to a form generation method provided by the present invention, generating the form for the target business based on the configuration information of each attribute specifically includes:

[0018] The address for generating the form for the target service;

[0019] Based on the configuration information of each attribute, a form for the target service is generated, and the form for the target service is associated with the address of the form for the target service.

[0020] According to the form generation method provided by the present invention, receiving the second input specifically includes:

[0021] Receive the user's first action on the first page;

[0022] If it is determined based on the first operation that the attribute supports querying, a second operation from the user on the second page is received; the second operation carries query configuration information for the attribute.

[0023] The present invention also provides a form generation apparatus, comprising:

[0024] The model generation module is used to generate a logical data model corresponding to the target business based on the physical data model corresponding to the target business.

[0025] The configuration acquisition module is used to acquire the configuration information of each attribute in the logical data model corresponding to the target business;

[0026] The form generation module is used to generate the form for the target business based on the configuration information of each attribute.

[0027] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the form generation methods described above.

[0028] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the form generation methods described above.

[0029] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the form generation methods described above.

[0030] The form generation method and apparatus provided by this invention generate a logical data model corresponding to the target business through a physical data model, obtain the configuration information of each attribute in the logical data model corresponding to the target business, and generate a form for the target business based on the configuration information of each attribute. This allows users to generate various personalized forms independently without technical background, significantly improves code conciseness, avoids repetitive code writing, and achieves simple, efficient, and low-code form development. It can greatly reduce development costs and system defect rate, improve form generation efficiency, and allow operators to adapt to various business scenarios without technical expertise. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0032] Figure 1 This is a flowchart illustrating the form generation method provided by the present invention;

[0033] Figure 2 This is a schematic diagram of the form generation device provided by the present invention;

[0034] Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0035] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0036] In the description of the embodiments of the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, nor do they relate to order.

[0037] In the description of the embodiments of the present invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of the present invention based on the specific circumstances.

[0038] The following is combined with Figures 1 to 3 This invention describes the form generation method and apparatus provided by the present invention.

[0039] Figure 1 This is a flowchart illustrating the form generation method provided in this application. The following section combines... Figure 1 This application describes a form generation method according to an embodiment. For example... Figure 1 As shown, the method includes steps 101, 102 and 103.

[0040] Specifically, the execution entity of the form generation method provided in this embodiment of the invention is a form generation device. This form generation device can be implemented in various forms. For example, the form generation device can be a fixed terminal such as a PC (personal computer) and a server, or a mobile terminal such as a tablet computer and a smartphone.

[0041] Step 101: Generate the logical data model corresponding to the target business based on the physical data model corresponding to the target business.

[0042] Specifically, the Physical Data Model (PDM), or simply "physical model," is a model oriented towards the physical representation of data in a computer. It describes the organization of data on the storage medium and is related not only to the specific DBMS (Database Management System) but also to the operating system and hardware. Each logical data model has a corresponding physical data model in its implementation. To ensure independence and portability, the DBMS automatically handles most of the implementation of the physical data model, while the designer only needs to design special structures such as indexes and clusters.

[0043] The physical data model is based on the logical data model, taking into account various specific technical implementation factors, to design the database architecture and truly realize the storage of data in the database.

[0044] The physical data model includes defining all tables and columns, defining foreign keys to establish relationships between tables, and potentially performing denormalization based on user needs. Considerations regarding physical implementation may lead to significant differences between the physical data model and the logical data model.

[0045] The goal of a physical data model is to specify how to implement a logical data model using a database schema, and how to actually store the data.

[0046] A logical data model, or simply "logical model," is the model that users see from the database. It is the data model supported by a specific DBMS, such as a network data model or a hierarchical data model. This model must be user-facing and system-facing, and is primarily used in the implementation of a database management system (DBMS).

[0047] The logical data model reflects the system analysts' and designers' perspective on data storage; it is a further decomposition and refinement of the conceptual data model. Determined based on business rules, the logical data model is a basic blueprint of business objects, their data items, and the relationships between them.

[0048] The logical data model includes all entities and relationships, determines the attributes of each entity, defines the primary key of each entity, specifies the foreign keys of entities, and requires normalization.

[0049] The goal of a logical data model is to describe the data in as much detail as possible, but it does not consider how the data is physically implemented.

[0050] Logical data modeling not only influences the direction of database design but also indirectly affects the final database's performance and management. If sufficient effort is invested in implementing the logical data model, then a wide range of methods will be available for designing the physical data model.

[0051] Based on the correspondence between the physical data model and the logical data model corresponding to the target business, the logical data model corresponding to the target business can be generated according to the physical data model corresponding to the target business.

[0052] The logical data model initially defines model fields, field types, related enumerations, subqueries, etc. In other words, the logical data model can include model fields, field types, attribute types (text, enumeration, translation, etc.), attribute sources (database, subqueries, program, etc.), and the order in which attributes are displayed.

[0053] Step 102: Obtain the configuration information of each attribute in the logical data model corresponding to the target business.

[0054] Specifically, users can configure the various attributes in the logical data model based on the interface used to display the logical data model corresponding to the target business, and generate configuration information for each attribute.

[0055] The form generation device can display the interface described above, which is used to display the logical data model corresponding to the target business, thereby obtaining the configuration information of each attribute.

[0056] The configuration information for an attribute can mainly include whether the attribute is displayed in a list, whether it is displayed in a form, the type of control used to display the attribute (text box, checkbox, radio button, drop-down selection box, etc.) and its length, whether it is used as a query condition, the query type (normal query, fuzzy query, range query, etc.), and whether it is sorted.

[0057] Step 103: Generate the form for the target business based on the configuration information of each attribute.

[0058] Specifically, a form page can be automatically generated based on the configuration information of each attribute in the logical data model corresponding to the target business. This form page includes the form for the target business.

[0059] Forms in web pages are primarily responsible for data collection. A form has three basic components: form tags, form fields, and form buttons.

[0060] The form tag can include the URL of the CGI program used to process the form data and the method for submitting the data to the server.

[0061] Form fields can include text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio buttons, drop-down selection boxes, and file upload boxes, etc.

[0062] Form buttons can include submit buttons, reset buttons, and general buttons. Form buttons can be used to send data to a CGI script on a server or to cancel input. They can also be used to control other processing tasks defined by scripts.

[0063] This invention generates a logical data model corresponding to a target business by using a physical data model corresponding to the target business, obtains the configuration information of each attribute in the logical data model corresponding to the target business, and generates a form for the target business based on the configuration information of each attribute. This allows users to generate various personalized forms independently without technical background, significantly improves code conciseness, avoids repetitive code writing, and achieves simple, efficient, and low-code form development. It can greatly reduce development costs and system defect rate, improve form generation efficiency, and allow operators to adapt to various business scenarios without technical expertise.

[0064] Based on any of the above embodiments, before generating the logical data model corresponding to the target business based on the physical data model corresponding to the target business, the method further includes: generating the physical data model corresponding to the target business.

[0065] Specifically, prior to step 101, database entity tables, views, and sequences can be created in advance based on user input, thereby generating the physical data model corresponding to the target business.

[0066] User input can be based on a certain type of business (such as government and enterprise business), after the user has sorted out the business model related to that type of business, and then input it into the form generation device.

[0067] This invention generates a physical data model corresponding to a target business, and then generates a logical data model corresponding to the target business based on the physical data model. It obtains the configuration information of each attribute in the logical data model corresponding to the target business, and generates a form for the target business based on the configuration information of each attribute. This allows users to generate various personalized forms independently without technical background, greatly improves code conciseness, avoids repetitive code writing, and achieves simple, efficient, and low-code form development. It can greatly reduce development costs and system defect rate, and improve the efficiency of form generation.

[0068] Based on any of the above embodiments, a logical data model corresponding to the target service is generated based on the physical data model corresponding to the target service, specifically including: receiving a first input from the user; the first input carries information about the physical data model corresponding to the target service.

[0069] Specifically, it can receive a first input based on a first interface, which carries information about the physical data model corresponding to the target service.

[0070] In response to the first input, the physical data model corresponding to the target business is mapped to generate the logical data model corresponding to the target business.

[0071] Specifically, after receiving the first input, the physical data model corresponding to the target service can be determined; based on this physical data model, the logical data model corresponding to the target service can be obtained by mapping.

[0072] For example, the first input may include: right-clicking "Model Management Related Services (e.g., 5G)," clicking the "One-Click Generation" button, and entering the corresponding physical table name, Chinese model name, and English model name in the pop-up interface after clicking the "One-Click Generation" button to generate the corresponding logical data model with one click. The physical table name is the information of the physical data model corresponding to the target service; the Chinese model name and English model name refer to the Chinese and English names of the logical data model corresponding to the target service, respectively.

[0073] The embodiments of the present invention can construct multiple logical data models through physical data models, which can avoid repeated table creation and code writing, solve the problem of unified access to multiple data sources, and greatly reduce development costs.

[0074] Based on the content of any of the above embodiments, obtaining the configuration information of each attribute in the logical data model corresponding to the target service specifically includes: for each attribute, receiving a second input; the second input carries the configuration information of the attribute.

[0075] Specifically, the configuration information for attributes in the logical data model corresponding to the target business can include page configuration information. This page configuration information can include whether to display in a list, whether to display in a form, the type and length of the control used to display the attribute, whether it is used as a query condition, the query type (normal query, fuzzy query, range query, etc.), and whether to sort. In other words, the page configuration information for an attribute can include the displayed fields, control length, display order, and sorting method.

[0076] The attributes in the logical data model corresponding to the target business can include form attributes and list attributes, etc.

[0077] Users can input a second input for a specific attribute into the form generation device based on the page used to display page configuration information.

[0078] The form generation device receives a second input, thereby obtaining configuration information for a certain attribute carried by the second input.

[0079] It should be noted that between steps 102 and 103, the method may further include: receiving a third input from the user; and based on the third input, obtaining the configuration information of the page operation controls. The third input may carry the configuration information of the page operation controls.

[0080] Page operation controls can be used on form pages and / or list pages of forms. The configuration information for page operation controls mainly includes the display configuration of operation buttons such as Add, Modify, Delete, Details, Import, and Export. Furthermore, in addition to operation buttons (i.e., button controls), custom operation controls are also supported. Flexible configuration and customization of operation controls are possible through a visual configuration interface.

[0081] The embodiments of the present invention enable flexible configuration based on a visual configuration interface, allowing for flexible definition of form page display.

[0082] Based on the content of any of the above embodiments, and based on the configuration information of each attribute, a form for the target business is generated, specifically including: the address for generating the form for the target business.

[0083] Specifically, an access address can be generated for the target business form, providing a unified access path, and menu items can be configured to publish the target business form to the outside world.

[0084] Based on the configuration information of each attribute, a form for the target business is generated, and the form for the target business is associated with the address of the form for the target business.

[0085] Specifically, by establishing a link between the system menu and the address of the target business form, the form can be accessed through that address to achieve real-time dynamic configuration of the form.

[0086] Based on the configuration information of each attribute, the display content corresponding to each attribute in the form can be generated on the form page, such as operation controls, Chinese names of attributes, text boxes or selection boxes corresponding to attributes, etc., thereby generating the form for the target business.

[0087] This invention enables real-time dynamic configuration of forms by providing a unified access path.

[0088] Based on any of the above embodiments, receiving a second input specifically includes: receiving a first operation by the user on the first page.

[0089] Specifically, the first page can be a page used to display page configuration information.

[0090] When a user performs a first action on the first page, the form generation device can receive the user's first action on the first page.

[0091] The first operation is used to configure whether the attribute is used as a query condition (i.e. whether querying is supported).

[0092] If the attribute is determined to support the query based on the first operation, the user's second operation on the second page is received; the second operation carries the query configuration information of the attribute.

[0093] Specifically, for each attribute that supports the query, the user can perform a second operation on the second page, and the form generation device can receive the user's second operation on the second page.

[0094] The second page can be used to display query configuration information. In addition to page configuration information, attribute configuration information can also include query configuration information.

[0095] It should be noted that the attributes in the logical data model generated in step 101 can be automatically associated with the name of the logical data model.

[0096] The embodiments of the present invention enable flexible configuration based on a visual configuration interface, allowing for flexible definition of form page display.

[0097] The form generation apparatus provided by the present invention is described below. The form generation apparatus described below can be referred to in correspondence with the form generation method described above.

[0098] Figure 2 A schematic diagram of the structure of a form generation device provided according to an embodiment of the present invention. Based on the content of any of the above embodiments, such as... Figure 2 As shown, the device includes a model generation module 201, a configuration acquisition module 202, and a form generation module 203, wherein:

[0099] The model generation module 201 is used to generate a logical data model corresponding to the target business based on the physical data model corresponding to the target business.

[0100] Configuration acquisition module 202 is used to acquire the configuration information of each attribute in the logical data model corresponding to the target business;

[0101] The form generation module 203 is used to generate forms for the target business based on the configuration information of each attribute.

[0102] Specifically, the model generation module 201, the configuration acquisition module 202, and the form generation module 203 are electrically connected in sequence.

[0103] The model generation module 201 generates the logical data model corresponding to the target business based on the correspondence between the physical data model and the logical data model corresponding to the target business.

[0104] The configuration acquisition module 202 can display the interface used to display the logical data model corresponding to the target business, thereby receiving user input based on the interface and obtaining configuration information of each attribute.

[0105] The form generation module 203 can automatically generate a form page based on the configuration information of each attribute in the logical data model corresponding to the target business. This form page includes the form for the target business.

[0106] Optionally, the form generation device may also include:

[0107] The model creation module is used to generate physical data models corresponding to the target business.

[0108] Optionally, the model generation module 201 may include:

[0109] The first input unit is used to receive the user's first input; the first input carries information about the physical data model corresponding to the target service.

[0110] The mapping unit is used to map the physical data model corresponding to the target service in response to the first input, and generate the logical data model corresponding to the target service.

[0111] Optionally, the configuration acquisition module 202 can be specifically used to receive a second input for each attribute; the second input carries the configuration information of the attribute.

[0112] Optionally, the form generation module 203 can be specifically used for:

[0113] The URL for generating the form for the target business;

[0114] Based on the configuration information of each attribute, a form for the target business is generated, and the form for the target business is associated with the address of the form for the target business.

[0115] Optionally, the configuration acquisition module 202 may include:

[0116] The receiving module is used to receive the user's first operation on the first page; if it is determined from the first operation that the attribute supports the query, it receives the user's second operation on the second page; the second operation carries the query configuration information of the attribute.

[0117] The form generation apparatus provided in this embodiment of the invention is used to execute the form generation method described above. Its implementation method is consistent with that of the form generation method provided by this invention, and it can achieve the same beneficial effects. It will not be described again here.

[0118] This form generation apparatus is used in the form generation methods of the foregoing embodiments. Therefore, the descriptions and definitions in the form generation methods of the foregoing embodiments can be used to understand the execution modules in the embodiments of the present invention.

[0119] This invention generates a logical data model corresponding to a target business by using a physical data model corresponding to the target business, obtains the configuration information of each attribute in the logical data model corresponding to the target business, and generates a form for the target business based on the configuration information of each attribute. This allows users to generate various personalized forms independently without technical background, significantly improves code conciseness, avoids repetitive code writing, and achieves simple, efficient, and low-code form development. It can greatly reduce development costs and system defect rate, improve form generation efficiency, and allow operators to adapt to various business scenarios without technical expertise.

[0120] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include a processor 310, a communications interface 320, a memory 330, and a communication bus 340. The processor 310, communications interface 320, and memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions stored in the memory 330 to execute a form generation method. This method includes: generating a logical data model corresponding to the target service based on the physical data model corresponding to the target service; obtaining configuration information of each attribute in the logical data model corresponding to the target service; and generating a form for the target service based on the configuration information of each attribute.

[0121] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0122] The processor 310 in the electronic device provided in this application embodiment can call the logical instructions in the memory 330. Its implementation method is consistent with the implementation method of the form generation method provided in this application and can achieve the same beneficial effects, which will not be repeated here.

[0123] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, and when the program instructions are executed by a computer, the computer is able to execute the form generation method provided by the above methods, the method including: generating a logical data model corresponding to the target business based on the physical data model corresponding to the target business; obtaining the configuration information of each attribute in the logical data model corresponding to the target business; and generating a form for the target business based on the configuration information of each attribute.

[0124] When the computer program product provided in this application embodiment is executed, it implements the above-mentioned form generation method. Its specific implementation method is consistent with the implementation method described in the aforementioned method embodiment, and can achieve the same beneficial effect, which will not be repeated here.

[0125] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program is implemented to perform the form generation methods provided above. The method includes: generating a logical data model corresponding to the target business based on a physical data model corresponding to the target business; obtaining configuration information of each attribute in the logical data model corresponding to the target business; and generating a form for the target business based on the configuration information of each attribute.

[0126] When the computer program stored on the non-transitory computer-readable storage medium provided in this application embodiment is executed, it implements the above-mentioned form generation method. Its specific implementation method is consistent with the implementation method described in the aforementioned method embodiment and can achieve the same beneficial effect, so it will not be repeated here.

[0127] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0128] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A form generation method, characterized in that, include: Based on the physical data model corresponding to the target business, generate the logical data model corresponding to the target business; The step of generating a logical data model corresponding to the target service based on the physical data model corresponding to the target service specifically includes: receiving a first input from a user; the first input carrying information about the physical data model corresponding to the target service; and in response to the first input, mapping the physical data model corresponding to the target service to generate the logical data model corresponding to the target service. Obtain the configuration information of each attribute in the logical data model corresponding to the target business, specifically including: For each of the aforementioned attributes, a second input is received; the second input carries configuration information for the attribute; receiving the second input specifically includes: Receive the user's first action on the first page; If it is determined based on the first operation that the attribute supports querying, a second operation from the user on the second page is received; the second operation carries query configuration information for the attribute. Based on the configuration information of each attribute, a form for the target service is generated.

2. The form generation method according to claim 1, characterized in that, Before generating the logical data model corresponding to the target business based on the physical data model corresponding to the target business, the process further includes: Generate the physical data model corresponding to the target service.

3. The form generation method according to claim 1, characterized in that, The process of generating the form for the target business based on the configuration information of each attribute specifically includes: The address for generating the form for the target service; Based on the configuration information of each attribute, a form for the target service is generated, and the form for the target service is associated with the address of the form for the target service.

4. A form generation device, characterized in that, include: The model generation module is used to generate a logical data model corresponding to the target business based on the physical data model corresponding to the target business. The step of generating a logical data model corresponding to the target service based on the physical data model corresponding to the target service specifically includes: receiving a first input from a user; the first input carrying information about the physical data model corresponding to the target service; and in response to the first input, mapping the physical data model corresponding to the target service to generate the logical data model corresponding to the target service. The configuration acquisition module is used to acquire the configuration information of each attribute in the logical data model corresponding to the target business. Specifically, it includes: for each attribute, receiving a second input; the second input carries the configuration information of the attribute; receiving the second input specifically includes: receiving a first operation by the user on the first page; if it is determined based on the first operation that the attribute supports querying, receiving a second operation by the user on the second page; the second operation carries the query configuration information of the attribute. The form generation module is used to generate the form for the target business based on the configuration information of each attribute.

5. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the form generation method as described in any one of claims 1 to 3.

6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the form generation method as described in any one of claims 1 to 3.

7. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the form generation method as described in any one of claims 1 to 3.