Data management method and device, electronic equipment and storage medium

By using the first and second display interfaces in the data management method to receive the information and values ​​entered by the user and save them to the database accordingly, the problem of frequently changing the database when storing data is solved, and the back-end code is not required to be modified. The corresponding saving of data attributes and values ​​can be completed, reducing the difficulty of code maintenance and human resources waste.

CN119513098AActive Publication Date: 2025-02-25DAWNING CLOUD COMPUTING TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411651056.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-02-25
Estimated Expiration
2044-11-18

AI Technical Summary

Technical Problem

The existing technology frequently changes databases when storing data, resulting in bloated back-end code and increasing the waste of human resources and difficulty in maintaining code.

Method used

The first information input by the user is received through the first display interface and saved in the first form. Based on the first information, the second display interface is determined, and the second display interface is displayed. The first value input by the user is received through the second display interface, and the first value is saved in the second form. The information in the first form and the value in the second form are saved to the database correspondingly, and the corresponding storage of data attributes and values ​​is realized.

Benefits of technology

The corresponding storage of data attributes and values ​​can be achieved without modifying the backend code, avoiding the bloated backend code and waste of human resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119513098A_ABST
    Figure CN119513098A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data management method and device, electronic equipment and a storage medium, first information input by a user can be received through a first display interface and stored in a first form, the first information is multiple attributes of to-be-stored data, a second display interface is determined based on the first information, and the to-be-stored data is displayed on the second display interface. A first value input by the user is received through the second display interface, the first value comprises parameter values corresponding to all attributes in the first information, the first value is stored in the second form, and the first information in the first form and the first value in the second form are correspondingly stored in the database. According to the method, the attributes and the values of the to-be-stored data can be correspondingly stored in the database only by utilizing interaction between the rear end and the front end, codes do not need to be modified, and the problems that manpower resources are wasted when the codes at the rear end are modified and the bloating degree of the codes at the rear end is increased are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data management method, device, electronic device and storage medium. Background Art

[0002] With the development of information technology, the number of data specifications and attributes is increasing. In order to avoid the database occupying too much space resources, most companies or organizations will not save the data of each specification attribute, but will add data based on existing specifications and attributes as needed.

[0003] If the data of each specification attribute is not saved, the backend code needs to be modified for the unsaved data so that the data of the corresponding specification attributes can be saved before the corresponding operation can be performed. However, this increases the bloat of the backend code. Summary of the invention

[0004] In order to solve the problems in the above-mentioned related technologies, the example of the present application provides a data management method, device, electronic device and storage medium, which can avoid the problem of frequently changing the database during the data storage process and increasing the bloatedness of the back-end code.

[0005] In a first aspect, an embodiment of the present application provides a data management method, including:

[0006] Receiving first information input by a user through a first display interface, and saving the first information into a first form; the first information includes a plurality of attributes of data to be saved;

[0007] Determine a second display interface based on the first information, and display the second display interface;

[0008] receiving a first value input by a user through the second display interface; the first value includes parameter values ​​corresponding to each attribute in the first information;

[0009] The first value is saved in the second form; each attribute of the data to be saved in the first form corresponds to the parameter value corresponding to each attribute in the second form;

[0010] The first information in the first form and the first value in the second form are correspondingly saved in a database.

[0011] Through the data management method provided in this application, it is only necessary to utilize the interaction between the backend and the frontend to realize the corresponding saving of the attributes and values ​​of the data to be saved in the database without modifying the code, thus avoiding the waste of human resources in modifying the backend code and the problem of increasing the bloatedness of the backend code.

[0012] In a possible implementation manner, determining the second display interface based on the first information includes:

[0013] Obtaining the attribute name of each attribute in the first information;

[0014] According to the preset template information, the attribute name of each attribute and the corresponding input box are arranged at the corresponding position of the new template to obtain a second display interface;

[0015] The receiving, through the second display interface, a first value input by a user, comprises:

