CN115878108A - Method for completing business system form customization development without modifying codes - Google Patents

Method for completing business system form customization development without modifying codes Download PDF

Info

Publication number
CN115878108A
CN115878108A CN202211725216.5A CN202211725216A CN115878108A CN 115878108 A CN115878108 A CN 115878108A CN 202211725216 A CN202211725216 A CN 202211725216A CN 115878108 A CN115878108 A CN 115878108A
Authority
CN
China
Prior art keywords
modified
business
service
dynamically
java
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211725216.5A
Other languages
Chinese (zh)
Inventor
于广郢
朱森方
温立旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Shudui Technology Co ltd
Original Assignee
Jiangsu Shudui Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Shudui Technology Co ltd filed Critical Jiangsu Shudui Technology Co ltd
Priority to CN202211725216.5A priority Critical patent/CN115878108A/en
Publication of CN115878108A publication Critical patent/CN115878108A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for completing business system form customization development without modifying codes, which comprises the following steps: a user selects a business form to be edited on a visual editing page to edit; the background stores the modified table elements in a Redis storage, and modifies a database table structure corresponding to the business form; the user restarts the service system to which the service form belongs; operating the customized form page in a service system, and clicking to save; the Java program reads the modified element set of the business form stored in the Redis storage and dynamically writes the modified element into a Class file; the Java Agent loads the modified Class file into the JVM; and the Java program dynamically generates SQL sentences according to the data in the new form and stores the data. The method and the system can complete the form customization by only carrying out visual dragging operation on the page and restarting the service system without changing any code.

Description

Method for completing business system form customization development without modifying codes
Technical Field
The invention relates to a byte code dynamic generation technology and an SQL statement dynamic generation technology, in particular to a method for completing business system form customization development without modifying codes.
Background
The byte code dynamic generation technology is a technology for modifying the file structure and content of the existing JAVA byte code file on the basis of the existing JAVA byte code file, so that the modification of a program is completed on the level of the byte code, and a JAVA virtual machine can directly interpret and execute the byte code;
the instrumentation technology relies on the JVMI (a set of local programming interfaces provided by the JAVA virtual machine and provided for tools associated with the JAVA virtual machine) to dynamically modify and operate JAVA byte files;
the SQL sentence dynamic generation technology is used for dynamically editing the SQL sentence based on a MyBatis framework and a syntax analysis technology of a compiling principle, so that the SQL sentence dynamic modification is completed;
although the low-code platform on the market can complete form customization, static codes are generated based on the low-code platform, the generated static codes are combined to a company business system, the company business system is recompiled and packaged, and then the existing business system is upgraded, so that the goal of dynamically changing the business form can not be achieved without modifying the codes and redeploying the business system.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method for completing the form customization development of a business system without modifying codes, the form can be customized seamlessly in the original business system, any codes of the original business system are not required to be changed, the visual dragging operation is only required to be performed on a page, and then the business system is restarted, so that the form customization can be completed, the development efficiency is greatly improved, and the user requirements are quickly met.
The purpose of the invention is realized by the following technical scheme.
A method for completing business system form customization development without modifying codes comprises the following steps:
1) Selecting a service form to be edited on a visual editing page by a user, editing the form by dragging visual operation, and executing the step 2 after the editing is finished and clicking 'save';
2) The background stores the table elements modified in the step 1) in a Redis storage through a FieldSaver interface, modifies a database table structure corresponding to the business form, and then executes the step 3);
3) The user restarts the service system to which the service form belongs, and then step 4) is executed;
4) Operating the customized form page in the service system, and executing the step 5) -the step 7) after clicking 'save';
5) The Java program reads a modified element set of a service form stored in Redis storage, and dynamically writes the modified element into a Class file through dynamic byte code programming;
6) The Java Agent loads the modified Class file into the JVM;
7) The Java program dynamically generates SQL statements according to the data in the new form, stores the data and then executes the step 8);
8) And the Java returns the operation result to the user.
Defining a FieldSaver interface, storing the edited business table unit element set in Redis, and modifying a database table structure corresponding to the business table.
Defining a BeanClassFileTransFormer Class, reading a modified element set of a service form stored in Redis, and dynamically writing the modified element set of the service form into a Class file through dynamic byte code programming.
A BeanAgent Class is defined and is responsible for loading the dynamically modified Class file into the JVM.
And defining a SqlChangeInterreceptor class, and taking charge of dynamically generating SQL sentences according to the data in the edited new business form and storing the data.
Compared with the prior art, the invention has the advantages that: according to the invention, agent components, SQL statement dynamic generation components and form visual operation components are developed by technical means such as a byte code dynamic generation technology, an SQL statement dynamic generation technology, a pile insertion technology and the like and design means such as a JAVA design mode and the like, so that service codes do not need to be modified, only visual dragging and editing are carried out on a page, and then a service system is restarted.
By using the scheme of the invention, the business code does not need to be modified, only the visual operation is carried out on the page, and then the business system is restarted, so that the development workload is greatly reduced, the development efficiency is improved, the development cost is reduced, and the learning cost of operation and maintenance personnel can be reduced.
Drawings
Fig. 1 is a schematic diagram of the framework of the present invention.
FIG. 2 is a flow chart of the present invention.
Detailed Description
The invention is described in detail below with reference to the drawings and specific examples.
A method for completing business system form customized development without modifying code is disclosed, as shown in FIG. 2, the steps include:
1. a user selects a business form (such as department information) to be edited on a visual editing page, edits the form by dragging visual operation (for example, a contact person telephone and a mailbox are added to the department information, two input boxes of the contact person telephone and the mailbox are dragged into the department information form on the visual editing page, the position is adjusted), and the user clicks 'save' after editing;
2. the background stores the table elements modified in the step 1 in a Redis storage through 'FieldSaver', and modifies a database table structure corresponding to the business form;
3. the user restarts the service system (such as a filling system) to which the service form belongs;
4. operating a customized form page in a service system (for example, adding a new department information data, wherein the added data comprises the contact phone number and the mailbox information added in the step 1), and clicking to store;
5. the Java program reads the modified element set of the service form stored in Redis, and dynamically writes the modified element into a Class file through dynamic bytecode programming;
6. the Java Agent loads the modified Class file into the JVM;
7. the Java program dynamically generates SQL statements (the inserted SQL statements contain the telephone and mailbox information of the newly added contact in the step 1) according to the data in the new form, and stores the data;
8. and the Java returns the operation result to the user.
Steps 5, 6 and 7 are triggered after the step four clicks 'save'.
As shown in fig. 1, a FieldSaver interface is defined, an edited business form element set is stored in Redis, and a database table structure corresponding to a business form is modified;
defining a BeanClassFileTransFormer Class, reading a modified element set of a service form stored in Redis, and dynamically writing the modified element set of the service form into a Class file through dynamic byte code programming;
defining a BeanAgent Class, and loading the dynamically modified Class file into the JVM;
and defining a SqlChangeInterreceptor class, and taking charge of dynamically generating SQL sentences according to the data in the edited new business form and storing the data.

