CN116302076B - Method and device for configuring configuration items based on analysis configuration item table structure - Google Patents

Method and device for configuring configuration items based on analysis configuration item table structure Download PDF

Info

Publication number
CN116302076B
CN116302076B CN202310559447.1A CN202310559447A CN116302076B CN 116302076 B CN116302076 B CN 116302076B CN 202310559447 A CN202310559447 A CN 202310559447A CN 116302076 B CN116302076 B CN 116302076B
Authority
CN
China
Prior art keywords
configuration item
configuration
table structure
list
field
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.)
Active
Application number
CN202310559447.1A
Other languages
Chinese (zh)
Other versions
CN116302076A (en
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.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin 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 Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202310559447.1A priority Critical patent/CN116302076B/en
Publication of CN116302076A publication Critical patent/CN116302076A/en
Application granted granted Critical
Publication of CN116302076B publication Critical patent/CN116302076B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a device for configuring configuration items based on an analysis configuration item table structure, wherein the method comprises the following steps: receiving a configuration request; executing a configuration flow; the method comprises the following steps: acquiring a configuration item table structure; analyzing a configuration item list stored in a database based on the configuration item table structure to obtain an analysis result; generating a configuration item form based on the analysis result; receiving filling operation of a user for a configuration item form; and updating and storing the filled configuration item form according to the filling operation so as to complete the configuration flow of the configuration item. Therefore, the configuration item table structure can be automatically analyzed, an operation and maintenance personnel configuration interface is generated, configuration parameters are received, and a final configuration result is stored, so that research and development personnel are liberated from a repeated configuration item expansion development process, configuration and expansion of the configuration items are rapidly realized, the possibility of errors in the iteration process is reduced, and the efficiency and the accuracy of configuration item configuration are further improved.

Description

Method and device for configuring configuration items based on analysis configuration item table structure
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for configuring configuration items based on an analysis configuration item table structure.
Background
With the continued iteration of software systems, more and more system configurations will appear for controlling the different behavior of the system in various situations. At present, when expanding the configuration items, a common practice is that a developer adds a new configuration item to display, receives the configuration items, modifies an old storage structure, and finally stores the new configuration item content into the modified storage structure. The expansion method of the configuration items requires research personnel to carry out structural transformation and code adjustment on the system, and meanwhile, strict test and verification are required to be carried out, so that the newly added configuration items are ensured not to damage the stability and performance of the system, the front-end research personnel and the back-end research personnel are required to cooperate tightly, the development progress is coordinated, and the efficiency is lower; and the process is repeatedly executed when the configuration item is expanded every time, so that the efficiency is low, the iteration period of the system is limited, and the advancing pace of the whole service is slowed down.
Disclosure of Invention
The embodiment of the invention provides a method and a device for configuring configuration items based on an analysis configuration item table structure, which are used for solving the technical problems that in the related art, when the configuration items are configured, research and development personnel need to repeatedly perform similar work in flow and the efficiency is low.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for configuring a configuration item based on an parsing configuration item table structure, where the method includes:
receiving a configuration request; the configuration request is used for triggering a configuration flow of the configuration item;
executing the configuration flow;
wherein, executing the configuration flow includes:
acquiring a configuration item table structure;
analyzing a configuration item list stored in a database based on the configuration item list structure to obtain an analysis result; wherein each column in the list of configuration items represents a configuration item; the configuration item table structure is a table structure of the configuration item list and is used for defining the attribute of the configuration item list;
generating a configuration item form based on the analysis result; the configuration item list is used for displaying data in the configuration item list on a front-end interface;
receiving a filling operation of a user for the configuration item form; and updating and storing the filled configuration item form according to the filling operation so as to complete the configuration flow of the configuration item.
Optionally, the configuration item table structure includes at least one of: field name, field default value, field remark;
when the configuration item table structure includes a field name, parsing a configuration item list stored in a database based on the configuration item table structure to obtain a parsing result includes:
analyzing a configuration item list stored in a database based on the field names to obtain the types of the elements of the configuration item form and the names of the elements of the configuration item form; wherein the name is the same as the field name;
when the configuration item table structure comprises a field default value, analyzing the configuration item list stored in the database based on the configuration item table structure to obtain an analysis result comprises:
and analyzing a configuration item list stored in a database based on the field default value to obtain the default value of the element of the configuration item list.
Optionally, when the configuration item table structure includes a field remark, parsing the configuration item list stored in the database based on the configuration item table structure to obtain a parsing result includes:
analyzing a configuration item list stored in a database based on the field remarks to obtain relevant information of elements of the configuration item list;
wherein the related information includes at least one of: the descriptive name of the element, the length limit of the value of the element, the list of selectable values of the element, the existing value of the element.
Optionally, receiving the configuration item form filling operation of the user includes:
receiving the input characters of the user in the input boxes corresponding to the elements of the configuration item form; wherein the character is a configuration value of the configuration item.
Optionally, a configuration item form filling operation of the user is received; according to the filling operation, after updating and saving the configuration item form to complete the configuration flow of the configuration item, the method further comprises:
expanding the configuration items based on the configured configuration items;
wherein the expanding of the configuration item comprises at least one of the following:
adding a new configuration item;
modifying the configured configuration items;
and deleting the configured configuration items.
Optionally, based on the configured configuration item, expanding the configuration item includes:
receiving a configuration item expansion request; changing the configuration item table structure according to the configuration item expansion request;
and executing the configuration flow based on the changed configuration item table structure.
In a second aspect, an embodiment of the present invention provides an apparatus for performing configuration item configuration based on an parsing configuration item table structure, where the apparatus includes:
the receiving module is used for receiving the configuration request; the configuration request is used for triggering a configuration flow of the configuration item;
the execution module is used for executing the configuration flow;
the execution module is also used for acquiring a configuration item table structure;
analyzing a configuration item list stored in a database based on the configuration item list structure to obtain an analysis result; wherein each column in the list of configuration items represents a configuration item; the configuration item table structure is a table structure of the configuration item list and is used for defining the attribute of the configuration item list;
generating a configuration item form based on the analysis result; the configuration item list is used for displaying data in the configuration item list on a front-end interface;
receiving a filling operation of a user for the configuration item form; and updating and storing the filled configuration item form according to the filling operation so as to complete the configuration flow of the configuration item.
Optionally, the configuration item table structure includes at least one of: field name, field default value, field remark;
the execution module is further configured to, when the configuration item table structure includes a field name, parse a configuration item list stored in a database based on the field name to obtain a type of an element of the configuration item table and a name of the element of the configuration item table; wherein the name is the same as the field name;
when the configuration item table structure comprises a field default value, analyzing a configuration item list stored in a database based on the field default value to obtain the default value of an element of the configuration item table.
Optionally, the executing module is further configured to, when the configuration item table structure includes a field remark, parse a configuration item list stored in a database based on the field remark to obtain relevant information of elements of the configuration item table;
wherein the related information includes at least one of: the descriptive name of the element, the length limit of the value of the element, the list of selectable values of the element, the existing value of the element.
Optionally, the execution module is further configured to receive the input character of the user in an input frame corresponding to the element of the configuration item form; wherein the character is a configuration value of the configuration item.
Optionally, the execution module is further configured to receive a configuration item form filling operation of the user; updating and storing a configuration item form according to the filling operation to complete the configuration flow of the configuration item, and then expanding the configuration item based on the configured configuration item; the execution module is further configured to execute at least one of the following: adding a new configuration item; modifying the configured configuration items; and deleting the configured configuration items.
Optionally, the execution module is further configured to receive a configuration item expansion request; changing the configuration item table structure according to the configuration item expansion request; and executing the configuration flow based on the changed configuration item table structure.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the method of configuration item configuration based on parsing a configuration item table structure as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, on which a computer program is stored, the computer program implementing the steps of the method for configuring configuration items based on a parsed configuration item table structure according to the first aspect when executed by a processor.
The embodiment of the invention analyzes the configuration item list based on the configuration item list structure, generates the configuration item list based on the analysis result, and completes the configuration flow of the configuration item according to the filling operation of the user for the configuration item list. That is, the embodiment of the invention provides a way for configuring the configuration items more automatically, which can automatically analyze the database table structure, generate the configuration interface of operation and maintenance personnel, receive the configuration parameters and store the final configuration result so as to liberate the research personnel from the repeated configuration item expansion development flow. The method based on the embodiment of the invention can rapidly realize the configuration and expansion of the configuration items, reduce the possibility of errors in the iterative process and further improve the efficiency and the accuracy of configuration of the configuration items.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flowchart of a method for configuring configuration items based on an analytical configuration item table structure according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for configuring configuration items based on an analytical configuration item table structure according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for configuring configuration items based on an analytical configuration item table structure according to an embodiment of the present invention;
fig. 4 is a structural block diagram of an apparatus for performing configuration item configuration based on an parsing configuration item table structure according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 shows a method for configuring a configuration item based on a parsing configuration item table structure according to an embodiment of the present invention, where the method includes:
step S101, receiving a configuration request;
the configuration request is used for triggering a configuration flow of the configuration item;
step S102, executing a configuration flow.
The configuration request can be sent by a user by clicking a certain icon, voice command and the like on the display interface, and the configuration request can trigger the configuration flow of the configuration item.
In one possible implementation, as shown in fig. 2, performing the configuration flow includes:
step S201, acquiring a configuration item table structure;
step S202, analyzing a configuration item list stored in a database based on a configuration item list structure to obtain an analysis result;
step S203, generating a configuration item form based on the analysis result;
step S204, receiving filling operation of a user aiming at a configuration item form; and updating and storing the filled configuration item form according to the filling operation so as to complete the configuration flow of the configuration item.
Note that, reference may also be made to the configuration item configuration flow shown in fig. 3.
Wherein each column in the list of configuration items represents a configuration item; the configuration item table structure is a table structure of a configuration item list and is used for defining the attribute of the configuration item list; the configuration item list is used for displaying data in a configuration item list on a front-end interface, and optionally, the database can be MySQL, namely, the configuration item list structure is MySQL list structure, and the configuration item list is a list stored in the MySQL database.
The configuration item table structure comprises at least one of the following: field name, field default, field remark.
In one possible implementation, when the configuration item table structure includes a field name, step S202, based on the configuration item table structure, parsing the configuration item list stored in the database to obtain a parsing result includes: analyzing the configuration item list stored in the database based on the field names to obtain the types of the elements of the configuration item list and the names of the elements of the configuration item list; wherein the name is the same as the field name. That is, from the field names, the types of the configuration item form elements are parsed, such as: < textarea > </textarea > (text input control), and the field name is directly used as the name attribute of the configuration item form element, such as: name= "textarea_desc". And the configuration items, the fields and the table element have a one-to-one correspondence relationship.
In one possible implementation, when the configuration item table structure includes a field default value, step S202, based on the configuration item table structure, parsing the configuration item list stored in the database to obtain a parsing result includes:
based on the field default values, parsing the list of configuration items stored in the database to obtain default values for the elements of the configuration item form. It can be understood that if the field default value is null, that is, there is no field default value, the step of parsing the configuration item list stored in the database based on the field default value is not performed to obtain the default value of the element of the configuration item form, and if the field default value is not null, the configuration item list stored in the database may be parsed based on the field default value to obtain the default value of the element of the configuration item form, that is, the field default value and the default value of the element of the configuration item form have a one-to-one correspondence.
In one possible implementation, when the configuration item table structure includes field remarks, step S202, based on the configuration item table structure, parsing the configuration item list stored in the database to obtain a parsing result includes: analyzing the configuration item list stored in the database based on the field remarks to obtain the related information of the elements of the configuration item list; wherein the related information includes at least one of: the descriptive name of the element, the length limit of the value of the element, the list of selectable values of the element, the existing value of the element.
Based on the field remarks, parsing the list of configuration items stored in the database may result in several aspects: configuration item names, such as: whether to display an upgrade reminder; configuration item length limitations, such as: up to 1000 characters; the configuration item is a size limitation when the file, such as: maximum 32768 bytes; optional values for configuration items, such as: an activity list. And may correspond to relevant information for the configuration item form element in accordance with these several aspects. For example: obtaining a configuration item name label, such as: < label > whether or not to show upgrade bulletins (which can be understood as descriptive names of elements, and in daily use scenarios, which can be understood as descriptive information or prompt information for a certain input box on the left side of the input box); obtaining a list of selectable values of form elements, such as: an option list of select; obtaining the existing values of form elements, such as: value= "value of existing configuration item"; obtaining the length of the list unit element, the file size, the date range limit and the like. In a specific application scenario, the table field is defined as: the 'textarea_desc' varchar (1000) NOT NULL DEFAULT '' component 'introduction (length= 0,1000)'; the configuration form is: < label > introduction < textarea name= "textarea" >/textarea >.
In one possible implementation, the step S204 of receiving the configuration item form filling operation of the user includes: receiving characters input by a user in an input frame corresponding to elements of a configuration item form; wherein the character is a configuration value of the configuration item.
Optionally, after receiving the input character of the user in the input box corresponding to the element of the configuration item form, the input character may be verified, i.e. whether the input character meets the requirement, for example: whether the limit is exceeded. In a specific application scenario, the method can be configured to automatically execute the verification process of each character after inputting the character, or automatically execute the verification process of all characters after inputting all characters, or trigger the verification process by a user, thereby guaranteeing the legality and accuracy of the input characters.
It should be noted that the method shown in fig. 2 may also be used to implement fast iterations of the partial table fields.
In one possible implementation, a user's configuration item form fill operation is received; after updating and saving the configuration item form according to the filling operation to complete the configuration flow of the configuration item, the method further comprises: expanding the configuration items based on the configured configuration items; wherein the expanding of the configuration item comprises at least one of: adding a new configuration item; modifying the configured configuration items; and deleting the configured configuration items. Wherein, based on the configured configuration items, performing the expansion of the configuration items includes: receiving a configuration item expansion request; changing the configuration item table structure according to the configuration item expansion request; and executing the configuration flow based on the changed configuration item table structure. It can be understood that the expansion of the configuration item is the same as the configuration flow of the configuration item, and only when a new configuration item expansion is performed, the configuration item table structure is modified according to the configuration item expansion request, for example: based on the existing configuration item table structure, adding a field corresponding to the new configuration item, and based on the changed configuration item table structure, executing the configuration flow shown in fig. 2. Therefore, the embodiment of the invention provides a method for verifying the length, the file size and the value range of configuration content by dynamically generating an operation interface form, receiving the total configuration parameters and storing the final configuration result based on the analysis configuration item table structure and rapidly expanding the configuration items. The expansion of the configuration items is carried out without repeated iteration of research personnel, and the efficiency and the accuracy of the expansion of the configuration items are improved.
Fig. 4 shows an apparatus for performing configuration item configuration based on parsing configuration item table structure, and the apparatus 40 includes:
a receiving module 401, configured to receive a configuration request; the configuration request is used for triggering a configuration flow of the configuration item;
an execution module 402, configured to execute a configuration flow;
the execution module 402 is further configured to obtain a configuration item table structure; analyzing a configuration item list stored in a database based on the configuration item table structure to obtain an analysis result; wherein each column in the list of configuration items represents a configuration item; the configuration item table structure is a table structure of a configuration item list and is used for defining the attribute of the configuration item list; generating a configuration item form based on the analysis result; the configuration item list is used for displaying data in the configuration item list on the front-end interface; receiving filling operation of a user for a configuration item form; and updating and storing the filled configuration item form according to the filling operation so as to complete the configuration flow of the configuration item.
In one possible implementation, the configuration item table structure includes at least one of: field name, field default value, field remark;
the execution module 402 is further configured to, when the configuration item table structure includes a field name, parse a configuration item list stored in the database based on the field name to obtain a type of an element of the configuration item table and a name of the element of the configuration item table; wherein the name is the same as the field name;
when the configuration item table structure comprises a field default value, the configuration item list stored in the database is parsed based on the field default value to obtain the default value of the element of the configuration item table.
In a possible implementation manner, the execution module 402 is further configured to, when the configuration item table structure includes a field remark, parse a configuration item list stored in the database based on the field remark to obtain related information of elements of the configuration item table;
wherein the related information includes at least one of: the descriptive name of the element, the length limit of the value of the element, the list of selectable values of the element, the existing value of the element.
In a possible implementation manner, the execution module 402 is further configured to receive a character input by a user in an input box corresponding to an element of the configuration item form; wherein the character is a configuration value of the configuration item.
In one possible implementation, the execution module 402 is further configured to, upon receiving a configuration item form filling operation of a user; updating and storing a configuration item form according to the filling operation to complete the configuration flow of the configuration items, and then expanding the configuration items based on the configured configuration items; the execution module 402 is further configured to execute at least one of the following: adding a new configuration item; modifying the configured configuration items; and deleting the configured configuration items.
In one possible implementation, the execution module 402 is further configured to receive a configuration item expansion request; changing the configuration item table structure according to the configuration item expansion request; and executing the configuration flow based on the changed configuration item table structure.
The embodiment of the invention provides a mode for configuring configuration items more automatically, which can automatically analyze the database table structure, generate an operation and maintenance personnel configuration interface, receive configuration parameters and store final configuration results so as to liberate research and development personnel from repeated configuration item expansion development processes. The method based on the embodiment of the invention can rapidly realize the configuration and expansion of the configuration items, reduce the possibility of errors in the iterative process and further improve the efficiency and the accuracy of configuration of the configuration items.
The embodiment of the invention also provides an electronic device 50, as shown in fig. 5, including: the processor 501, the memory 502 and a program stored in the memory 502 and executable on the processor 501, which when executed by the processor 501, implement the steps of a method for configuring configuration items based on parsing a configuration item table structure as shown in the above embodiment.
The embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements each process of the method embodiment shown in fig. 1 and achieves the same technical effects, and is not repeated herein. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (4)

1. A method for configuration item configuration based on parsing a configuration item table structure, the method comprising:
receiving a configuration request; the configuration request is used for triggering a configuration flow of the configuration item;
executing the configuration flow;
wherein, executing the configuration flow includes:
acquiring a configuration item table structure;
analyzing a configuration item list stored in a database based on the configuration item list structure to obtain an analysis result; wherein each column in the list of configuration items represents a configuration item; the configuration item table structure is a table structure of the configuration item list and is used for defining the attribute of the configuration item list;
generating a configuration item form based on the analysis result; the configuration item list is used for displaying data in the configuration item list on a front-end interface;
receiving a filling operation of a user for the configuration item form; updating and storing the filled configuration item form according to the filling operation to complete the configuration flow of the configuration item;
receiving configuration item form filling operation of a user; according to the filling operation, after updating and saving the configuration item form to complete the configuration flow of the configuration item, the method further comprises: expanding the configuration items based on the configured configuration items; wherein the expanding of the configuration item comprises at least one of the following: adding a new configuration item; modifying the configured configuration items; deleting the configured configuration items;
based on the configured configuration items, expanding the configuration items includes: receiving a configuration item expansion request; changing the configuration item table structure according to the configuration item expansion request; executing the configuration flow based on the changed configuration item table structure;
the configuration item form filling operation of the receiving user comprises the following steps: receiving the input characters of the user in the input boxes corresponding to the elements of the configuration item form; wherein the character is a configuration value of the configuration item;
after receiving the input characters of the user in the input frame corresponding to the elements of the configuration item form, the method further comprises: verifying the input characters, judging whether the input characters meet the requirements, and automatically executing a verification process of the characters after each character is input, or automatically executing a verification process of all the characters after all the characters are input, or triggering the verification process by a user;
the configuration item table structure comprises at least one of the following: field name, field default value, field remark;
when the configuration item table structure includes a field name, parsing a configuration item list stored in a database based on the configuration item table structure to obtain a parsing result includes:
analyzing a configuration item list stored in a database based on the field names to obtain the types of the elements of the configuration item form and the names of the elements of the configuration item form; wherein the name is the same as the field name;
when the configuration item table structure comprises a field default value, analyzing the configuration item list stored in the database based on the configuration item table structure to obtain an analysis result comprises:
analyzing a configuration item list stored in a database based on the field default value to obtain the default value of an element of the configuration item list;
when the configuration item table structure includes field remarks, parsing a configuration item list stored in a database based on the configuration item table structure to obtain a parsing result includes:
analyzing a configuration item list stored in a database based on the field remarks to obtain relevant information of elements of the configuration item list;
wherein the related information includes at least one of: the descriptive name of the element, the length limit of the value of the element, the list of selectable values of the element, the existing value of the element.
2. An apparatus for configuration item configuration based on parsing a configuration item table structure, the apparatus comprising:
the receiving module is used for receiving the configuration request; the configuration request is used for triggering a configuration flow of the configuration item;
the execution module is used for executing the configuration flow;
the execution module is also used for acquiring a configuration item table structure;
analyzing a configuration item list stored in a database based on the configuration item list structure to obtain an analysis result; wherein each column in the list of configuration items represents a configuration item; the configuration item table structure is a table structure of the configuration item list and is used for defining the attribute of the configuration item list;
generating a configuration item form based on the analysis result; the configuration item list is used for displaying data in the configuration item list on a front-end interface;
receiving a filling operation of a user for the configuration item form; updating and storing the filled configuration item form according to the filling operation to complete the configuration flow of the configuration item;
the execution module is further used for receiving the input characters of the user in the input frame corresponding to the elements of the configuration item form; wherein the character is a configuration value of the configuration item;
the execution module is also used for receiving the configuration item form filling operation of the user; updating and storing a configuration item form according to the filling operation to complete the configuration flow of the configuration item, and then expanding the configuration item based on the configured configuration item; the execution module is further configured to execute at least one of the following: adding a new configuration item; modifying the configured configuration items; deleting the configured configuration items;
the execution module is also used for receiving the configuration item expansion request; changing the configuration item table structure according to the configuration item expansion request; executing the configuration flow based on the changed configuration item table structure;
after receiving the input characters of the user in the input frame corresponding to the elements of the configuration item form, verifying the input characters to judge whether the input characters meet the requirements, wherein the configuration can be that after each character is input, the verification process of the characters is automatically executed, or after all the characters are input, the verification process of all the characters is automatically executed, or the verification process is triggered by the user;
the configuration item table structure comprises at least one of the following: field name, field default value, field remark;
the execution module is further configured to, when the configuration item table structure includes a field name, parse a configuration item list stored in a database based on the field name to obtain a type of an element of the configuration item table and a name of the element of the configuration item table; wherein the name is the same as the field name;
when the configuration item table structure comprises a field default value, analyzing a configuration item list stored in a database based on the field default value to obtain a default value of an element of the configuration item table;
the execution module is further configured to, when the configuration item table structure includes a field remark, parse a configuration item list stored in a database based on the field remark to obtain related information of elements of the configuration item table; wherein the related information includes at least one of: the descriptive name of the element, the length limit of the value of the element, the list of selectable values of the element, the existing value of the element.
3. An electronic device, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the method of configuration item configuration based on a parsed configuration item table structure according to claim 1.
4. A computer readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of the method of configuration item configuration based on parsing a configuration item table structure as claimed in claim 1.
CN202310559447.1A 2023-05-18 2023-05-18 Method and device for configuring configuration items based on analysis configuration item table structure Active CN116302076B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310559447.1A CN116302076B (en) 2023-05-18 2023-05-18 Method and device for configuring configuration items based on analysis configuration item table structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310559447.1A CN116302076B (en) 2023-05-18 2023-05-18 Method and device for configuring configuration items based on analysis configuration item table structure

Publications (2)

Publication Number Publication Date
CN116302076A CN116302076A (en) 2023-06-23
CN116302076B true CN116302076B (en) 2023-08-15

Family

ID=86781903

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310559447.1A Active CN116302076B (en) 2023-05-18 2023-05-18 Method and device for configuring configuration items based on analysis configuration item table structure

Country Status (1)

Country Link
CN (1) CN116302076B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318402A (en) * 2014-11-17 2015-01-28 国网上海市电力公司 Integrated planning and design information system based on power grid GIS platform
CN104871552A (en) * 2012-11-28 2015-08-26 Lg电子株式会社 Apparatus and method for processing an interactive service
CN105095348A (en) * 2015-06-09 2015-11-25 北京织星科技有限公司 Method for dynamically configuring website through XML (Extensive Markup Language)
CN107153701A (en) * 2017-05-10 2017-09-12 焦点科技股份有限公司 A kind of IT system management and method for managing and monitoring based on metadata
CN107291471A (en) * 2017-06-22 2017-10-24 北京航空航天大学 A kind of Meta model framework system for supporting customizable data acquisition
CN114816578A (en) * 2022-05-11 2022-07-29 上海柯林布瑞信息技术有限公司 Method, device and equipment for generating program configuration file based on configuration table
CN115443457A (en) * 2021-04-06 2022-12-06 华为云计算技术有限公司 Transaction processing method, distributed database system, cluster and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871552A (en) * 2012-11-28 2015-08-26 Lg电子株式会社 Apparatus and method for processing an interactive service
CN104318402A (en) * 2014-11-17 2015-01-28 国网上海市电力公司 Integrated planning and design information system based on power grid GIS platform
CN105095348A (en) * 2015-06-09 2015-11-25 北京织星科技有限公司 Method for dynamically configuring website through XML (Extensive Markup Language)
CN107153701A (en) * 2017-05-10 2017-09-12 焦点科技股份有限公司 A kind of IT system management and method for managing and monitoring based on metadata
CN107291471A (en) * 2017-06-22 2017-10-24 北京航空航天大学 A kind of Meta model framework system for supporting customizable data acquisition
CN115443457A (en) * 2021-04-06 2022-12-06 华为云计算技术有限公司 Transaction processing method, distributed database system, cluster and medium
CN114816578A (en) * 2022-05-11 2022-07-29 上海柯林布瑞信息技术有限公司 Method, device and equipment for generating program configuration file based on configuration table

Also Published As

Publication number Publication date
CN116302076A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111897553B (en) Project system building method, device, equipment and readable storage medium
CN111949351A (en) Page rendering method, device, equipment and computer readable storage medium
CN111068328B (en) Game advertisement configuration form generation method, terminal equipment and medium
CN110399169A (en) Amending method, device, equipment and the readable storage medium storing program for executing of BIOS option
CN109145235B (en) Method and device for analyzing webpage and electronic equipment
CN108197024B (en) Embedded browser debugging method, debugging terminal and computer readable storage medium
CN104536398B (en) Frequency converter monitoring method and system
CN111857881B (en) Repo-based manifest warehouse loading method, repo-based manifest warehouse loading device and storage medium
CN104346342A (en) Method and apparatus for loading Flash plug-in
CN114691132A (en) ARXML file generation method, device, equipment and storage medium
CN112926008A (en) Method and device for generating form page, electronic equipment and storage medium
CN115061684A (en) Compatible method, system, equipment and storage medium for packaging layu framework
CN112130830A (en) Interface generation method and device and electronic equipment
CN108073511B (en) Test code generation method and device
CN111400635A (en) Background management method and device for database, computer equipment and storage medium
CN116302076B (en) Method and device for configuring configuration items based on analysis configuration item table structure
CN116560697B (en) DBC database synchronization method, device, electronic equipment and readable storage medium
CN116302054A (en) Development method and device of software project, storage medium and electronic equipment
CN111984257B (en) Solid modeling customized extension method and device
CN114661402A (en) Interface rendering method and device, electronic equipment and computer readable medium
CN113885924A (en) XML configuration file upgrading method and device and readable storage medium
CN112579129A (en) Software updating method, device, equipment and storage medium based on server
CN115878659B (en) Method, device and equipment for generating SQL (structured query language) sentences and readable storage medium
CN111737964A (en) Form dynamic processing method, equipment and medium
CN111222066A (en) Pull-down component system and method for event processing and searching

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
GR01 Patent grant
GR01 Patent grant