[0016] In response to the input completion instruction, the parameter values ​​in the multiple input boxes in the second display interface are obtained by using the parameter calling function, and the parameter values ​​in the multiple input boxes are used as the first values.

[0017] The second display interface is generated according to the preset template information and the attribute name of each attribute in the first information. Fixed template information can be used to generate a corresponding second display interface even if the attributes are different each time, so as to receive user input, thereby improving the flexibility of the present application in generating the second display interface.

[0018] In a possible implementation, the method further includes:

[0019] After responding to the input completion signal through the second display interface, detecting whether a parameter value of a target attribute is received, wherein the target attribute is an attribute in the second display interface;

[0020] If yes, continue to obtain the first value;

[0021] If not, the user is prompted to continue inputting.

[0022] By validating the user input on the front-end page, it is possible to avoid the situation where the parameter value of the target attribute is not received, thereby reducing the possibility of errors on the front-end page.

[0023] In a possible implementation, the method further includes:

[0024] After receiving the first value input by the user through the second display interface, detecting whether the parameter type corresponding to each parameter value in the first value is a target parameter type; the target parameter type is the parameter type corresponding to each attribute in the first information;

[0025] If yes, then determining receipt of the first value;

[0026] If not, the user is prompted to re-enter the parameter value whose parameter type is not the attribute corresponding to the target parameter type.

[0027] By validating the user input on the front-end page, it is possible to avoid the occurrence of incorrect parameter types in the input, thus reducing the possibility of errors on the front-end page.

[0028] In a possible implementation manner, the storing the first information in the first form and the first value in the second form correspondingly in a database includes:

[0029] saving the second form to the first area in the database;

[0030] Perform the following operations on any attribute included in the first information in the first form:

[0031] The any attribute and the key value corresponding to the any attribute are saved in the second area of ​​the database; the key value corresponding to the any attribute is used to represent the corresponding relationship between any attribute in the first form and a parameter value in the second form.

[0032] The present application can use key values ​​to reflect the correspondence between the data information of the first form and the second form saved in the database, so that the correspondence between the data information of the first form and the second form is more intuitive, and the first form and the second form can be expanded at any time.

[0033] In a possible implementation, the method further includes:

[0034] After the second form is saved in the first area of ​​the database, obtaining a target address where the second form is saved in the first area of ​​the database;

[0035] Determine the key value corresponding to any attribute included in the first information in the first form by the following method:

[0036] Obtaining a target serial number of a parameter value corresponding to any one of the attributes stored in the second form;

[0037] The target address and the target serial number are combined as a key value corresponding to any one of the attributes.

[0038] The present application utilizes the target serial number and target address in the second form to determine the key value stored in the first form, so that the key value determination process is more accurate and the corresponding relationship between the data information in the first form and the second form is more intuitive.

[0039] In a possible implementation manner, after the first information in the first form and the first value in the second form are correspondingly saved in the database, the method further includes:

[0040] After receiving the viewing instruction, the first area and the second area in the database are displayed, and the data in the first area and the second area that have a corresponding relationship are marked with the same identifier.

[0041] Using the same identifier to mark the data that have a corresponding relationship can solve the problem that after the user requests to view the first area and the second area, it is not possible to intuitively see which data can correspond to each other.

[0042] In a second aspect, an embodiment of the present application provides a data management device, including:

[0043] A first information receiving unit, configured to receive first information input by a user through a first display interface, and save the first information into a first form; the first information includes a plurality of attributes of the data to be saved;

[0044] a second display interface determining unit, configured to determine a second display interface based on the first information, and display the second display interface;

[0045] A first value receiving unit is used to receive a first value input by a user through the second display interface; the first value includes parameter values ​​corresponding to each attribute in the first information; the first value is saved in a second form; each attribute of the data to be saved in the first form corresponds to the parameter value corresponding to each attribute in the second form;

[0046] The data storage unit to be stored is used to store the first information in the first form and the first value in the second form in a database correspondingly.

[0047] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0048] A memory for storing program instructions;

[0049] The processor is used to call the program instructions stored in the memory and execute the steps included in the method described in the first aspect according to the obtained program instructions.

[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0051] The embodiments of the present application provide a data management method, device, electronic device and storage medium, which can receive first information input by a user through a first display interface, and save the first information in a first form, wherein the first information is a plurality of attributes of the data to be saved, determine a second display interface based on the first information, and display the second display interface, receive a first value input by the user through the second display interface, wherein the first value includes parameter values ​​corresponding to each attribute in the first information, save the first value in a second form, and each attribute of the data to be saved in the first form corresponds to the parameter value corresponding to each attribute in the second form, and save the first information in the first form and the first value in the second form in a database in a corresponding manner. By the above method, only the interaction between the backend and the frontend is required to realize the corresponding saving of the attributes and values ​​of the data to be saved in the database, without modifying the code, thus avoiding the waste of human resources for modifying the backend code and the problem of increasing the bloatedness of the backend code. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0053] Figure 1 A schematic diagram of an application scenario of a data management method provided in an embodiment of the present application;

[0054] Figure 2 A flowchart of a data management method provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of a first display interface provided in an embodiment of the present application;

[0056] Figure 4 A schematic diagram of a second display interface provided in an embodiment of the present application;

[0057] Figure 5 A specific flow chart of a data management method provided in an embodiment of the present application;

[0058] Figure 6 A structural block diagram of a data management device provided in an embodiment of the present application;

[0059] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Among them, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0061] In the description of the embodiments of the present application, unless otherwise specified, "and" means or. For example, A / B can mean A or B. The "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0062] Specifically, in the description of the present application, it needs to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application, and, unless otherwise specified, the "connection" and "connection" mentioned in the present application include direct and indirect connections (connections).

[0063] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0064] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0065] In one possible embodiment, Figure 1 A schematic diagram of an application scenario of a data management method provided in an embodiment of the present application is shown. Figure 1 As shown, Figure 1Two electronic devices are included, namely electronic device 1100 and electronic device 2200, wherein the database in the embodiment of the present application can be stored in electronic device 2200, and electronic device 1100 can be used to execute a data management method provided in the embodiment of the present application. After electronic device 1100 receives first information input by a user, electronic device 1100 can generate a corresponding second display interface for the first information, and display it on electronic device 1100, and send the first information to electronic device 2200 at the same time. The user can enter a first value in the second display interface, and after verifying the first value, send it to electronic device 2200. After receiving the first value sent by electronic device 1100, electronic device 2200 can verify the first value again. After verification, electronic device 2200 can store the first information sent by electronic device 1100 and the first value in the database in electronic device 2200 accordingly.

[0066] In another possible embodiment, the database can also be stored in the electronic device 1100, so that the electronic device 1100 can complete a data management method provided in the embodiment of the present application, as well as some database-related operations.

[0067] The classification and extraction method provided by the exemplary embodiment of the present application is described below in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of the present application, and the implementation of the present application is not limited in this regard.

[0068] Figure 2 A flow chart of a data management method provided by an embodiment of the present application is shown. Figure 2 As shown, the method may include the following steps:

[0069] Step S201: receiving first information input by a user through a first display interface, and saving the first information into a first form.

[0070] In a possible embodiment, the first information includes relevant information of multiple attributes of the data to be saved, such as attribute names, etc. The first interface can be generated based on a specification attribute definition table, wherein the specification attribute definition table is pre-defined by a user, and the specification attribute definition table may include relevant information of the attributes of the data to be saved, such as attribute names, attribute key values, attribute types, etc. As shown in Table 1 below, the specification attribute definition table may include the following contents:

[0071] name type length Required Property Name String 255 yes Attribute unique key String 255 yes Attribute data type String 255 yes Attribute Necessity Integer 2 yes Drop-down box options String 255 no Property Description String 255 no

[0072] Table 1 Example of specification attribute definition

[0073] It can be determined from Table 1 that for each attribute of the data to be saved, the corresponding attribute name, attribute unique key value, attribute data type, attribute necessity, drop-down box option and attribute description can be determined respectively, among which the attribute name is a required item, the corresponding type is a string, and the length is within 255; the attribute unique key value is a required item, the corresponding type is a string, and the length is within 255; the attribute data type is a required item, the corresponding type is a string, and the length is within 255; the attribute necessity is a required item, the corresponding type is a string, and the length is within 2; the drop-down box option is not a required item, the corresponding type is a string, and the length is within 255; the attribute description is not a required item, and the corresponding type is a string, and the length is within 255.

[0074] In one possible embodiment, Figure 3 A schematic diagram of a first display interface provided by an embodiment of the present application is shown, such as Figure 3 As shown, the first display interface generated according to Table 1 may include the required items in Table 1 and the contents that are not required items in Table 1. The relevant information of the attributes may be arranged in the first display interface, and an input box may be set after each relevant information. A "required" prompt message may be set after the input box of the required items, and no prompt message may be set after the input box of the non-required items. Two buttons, "OK" and "Cancel", may be set under all relevant information and corresponding input boxes. If the user clicks the "OK" button after completing the input, the relevant information entered by the user may be submitted to the back end. If the user clicks the "Cancel" button after completing the input, the user may return to the previous level menu. It should be noted that if the user does not enter any information for the required items, a corresponding prompt message may be generated after the user clicks the "OK" button. The prompt message may include which specific required item is not filled in, such as "Please fill in: attribute name". It should be noted that the first display interface may be different from the above-mentioned interface layout. For example, various information may be arranged in a row, or they may be arranged in a scattered manner in the first display interface, or the two buttons may be replaced with other components for interaction. This application does not limit the layout of the first display interface. The function of the first display interface is to receive the first information input by the user.

[0075] Specifically, if the user clicks Figure 3In the first display interface shown in the figure, fill in the first information. You can fill in "level" in the "attribute name" column, fill in "lb_type" in the "attribute unique key value" column as the identifier corresponding to the "level" attribute, fill in "string" in the "attribute data type" column to indicate that the data format type corresponding to the "level" attribute is a string, fill in "layer7, layer4" in the "drop-down box option" column, and explain the two contents of the drop-down box option in the attribute description column, "load balancing level classification: application layer (layer7) load balancing, transport layer (layer4) load balancing", where the first information is the content entered by the user in the input box. After the user fills in the first information in the first display interface, the electronic device can receive the first information entered by the user and save the first information to the first form.

[0076] Step S202: determine a second display interface based on the first information, and display the second display interface.

[0077] In a possible embodiment, the second display interface can be determined based on the first information in the following manner: the attribute name of each attribute in the first information is obtained, and the attribute name of each attribute and the corresponding input box are arranged at the corresponding position of the new template according to the preset template information to obtain the second display interface. The preset template information includes the positions of different numbers of attributes on the template, and the position of the input box corresponding to each attribute on the template. For example, as shown in Table 2 below, the first form may include the following content:

[0078]

[0079] Table 2 Example of the first form

[0080] It can be determined from Table 2 that there are three first information received from the user through the first display interface, namely, the attribute with the unique key value of "Max_rule_num", which represents the maximum total number of rules that can be created in load balancing, the corresponding data type is an integer and is required data, the attribute with the unique key value of "Min_rule_num", which represents the minimum total number of rules that can be created in load balancing, the corresponding data type is an integer and is required data, and the attribute with the unique key value of "lb_type", which represents the hierarchical classification of load balancing, the corresponding data type is a string and is required data.

[0081] In a possible embodiment, the corresponding second display interface may be determined according to the first information in Table 2. Figure 4 A schematic diagram of a second display interface provided by an embodiment of the present application is shown. Figure 4As shown, the second display interface generated according to Table 2 may include the three attributes included in Table 2, as well as the corresponding input boxes and drop-down boxes. It should be noted that if the drop-down box option in Table 2 is empty, an input box may be set at the corresponding position after the attribute name to receive user input; if the drop-down box option in Table 2 is not empty, a drop-down box may be set at the corresponding position after the attribute name to receive user input. When the user moves the cursor to the attribute name, the corresponding description may be displayed. For example, when the user moves the cursor to the maximum number of rules, Figure 4 The second display interface may display a prompt message of "the maximum total number of rules that can be created in load balancing". It should be noted that, similar to the first display interface, the second display interface may have a different layout from the above interface. For example, the various attributes may be arranged in a row, or they may be arranged randomly in the first display interface, or the two buttons may be replaced with other components for interaction. The present application does not limit the layout of the second display interface. The function of the second display interface is to receive the first value input by the user.

[0082] Step S203: receiving a first value input by a user through the second display interface, and saving the first value into a second form.

[0083] In a possible embodiment, the input completion instruction can be responded to, and the parameter values ​​in the multiple input boxes in the second display interface can be obtained by using the parameter calling function, and the parameter values ​​in the multiple input boxes can be used as the first value. Specifically, the user can click Figure 4 , to send the input completion instruction. After the user sends the input completion instruction, it can be detected whether the parameter value of the target attribute is received, wherein the target attribute is a required attribute in the second display interface. If the parameter value of the target attribute is received, the first value is obtained. If the parameter value of the target attribute is not received, the user is prompted to continue inputting. For example, Figure 4 In the second display interface shown, the maximum number of rules and the minimum number of rules are both required attributes. If the user only fills in the maximum number of rules but does not fill in the minimum number of rules, then after the user clicks the "Confirm" button, a prompt message "Please continue to enter the minimum number of rules" will pop up, and the prompt message can be automatically closed after the set time; if the user fills in all the required attributes, then after the user clicks the "Confirm" button, the following steps can be continued to obtain the first value.

[0084] In a possible embodiment, after responding to the input completion instruction and determining that the user has entered the parameter value of the target attribute, the parameter call function can be used to obtain the parameter values ​​in multiple input boxes in the second display interface, and the parameter values ​​in the multiple input boxes are used as the first value. It should be noted that the parameter call function is not necessarily used to obtain the parameter values ​​in the input box. Different implementation methods can be selected according to the development environment of the second display interface. For example, in web development, you can use the tags in HTML to create input boxes and use the getInput function in JavaScript to obtain user input; based on React as the front-end framework, you can use the handleChange function to update the input value every time the user enters, thereby obtaining the user's input.

[0085] In a possible embodiment, after obtaining the parameter values ​​in the input box, it can be detected whether the parameter type corresponding to each parameter value in the first value is the target parameter type, wherein the target parameter type is saved in the first information of the first form. If the parameter types corresponding to each parameter value are all the target parameter type, the reception of the first value can be determined; if the parameter type corresponding to any parameter value in each parameter value is not the target parameter type, the user can be prompted to re-enter the parameter value whose parameter type is not the attribute corresponding to the target parameter type. For example, the target parameter type corresponding to the maximum number of rules should be an integer type. If the parameter type corresponding to the parameter value entered by the user is a string, a prompt "Please re-fill in the maximum number of rules" can be popped up in the second display interface. If each parameter value entered by the user corresponds to the target parameter type, the reception of the first value can be determined and the first value can be saved in the second form.

[0086] Step S204: Save the first information in the first form and the first value in the second form into the database accordingly.

[0087] In a possible embodiment, after executing steps S201 to S203, the first form and the second form are obtained. The second form can be first saved to the first area of ​​the database, and then the following operation is performed for any attribute contained in the first information in the first form: any attribute and the key value corresponding to any attribute are saved to the second area of ​​the database, wherein the key value corresponding to any attribute is used to characterize the correspondence between any attribute in the first form and a parameter value in the second form. Specifically, since the second form has been saved to the first area of ​​the database, the target address of each data saved in the second form saved in the first area of ​​the database can be obtained. If it is necessary to determine the key value corresponding to any attribute contained in the first information in the first form, the target serial number of the parameter value corresponding to any attribute saved in the second form can be obtained, and the target address and the target serial number can be combined as the key value corresponding to any attribute. For example, if the data saved in the second form is {"lb_type":"layer 7","Max_rule_num":4,"Min_rule_num":2}, the target serial number of the data saved in the second form is N1, and in the database, the corresponding address of the data saved in the second form in the database is aaa, then it can be determined that in the first form shown in Table 2, the key value corresponding to layer7 should be N1aaa, and the key value corresponding to layer7 can be saved after layer7; similarly, the key value corresponding to layer4 can also be saved after layer4.

[0088] In a possible embodiment, in the process of saving the second form, although the front-end page has screened the data of the second form, in order to avoid problems that may arise in the saving process, the JSONObject flavorFields field in the database can be used to receive all the data contained in the second form, and all the data can be traversed to verify whether the data contains all the required attributes and the correspondence between the data types. If the verification is passed, the data management method in this application is completed; if the verification is not passed, the user can be requested to fill in the data again, or a request can be initiated to the front-end to inform the front-end to resend the corresponding data content to the back-end database.

[0089] In a possible embodiment, after the first form is saved in the second area of ​​the database and the second form is saved in the first area of ​​the database, if a viewing instruction sent by the user is received, the first area and the second area in the database can be displayed to the user at the same time, and the data in the first area and the second area that have a corresponding relationship can be marked with the same identifier. Specifically, during the display process, the corresponding data can be marked with the same color, or the corresponding data can be connected with a line. The present application does not limit the specific marking method.

[0090] In a possible embodiment, after saving the first form to the second area in the database and saving the second form to the first area in the database, data can be added, deleted, modified, and queried by calling relevant JSON operation functions of the database. The form saved in the first area or the second area can be directly added, deleted, modified, and queried according to the operation function input by the user.

[0091] In one possible embodiment, Figure 5 A specific flow chart of a data management method provided in an embodiment of the present application is shown as follows: Figure 5 As shown, the method comprises the following steps:

[0092] Step S501: receiving first information input by a user through a first display interface, and saving the first information into a first form.

[0093] Step S502, obtaining the attribute name of each attribute in the first information, and arranging the attribute name of each attribute and the corresponding input box at the corresponding position of the new template according to the preset template information to obtain the second display interface.

[0094] Step S503, responding to the input completion instruction, detecting whether the parameter value of the target attribute is received, if so, executing step S504; if not, executing step S505.

[0095] Step S504, continue to obtain the first value, detect whether the parameter type corresponding to each parameter value in the first value is the target parameter type, if so, execute step S506; if not, execute step S507.

[0096] Step S505: prompt the user to continue inputting.

[0097] Step S506, confirming the reception of the first value, and saving the second form to the first area in the database. Then, step S508 is executed.

[0098] Step S507: prompt the user to re-enter a parameter value whose parameter type is not the attribute corresponding to the target parameter type.

[0099] Step S508, executing for any attribute included in the first information in the first form: saving any attribute and a key value corresponding to any attribute into a second area in the database.

[0100] Step S509: after receiving the viewing instruction, display the first area and the second area in the database, and mark the data in the first area and the second area that have a corresponding relationship with each other using the same identifier.

[0101] Based on the same inventive concept, Figure 6 A structural block diagram of a data management device provided in an embodiment of the present application, such as Figure 6 As shown, the data management device 600 may include:

[0102] The first information receiving unit 601 is used to receive first information input by a user through a first display interface, and save the first information into a first form; the first information includes multiple attributes of the data to be saved;

[0103] A second display interface determining unit 602, configured to determine a second display interface based on the first information, and display the second display interface;

[0104] The first value receiving unit 603 is used to receive a first value input by a user through the second display interface; the first value includes parameter values ​​corresponding to each attribute in the first information; the first value is saved in a second form; each attribute of the data to be saved in the first form corresponds to the parameter values ​​corresponding to each attribute in the second form one by one;

[0105] The data to be saved saving unit 604 is used to save the first information in the first form and the first value in the second form into a database correspondingly.

[0106] In a possible implementation manner, the second display interface determining unit 602 is specifically configured to obtain an attribute name of each attribute in the first information;

[0107] According to the preset template information, the attribute name of each attribute and the corresponding input box are arranged at the corresponding position of the new template to obtain a second display interface;

[0108] The receiving, through the second display interface, a first value input by a user, comprises:

[0109] In response to the input completion instruction, the parameter values ​​in the multiple input boxes in the second display interface are obtained by using the parameter calling function, and the parameter values ​​in the multiple input boxes are used as the first values.

[0110] In a possible implementation, the second display interface determination unit 602 is further configured to detect whether a parameter value of a target attribute is received after responding to the input completion instruction through the second display interface, wherein the target attribute is a required attribute in the second display interface;

[0111] If yes, continue to obtain the first value;

[0112] If not, the user is prompted to continue inputting.

[0113] In a possible implementation, the second display interface determination unit 602 is further configured to, after receiving a first value input by a user through the second display interface, detect whether a parameter type corresponding to each parameter value in the first value is a target parameter type; the target parameter type is a parameter type corresponding to each attribute in the first information;

[0114] If yes, then determining receipt of the first value;

[0115] If not, the user is prompted to re-enter the parameter value whose parameter type is not the attribute corresponding to the target parameter type.

[0116] In a possible implementation manner, the to-be-saved data saving unit 604 is specifically configured to save the second form to the first area in the database;

[0117] Perform the following operations on any attribute included in the first information in the first form:

[0118] The any attribute and the key value corresponding to the any attribute are saved in the second area of ​​the database; the key value corresponding to the any attribute is used to represent the corresponding relationship between any attribute in the first form and a parameter value in the second form.

[0119] In a possible implementation manner, the to-be-saved data saving unit 604 is further configured to obtain a target address where the second form is saved in the first area of ​​the database after the second form is saved in the first area of ​​the database;

[0120] Determine the key value corresponding to any attribute included in the first information in the first form by the following method:

[0121] Obtaining a target serial number of a parameter value corresponding to any one of the attributes stored in the second form;

[0122] The target address and the target serial number are combined as a key value corresponding to any one of the attributes.

[0123] In a possible implementation, the to-be-saved data saving unit 604 is further configured to display the first area and the second area in the database after receiving a viewing instruction, and mark the data in the first area and the second area that have a corresponding relationship with the same identifier.

[0124] Based on the same inventive concept, the embodiment of the present application provides an electronic device, which can implement the functions of the data management method discussed above. Please refer to Figure 7 The electronic device 700 includes a memory 701, a processor 702 and a bus 703.

[0125] The memory 701 is used to store computer programs executed by the processor 702. The memory 701 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0126] The memory 701 may be a volatile memory, such as a random-access memory (RAM); the memory 701 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 701 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 701 may be a combination of the above memories.

[0127] The processor 702 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 702 is used to implement the data management method in the above embodiment when calling the computer program stored in the memory 701 .

[0128] The specific connection medium between the memory 701 and the processor 702 is not limited in the embodiment of the present application. Figure 7 In the embodiment, the memory 701 and the processor 702 are connected via a bus 703. The bus 703 is connected to the processor 702 via a bus 703. Figure 7 The connections between other components are shown in bold lines, which are only for illustration and are not intended to be limiting. Bus 703 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0129] Based on the same inventive concept, the embodiment of the present application provides a computer-readable storage medium, and the computer program product includes: computer program code, when the computer program code is run on a computer, the computer executes any of the data management methods discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the testing method, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.

[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0134] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A data management method, characterized in that: include: Receiving first information input by a user through a first display interface, and saving the first information in a first form; The first information includes multiple attributes of the data to be saved; Determine a second display interface based on the first information, and display the second display interface; receiving a first value input by a user through the second display interface; the first value includes parameter values ​​corresponding to each attribute in the first information; Saving the first value in the second form; Each attribute of the data to be saved in the first form corresponds to a parameter value corresponding to each attribute in the second form in a one-to-one correspondence; The first information in the first form and the first value in the second form are correspondingly saved in a database.

2. The method according to claim 1, characterized in that The determining the second display interface based on the first information includes: Obtaining the attribute name of each attribute in the first information; According to the preset template information, the attribute name of each attribute and the corresponding input box are arranged at the corresponding position of the new template to obtain a second display interface; The receiving, through the second display interface, a first value input by a user, comprises: In response to the input completion instruction, the parameter values ​​in the multiple input boxes in the second display interface are obtained by using the parameter calling function, and the parameter values ​​in the multiple input boxes are used as the first values.

3. The method according to claim 2, characterized in that The method further comprises: After the second display interface responds to the input completion instruction, detecting whether a parameter value of a target attribute is received, wherein the target attribute is a required attribute in the second display interface; If yes, continue to obtain the first value; If not, the user is prompted to continue inputting.

4. The method according to claim 2, characterized in that: The method further comprises: After receiving the first value input by the user through the second display interface, detecting whether the parameter type corresponding to each parameter value in the first value is a target parameter type; the target parameter type is the parameter type corresponding to each attribute in the first information; If yes, then determining receipt of the first value; If not, the user is prompted to re-enter the parameter value whose parameter type is not the attribute corresponding to the target parameter type.

5. The method according to any one of claims 1 to 4, characterized in that: The step of correspondingly saving the first information in the first form and the first value in the second form into a database includes: saving the second form to the first area in the database; Perform the following operations on any attribute included in the first information in the first form: The any attribute and the key value corresponding to the any attribute are saved in the second area of ​​the database; the key value corresponding to the any attribute is used to represent the corresponding relationship between any attribute in the first form and a parameter value in the second form.

6. The method according to claim 5, characterized in that The method further comprises: After the second form is saved in the first area of ​​the database, obtaining a target address where the second form is saved in the first area of ​​the database; Determine the key value corresponding to any attribute included in the first information in the first form by the following method: Obtaining a target serial number of a parameter value corresponding to any one of the attributes stored in the second form; The target address and the target serial number are combined as a key value corresponding to any one of the attributes.

7. The method according to claim 5, characterized in that After the first information in the first form and the first value in the second form are correspondingly saved in the database, the method further includes: After receiving the viewing instruction, the first area and the second area in the database are displayed, and the data in the first area and the second area that have a corresponding relationship are marked with the same identifier.

8. A data management device, characterized in that: include: A first information receiving unit, configured to receive first information input by a user through a first display interface, and save the first information into a first form; The first information includes multiple attributes of the data to be saved; a second display interface determining unit, configured to determine a second display interface based on the first information, and display the second display interface; A first value receiving unit, configured to receive a first value input by a user through the second display interface; the first value includes parameter values ​​corresponding to each attribute in the first information; and save the first value in a second form; Each attribute of the data to be saved in the first form corresponds to a parameter value corresponding to each attribute in the second form in a one-to-one correspondence; The data storage unit to be saved is used to save the first information in the first form and the first value in the second form into a database correspondingly.

9. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of claims 1-7 according to the obtained program instructions.

10. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for achieving dynamic form in workflow system

    CN103218707A

  • Theme instance-based mass power data storage and query method

    CN107341198A

  • Method and device for mutual conversion of model object and JSON object

    CN110764768A

  • Vue-based form development method and device

    CN113760251A

  • Form generation method and device, electronic equipment and storage medium

    CN116483345A