Data management method, device and storage medium

By outputting the business requirement configuration interface and generating programming language code segments, the wide table is automatically generated and permissions are controlled, which solves the problem of high technical threshold for code writing when building large wide tables, and achieves the effect of reducing the difficulty of operation and ensuring data security.

CN118170767BActive Publication Date: 2024-09-03QIXUN XIN YOU
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410586229.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-03
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

The construction of large and wide tables has certain threshold requirements for coding skills and requires professional and technical personnel to design and construct, making it difficult to lower the operating threshold for non-technical users.

Method used

By outputting the business requirements configuration interface when receiving the wide table construction instruction, obtaining the demand data, extracting key fields and parameter fields, generating programming language code segments, automatically generating the target wide table, and performing permission configuration and permission control after generation. Provide role-based data access interface.

Benefits of technology

It lowers the technical threshold for building wide tables, allowing users who do not know how to write code to automatically generate wide tables by inputting business requirements, improving work efficiency and ensuring data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118170767B
    Figure CN118170767B
Patent Text Reader

Abstract

The present application discloses a data management method, device and storage medium, and relates to the field of data processing technology. The data management method is disclosed, including: outputting a business demand configuration interface when receiving a wide table construction instruction; determining or obtaining demand data based on the business demand configuration action received by the business demand configuration interface; extracting key fields and parameter fields according to the demand data; determining a programming language code segment according to the key fields and the parameter fields; passing the key fields and the parameter fields as parameters to the programming language code segment, and executing the programming language code segment to generate a target wide table. This allows users who do not understand code writing technology to obtain automatically generated wide tables by inputting business requirements, thereby achieving the beneficial effect of lowering the technical threshold for wide table construction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] A big wide table is a database table structure used to store large amounts of data. It improves data processing efficiency by merging multiple narrow tables containing data on only one subject into a wide table containing data on multiple subjects.

[0003] When constructing large wide tables, professional technicians are usually required to collect the business requirements of various departments and then use database languages, such as SQL, and data processing tools, such as ETL tools, to carry out targeted design and construction.

[0004] Therefore, the construction of large wide tables has certain threshold requirements for code writing technology.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide a data management method, device and readable storage medium, aiming to solve the technical problem that the construction of large wide tables has certain threshold requirements for code writing technology.

[0007] To achieve the above objectives, the present application proposes a data management method, which comprises:

[0008] When receiving the wide table building instruction, output the business requirement configuration interface;

[0009] Determine or obtain demand data based on the business demand configuration action received by the business demand configuration interface;

[0010] Extract key fields and parameter fields according to the demand data;

[0011] Determine a programming language code segment according to the key field and the parameter field;

[0012] The key field and the parameter field are passed as parameters to the programming language code segment, and the programming language code segment is executed to generate a target wide table.

[0013] In one embodiment, after the step of passing the key field and the parameter field as parameters to the programming language code segment and executing the programming language code segment to generate a target wide table, the step further includes:

[0014] Outputting a target wide table editing interface, and receiving a user's permission configuration action based on the wide table configuration interface;

[0015] Based on the permission configuration action, determine or obtain permission configuration information, and determine the permission scope of each role by parsing the permission configuration information, the permission scope including data access scope, data operation type and data access level;

[0016] According to the authority range of each role, authority control is implemented in the target wide table.

[0017] In one embodiment, the step of implementing permission control in the target wide table according to the permission range of each role includes:

[0018] Determine, according to the authority scope of each role, a visualization implementation tool corresponding to each role, wherein the visualization implementation tool includes at least one of a view creation tool, a front-end tool, and a middleware;

[0019] Based on the authority scope of each role and the target wide table, the visualization implementation tool is called to create a data access interface corresponding to each role.

[0020] In one embodiment, the step of determining the visualization implementation tool corresponding to each role according to the authority scope of each role includes:

[0021] Determine, according to the authority scope of each role, a first visualization implementation tool corresponding to each role;

[0022] detecting an existing technology stack and determining a second visualization implementation tool that is compatible with the existing technology stack;

[0023] Evaluating display effects of the first visualization implementation tool and the second visualization implementation tool;

[0024] The visualization implementation tool to be called is determined according to the display effect.

[0025] In one embodiment, the step of determining the visualization implementation tool to be called according to the display effect further includes:

[0026] When the display effect of the second visualization implementation tool is better than the display effect of the first visualization implementation tool;

