Data management method and device, computer device and storage medium

By updating the state information of object attributes in the state table and isolating the state table from the target attribute table, the problem of frequent changes in data table structure and code logic is solved, achieving highly stable and flexible data management.

CN116894044BActive Publication Date: 2025-11-07CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310833167.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-07
Publication Date
2025-11-07
Estimated Expiration
2043-07-07

AI Technical Summary

Technical Problem

In existing technologies, highly flexible platform-based design tools lead to frequent changes in data table structure and code logic, resulting in low system stability and difficulty in meeting frequent changes in user needs.

Method used

By obtaining the state information of object attributes, the current state is updated using the state table. Through the isolation mechanism between the state table and the target attribute table, the data in the target attribute table can be flexibly adjusted to avoid direct intrusion into the target attribute table and maintain the stability of the data structure and code.

Benefits of technology

It achieves data management stability in the face of frequent changes in requirements, reduces the possibility of data anomalies, and maintains the long-term stability and flexibility of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116894044B_ABST
    Figure CN116894044B_ABST
Patent Text Reader

Abstract

The application relates to a data management method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: obtaining state information of an object attribute; when a state table exists the object attribute, updating a current state of the object attribute in the state table according to the state information; and performing data management of a target attribute table according to the object attribute and the current state of the object attribute. A new logical function of the state information of the object attribute acts on the state table to adjust the current state in the state table, and the current state is used to adjust data in the target attribute table. The state information can be flexibly adjusted to adjust the target attribute table, the original data in the target attribute table can be prevented from being greatly changed due to the state information, an invasive operation of the target attribute table caused by the state information of the object attribute can be avoided, stability is ensured, and the possibility of data abnormity is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of databases, and in particular to a data management method and device, computer equipment, a storage medium, and a computer program product. BACKGROUND

[0002] With the development of service design systems, objects such as products can be centrally adjusted, assembled like building blocks, quickly put on the shelf, and delivered agilely, so that object-oriented platform design tools have high efficiency and flexibility.

[0003] However, flexibility is the demand of frequent changes by users, which brings great pressure to backend developers, and requires frequent changes to data table structures and code logic, which invades the main code and results in low stability. SUMMARY

[0004] Therefore, it is necessary to provide a data management method, device, computer equipment, computer readable storage medium, and computer program product that can guarantee high stability.

[0005] In a first aspect, the present application provides a data management method. The method comprises:

[0006] obtaining state information of an object attribute;

[0007] when the object attribute exists in a state table, updating a current state of the object attribute in the state table according to the state information;

[0008] performing data management of a target attribute table according to the object attribute and the current state of the object attribute.

[0009] In one embodiment, the updating of the current state of the object attribute in the state table according to the state information comprises:

[0010] determining that the current state of the object attribute in the state table has changed according to the state information, to obtain a changed state;

[0011] the performing of the data management of the target attribute table according to the object attribute and the current state of the object attribute comprises:

[0012] adjusting data of the object attribute in the target attribute according to an operation mode indicated by the changed state.

[0013] In one embodiment, the adjusting of the data of the object attribute in the target attribute according to the operation mode indicated by the changed state comprises:

[0014] If the changed state is the warehoused state, the object attribute in the state table is added or updated in the target attribute table;

[0015] If the changed state is the unwarehoused state, the object attribute is deleted from the target attribute table.

[0016] In one of the embodiments, the state information of the object attribute includes:

[0017] In response to a state change request triggered by the object attribute in the object attribute view, the selection information possessed by the object attribute is acquired; the selection information includes one of the selected information and the unselected information;

[0018] The updating of the current state of the object attribute in the state table according to the state information includes:

[0019] When the object attribute has the selected information, the current state of the object attribute in the state table is updated as the warehoused state;

[0020] When the object attribute has the unselected information, the current state of the object attribute in the state table is updated as the unwarehoused state.

[0021] In one of the embodiments, when the object attribute in the state table is a new object attribute, the current state of the new object attribute in the state table is the unselected state;

[0022] The updating of the current state of the object attribute in the state table according to the state information includes:

[0023] According to the state information, the unselected state of the new object attribute in the state table is updated as the warehoused state or the unwarehoused state.

[0024] In one of the embodiments, the state table includes a state field and an attribute field of the target attribute table, and the attribute field is used to store data of the object attribute.

[0025] In one of the embodiments, the method further includes:

[0026] When the state table does not have the object attribute and the state information is the selection information, the data of the object attribute in the target attribute table is adjusted according to an operation mode indicated by the selection information;

[0027] The selection information includes one of selected information and unselected information; the selected information is used to indicate that the object attribute is added or updated to the target attribute table; and the unselected information is used to indicate that the object attribute is deleted from the target attribute table.

[0028] In a second aspect, the present application provides a data management device. The device comprises:

[0029] an information obtaining module, configured to obtain state information of an object attribute;

[0030] an intermediate processing module, configured to update a current state of the object attribute in a state table according to the state information when the state table exists the object attribute;

[0031] an attribute table processing module, configured to perform data management of a target attribute table according to the object attribute and the current state of the object attribute.

[0032] In a third aspect, the present application provides a handheld gimbal, comprising a motor and a processor, the motor is used to control the rotation of the gimbal, and the processor implements the steps of data management in any of the above embodiments when executing the computer program.

[0033] In a fourth aspect, the present application provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of data management in any of the above embodiments when executing the computer program.

[0034] In a fifth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program implements the steps of data management in any of the above embodiments when executed by a processor.

[0035] In a sixth aspect, the present application provides a computer program product. The computer program product comprises a computer program, and the computer program implements the steps of data management in any of the above embodiments when executed by a processor.

[0036] The data management method, device, computer device, storage medium and computer program product can be applied to the application environment as shown in BRIEF DESCRIPTION OF DRAWINGS

[0037] Figure 1 An application environment diagram of the data management method in an embodiment;

[0038] Figure 2 A flowchart of the data management method in an embodiment;

[0039] Figure 3 A flowchart of the data management method in another embodiment;

[0040] Figure 4 A product attribute diagram of the data management method in an embodiment;

[0041] Figure 5 A flowchart of the data management method in an embodiment;

[0042] Figure 6 A structural block diagram of the data management device in an embodiment;

[0043] Figure 7 An internal structure diagram of the computer device in an embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0045] The data management method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc.

[0046] In an embodiment, as shown in Figure 2 a data management method is provided, and the method is applied toFigure 1 The terminal 102 in the system 100 is taken as an example to illustrate the method, including the following steps:

[0047] In step 202, state information of the object attribute is acquired.

[0048] The object attribute is an attribute of an object set based on a business requirement. The object attribute can be added to the object or peeled off from the object, and based on different business requirements, so that the object can flexibly meet different business requirements.

[0049] Optionally, the object attribute can be a product attribute of a product. The product set based on the first business requirement has a first business object attribute, the product set based on the second business requirement has a second business object attribute, the product set based on the third business requirement has the first business object attribute and the second business object attribute, and the product attribute is selected based on the first business requirement, the second business requirement and the third business requirement, so that the product attribute of the product is flexibly adjusted, and the product can be adapted to different requirements.

[0050] The state information is used to determine the operation mode of the object attribute of the target attribute table, and the operation mode can be determined by the current state of the state table. Optionally, when the state indicated by the state information does not match the current state in the state table, the current state in the state table is changed, at this time, the state information is switching information. The state information is acquired from a data source other than the state table and the target attribute table, which can be other terminals, other servers or other databases. For example, the state information can be acquired from the object attribute view of the terminal.

[0051] Optionally, the object attribute is a persistent state attribute (PSR). When the object attribute is added or updated to the database, the value of the object attribute is saved to the target attribute table to form a persistent state attribute (PSR); and the process of adding or updating the object attribute to the target attribute table, and the process of deleting the data persistent state attribute from the target attribute table, all belong to the process of data adjustment.

[0052] Before step 204, the method comprises judging whether the object attribute exists in the state table. The object attribute can be judged to exist in the state table by the identification of the object attribute and the identification in the state table. Specifically, the object attribute can be judged to exist in the state table according to the object attribute code (psrPropertyCode) and the object identification (psrId) to which the object attribute belongs. For example, when the object attribute code of the object attribute and the object identification to which the object attribute belongs exist in the state table, the object attribute is judged to exist in the state table; when the object attribute code of the object attribute does not exist in the state table, the object attribute is judged to not exist in the state table; when the object identification to which the object attribute belongs does not exist in the state table, the object attribute is judged to not exist in the state table.

[0053] Step 204, when the object attribute exists in the state table, the current state of the object attribute in the state table is updated according to the state information.

[0054] The current state is the state value stored in the state table, and the state value corresponds to the object attribute existing in the state table one by one, and is used to judge whether the object attribute is stored in the target attribute table. Alternatively, according to whether the current state is updated, the current state can be divided into a state before updating and a state after changing; the state before updating can be one of an unselected state, a stored state and an un-stored state; the state after changing can be one of the stored state and the un-stored state.

[0055] The unselected state means that the object attribute has not been selected in the initial state set for the business requirement, and the current state of the product attribute has not entered the stored state or the un-stored state; the stored state means that the object attribute has been stored in the target attribute table, or is used to indicate that the object attribute is stored in the target attribute table; the un-stored state means that the object attribute is not stored in the target attribute table, or is used to indicate that the object attribute is deleted from the target attribute table.

[0056] Alternatively, the object attribute is stored by at least one field in the state table, and the current state is the current value of the state field in the multiple fields. For example, the values of the object attribute stored in the state table by different fields include: the object attribute code, the object attribute name, the object identification to which the object attribute belongs, and the current state field.

[0057] Because state information operates on the state table, the state table acts as an intermediary between the state information and the target attribute table. The state information adjusts the current state in the state table without changing the object attributes stored in the state table; these object attributes remain queryable. Then, the data in the target attribute table is adjusted based on the current state and object attributes. In this process, the new logic involved in the state information operates on the current state of the state table without intruding on the existing data in the target attribute table. Furthermore, because the new logic and the original data are isolated through these two tables, conflicts are less likely to occur. Therefore, the data structure and code are relatively stable, while the original data in the target attribute table remains usable, and the object attributes in the state table remain available, resulting in high flexibility.

[0058] Step 206: Perform data management for the target attribute table based on the object attributes and their current state.

[0059] The target attribute table is a data table of the main code of an object. Optionally, the target attribute table includes at least one data table, and this data table can perform data searching, adding, updating, or deleting based on the object attributes existing in the state table and the current state of the object attributes in the state table.

[0060] In one embodiment, data management of the target attribute table is performed based on object attributes and the current state of the object attributes, including: determining the operation method and the data to be adjusted in the target attribute table based on the object attributes and the current state of the object attributes; and adjusting the data to be adjusted in the target attribute according to the operation method.

[0061] Optionally, the data in the target attribute table includes object attributes in the target object table, and the object attributes in the target object table can be adjusted based on the object attributes in the state table and the current state of the object attributes in the state table.

[0062] In one embodiment, the method further includes: in response to an object attribute query request triggered by an object attribute view, searching for an object attribute that matches the object attribute query request in a status table and a target attribute table to perform an object attribute query.

[0063] In the data management method, the state information of the object attribute acts on the state table, so that a new logic of the object attribute involved by the state information acts on the state table, the current state in the state table is adjusted, and the data in the target attribute table is adjusted through the current state, so that the state information is isolated from the target attribute table through the state table, the current state can be flexibly adjusted according to the state information, and the data adjustment of the target attribute table is performed through the current state, so that the original data in the target attribute table is not greatly changed due to the state information, no intrusive operation of the target attribute table is generated, the relative stability of the data structure and the code in a longer period of time is realized, and the possibility of data exception is reduced.