Claims (5)

1. A method for completing business system form customization development without modifying codes is characterized by comprising the following steps:
1) Selecting a service form to be edited on a visual editing page by a user, editing the form by dragging visual operation, and executing the step 2 after the editing is finished and clicking 'save';
2) The background stores the table elements modified in the step 1) in a Redis storage through a FieldSaver interface, modifies a database table structure corresponding to the business form, and then executes the step 3);
3) The user restarts the service system to which the service form belongs, and then step 4) is executed;
4) Operating the customized form page in the service system, and executing the step 5) -the step 7) after clicking 'save';
5) The Java program reads a modified element set of a service form stored in Redis storage, and dynamically writes the modified element into a Class file through dynamic byte code programming;
6) The Java Agent loads the modified Class file into the JVM;
7) The Java program dynamically generates SQL statements according to the data in the new form, stores the data and then executes the step 8);
8) And the Java returns the operation result to the user.
2. The method for completing business system form customization development without modifying code according to claim 1, wherein a FieldSaver interface is defined, the edited business table element set is stored in Redis, and the database table structure corresponding to the business form is modified.
3. The method according to claim 1, wherein a Class of BeanClassFileTransFormer is defined, a service form modification element set stored in Redis is read, and the modified service form element set is dynamically written into a Class file through dynamic bytecode programming.
4. The method according to claim 1, wherein a beans agent Class is defined and is responsible for loading the dynamically modified Class file into the JVM.
5. The method as claimed in claim 1, wherein a sqlchangentercaptor class is defined, and is responsible for dynamically generating SQL statements and storing data according to data in the edited new service form.
CN202211725216.5A 2022-12-30 2022-12-30 Method for completing business system form customization development without modifying codes Pending CN115878108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211725216.5A CN115878108A (en) 2022-12-30 2022-12-30 Method for completing business system form customization development without modifying codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211725216.5A CN115878108A (en) 2022-12-30 2022-12-30 Method for completing business system form customization development without modifying codes

Publications (1)

Publication Number Publication Date
CN115878108A true CN115878108A (en) 2023-03-31

Family

ID=85757561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211725216.5A Pending CN115878108A (en) 2022-12-30 2022-12-30 Method for completing business system form customization development without modifying codes

Country Status (1)

Country Link
CN (1) CN115878108A (en)

Similar Documents

Publication Publication Date Title
CN101334728B (en) Interface creating method and platform based on XML document description
CN101339500B (en) Data binding application program interface creation method based on XML mode
CN100472438C (en) Window system and its interface editing method
CN110727438B (en) Web system automatic generation tool based on SpringBoot
CN103135976A (en) Code automatic generation method and device
US20080313208A1 (en) Apparatus, system, and method for automated context-sensitive message organization
CN101958987A (en) Method and system for dynamically converting telecommunications service data
CN111367524B (en) Enumeration type design method and device
CN102521008B (en) Program compiling device and method for compiling program
CN102289774A (en) Graphical message processing and test system and method in financial transaction processing system
CN110543299A (en) Cloud computing management platform code generation method and device
JP3562435B2 (en) Automatic component generator
CN111158665B (en) Code generation method and device, electronic equipment and storage medium
JPH03118635A (en) Incremental compiler for source code developing system
CN115878108A (en) Method for completing business system form customization development without modifying codes
CN116400914A (en) Method for quickly constructing web application based on data model
CN103116514A (en) Automatic operating system optimization method and system based on system expansion call graph
CN113961238A (en) Object conversion method and device, electronic equipment and storage medium
CN112596737A (en) Method, system, equipment and storage medium for scanning function call relation
CN112181396A (en) RN code automatic generation system, method, equipment and medium
CN111666095A (en) Method, system, equipment and storage medium for realizing Java decompilation
KR100846203B1 (en) Method for generating mobile application and record media recorded program for realizing the same
CN111208976A (en) Method for automatically generating software system architecture
CN111399900A (en) API document automatic generation method and system based on python and regular expression
Guduric et al. A comparison between relational and operational QVT mappings

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination