Low-code Deployment Method and Platform for a Construction Site Vehicle Management System
Through the low-code deployment method, the functional module code of the construction site vehicle management system is generated and automatically deployed, which solves the problem of high development costs of the smart construction site vehicle management system, and realizes efficient system deployment and reduces development labor costs.
Patent Information
- Application Number
- CN202210461806.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2042-04-28
AI Technical Summary
In the prior art, the development cost and time cost of smart construction site vehicle management systems are relatively high, resulting in limited enterprise operational efficiency.
The low-code deployment method is adopted to obtain vehicle data fields and server configuration information, generate data structure codes and functional module codes, and automatically deploy them to the server to reduce the amount of development tasks.
It reduces the development costs and time costs of enterprises and improves the development efficiency of the construction site vehicle management system.
Smart Images

Figure CN114756232B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of low-code deployment, and specifically to a low-code deployment method and platform for a construction site vehicle management system. Background Art
[0002] Currently, with the rapid development of smart construction sites, many enterprises have achieved the ability of online monitoring and control of vehicles. Through these platforms, construction site vehicles are connected to the cloud in real time, and various types of data are displayed to users through the cloud platform page, such as equipment maps, data dashboards, equipment status, etc. The equipment is monitored and operated in real time through these functions.
[0003] With the development of the software industry, intelligent manufacturing platforms have become increasingly complex, and the needs of enterprises have also increased. This has led to a sharp increase in the amount of industry software development, bringing considerable development cost pressure to enterprises, and the time cost required for development also affects the operation efficiency of enterprises. Summary of the Invention
[0004] In view of the above deficiencies in the prior art, the present invention provides a low-code deployment method and platform for a construction site vehicle management system, which can effectively reduce the development cost pressure and the time required for development of enterprises.
[0005] To achieve the above object, the present invention provides a low-code deployment method for a construction site vehicle management system, including the following steps:
[0006] Step 1, obtaining the configuration information of vehicle data fields, the server IP port configuration information, and the remote connection ssh configuration information;
[0007] Step 2, generating data structure code based on the configuration information of vehicle data fields, and generating a corresponding database sql file;
[0008] Step 3, based on the data structure code and the pre-stored function module templates of the construction site vehicle management system, configuring the function modules required for the construction site vehicle management system, and generating the code of each function module in the construction site vehicle management system;
[0009] Step 4, uploading the code of each function module in the construction site vehicle management system to the server according to the server IP port configuration information and the remote connection ssh configuration information to complete the deployment.
[0010] In one embodiment, in step 3, the construction site vehicle management system template includes a vehicle connection module code template, and at least one of a vehicle map module code template, a vehicle details module code template, a vehicle control module code template, a data dashboard module code template, and a report module code template.
[0011] In one embodiment, in step 3, generating the codes of each functional module in the construction site vehicle management system based on the data structure code and the pre-stored construction site vehicle management system template specifically includes:
[0012] Call the code template of the vehicle connection module, generate the netty device connection code according to the data structure code, and generate an interface file to be sent to the vehicle side for connection and call;
[0013] Call the code template of the vehicle map module, configure the map page according to the vehicle data fields, and display the vehicle position, the current status of the vehicle, the current speed of the vehicle, and other configured field information on the map;
[0014] Call the code template of the vehicle details module, arrange the layout of the vehicle details page, bind the vehicle data fields to the controls, and then generate the vehicle details page according to the layout and the field binding relationship, and display the vehicle data on the corresponding controls;
[0015] Call the code template of the vehicle control module, drag the controls and layout the vehicle operation button layout, write the operation code and the result processing code on the controls, and then generate the vehicle control page according to the layout, and bind the operation code and the result processing code to the corresponding controls;
[0016] Call the code template of the data dashboard module to provide a drag-and-drop configuration page, arrange the layout of the data dashboard page, write the SQL statement and the result processing code and bind them to the controls to generate the data dashboard page;
[0017] Call the code template of the report module to provide a report editing page, configure the report query SQL statement and the result processing code through the report editing page, and configure the report display fields to generate the report page;
[0018] Generate the codes of the map page, the vehicle details page, the vehicle control page, the data dashboard page and the report page, which together with the netty device connection code form the codes of each functional module in the construction site vehicle management system.
[0019] In one embodiment, in step 4, uploading the codes of each module in the construction site vehicle management system to the server according to the server IP port configuration information and the remote connection ssh configuration information specifically includes:
[0020] Detect the server environment according to the server IP port configuration information and the remote connection ssh configuration information;
[0021] After the detection is passed, automatically connect to the server and install the database, redis, and program running environment on the server;
[0022] Automatically upload the code of each module in the generated construction site vehicle management system to the server and start it. Detect the program through an automated test script. If the detection fails, notify the failure information. If the detection passes, the deployment is completed.
[0023] To achieve the above object, the present invention also provides a low-code deployment platform for a construction site vehicle management system, including:
[0024] An information configuration unit that provides a configuration page for configuring vehicle data fields, server IP ports, and remote connection ssh.
[0025] A database unit for obtaining the configured vehicle data fields, generating data structure code, and generating a database sql file.
[0026] A module configuration unit including function module code templates for various construction site vehicle management systems, used to generate map pages, vehicle detail pages, vehicle control pages, data dashboard pages, and report pages in the construction site vehicle management system.
[0027] A code generation unit for generating the code of map pages, vehicle detail pages, vehicle control pages, data dashboard pages, report pages, and netty device connection code to obtain the code of each function module in the construction site vehicle management system.
[0028] An automatic deployment unit for deploying the code of each module in the construction site vehicle management system to the server.
[0029] In one embodiment, the module configuration unit includes:
[0030] A vehicle map code subunit with a vehicle map module code template for generating a map page according to vehicle data fields and displaying vehicle location, vehicle current status, vehicle current speed, and other configured field information on the map.
[0031] A vehicle detail code subunit with a vehicle detail module code template for binding vehicle data fields to controls, and then generating a vehicle detail page according to the layout and field binding relationship, and displaying vehicle data on the corresponding controls.
[0032] A vehicle control code subunit with a vehicle control module code template for dragging controls and typesetting the layout of vehicle operation buttons, writing operation code and result processing code on the controls, and then generating a vehicle control page according to the layout and binding the operation code and result processing code to the corresponding controls.
[0033] The data dashboard code subunit has a code template for the data dashboard module, which is used to write SQL statements and result processing code and bind them to controls. After configuration, according to the layout and the bound code, a data dashboard page is generated.
[0034] The report code subunit has a code template for the report module, which is used to configure the report query SQL statement and result processing code, and configure the report display fields to generate a report page.
[0035] A low-code deployment method and platform for a construction vehicle management system provided by the present invention. On this platform, parameters such as device attributes and dashboard data can be set according to the needs of enterprise customers. Then, the platform automatically generates business data interfaces, data forms, statistical reports, data dashboards, etc. according to the configured parameters, and the generated system code is automatically deployed to the configured server, thereby greatly reducing the development task volume of the platform and reducing the development labor cost. Brief Description of the Drawings
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on the structures shown in these drawings.
[0037] Figure 1 It is a flowchart of the low-code deployment method in the embodiment of the present invention;
[0038] Figure 2 It is a framework diagram of the low-code deployment platform in the embodiment of the present invention;
[0039] Figure 3 It is a framework diagram of the module configuration unit in the embodiment of the present invention.
[0040] The realization, functional features and advantages of the object of the present invention will be further described in conjunction with the embodiments with reference to the drawings. Detailed Embodiments
[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0042] It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relative positional relationship, movement conditions, etc. between components in a specific posture (as shown in the attached drawings). If the specific posture changes, the directional indications will also change accordingly.
[0043] In addition, in the present invention, descriptions such as "first" and "second" are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless otherwise specifically and clearly defined.
[0044] In the present invention, unless otherwise clearly specified and limited, terms such as "connection" and "fixation" should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or integrated; it can be a mechanical connection, an electrical connection, a physical connection, or a wireless communication connection; it can be directly connected, or indirectly connected through an intermediate medium, and can be the communication inside two components or the interaction relationship between two components, unless otherwise clearly limited. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0045] In addition, the technical solutions between various embodiments of the present invention can be combined with each other, but it must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present invention.
[0046] Embodiment 1
[0047] As Figure 1 shown is a low-code deployment method for a construction site vehicle management system disclosed in this embodiment, specifically including the following steps 1-step 4.
[0048] Step 1, obtain the configuration information of vehicle data fields, the server IP port configuration information, and the remote connection ssh configuration information. Among them, the vehicle data fields mainly include configuration information such as vehicle fuel consumption, location, speed, and driving status.
[0049] Step 2, generate data structure code based on the configuration information of vehicle data fields for storing device data, and generate the corresponding database sql file.
[0050] Step 3: Based on the data structure code and the pre-stored function module templates of the construction site vehicle management system, configure the function modules required for the construction site vehicle management system, and generate the codes for each module in the construction site vehicle management system. The construction site vehicle management system template includes at least one of the vehicle connection module code template, the vehicle map module code template, the vehicle details module code template, the vehicle control module code template, the data dashboard module code template, and the report module code template. The specific implementation of generating the codes for each function module in the construction site vehicle management system is as follows:
[0051] Call the vehicle connection module code template, generate the netty device connection code according to the data structure code, and generate an interface file to be sent to the vehicle side for connection and call;
[0052] Call the vehicle map module code template, configure the map page according to the vehicle data fields, and display the vehicle position, the current vehicle status, the current vehicle speed, and other configured field information on the map;
[0053] Call the vehicle details module code template, arrange the layout of the vehicle details page, bind the vehicle data fields to the controls, and then generate the vehicle details page according to the layout and the field binding relationship, and display the vehicle data on the corresponding controls;
[0054] Call the vehicle control module code template, drag and drop the controls and layout the vehicle operation button layout, write the operation code and the result processing code on the controls, and then generate the vehicle control page according to the layout, and bind the operation code and the result processing code to the corresponding controls;
[0055] Call the data dashboard module code template to provide a drag-and-drop configuration page, arrange the layout of the data dashboard page, write the SQL statement and the result processing code and bind them to the controls. After the configuration is completed, generate the data dashboard page according to the layout and the bound code;
[0056] Call the report module code template to provide a report editing page, configure the report query SQL statement and the result processing code through the report editing page, and configure the report display fields to generate the report page;
[0057] Generate the codes for the map page, the vehicle details page, the vehicle control page, the data dashboard page, and the report page, which together with the netty device connection code form the codes for each function module in the construction site vehicle management system.
[0058] Step 4: According to the server IP port configuration information and the remote connection SSH configuration information, upload the codes of each module in the construction site vehicle management system to the server to complete the deployment. The specific implementation process is as follows:
[0059] Detect the server environment according to the server IP port configuration information and the remote connection ssh configuration information;
[0060] After the detection passes, automatically connect to the server and install the database, redis, and program running environment on the server;
[0061] Automatically upload the code of each module in the generated construction site vehicle management system to the server and start it. Detect the program through the automatic test script. If the detection fails, notify the failure information. If the detection passes, the deployment is completed.
[0062] The low-code deployment method disclosed in this embodiment can set parameters such as device attributes and large-screen data according to the needs of enterprise customers. Then, the platform automatically generates business data interfaces, data forms, statistical reports, data large screens, etc. according to the configured parameters. The generated system code is automatically deployed to the configured server, thus greatly reducing the development task volume of the platform and reducing the development labor cost.
[0063] Embodiment 2
[0064] As Figure 2 shown, a low-code deployment platform for a construction site vehicle management system disclosed in this embodiment mainly includes an information configuration unit, a database unit, a module configuration unit, a code generation unit, and an automatic deployment unit. Among them, the information configuration unit provides a configuration page for configuring vehicle data fields, server IP ports, and remote connection ssh; the database unit is used to obtain the configured vehicle data fields, generate data structure codes, and generate database sql files; the module configuration unit includes function module code templates for various construction site vehicle management systems, and is used to generate map pages, vehicle detail pages, vehicle control pages, data large screen pages, and report pages in the construction site vehicle management system; the code generation unit is used to generate codes for map pages, vehicle detail pages, vehicle control pages, data large screen pages, report pages, and netty device connection codes to obtain the codes of each functional module in the construction site vehicle management system; the automatic deployment unit is used to deploy the codes of each module in the construction site vehicle management system to the server.
[0065] Refer to Figure 3 , the module configuration unit mainly includes a vehicle map code subunit, a vehicle detail code subunit, a vehicle control code subunit, a data large screen code subunit, and a report code subunit.
[0066] Specifically, a vehicle map module code template is built into the vehicle map code subunit, which is used to generate a map page according to vehicle data fields, and display vehicle position, vehicle current status, vehicle current speed, and other configured field information on the map. A vehicle details module code template is built into the vehicle details code subunit, which is used to bind vehicle data fields to controls, and then generate a vehicle details page according to the layout and field binding relationship, and display the vehicle data on the corresponding controls. A vehicle control module code template is built into the vehicle control code subunit, which is used to drag controls and typeset the layout of vehicle operation buttons, write operation code and result processing code on the controls, and then generate a vehicle control page according to the layout, and bind the operation code and result processing code to the corresponding controls. A data dashboard module code template is built into the data dashboard code subunit, which is used to write SQL statements and result processing code and bind them to controls. After configuration, a data dashboard page is generated according to the layout and bound code. A report module code template is built into the report code subunit, which is used to configure report query SQL statements and result processing code, and configure report display fields to generate a report page.
[0067] The specific process of deploying the construction vehicle management system through the deployment platform in this embodiment is as follows:
[0068] First step, configure vehicle data fields through the information configuration unit;
[0069] Second step, configure the server IP address, remote connection port, and FTP connection information through the information configuration unit. Among them, for a server with an existing database service, fill in the database connection information, and for a server with an existing Redis, fill in the Redis connection information;
[0070] Third step, the database unit generates data structure code based on the configured vehicle data field information for storing device data, and generates a database device table SQL statement;
[0071] Fourth step: The vehicle map code subunit obtains vehicle data field information from the information configuration unit and generates a map page on which vehicle position, vehicle current status, vehicle current speed, and other configured field information can be displayed;
[0072] Fifth step: Drag and typeset the layout through the configuration page of the vehicle details code subunit, bind the vehicle data fields to the controls, and then the vehicle details code subunit generates a vehicle details page according to the layout and the vehicle data field binding relationship, and displays the vehicle data on the corresponding controls;
[0073] Step 6: Drag and drop controls on the configuration page of the vehicle control code subunit and typeset the layout of vehicle operation buttons. Write operation codes and result processing codes on the controls. Then, the vehicle control module generates a vehicle control page based on the layout and binds the operation codes and result processing codes to the corresponding controls, so that on the construction site vehicle management system, when the user clicks on the page controls, the operation codes and result processing codes are triggered to complete the vehicle control;
[0074] Step 7: Drag and drop large screen controls on the configuration page of the data large screen code subunit and perform typesetting. Write SQL statements and result processing codes and bind them to the controls. After the configuration is completed, a data large screen page is generated according to the typesetting and the bound codes, so that on the construction site vehicle management system, after entering the data large screen page, data can be obtained through the bound SQL statements and result processing codes and displayed on the corresponding controls;
[0075] Step 8: Add a report on the configuration page of the report code subunit, configure the report query SQL statement and result processing code, and configure the report display fields. Then, according to the configured information, a report page is generated, so that on the construction site vehicle management system, data can be obtained according to the configured SQL statement, and the result processing code is executed to process the data, and then the data is displayed on the report according to the configured report display fields;
[0076] Step 9: Generate Netty device connection codes through the code generation unit, generate interface files, and provide them for the vehicle side to connect and call. At the same time, the code generation unit also generates codes for the map page, vehicle details page, vehicle control page, data large screen page, and report page, so as to obtain the codes of each functional module in the construction site vehicle management system;
[0077] Step 10: Obtain the server IP address configured by the information configuration unit through the automatic deployment unit, as well as the remote connection information including the connection port, username, and password. Connect to the remote server through the obtained information, detect the server database information, program running environment, port occupancy information, Redis information, server storage space, network environment, etc. If the detection fails, return a failure message. After solving the problem, trigger the deployment again in the automatic deployment module configuration interface. If the detection is passed, start installing the database, Redis, and program running environment. After the installation is completed, compile the generated codes through an FTP connection and upload them to the server, and start. After the start is completed, return a success message.
[0078] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. All equivalent structural transformations made under the inventive concept of the present invention by using the content of the specification and drawings of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A low-code deployment method for a construction site vehicle management system, characterized in that, it includes the following steps: Step 1, obtain the configuration information of vehicle data fields, the server IP port configuration information, and the remote connection ssh configuration information; Step 2, generate data structure code based on the configuration information of vehicle data fields, and generate the corresponding database sql file; Step 3, based on the data structure code and the pre-stored function module templates of the construction site vehicle management system, configure the function modules required by the construction site vehicle management system, and generate the code of each function module in the construction site vehicle management system; Step 4, according to the server IP port configuration information and the remote connection ssh configuration information, upload the code of each function module in the construction site vehicle management system to the server to complete the deployment; In Step 3, the function module templates of the construction site vehicle management system include a vehicle connection module code template, and at least one of a vehicle map module code template, a vehicle details module code template, a vehicle control module code template, a data dashboard module code template, and a report module code template; In Step 3, the generating the code of each function module in the construction site vehicle management system based on the data structure code and the pre-stored function module templates of the construction site vehicle management system is specifically: Call the vehicle connection module code template, generate netty device connection code according to the data structure code, and generate an interface file to be sent to the vehicle side for connection and call; Call the vehicle map module code template, configure the map page according to the vehicle data fields, and display the vehicle position, the current vehicle status, the current vehicle speed, and other configured field information on the map; Call the vehicle details module code template, arrange the layout of the vehicle details page, bind the vehicle data fields to the controls, and then generate the vehicle details page according to the layout and the field binding relationship, and display the vehicle data on the corresponding controls; Call the vehicle control module code template, drag and drop the controls and layout the vehicle operation button layout, write operation code and result processing code on the controls, and then generate the vehicle control page according to the layout, and bind the operation code and result processing code to the corresponding controls; Call the data dashboard module code template to provide a drag-and-drop configuration page, arrange the layout of the data dashboard page, write sql statements and result processing code and bind them to the controls to generate the data dashboard page; Call the report module code template to provide a report editing page, configure the report query sql statement and result processing code through the report editing page, and configure the report display fields to generate the report page; Generate the code of the map page, vehicle details page, vehicle control page, data dashboard page, and report page, which together with the netty device connection code form the code of each function module in the construction site vehicle management system.
2. The low-code deployment method for the construction site vehicle management system according to claim 1, characterized in that, in Step 4, the uploading the code of each function module in the construction site vehicle management system to the server according to the server IP port configuration information and the remote connection ssh configuration information is specifically: Detect the server environment according to the server IP port configuration information and the remote connection ssh configuration information; After passing the detection, automatically connect to the server and install the database, redis, and program running environment on the server; Automatically upload the code of each functional module in the generated construction site vehicle management system to the server and start it. Detect the program through the automatic test script. If the detection fails, notify the failure information. If the detection passes, the deployment is completed.
3. A low-code deployment platform for a construction site vehicle management system Characterized in that Adopt the method described in claim 1 or 2, including: An information configuration unit that provides a configuration page for configuring vehicle data fields, server IP ports, and remote connection ssh; A database unit for obtaining the configured vehicle data fields, generating data structure code, and generating a database sql file; A module configuration unit including code templates for various functional modules of the construction site vehicle management system, used to generate the map page, vehicle details page, vehicle control page, data dashboard page, and report page in the construction site vehicle management system; A code generation unit for generating the code of the map page, vehicle details page, vehicle control page, data dashboard page, report page, and netty device connection code to obtain the code of each functional module in the construction site vehicle management system; An automatic deployment unit for deploying the code of each functional module in the construction site vehicle management system to the server.
4. The low-code deployment platform for the construction site vehicle management system according to claim 3 Characterized in that The module configuration unit includes: A vehicle map code subunit with a vehicle map module code template, used to generate a map page according to the vehicle data fields and display the vehicle position, vehicle current status, vehicle current speed, and other configured field information on the map; A vehicle details code subunit with a vehicle details module code template, used to bind the vehicle data fields to the controls, and then generate a vehicle details page according to the layout and field binding relationship, and display the vehicle data on the corresponding controls; A vehicle control code subunit with a vehicle control module code template, used to drag and drop the controls and layout the vehicle operation button layout, write operation code and result processing code on the controls, and then generate a vehicle control page according to the layout, and bind the operation code and result processing code to the corresponding controls; A data dashboard code subunit with a data dashboard module code template, used to write sql statements and result processing code and bind them to the controls. After configuration, generate a data dashboard page according to the layout and bound code; A report code subunit with a report module code template, used to configure the report query sql statement and result processing code, and configure the report display fields to generate a report page.
Citation Information
Patent Citations
Code generation method and device
CN112416326A