[0064] In one embodiment, the isolation process of the state table for the state information and the target attribute table and the corresponding effect are illustrated. According to the state information, the current state of the object attribute in the state table is updated, including: according to the state information, it is determined that the current state of the object attribute in the state table is changed, and a changed state is obtained.

[0065] Correspondingly, the data adjustment of the target attribute table is performed according to the object attribute and the current state of the object attribute, including: according to the operation mode indicated by the changed state, the data of the object attribute in the target attribute is adjusted.

[0066] The changed state is the updated current state, which can be one of a stored state and an un-stored state. The stored state and the un-stored state respectively indicate different operation modes, so as to adjust the data of the object attribute in the target attribute through different operation modes.

[0067] In one embodiment, according to the state information, it is determined that the current state of the object attribute in the state table is changed, and a changed state is obtained, including: when the attribute state indicated by the state information is inconsistent with the state before the update, the attribute state indicated by the state information is determined as the changed state.

[0068] According to the state information, the current state is updated, which does not change the original code and data structure of the target attribute table, and makes the logical conversion process involved by the state information be front-end to the state table, so that the object attribute can be determined to have a changed state for various requirements without adjusting the target attribute table. The state table stores the changed state, and the operation mode indicated by the changed state can more stably control the adjustment of the data of the object attribute in the target attribute.

[0069] In one embodiment, according to the operation mode indicated by the changed state, the data of the object attribute in the target attribute is adjusted, including: if the changed state is a stored state, the object attribute in the state table is added or updated to the target attribute table; if the changed state is an un-stored state, the object attribute is deleted from the target attribute table.

[0070] In the case that the changed state is the warehoused state, the object attribute in the state table is added or updated to the target attribute table, and in the case that the changed state is the unwarehoused state, the object attribute is deleted from the target attribute table, and the state table still retains the corresponding data of the object attribute, so as to reuse the object attribute existing in the state table and more efficiently add or update to the target attribute table.

[0071] In an embodiment, the state information acquisition process and the specific relationship between the state information and the current state are described.

[0072] The state information of the object attribute includes: in response to the state change request triggered by the object attribute in the object attribute view, obtaining the selection information possessed by the object attribute; the selection information includes one of the selected information and the unselected information.

[0073] Correspondingly, according to the state information, updating the current state of the object attribute in the state table includes: when the object attribute has the selected information, updating the current state of the object attribute in the state table to the warehoused state; when the object attribute has the unselected information, updating the current state of the object attribute in the state table to the unwarehoused state.

[0074] The state change request is a request sent through the object attribute view, which is used to instruct the terminal to acquire the state information and execute the related steps of steps 202-206. The object attribute view is a view of the front-end interface, through which the object attribute can be displayed, and through which the selection information of the object attribute can be acquired. The selection information includes two types of selected information and unselected information, so as to determine different current states in the state table through different types of selection information.

[0075] Optionally, the state change request is triggered through a certain button in the object attribute view, so as to read the selection information of the object attribute from the object attribute view; and for each object attribute in the object attribute view, the selected object attribute of the user has the selected information, and the unselected object attribute of the user has the unselected information.

[0076] The selected information and the unselected information indicate different switching processes of the object attribute, and can simultaneously indicate the switching processes of multiple object attributes. Moreover, the selected information and the unselected information directly act on the state table, so that the current state of the object attribute in the state table is changed to one of the warehoused state and the unwarehoused state, which refines the action mode of the state table on the target attribute table, so as to efficiently reuse the original main program code of the target attribute table and the object attribute originally stored in the state table.

[0077] In one embodiment, when the object attribute existing in the state table is a new object attribute, the current state of the new object attribute in the state table is an unselected state.

[0078] According to the state information, the current state of the object attribute in the state table is updated, including: according to the state information, updating the unselected state of the new object attribute in the state table to the in-warehouse state or the un-warehouse state.

[0079] The new object attribute is a new object attribute, which can be added through an object attribute view or the like. Optionally, the new object attribute can be provided with a "new" identifier to enable the user to determine that the object attribute is new. The unselected state is an initial state of the new object attribute set by a business new requirement, and by setting the current state of the new object attribute in the state table as the unselected state, the new object attribute can also efficiently update the current state of the object attribute in the state table through the state information.

[0080] The state table includes a state field and an attribute field of the target attribute table, and the attribute field is used to store data of the object attribute. Thus, the state table adds the state field to the attribute field of the target attribute table, stores the current state of the object attribute through the state field, stores data of the object attribute of the target attribute table, efficiently transmits data stored in the state table to the field of the target attribute table, and manages data in the target attribute table through the current state stored in the state field. Different attribute fields respectively store data of the object attribute, including but not limited to: a primary key identifier (id), an object attribute code (psrPropertyCode), an object attribute identifier (psrId) to which the object attribute belongs, an object attribute name (psrPropertyName); and the state field is used to store the current state (status).

[0081] Taking the target attribute table of the PSR object attribute as an example, it contains attribute codes, names and other basic information, and the specific field information is shown in Table 1, and Table 1 is as follows:

[0082]

[0083]

[0084] Table 1

[0085] Correspondingly, the fields in the state table are shown in Table 2, and Table 2 is as follows:

[0086]

[0087] Table 2

[0088] In addition to the above data related to the state, the backend code can be implemented using the Spring Boot framework, and the front-end module can be implemented based on the VUE front-end framework.

[0089] In one embodiment, the method further comprises: when the state table does not exist the object attribute, and the state information is selection information, adjusting the data of the object attribute in the target attribute table according to the operation mode indicated by the selection information; wherein the selection information includes one of selected information and unselected information; the selected information is used to indicate that the object attribute is added or updated to the target attribute table; the unselected information is used to indicate that the object attribute is deleted from the target attribute table.

[0090] The operation mode indicated by the state information and the operation mode indicated by the changed state information can be used to indicate the same or different operation of the object attribute; the difference between the two is that only when the state table does not exist the object attribute, the data of the object attribute in the target attribute table is adjusted according to the operation mode indicated by the state information.

[0091] For the specific case that the state table does not exist the object attribute, the operation mode indicated by the selection information is determined based on the selected information and the unselected information, and the data processing steps are relatively small, which can efficiently and flexibly adjust the data in the target data table.

[0092] In one embodiment, the use of the state table is explained. As shown in Figure 3 (a), in the case where the state table does not exist, after the new business demand appears, only the table structure and the main code of the target attribute table can be changed to respond to the new demand; as shown in Figure 3 (b), in the case where the state table exists, after the new business demand appears, the state field in the state table is set, and the table structure and the main code of the target attribute table do not need to be changed.

[0093] In one example, the object attribute view is the product attribute view as shown in Figure 4 , and the state change request is triggered through the "Save Attribute" button in Figure 4 , and the selection information can be determined through the multiple selection box in Figure 4 ; wherein the product attribute in the checked state has the selected information, and the product attribute not in the checked state has the unselected information.

[0094] In Figure 4In the scenario of the product attribute of the "access mode" and the "site ID" with the "new" mark being checked by the user, when the "save attribute" is clicked, the state table is used to determine whether the corresponding data of the product attribute exists. If the corresponding data exists, two-step operation is performed to change the current state of the corresponding product attribute in the state table to the in-warehouse state, and the target attribute table data is added in the original main code through the product attribute stored in the state table. If the corresponding data does not exist, one-step operation is performed to add the target attribute table data in the original main code.

[0095] For the product attributes that are not checked, when the deletion operation is performed, if the state table exists the product attribute, two-step operation is performed to update the current state of the product attribute in the state table to the un-warehouse state, and the target attribute table data is deleted in the original main code. If the state table does not exist the product attribute, one-step operation is performed to delete the target attribute table data in the original main code.

[0096] In an example embodiment, as shown in Figure 5 Before the state information of the object attribute is acquired, the method includes determining a new object attribute, and determining that the current state of the new object attribute in the state table is the unselected state.

[0097] Correspondingly, the state information of the object attribute is acquired, including: in response to the state change request triggered by the object attribute in the object attribute view, acquiring the selection information of the new object attribute.

[0098] According to the state information, the current state of the object attribute in the state table is updated, including: when the object attribute has the selected information, the current state of the object attribute in the state table is updated to the in-warehouse state; when the object attribute has the unselected information, the current state of the object attribute in the state table is updated to the un-warehouse state.

[0099] According to the operation mode indicated by the changed state, the data of the object attribute in the target attribute is adjusted, including: if the changed state is the in-warehouse state, the object attribute in the state table is added or updated to the target attribute table; if the changed state is the un-warehouse state, the object attribute is deleted from the target attribute table.

[0100] Based on this, a state table is added between the target attribute table and the object attribute view interface, the state table faces new requirements, and new code logic only acts on the state table without invading the target attribute table, so as to realize the relative stability of the data structure and the code in a longer period of time. This method can quickly and flexibly respond to frequent changes in requirements, and can effectively improve the overall stability of the system. The patent can be applied to product service design system backend development work, and is an innovation in the field of software engineering design, and is expected to help further optimize the next-generation cloud network operation system.

[0101] It should be understood that, although each step in the flowchart involved in each embodiment as described above is shown in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately or alternately executed with at least part of other steps or steps or stages in other steps.

[0102] Based on the same inventive concept, the embodiments of the present application also provide a data management device for implementing the above-mentioned data management method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more data management device embodiments provided below can refer to the limitations of the data management method described above, and will not be repeated here.

[0103] In one embodiment, as shown in Figure 6 a data management device is provided, comprising:

[0104] The information acquisition module 602 is configured to acquire state information of an object attribute.

[0105] The intermediate processing module 604 is configured to, when the state table exists for the object attribute, update a current state of the object attribute in the state table according to the state information.

[0106] The attribute table processing module 606 is configured to perform data management of a target attribute table according to the object attribute and the current state of the object attribute.

[0107] In one embodiment, the intermediate processing module 604 is configured to:

[0108] According to the state information, it is determined that the current state of the object attribute in the state table is changed, and a changed state is obtained;

[0109] The attribute table processing module 606 is configured to:

[0110] According to the operation mode indicated by the changed state, data of the object attribute in the target attribute table is adjusted.

[0111] In one embodiment, the attribute table processing module 606 is configured to:

[0112] If the changed state is a warehoused state, the object attribute in the state table is added or updated to the target attribute table;

[0113] If the changed state is a non-warehoused state, the object attribute is deleted from the target attribute table.

[0114] In one embodiment, the information acquisition module 602 is configured to:

[0115] In response to a state change request triggered by an object attribute in an object attribute view, selection information possessed by the object attribute is acquired; the selection information includes one of selected information and unselected information;

[0116] The intermediate processing module 604 is configured to:

[0117] When the object attribute has the selected information, the current state of the object attribute in the state table is updated to a warehoused state;

[0118] When the object attribute has the unselected information, the current state of the object attribute in the state table is updated to a non-warehoused state.

[0119] In one embodiment, when the object attribute existing in the state table is a new object attribute, the current state of the new object attribute in the state table is a non-selected state;

[0120] The intermediate processing module 604 is configured to:

[0121] According to the state information, the non-selected state of the new object attribute in the state table is updated to a warehoused state or a non-warehoused state.

[0122] In one embodiment, the state table includes a state field and an attribute field of the target attribute table, and the attribute field is configured to store data of the object attribute.

[0123] In one embodiment, the attribute table processing module 606 is configured to:

[0124] when the state table does not exist the object attribute, and the state information is selection information, adjusting data of the object attribute in the target attribute table according to an operation mode indicated by the selection information;

[0125] The selection information includes one of selected information and unselected information. The selected information is used to indicate that the object attribute is added or updated to the target attribute table. The unselected information is used to indicate that the object attribute is deleted from the target attribute table.

[0126] The modules in the data management apparatus can be realized by software, hardware, or a combination thereof. The modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in a computer device in software form, so as to be called and executed by a processor to perform operations corresponding to the modules.