[0027] evaluating the computational overhead of the second visualization implementation tool and the first visualization implementation tool;

[0028] When the computational overhead of the second visualization implementation tool is less than or equal to the computational overhead of the first visualization implementation tool, determining that the second visualization implementation tool is the visualization implementation tool to be called;

[0029] When the computational overhead of the second visualization implementation tool is greater than the computational overhead of the first visualization implementation tool, the first visualization implementation tool is determined to be the visualization implementation tool to be called.

[0030] In one embodiment, after the step of calling the visualization implementation tool based on the authority scope of each role and the target wide table to create a data access interface corresponding to each role, the step further includes:

[0031] Upon receiving a data access request sent by a user, determining role information corresponding to the user;

[0032] Obtaining the data access target interface associated with the role information;

[0033] The data access target interface is output to the user to provide data access service.

[0034] In one embodiment, after the step of outputting the data access target interface to the user to provide data access service, the method further includes:

[0035] receiving a data operation instruction from the user based on the data access target interface;

[0036] By parsing the data operation instruction, determining whether the data query instruction exceeds the authority scope of the user;

[0037] When the data query instruction exceeds the authority range of the user, an error message is returned, and a prompt is given that the user authority is insufficient.

[0038] In addition, to achieve the above objectives, the present application also proposes a data management device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data management method described above.

[0039] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data management method described above are implemented.

[0040] One or more technical solutions proposed in this application have at least the following technical effects:

[0041] Since the present application outputs a business requirement configuration interface upon receiving a wide table construction instruction; determines or obtains requirement data based on the business requirement configuration action received by the business requirement configuration interface; extracts key fields and parameter fields according to the requirement data; determines a programming language code segment according to the key fields and the parameter fields; passes the key fields and the parameter fields as parameters to the programming language code segment, and executes the programming language code segment to generate a target wide table, users who do not understand code writing technology can also obtain automatically generated wide tables by inputting business requirements, thereby achieving the beneficial effect of lowering the technical threshold for wide table construction. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0044] Figure 1 A flowchart of the first embodiment of the data management method of the present application is provided;

[0045] Figure 2 A diagram of a demand data configuration interface provided for the first embodiment of the data management method of this application;

[0046] Figure 3 A flowchart of the second embodiment of the data management method of the present application is provided;

[0047] Figure 4 A flowchart of the fourth embodiment of the data management method of the present application is provided;

[0048] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the data management method in the embodiment of the present application.

[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0052] The main solution of the embodiment of the present application is: when a wide table construction instruction is received, a business requirement configuration interface is output; based on the business requirement configuration action received by the business requirement configuration interface, the requirement data is determined or obtained; according to the requirement data, key fields and parameter fields are extracted; according to the key fields and the parameter fields, a programming language code segment is determined; the key fields and the parameter fields are passed as parameters to the programming language code segment, and the programming language code segment is executed to generate a target wide table.

[0053] In this embodiment, for the convenience of description, the following description is made by taking the identification data management system as the execution entity.

[0054] Because the existing technology usually requires professional technicians to collect the business needs of various departments and then use database languages ​​such as SQL and data processing tools such as ETL tools to carry out targeted design and construction in the construction of large wide tables. This makes the construction of large wide tables have certain threshold requirements for code writing technology. The present application provides a solution that allows users who do not understand code writing technology to obtain automatically generated wide tables by inputting business requirements on the data management system, thereby achieving the beneficial effect of lowering the technical threshold for wide table construction.

[0055] The data management system abstracts the wide table construction process into a business requirement configuration interface and a programming language code segment mapping, realizing the conversion of user-entered business requirements into automatically generated wide tables, thereby lowering the technical threshold for wide table construction.

[0056] It should be noted that the execution subject of this embodiment may be a data management system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a data management device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the data management system as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0057] Based on this, the present application embodiment provides a data management method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the data management method of this application.

[0058] In this embodiment, the data management method includes steps S10 to S50:

[0059] Step S10, when receiving the wide table construction instruction, outputting the business requirement configuration interface;

[0060] It should be noted that the wide table construction instruction refers to a command or request to start the wide table construction process. In the prior art, wide table construction usually requires professional technicians to use database languages, such as SQL, and data processing tools, such as ETL tools to complete. In this application, the wide table construction instruction can be a simple operation instruction, such as clicking a button, sending a message, or executing a command line instruction.

[0061] In addition, it should be noted that the business requirement configuration interface is a graphical interface for receiving business requirements input by users. On this interface, users can select and set relevant options according to their own needs, such as data source, data type, data processing method, etc.

[0062] It is understandable that when the data management system receives the wide table construction instruction, it triggers the wide table construction process, and directly obtains the business requirements of non-technical users by outputting the business requirement configuration interface. Compared with the existing technology in which non-technical personnel convey the business requirements to technical personnel and then the technical personnel manually create the wide table, this not only lowers the technical threshold for wide table creation, but also greatly reduces the time and energy of manual operation and improves work efficiency.

[0063] Step S20, determining or acquiring demand data based on the business demand configuration action received by the business demand configuration interface;

[0064] It should be noted that business requirement configuration actions refer to a series of operations performed by users on the business requirement configuration interface, which are used to input or upload business requirements to the data management system. Requirement data is a set of information obtained from the business requirement configuration interface, which is used to describe the specific business requirements of users. In order to formulate a large wide table based on the requirement data, it may include data sources, data types, data usage scenarios, and data processing methods. Among them, data types include structured data, such as data in relational databases, semi-structured data, such as data in XML and JSON formats, and unstructured data, such as text, pictures, and videos. Different data types require different data import methods. Data sources include internal business system databases, external data sources, such as website public data, third-party data providers, and manually entered data. Data from different data sources may need to be imported through different technical means such as data extraction and data synchronization. Data processing methods include data cleaning, data conversion, and data encryption. During the data import process, the data needs to be pre-processed to meet the data governance strategy and business requirements of the large wide table.

[0065] It is understandable that the business requirement configuration action is designed to simplify and abstract complex programming operations, so that non-technical users can easily complete the requirement setting for wide table construction. In actual applications, the business requirement configuration action can be used to select a specific method for uploading requirement data, and complete the input of requirement data in various forms such as clicking buttons, dragging fields, and filling in text boxes. Figure 2 , Figure 2 This is a schematic diagram of the demand data configuration interface of the first embodiment of the data management method of this application.

[0066] In the first feasible data uploading implementation, the data management system supports file selection uploading, and the user can select the required data file from the local file system for uploading by clicking the "Select File" button. The data management system obtains the required data by reading the content of the file selected by the user.

[0067] In the second feasible data uploading implementation method, the data management system supports drag-and-drop uploading, and the user can directly drag the required data file from the local file system to the upload area, and the data management system obtains the required data by reading the content of the file dragged by the user.

[0068] In the third feasible data upload implementation, the data management system supports link sharing upload, and the user can upload the required data file to the cloud storage service, obtain the file link, and share the link to the upload area to upload the file. The data management system obtains the required data by accessing the link shared by the user, downloading the required data file and reading the content.

[0069] In a fourth feasible data upload implementation, the data management system supports scanning upload. If the required data file is a paper version, the user can convert the paper file into a digital file through a scanning device and upload it to the required data configuration interface. The data management system obtains the required data by reading the digital file content obtained by the scanning device.

[0070] In the fifth feasible data upload implementation, the data management system supports copy and paste upload. If the required data file content already exists in the clipboard, the user can directly copy and paste the content to the upload area to upload the file. The data management system obtains the required data by reading the written content.

[0071] Step S30, extracting key fields and parameter fields according to the demand data;

[0072] It should be noted that the key field is a field used to uniquely identify data records, such as order ID, customer ID, etc. Parameter fields are fields used for filtering, sorting or calculation, such as product category, sales, date, etc.

[0073] According to the data source and data range included in the demand data, the original data to be processed is obtained, where the data source may include databases, files, application program interfaces, etc.; the data range may involve specific time periods, regions, departments, etc.; according to the data processing methods included in the demand data, the original data is cleaned, converted, aggregated, and other operations are performed. Fields are extracted from the processed original data, and key fields and parameter fields in the original data are identified and extracted according to the data usage scenarios such as data analysis, report display, data mining, etc., as well as the data structure.

[0074] Step S40, determining a programming language code segment according to the key field and the parameter field;

[0075] According to the type, name, length, precision and other information of the key field and parameter field, it can be used to determine the structure of the wide table, such as the table name, field name, data type, index, etc. At the same time, according to the type of the key field and parameter field and the corresponding business scenario, the required programming language code segment can be determined, corresponding to data insertion, data update, data deletion and other functions.

[0076] Step S50: passing the key field and the parameter field as parameters to the programming language code segment, and executing the programming language code segment to generate a target wide table.

[0077] Key fields and parameter fields can be regarded as input and configuration information in the process of building a wide table. Key fields and parameter fields are passed to the code segment in the form of variables or lists, and then these parameters are used in the code segment to perform corresponding data processing and wide table generation operations.

[0078] For example, if the key field is an integer type field, you can pass it to the code snippet as an integer variable; if the parameter field is a string type field, you can pass it to the code snippet as a string list. In the code snippet, you can use these parameters to perform data query, data conversion, data validation, and other operations to ultimately generate the target wide table.

[0079] It is understandable that when passing parameters, it is necessary to ensure that the type and format of the parameters match the expected input of the code segment, otherwise it may cause the code segment to fail to execute or data processing errors. Therefore, corresponding type conversion and format processing are also required when passing parameters.

[0080] In summary, this embodiment abstracts the wide table construction process into a business requirement configuration interface and a programming language code segment mapping through the data management system, so that users who do not understand code writing technology can also obtain automatically generated wide tables by inputting business requirements on the data management system, thereby realizing the conversion of user-input business requirements into automatically generated wide tables, thereby lowering the technical threshold for wide table construction.

[0081] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , Figure 3 This is a flow chart of the second embodiment of the data management method of the present application. After step S50, the data management method further includes steps S51 to S53:

[0082] Step S51, outputting a target wide table editing interface, and receiving a user's permission configuration action based on the wide table configuration interface;

[0083] After detecting the generation of the target wide table, the data management system will output a target wide table editing interface, allowing users to configure permissions on this interface. The wide table configuration interface may include various controls, such as text boxes, drop-down lists, check boxes, etc., so that users can enter or select the required permission configuration information. Users perform operations on this interface, such as setting roles, assigning permissions, etc. These operations are called permission configuration actions.

[0084] Step S52, based on the permission configuration action, determining or obtaining permission configuration information, and determining the permission scope of each role by parsing the permission configuration information, the permission scope including data access scope, data operation type and data access level;

[0085] The specific implementation method of uploading and obtaining the permission configuration information refers to the uploading and obtaining of the required data in step S20, and this embodiment will not be repeated in detail again. The data management system determines the permission scope of each role by parsing the permission configuration information. The permission scope may include the data access scope, including the time range, geographical range, business object range, etc. of the data. For example, some users may only be able to access data in a specific area, a specific time period or a specific business type. By setting the data scope, it can be ensured that users can only access data that is relevant to their business and is authorized. It also includes data operation types, such as reading, modifying, deleting, etc. And data access levels such as ordinary users, administrators, etc.

[0086] For example, there is a wide table with the following fields: user_id, name, gender, age, position, department, phone number, and email. We have the following three roles: employee, manager, and admin.

[0087] Ordinary employees (employee): Ordinary employees can only query and modify their own information, and cannot view or modify other colleagues' information. Therefore, for ordinary employees, we can set permissions on the wide table so that they can only access and modify records with the same user_id as themselves.

[0088] Department manager: A department manager can view and modify the information of employees in his department, but cannot view or modify data in other departments. To this end, we can set permissions for department managers on the wide table to enable them to access and modify the same records as their own department.

[0089] Administrator (admin): The administrator has the highest authority and can access and modify all data in the wide table. Therefore, for the administrator, we can grant him full permissions on the wide table.

[0090] It is understandable that after implementing the above permission control, users of each role can only access and modify data in the wide table within the scope of authorization. This complex permission setting not only ensures data security, but also meets the actual needs of users of different roles.

[0091] It should be noted that this is just a simple example. In actual operation, more complex permission settings may be required based on business scenarios and requirements, and it does not limit this application.

[0092] Step S53: Implementing authority control in the target wide table according to the authority range of each role.

[0093] It is important to understand that the implementation method of permission control can be achieved by providing customized data access interfaces for different users or roles. This can facilitate business departments to query and analyze data according to their own needs, while also avoiding direct exposure of underlying data and ensuring data security.

[0094] In the first implementation of permission control, corresponding views can be created according to the permission scope of different users or roles, so that users can only access the data they have permission to view. For example, for ordinary employees, you can create a view that only contains the fields they have access to; for administrators, you can create a view that contains all fields. In this way, when users query data, they are actually querying these views instead of directly accessing large wide tables. Through wide tables + views, the problem of sensitive data or data to be protected can be solved. It is also possible to solve the permission access problem of data stored in json format in a certain field by subdividing the attribute content in json by role. For example, if the json content of a certain field is {"a":"income","b":"expenditure"}, if only a certain role is allowed to view field a, then a field can be added to parse the a attribute of the original stored json field.

[0095] In the second implementation of permission control, the accessible data fields can be dynamically displayed in the front-end interface according to the different permissions of users or roles. For example, dynamic rendering of table columns can be achieved through technologies such as JavaScript (object-based and event-driven client-side scripting language), HTML (Hypertext Markup Language) and CSS (Cascading Style Sheet), showing only the fields that users have permission to view. In this way, the fields that users see in the front-end interface are the fields they have permission to access.

[0096] In the third implementation of permission control, a middleware system can be developed to handle user data requests. The middleware system will filter and process the data in the large wide table according to the user's identity and permissions, and then return the data that meets the permission requirements to the user. In this way, when the user requests data, he is actually requesting the middleware system instead of directly accessing the large wide table.

[0097] It is understandable that in actual applications, multiple methods can be combined to achieve more efficient, secure and easy-to-use data access permission control. For example, you can use the method of creating views to limit the scope of data access, and at the same time provide a customized data access interface by modifying the front-end interface or using middleware.

[0098] In summary, this embodiment provides an abstract layer for data access, so that business departments can query and analyze data according to their own needs, while also avoiding direct exposure of underlying data and ensuring data security.

[0099] Based on the above embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. On this basis, step S53 also includes steps S54~S55:

[0100] S54, determining a visualization implementation tool corresponding to each role according to the authority scope of each role, wherein the visualization implementation tool includes at least one of a view creation tool, a front-end tool, and a middleware;

[0101] In the first feasible implementation method of determining the visualization implementation tool, appropriate visualization implementation tools such as view creation tools, front-end tools, and middleware are selected according to the authority scope of each role. For example, for the administrator role, more powerful view creation tools and middleware may be needed to achieve more complex data visualization and interactive functions; while for the ordinary user role, only simple front-end tools may be needed to display data.

[0102] In a second feasible implementation of determining a visualization implementation tool, step S53 may include:

[0103] Step A11, determining a first visualization implementation tool corresponding to each role according to the authority scope of each role;

[0104] The specific implementation method refers to step S54, and this embodiment will not be described in detail here.

[0105] Step A12, detecting an existing technology stack and determining a second visualization implementation tool that is compatible with the existing technology stack;

[0106] What you need to understand is the technology stack, including the programming languages, frameworks, libraries, etc. used.

[0107] According to the existing technology stack, determine a second visualization implementation tool that is compatible with the existing technology stack. For example, if the data management system has already used a certain front-end framework, it may be given priority to modify the front-end interface. If the data management system has already used a certain middleware product, it may be given priority to use the middleware.

[0108] Step A13, evaluating display effects of the first visualization implementation tool and the second visualization implementation tool;

[0109] By comparing the differences between the two tools in terms of view components, style design, data processing, and interactive functions, we can determine which tool has a better display effect.

[0110] Step A14, determining the visualization implementation tool to be called according to the display effect.

[0111] In an implementation of determining the visualization implementation tool to be called, a visualization implementation tool with better display effect is selected as the visualization implementation tool to be called.

[0112] In another implementation of determining the visualization implementation tool to be called, step A14 includes:

[0113] Step B11, when the display effect of the second visualization implementation tool is better than the display effect of the first visualization implementation tool;

[0114] Step B12, evaluating the computational overhead of the second visualization implementation tool and the first visualization implementation tool;

[0115] Step B13: when the computational overhead of the second visualization implementation tool is less than or equal to the computational overhead of the first visualization implementation tool, determining that the second visualization implementation tool is the visualization implementation tool to be called;

[0116] If the display effect of the second visualization implementation tool is better than that of the first visualization implementation tool, but the computational overhead of the second visualization implementation tool is less than or equal to that of the first visualization implementation tool, then the second visualization implementation tool can be determined as the visualization implementation tool to be called, because in this case, the second visualization implementation tool can provide better performance while ensuring the display effect.

[0117] Step B14: when the computational overhead of the second visualization implementation tool is greater than the computational overhead of the first visualization implementation tool, determining that the first visualization implementation tool is the visualization implementation tool to be called.

[0118] However, if the computational overhead of the second visualization implementation tool is greater than that of the first visualization implementation tool, then the first visualization implementation tool should be determined as the visualization implementation tool to be called, because in this case, the first visualization implementation tool can provide better performance, while the display effect advantage of the second visualization implementation tool is not enough to make up for its performance disadvantage.

[0119] S55, based on the authority scope of each role and the target wide table, calling the visualization implementation tool to create a data access interface corresponding to each role.

[0120] After determining the visualization implementation tools corresponding to each role, you can call the corresponding visualization implementation tools based on the authority scope of each role and the target wide table to create the data access interface corresponding to each role. Specifically, you can determine the display content and operation functions of the data access interface based on the authority scope of each role, and then use the corresponding visualization implementation tools to create the interface. For example, you can use the view creation tool to create view components such as data tables and charts, use the front-end tool to implement the layout and style design of the interface, and use the middleware to implement data filtering, sorting, paging and other functions.

[0121] In summary, this embodiment determines the corresponding visualization implementation tool according to the authority scope of each role, which can avoid unnecessary computing overhead while ensuring data security and privacy. By evaluating different screening logics to determine the display effect and computing overhead of the alternative visualization implementation tool, the best balance can be achieved between the effect of data visualization and computing overhead.

[0122] Based on the above embodiments of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 4 , Figure 4 This is a flowchart of the fourth embodiment of the data management method of the present application. After step S55, steps S56 to S58 are also included:

[0123] Step S56, upon receiving a data access request sent by a user, determining the role information corresponding to the user;

[0124] When a user logs into the system, he / she will enter his / her login information such as username and password. When receiving a data access request sent by the user, the system can verify whether the user's login information is correct by comparing the user information in the database. If it is correct, the corresponding role information is determined based on the mapping relationship between the user's login information and its role information. For example, the user's username, password, role and other information are stored in the database, and the system can obtain the user's role information by querying the database.

[0125] Step S57, obtaining the data access target interface associated with the role information;

[0126] The data access target interface associated with the role information is obtained. The generation method of the data access target interface refers to the third embodiment, and this embodiment will not be described in detail here.

[0127] Step S58, outputting the data access target interface to the user to provide data access service.

[0128] In a feasible implementation of providing data access services, step S58 further includes steps S59 to S61:

[0129] Step S59, receiving a data operation instruction from the user based on the data access target interface;

[0130] Receive data operation instructions from users through the data access target interface to implement data operations and management.

[0131] Step S60, by parsing the data operation instruction, determining whether the data query instruction exceeds the authority of the user;

[0132] When parsing a user's data operation instructions, it is necessary to determine whether the instructions are within the user's authority scope to ensure that the user can only access and operate data within his or her authorized scope;

[0133] Step S61, when the data query instruction exceeds the authority range of the user, an error message is returned, and a prompt is given that the user authority is insufficient.

[0134] In the first possible implementation of query failure, if a user attempts to access a field that he does not have permission to view, the query may fail directly and return an error message. For example, the database system may throw an insufficient permission exception, prompting the user that he does not have sufficient permission to access the specified field.

[0135] In the second feasible implementation of query failure, when the data query instruction exceeds the user's authority, the data management system automatically hides or replaces the fields that the user does not have the authority to view with other values ​​(such as NULL or placeholders). In this way, the user can still query the data of other fields that the user has the authority to access, but cannot see sensitive information.

[0136] In the third possible implementation of query failure, when a user attempts to access a field for which he has no permission, the system may prompt the user to apply for the corresponding permission. The user can obtain the access permission by submitting an application or requesting approval from an administrator.

[0137] In summary, this embodiment can ensure that only authorized users can access data by determining the role information corresponding to the user and matching it with the data access target interface associated with the role information, thereby ensuring the security and privacy of the data.

[0138] By outputting the data access target interface to the user and receiving the user's data operation instructions based on the interface, a more convenient and efficient data access service can be provided, thereby improving the user experience.

[0139] By analyzing the user's data operation instructions and determining whether the data query instructions exceed the user's authority, refined data management can be achieved to ensure that the user can only access and operate data within their authorized scope.

[0140] By decoupling the user's role information and the data access target interface, the scalability and maintainability of the system can be improved, making it easier to expand and optimize functions later.

[0141] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the x data management method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0142] The present application provides a data management device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data management method in the above-mentioned embodiment one.

[0143] Reference below Figure 5 , which shows a schematic diagram of the structure of a data management device suitable for implementing an embodiment of the present application. The data management device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The data management device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0144] like Figure 5As shown, the data management device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data management device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data management device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a data management device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0145] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0146] The data management device provided by the present application adopts the data management method in the above embodiment to solve the technical problem of data management. Compared with the prior art, the beneficial effects of the data management device provided by the present application are the same as the beneficial effects of the data management method provided by the above embodiment, and other technical features in the data management device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0147] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0149] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data processing method in the above-mentioned embodiment.

[0150] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0151] The computer-readable storage medium may be included in the data management device; or may exist independently without being installed in the data management device.

[0152] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the data management device, the data management device can perform data management.

[0153] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0154] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0155] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0156] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data management method, and can solve the technical problems of data management. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the data management method provided in the above-mentioned embodiment, and will not be elaborated here.

[0157] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A data management method, characterized in that: The method comprises the following steps: When receiving the wide table building instruction, output the business requirement configuration interface; Determine or obtain demand data based on the business demand configuration action received by the business demand configuration interface; According to the data source and data range included in the demand data, the original data to be processed is acquired, the original data is processed, and fields are extracted from the processed original data, and key fields and parameter fields in the original data are identified and extracted according to the usage scenario and data structure of the data; Determine a programming language code segment of a corresponding function according to the types of the key field and the parameter field and the corresponding business scenario; passing the key field and the parameter field as parameters to the programming language code segment, and executing the programming language code segment to generate a target wide table; Outputting a target wide table editing interface, and receiving a user's permission configuration action based on the wide table configuration interface; Based on the permission configuration action, determine or obtain permission configuration information, and determine the permission scope of each role by parsing the permission configuration information, the permission scope includes data access scope, data operation type and data access level, the data access scope includes the time range, geographical range and business object range of the data, and the data access scope is used to enable users to access data in a specific area, a specific time period or a specific business type; Determine, according to the authority scope of each role, a first visualization implementation tool corresponding to each role; detecting an existing technology stack and determining a second visualization implementation tool that is compatible with the existing technology stack; Evaluating display effects of the first visualization implementation tool and the second visualization implementation tool; When the display effect of the second visualization implementation tool is better than the display effect of the first visualization implementation tool; evaluating the computational overhead of the second visualization implementation tool and the first visualization implementation tool; When the computational overhead of the second visualization implementation tool is less than or equal to the computational overhead of the first visualization implementation tool, determining that the second visualization implementation tool is the visualization implementation tool to be called; When the computational overhead of the second visualization implementation tool is greater than the computational overhead of the first visualization implementation tool, determining that the first visualization implementation tool is the visualization implementation tool to be called, the visualization implementation tool comprising at least one of a view creation tool, a front-end tool, and a middleware; Determine the fields that the user has the right to access according to the scope of authority, and create a view containing the fields that the user has the right to access through the view creation tool, wherein the view is used to enable the user to access the data that the user has the right to view; The middleware creates and provides a data access interface corresponding to each role according to the authority scope and the view, so that users can query and analyze data according to their needs and avoid direct exposure of underlying data.

2. The method according to claim 1, characterized in that After the step of creating and providing a data access interface corresponding to each role according to the authority scope and the view through the middleware, the method further includes: Upon receiving a data access request sent by a user, determining role information corresponding to the user; Obtaining the data access target interface associated with the role information; The data access target interface is output to the user to provide data access service.

3. The method according to claim 2, characterized in that After the step of outputting the data access target interface to the user to provide data access service, the method further includes: receiving a data operation instruction from the user based on the data access target interface; By parsing the data operation instruction, determining whether the data operation instruction exceeds the authority scope of the user; When the data operation instruction exceeds the authority of the user, an error message is returned, and a prompt is given that the user has insufficient authority.

4. A data processing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data management method according to any one of claims 1 to 3.

5. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data management method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Data change information synchronization method and apparatus

    CN108287886A

  • Method and device for generating wide table

    CN110399600A

  • List page designer

    CN112363722A

  • Data analysis method, device and equipment and computer readable medium

    CN117609233A