This application discloses a dynamic form construction method, device, and medium, relating to the fields of
software engineering and
enterprise application development technology. The method includes: receiving a form request containing a
view model identifier and request type based on a preset view
parsing and execution engine;
parsing a predefined
view model according to the identifier to obtain its
metadata, which defines the target
business entity, view data
object structure, field set, and filtering conditions; for
data query requests, dynamically constructing and executing
SQL statements based on the aforementioned
metadata, obtaining
raw data, performing aggregation and transformation, and generating structured view data that meets the front-end rendering requirements for return; for
data submission requests, converting the data submitted from the front-end back into
domain model data according to the same
view model, and calling the
business entity engine service to complete
business logic verification and persistent storage, thereby achieving dynamic generation of the form view, decoupling of front-end and back-end logic, and ensuring business consistency.