[0127] In one embodiment, a computer device is provided, which can be a terminal. An internal structure diagram of the computer device can be as shown in Figure 7 The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected through a system bus. The communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to perform wired or wireless communication with external terminals. The wireless communication can be achieved through WIFI, mobile cellular network, NFC (near field communication), or other technologies. The computer program is executed by the processor to implement a data management method. The display unit of the computer device is configured to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, a trackball, or a touchpad arranged on the shell of the computer device. The input device can also be an external keyboard, a touchpad, or a mouse, etc.

[0128] Those skilled in the art can understand that Figure 7The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0129] In one embodiment, the present application also provides a handheld gimbal, including a motor for controlling the rotation of the gimbal and a processor, which implements the steps in the above method embodiments when executing the computer program.

[0130] In one embodiment, a computer device is also provided, including a memory and a processor, the memory storing a computer program, and the processor implementing the steps in the above method embodiments when executing the computer program.

[0131] In one embodiment, a computer readable storage medium is provided, which stores a computer program, and the computer program implements the steps in the above method embodiments when executed by a processor.

[0132] In one embodiment, a computer program product is provided, which includes a computer program, and the computer program implements the steps in the above method embodiments when executed by a processor.

[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0135] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.

[0136] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A data management method characterized by, The method comprises: acquiring state information of an object attribute; when the object attribute exists in a state table, updating a current state of the object attribute in the state table according to the state information; the current state corresponds to the object attribute existing in the state table one by one; if the current state is a warehoused state, adding or updating the object attribute in the state table to a target attribute table; if the current state is a non-warehoused state, deleting the object attribute from the target attribute table; data in the target attribute table contains object attributes adjusted based on the object attribute and the current state in the state table.

2. The method of claim 1, wherein, The updating of the current state of the object attribute in the state table according to the state information comprises: determining that the current state of the object attribute in the state table is changed according to the state information to obtain a changed state; wherein the changed state comprises the warehoused state obtained by updating or the non-warehoused state obtained by updating.

3. The method of claim 1, wherein, The acquiring of the state information of the object attribute comprises: in response to a state change request triggered by an object attribute in an object attribute view, acquiring selection information possessed by the object attribute; the selection information comprises one of selected information and unselected information; The updating of the current state of the object attribute in the state table according to the state information comprises: when the object attribute has the selected information, updating the current state of the object attribute in the state table to the warehoused state; when the object attribute has the unselected information, updating the current state of the object attribute in the state table to the non-warehoused state.

4. The method of claim 1, wherein, when the object attribute existing in the state table is a new object attribute, the current state of the new object attribute in the state table is an unselected state; The updating of the current state of the object attribute in the state table according to the state information comprises: updating the unselected state of the new object attribute in the state table to the warehoused state or the non-warehoused state according to the state information.

5. The method of claim 1, wherein, The state table comprises a state field and an attribute field of the target attribute table, and the attribute field is used for storing data of the object attribute.

6. The method of claim 1, wherein, The method further comprises: when the state table does not have the object attribute and the state information is selection information, adjusting data of the object attribute in the target attribute table according to an operation mode indicated by the selection information; wherein the selection information comprises one of selected information and unselected information; the selected information is used for indicating that the object attribute is added or updated to the target attribute table; and the unselected information is used for indicating that the object attribute is deleted from the target attribute table.

7. The method of claim 1, wherein, The state information is acquired from a data source other than the state table and the target attribute table.

8. A data management apparatus characterized by comprising: The device comprises: an information acquisition module configured to acquire state information of an object attribute; an intermediate processing module, configured to update a current state of the object attribute in the state table according to the state information when the state table exists the object attribute; the current state corresponds to the object attribute in the state table one by one; an attribute table processing module, configured to add or update the object attribute in the state table into a target attribute table if the current state is a warehoused state, and delete the object attribute from the target attribute table if the current state is a non-warehoused state; data in the target attribute table contains object attributes adjusted based on the object attribute in the state table and the current state. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. The processor executes the computer program to implement the steps of the method in any one of claims 1 to 7.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Process engine object processing method and device

    CN108536541A