Business data processing method and device, electronic equipment, computer readable storage medium and computer program product
By obtaining the account type and organizational structure, determining operation permissions and adjusting operation statements, the problem of increasing storage burden of data annotations in the database is solved, and business security and operation efficiency are improved.
Patent Information
- Application Number
- CN202411020263.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-12-03
AI Technical Summary
In order to avoid data leakage in the data query service, the prior art needs to label all data in the database, resulting in an increase in the burden of storing data in the database, which is inefficient, and the additional data requires additional annotation, which reduces the efficiency of storing data in the database.
By responding to the account operation request, obtain the account type and organizational structure, determine the account operation permissions, and adjust the operation statements according to the permissions, perform target operations, and ensure that the account can only access data within its permission scope.
It improves the accuracy of operation permissions, enhances business security, and improves operation efficiency through data isolation, reducing storage pressure on the database.
Smart Images

Figure CN119066699A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, and in particular to a method, device, electronic device, computer-readable storage medium and computer program product for processing business data. Background Art
[0002] When providing data query services to different enterprises, in order to ensure that the enterprise sending the data query request can only query the data of its own enterprise and avoid leaking the data of other enterprises, it is necessary to label the data in the database, and then divide the data in the database into multiple categories according to different enterprises, so that when one of the enterprises sends a data query request, only the data of that enterprise can be queried. Since each data in the database needs to be labeled, the burden of storing data in the database is increased. Summary of the invention
[0003] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for processing business data, which can improve the security and efficiency of executing business.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a method for processing business data, the method comprising:
[0006] In response to an operation request from a first account for a target business, obtaining an account type of the first account and an organizational structure of an organization to which the first account belongs;
[0007] The operation request is used to request to perform a target operation on the business data of the target business, and the organizational structure is used to feedback the correspondence between the account in the organization and the operation authority that the account has for the target business;
[0008] Determining, based on the account type of the first account and the organizational structure, a first operation authority that the first account has for the target business;
[0009] Based on the first operation authority, adjusting an operation statement for performing a target operation on the business data to obtain a target operation statement;
[0010] Based on the target operation statement, a corresponding operation is performed on the relevant business data of the target business.
[0011] An embodiment of the present application provides a device for processing business data, including:
[0012] a data acquisition module, configured to acquire, in response to an operation request of a first account for a target business, an account type of the first account and an organizational structure of an organization to which the first account belongs, wherein the operation request is used to request to perform a target operation on business data of the target business, and the organizational structure is used to feedback a correspondence between an account in the organization and the operation authority that the account has for the target business;
[0013] an authority determination module, configured to determine, based on the account type of the first account and the organizational structure, a first operation authority that the first account has for the target business;
[0014] A statement adjustment module, configured to adjust an operation statement for performing a target operation on the business data based on the first operation authority to obtain a target operation statement;
[0015] The business operation module is used to perform corresponding operations on the relevant business data of the target business based on the target operation statement.
[0016] In the above scheme, the data acquisition module is also used to respond to a login request of the first account for the business application corresponding to the target business, and obtain the first account type and login password of the first account carried in the login request; in response to the login request, when it is determined that the first account matches the login password, distribute the first operation token corresponding to the first account type to the first account based on the mapping relationship between the account type and the operation token; in response to the first account's access request for the target business, obtain the second account type and second operation token of the first account carried in the access request; in response to the second account type being consistent with the first account type and the second operation token being consistent with the first operation token, use the first account type or the second account type as the account type of the first account, and store the account type and account information of the first account, wherein the account information at least includes the organizational structure of the organization to which the first account belongs.
[0017] In the above scheme, the data acquisition module is also used to perform attribute detection on the business data to obtain a detection result; in response to the detection result indicating that the business data does not belong to shared data, the account type of the first account and the organizational structure of the organization to which the first account belongs are obtained.
[0018] In the above scheme, the data acquisition module is also used to perform the target operation on the business data based on the operation statement in response to the detection result indicating that the business data belongs to shared data; or, in response to the account type of the first account being an administrator account of the organization, perform the target operation on the business data based on the operation statement.
[0019] In the above scheme, the authority determination module is also used to query the corresponding relationship fed back by the organizational structure based on the account type of the first account; and determine the operation authority corresponding to the account type of the first account obtained by query as the first operation authority that the first account has for the target business.
[0020] In the above scheme, the statement adjustment module is also used to respond to the first operation authority being used to limit the business data scope for executing the target operation, and based on the first operation authority, determine the target business data in the total business data of the target business for which the first account has the operation authority to execute the target operation; in response to the target business data being inconsistent with the business data requested by the operation request, obtain a first operation statement for executing the target operation on the target business data, and a second operation statement for executing the target operation on the business data requested by the operation request; perform intersection fusion processing on the first operation statement and the second operation statement to obtain a target operation statement; and based on the target operation statement, execute the target operation on the target business data of the target business.
[0021] In the above scheme, the statement adjustment module is also used to respond to the first operation permission being used to limit the type of operation performed on the business data requested by the operation request, and based on the first operation permission, determine a specific operation for which the first account has the first operation permission on the business data; in response to the specific operation being different from the target operation, obtain a third operation statement for performing the target operation on the business data requested by the operation request; adjust the keyword corresponding to the target operation in the third operation statement to a second keyword corresponding to the specific operation to obtain a target operation statement; and based on the target operation statement, perform the specific operation on the business data requested by the operation request.
[0022] In the above scheme, the statement adjustment module is also used to adjust the first operation permission in response to the first account carrying a permission adjustment label to obtain a second operation permission, and the permission adjustment label includes a permission upgrade label and a permission downgrade label; based on the first operation permission, obtain a fourth operation statement for the first account to perform a target operation on the business data, and the third operation statement corresponds to the first operation permission; adjust the fourth operation statement to obtain a target operation statement corresponding to the second operation permission.
[0023] In the above solution, the statement adjustment module is further used to restore the second operation authority of the first account for the target business to the first operation authority.
[0024] An embodiment of the present application provides an electronic device, the electronic device comprising:
[0025] A memory for storing computer executable instructions;
[0026] The processor is used to implement the business data processing method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0027] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for implementing a method for processing business data provided by an embodiment of the present application when executed by a processor.
[0028] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, the business data processing method provided by the embodiment of the present application is implemented.
[0029] The embodiments of the present application have the following beneficial effects:
[0030] In response to an operation request from a first account for a target business, the account type of the first account and the organizational structure of the organization to which the first account belongs are obtained; wherein the operation request is used to request to perform a target operation on the business data of the target business, and the organizational structure is used to feedback the correspondence between the account in the organization and the operation authority that the account has for the target business, and based on the account type and organizational structure of the first account, the first operation authority that the first account has for the target business is determined; in this way, by determining the operation authority of the account through the organizational structure, the authority of the account can be limited to the organization, thereby improving the accuracy of the operation authority and improving the security of executing the business; in addition, based on the first operation authority, the operation statement for performing the target operation on the business data is adjusted to obtain the target operation statement; based on the target operation statement, the corresponding operation is performed on the relevant business data of the target business, and the isolation of the data can be achieved by adjusting the target operation statement, thereby improving the efficiency of operating the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 1 is a schematic diagram of the architecture of a business data processing system 100 provided in an embodiment of the present application;
[0032] Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application;
[0033] Figure 3A This is a first flow chart of the method for processing business data provided by an embodiment of the present application;
[0034] Figure 3BIt is a second flow chart of the method for processing business data provided in an embodiment of the present application;
[0035] Figure 3C It is a third flow chart of the method for processing business data provided in an embodiment of the present application;
[0036] Figure 4 It is a schematic diagram of the organizational structure provided in the embodiment of the present application;
[0037] Figure 5 It is a general flow chart of the method for processing business data provided by the embodiment of the present application;
[0038] Figure 6 It is a permission interception flow chart provided in an embodiment of the present application;
[0039] Figure 7 It is a flowchart of creating data provided by an embodiment of the present application.
[0040] It should be pointed out that the above-mentioned "first" and "second" are only used to distinguish different solutions, and do not represent the degree of superiority or inferiority of the solutions or the priority in the implementation process. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0042] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0043] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0044] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0045] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0046] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of authorization of laws and regulations and the personal information subject.
[0047] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0048] 1) Operation statements: Structured Query Language (SQL) is a standard computer language for managing and operating relational databases. SQL statements are widely used in various database management systems (DBMS), such as MySQL, PostgreSQL, Oracle, SQL Server, etc. SQL statements can perform various operations, including but not limited to: data definition (used to create, modify and delete objects in the database, such as tables, views and indexes), data manipulation (used to insert, update, delete and query data in the database), data query (mainly `SELECT` statement, used to retrieve data from the database) and data control (used to manage database access rights and security levels, as well as create and manage user accounts).
[0049] 2) Operation permissions: Operation permissions refer to the ability of database users to be authorized to execute specific SQL commands. Operation permissions are managed and assigned by database administrators through data control language (DCL). Operation permissions determine which SQL statements users can execute and which objects in the database they can operate on, such as tables, views, indexes, etc.
[0050] In the related art, in order to avoid data leakage, the method of isolating data in a database is often to label all the data in the database so as to divide the data in the database into multiple categories according to different enterprises.
[0051] Although this method can achieve data isolation, it requires all data in the database to be labeled, which has low efficiency in executing business. At the same time, the database needs to store label data for each data, which increases the pressure on the database to store data. And when new data is added to the database, it also needs to be labeled, which reduces the efficiency of database data storage.
[0052] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for processing business data, which can improve the security and efficiency of executing business. The following describes an exemplary application of the business data processing device provided in the embodiments of the present application. The device provided in the embodiments of the present application can be implemented as various types of terminals such as laptops, tablet computers, desktop computers, set-top boxes, smart phones, smart speakers, smart watches, smart TVs, and vehicle-mounted terminals, and can also be implemented as servers. Below, an exemplary application when the device is implemented as a server will be described.
[0053] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the business data processing system 100 provided in an embodiment of the present application. To realize a business data processing application, the terminal 400 is connected to the server 200 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0054] The terminal 400 is used to send an operation request of the target service to the server 200 through the network 300 in response to the user's operation on the target service.
[0055] The server 200 is used to, in response to an operation request of the first account for the target business, obtain the account type of the first account and the organizational structure of the organization to which the first account belongs; wherein the operation request is used to request to perform a target operation on the business data of the target business, and the organizational structure is used to feedback the correspondence between the account in the organization and the operation authority that the account has for the target business; based on the account type and organizational structure of the first account, determine the first operation authority that the first account has for the target business; based on the first operation authority, adjust the operation statement for performing the target operation on the business data to obtain the target operation statement; based on the target operation statement, perform a corresponding operation on the relevant business data of the target business, and return the operation result obtained after performing the corresponding operation to the terminal 400 through the network 300, so that the terminal 400 displays the operation result to the user.
[0056] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0057] See also Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application, Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not described in detail. Figure 2 Various buses are labeled as bus system 540 .
[0058] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0059] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0060] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.
[0061] The memory 550 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.
[0062] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0063] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0064] A network communication module 552, used to reach other electronic devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0065] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);
[0066] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.
[0067] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The processing device 555 of the business data stored in the memory 550 is shown, which can be software in the form of programs and plug-ins, etc., including the following software modules: data acquisition module 5551, authority determination module 5552, statement adjustment module 5553 and business operation module 5554. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.
[0068] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the business data processing method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), programmable logic devices (Programmable Logic Device, PLD), complex programmable logic devices (Complex Programmable Logic Device, CPLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other electronic components.
[0069] The following describes the method for processing business data provided by the embodiment of the present application. As mentioned above, the electronic device for implementing the method for processing business data in the embodiment of the present application may be a terminal, a server, or a combination of the two. Therefore, the execution subject of each step will not be repeatedly described below.
[0070] See also Figure 3A , Figure 3A This is a first flow chart of the method for processing business data provided by the embodiment of the present application, which will be combined with Figure 3A Steps 101 to 104 are shown for explanation.
[0071] In step 101, in response to an operation request from a first account for a target business, the account type of the first account and the organizational structure of the organization to which the first account belongs are obtained; wherein the operation request is used to request to perform a target operation on the business data of the target business, and the organizational structure is used to feedback the correspondence between the accounts in the organization and the operation permissions that the accounts have for the target business.
[0072] As an example, the account type may be a database administrator account, an organization data administrator account, and a tenant account. The database administrator account needs to maintain all the data included in the database, so the database administrator account can operate on all the data included in the database. The organization data administrator account needs to maintain all the data of the organization, so the organization data administrator can operate on all the data of the organization. The tenant account may be an account of a user included in the organization, and each tenant account has different access rights.
[0073] As an example, the organizational structure can be the subordinate relationship of each department in the enterprise. The organizational structure can be in the form of an organizational tree, or an organizational chart, a network diagram representing the connections and communication paths within the organization, a department responsibility diagram, a role-responsibility matrix, a functional decomposition diagram, etc. The organizational tree is used as an example for explanation below.
[0074] See also Figure 4 , Figure 4 is a schematic diagram of the organizational structure provided in the embodiment of the present application. Figure 4 In the organization tree, department 401 can be the highest-level department in the enterprise, and department 402 and department 403 can be the second-highest-level departments in the enterprise. Department 404, department 405 and department 406 are the third-highest-level departments in the enterprise, where department 404 and department 405 are subordinate to department 402, and department 406 is subordinate to department 403. Department 407 and department 408 are the fourth-highest-level departments in the enterprise, where department 407 is subordinate to department 406, and department 408 is subordinate to department 404. In the organization tree, the subordinate relationship between departments indicates that the superior department can obtain the data of the subordinate department. For example, the account of department 404 can obtain the data of department 408 based on the data of department 404. The subordinate relationship between departments can be a superior-subordinate relationship. For example, department 406 can be the sales headquarters, and department 407 is the sales department in XX. Therefore, department 407 is subordinate to department 406.
[0075] As an example, if the organizational structure of the first account is Figure 4 The organization structure shown, and the organization to which the first account belongs is Figure 4 If the first account is department 404, the operation permission corresponding to the first account is that the first account can access the data of department 404 and department 408, and the first account cannot access data other than department 404 and department 408.
[0076] As an example, the target operation may be data query, data editing, data downloading, data forwarding, and the like.
[0077] In some embodiments, before executing step 101 in response to the operation request of the first account for the target business and obtaining the account type of the first account and the organizational structure of the organization to which the first account belongs, the following technical solutions can also be executed: in response to the login request of the first account for the business application corresponding to the target business, obtaining the first account type and login password of the first account carried in the login request; in response to the login request, when it is determined that the first account matches the login password, based on the mapping relationship between the account type and the operation token, distributing the first operation token corresponding to the first account type to the first account; in response to the access request of the first account for the target business, obtaining the second account type and second operation token of the first account carried in the access request; in response to the second account type being consistent with the first account type and the second operation token being consistent with the first operation token, using the first account type or the second account type as the account type of the first account, and storing the account type and account information of the first account, wherein the account information at least includes the organizational structure of the organization to which the first account belongs.
[0078] As an example, before executing a business, you need to log in to the first account. After the first account logs in successfully, a first operation token corresponding to the first account will be issued and the first account type of the first account will be determined. When the first account executes the target business, a second operation token is issued and the second account type of the first account is obtained. Subsequent operations can only be performed when the first operation token is the same as the second operation token and the first account type is the same as the second account type.
[0079] As an example, after account A successfully logs in, it is determined that account A is a tenant account, and an operation token B corresponding to account A is issued. When account A executes the target business, an operation token C is issued to account A, and the account type of account A is determined to be a database administrator account. Since operation token B is different from operation token C, and the account type of account A has changed, it indicates that the state of account A when logging in is different from the state when executing the business, so account A is denied access to data.
[0080] As an example, after account A successfully logs in, it is determined that account A is a tenant account, and an operation token B corresponding to account A is issued. When account A executes the target business, operation token B is issued to account A, and the account type of account A is determined to be a tenant account. Since the operation tokens are the same and the account type of account A is also the same, this indicates that the state of account A at login and when executing the business is the same, so account A is allowed to access the data.
[0081] As an example, after allowing an account to access data, the acquired account type and account information can be stored, where the account information includes at least: the organizational structure to which the first account belongs, and may also include information such as the role of the first account and the number of the organizational structure, so that there is no need to re-acquire the information during subsequent business execution, thereby improving the efficiency of business execution.
[0082] Through the above method, the account type and token of the account are verified to see if they have changed before each business execution, which can prevent users from modifying the account's access rights through illegal operations after logging into the account, avoid data leakage, and improve business security.
[0083] In some embodiments, the acquisition of the account type of the first account and the organizational structure of the organization to which the first account belongs in step 101 may be performed by Figure 3B Steps 1011 to 1012 shown implement:
[0084] In step 1011, attribute detection is performed on the business data to obtain detection results.
[0085] As an example, the database not only stores the private data of each group, but also stores shared data, where the shared data can be queried by anyone and has no privacy. For example, the shared data may be that the address of organization A is No. XX, XX Street, XX City, and the communication phone number of organization A is XXX.
[0086] As an example, in order to save procedures, the business data may be first subjected to attribute detection to determine whether the business data is public data.
[0087] In step 1012, in response to the detection result indicating that the business data is not shared data, the account type of the first account and the organizational structure of the organization to which the first account belongs are obtained.
[0088] As an example, if the business data is not public data, it is necessary to obtain the account type and organizational structure of the first account.
[0089] In some embodiments, in response to a detection result indicating that the business data is shared data, a target operation is performed on the business data based on an operation statement; or, in response to the account type of the first account being an administrator account of an organization, a target operation is performed on the business data based on an operation statement.
[0090] As an example, if the business data is shared data, the target operation can be directly executed based on the operation statement. Alternatively, if the first account type is an administrator account of the organization, all data in the database can be directly accessed. In this case, the target operation can also be directly executed based on the operation statement.
[0091] Through the above method, before executing the target operation, it is possible to first determine whether the business data is shared data and whether the account type of the first account is an administrator account. Then, when the business data is shared data or the account type is an administrator account, the target operation can be directly executed, thereby improving the efficiency of executing business.
[0092] In step 102, based on the account type and organizational structure of the first account, a first operation permission of the first account for the target business is determined.
[0093] In some embodiments, determining the first operating authority of the first account for the target business based on the account type and organizational structure of the first account in step 102 can be achieved through the following technical solution: based on the account type of the first account, querying the corresponding relationship fed back by the organizational structure; and determining the operating authority corresponding to the account type of the first account obtained by querying as the first operating authority of the first account for the target business.
[0094] As an example, see Figure 4 If the account type of the first account is a tenant account, query the organization to which the first account belongs. Figure 4 As shown in the figure, the corresponding relationship of the organizational structure feedback can be that the subordinate organization of the first account's organization 404 is organization 408. Therefore, the operation authority of the first account includes the ability to operate the data of organization 404 and organization 408.
[0095] As an example, after querying the corresponding relationship of the organizational structure feedback, you can also send an access application to the database administrator, and the database administrator will adjust the operation permissions of the first account after reviewing the access application. Figure 4 If the organization to which the first account belongs is Figure 4 As shown in the figure, the corresponding relationship of the organizational structure feedback is that the subordinate organization of the first account's organization 404 is organization 408. At this time, the first account sends an access application to access the data of organization 407, and the database administrator allows the first account to access the data of organization 407 after review. At this time, the operation permissions of the first account include the ability to operate the data of organization 404, organization 407, and organization 408.
[0096] In step 103, based on the first operation authority, an operation statement for executing a target operation on the business data is adjusted to obtain a target operation statement.
[0097] In some embodiments, in step 103, based on the first operation authority, the operation statement for performing the target operation on the business data is adjusted to obtain the target operation statement, which can be implemented by the following technical solution: in response to the first operation authority being used to limit the business data scope for performing the target operation, based on the first operation authority, target business data in the total business data of the target business in which the first account has the operation authority to perform the target operation is determined; in response to the target business data being inconsistent with the business data requested by the operation request, a first operation statement for performing the target operation on the target business data and a second operation statement for performing the target operation on the business data requested by the operation request are obtained; intersection and fusion processing is performed on the first operation statement and the second operation statement to obtain the target operation statement; based on the target operation statement, the target operation is performed on the target business data of the target business.
[0098] As an example, if the target operation is to query users named "zhouyu", and the business data scope limited by the first operation authority is organization A (numbered 7) and organization B (numbered 8), then the target business data that can be executed by the first account is the data of organization A and the data of organization B. If the business data scope corresponding to the first operation statement for executing the target operation is organization A and organization C (numbered 9), at this time, the target business data and the business data requested by the operation request are inconsistent, and the first operation statement for executing the target operation on the business target data is selected*from user where name="zhouyu"and tenant_id in(7,8), and the second operation statement is selected*from user where name="zhouyu"andtenant_id in(8,9). At this time, the first operation statement and the second operation statement are subjected to intersection fusion processing, and the target operation statement is obtained as select*from user where name="zhouyu"and tenant_id in(8).
[0099] In some embodiments, in step 103, based on the first operation authority, the operation statement for performing the target operation on the business data is adjusted to obtain the target operation statement, which can be implemented by the following technical solution: in response to the first operation authority being used to limit the type of operation performed on the business data requested by the operation request, based on the first operation authority, determining a specific operation for which the first account has the first operation authority on the business data; in response to the specific operation being different from the target operation, obtaining a third operation statement for performing the target operation on the business data requested by the operation request; adjusting the keyword corresponding to the target operation in the third operation statement to the second keyword corresponding to the specific operation to obtain the target operation statement; based on the target operation statement, performing the specific operation on the business data requested by the operation request.
[0100] As an example, if the first operation permission limits the first account to query data but cannot download the corresponding data, if the target operation at this time is to change the data of the "zhouyu" user in the database, the corresponding second operation statement is UPDATE users SET username='new_username', WHERE username='zhouyu'. Since the first account cannot change the data, the change instruction in the first operation statement is replaced with a query instruction, and the third operation statement is select*from user where name='zhouyu'.
[0101] In some embodiments, in step 103, based on the first operation authority, the operation statement for performing the target operation on the business data is adjusted, and the target operation statement can be obtained by Figure 3C Steps 1031 to 1033 shown implement:
[0102] In step 1031, in response to the first account carrying a permission adjustment tag, the first operation permission is adjusted to obtain a second operation permission, and the permission adjustment tag includes a permission upgrade tag and a permission downgrade tag.
[0103] As an example, in some special cases, for example, when a new employee is added to a department in an organization (or group), the employee's information needs to be registered. In order to avoid the information having been registered by other departments, it is necessary to determine whether the employee is included in all the data included in the group. The operating permissions corresponding to the registered employee's account can only access the data of this department. At this time, the permissions of the registered employee's account need to be adjusted.
[0104] As an example, a permission adjustment tag may be added to the request to adjust the permission of the first account.
[0105] In step 1032, based on the first operation authority, a fourth operation statement for the first account to perform a target operation on the business data is obtained, and the fourth operation statement corresponds to the first operation authority.
[0106] As an example, the fourth operation statement corresponding to the first operation authority may be obtained to adjust the fourth operation statement in a subsequent step, or this step may be skipped to directly obtain a subsequent target operation statement corresponding to the second operation authority.
[0107] In step 1033, the fourth operation statement is adjusted to obtain a target operation statement corresponding to the second operation authority.
[0108] As an example, when the operation request executes to the corresponding business step, if the operation request includes a permission adjustment tag, the operation permission of the first account is upgraded or reduced in this step, and based on the adjusted operation permission, the fourth operation statement is adjusted to obtain the target operation statement.
[0109] As an example, following the above example, when the request for registering employee information is executed to compare whether the employee is the only data in the group, the authority of the first account can be upgraded to be able to compare all data included in the group.
[0110] As an example, the fourth operation statement is select*from user where name=”zhouyu”andtenant_id in(7,8). The eight departments in the group are numbered 1 to 8, and the corresponding target operation statement is select*from user where name=”zhouyu”and tenant_id in(1,2,3,4,5,6,7,8).
[0111] In some embodiments, after executing step 1033, the following technical solution may also be executed: restoring the second operation authority of the first account for the target business to the first operation authority.
[0112] As an example, in order to ensure data security, after the first account completes the target operation, the second operation permission of the first account needs to be restored to the first operation permission.
[0113] As an example, the first operation permission is to access the data of department A, and the second operation permission is to access the data of department A, department B, and department C. After the task is completed, the operation permission of the first account needs to be restored to access the data of department A.
[0114] In step 104, based on the target operation statement, a corresponding operation is performed on the relevant business data of the target business.
[0115] As an example, the target operation statement is select * from user where name = "zhouyu" and tenant_id in (1, 2), and the user named "zhouyu" is searched in the data corresponding to the departments with department numbers 1 and 2.
[0116] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0117] In the case of client-oriented business, the business corresponding to the database may be very complex, and data isolation is a very important link. In the process of data isolation, it is necessary to control that employees of a certain group (company) can only see their own internal data and cannot see the data of other groups; and different departments within the group can only see the data of specific departments and organizations; in addition, the back-end administrator can see the data of all groups.
[0118] Combine the following Figure 5 To explain, Figure 5 It is a general flow chart of the method for processing business data provided in the embodiment of the present application.
[0119] In step 501, the token is verified.
[0120] First, you need to obtain the user's user type. Specifically, the request header sent by the client will carry the user type and token for access request. Before the access request, you need to log in (user type, user name and password are required when logging in, and the token can be obtained after successful login).
[0121] After obtaining the user type and token, you need to verify the user type and token. In order to ensure system security, there is a certain mapping relationship between the user type and the token. When using user type = tenant to log in, the token obtained can only be accessed using the same user type = tenant and the obtained token in subsequent requests. If the user type is changed to another user type at this time, the system cannot be accessed.
[0122] In step 502, user information corresponding to the token is stored.
[0123] After successfully verifying the user type and token, the current user type can be stored. At the same time, some common user information corresponding to the token can be stored, such as the user's role, the organization ID set of the user's data permissions, and the organization to which the user belongs. This can be directly obtained and used in subsequent interceptors to improve performance.
[0124] In step 503, the user type is determined.
[0125] If the user type is a tenant, execute step 504 ; if the user type is an administrator, execute step 507 .
[0126] In step 504, the user type is a tenant.
[0127] Determine the user type as tenant.
[0128] In step 505, the user type is stored.
[0129] During the execution of this business, it is determined that the user type corresponding to the request is a tenant.
[0130] In step 506, the data permission aspect interceptor.
[0131] When each business is executed, the corresponding permissions when the user type is a tenant are determined, and operations that are not authorized are intercepted.
[0132] In step 507, the user type is administrator.
[0133] Make sure the user type is Administrator.
[0134] In step 508, the user type is stored.
[0135] During the execution of this business, it is determined that the user type corresponding to the request is an administrator.
[0136] Lower combination Figure 6 The above steps 503 to 508 are described in detail. Figure 6 This is a permission interception flow chart provided in an embodiment of the present application.
[0137] The following is a specific example. The current client user needs to query the data of the name zhouyu. If no interception is done, the structured query language (SQL) statement executed in the background is "select * from user where name = 'zhouyu'"; if this SQL statement is executed directly, the following problems will occur.
[0138] If the data name = 'zhouyu' is in Group A, and the currently logged in user is Group B, then users of Group B can query the data of Group A, which may lead to data leakage. Therefore, when executing the above SQL statements, you can manually add filtering conditions to each business logic. Although this can reduce the risk of data leakage to a certain extent, it will also lead to data leakage if there is a mistake in writing.
[0139] In step 601, the user type is determined.
[0140] If the user type is a tenant, execute step 603. If the user type is a system administrator, execute step 602.
[0141] In step 602, the user type is a system administrator.
[0142] If the user type is a system administrator, SQL statements can be executed directly.
[0143] In step 603, the user type is tenant.
[0144] Determine the user type as tenant.
[0145] In step 604, it is queried whether the data is shared data.
[0146] Determine whether the queried table ignores data permissions (some data is globally applicable, such as provinces, cities, administrative regions, etc., and there is no problem of leakage of these data). Whether this configuration table is ignored is configured in our application configuration file. If this table is an ignored table, then the native SQL is used directly without any processing.
[0147] In step 605, it is determined whether the user is a group administrator.
[0148] If the queried data is not data in the ignored table, the current user type can be obtained based on the predicted stored user type. If the current user type is a system administrator, it can be considered that this is an operation by a backend operator, so all group data can be seen and there is no data leakage. Data isolation is not required at this time.
[0149] If the current user type is not a system administrator, it can be considered that this user request is an operation of an account within the group. At this time, the data permission range can only be the data of the entire group (company), and the data of other groups (companies) cannot be seen. At this time, the role of this account is determined. If it is the super administrator (GROUP_ADMIN) of the group, we will load the organization to which the current account belongs, and then find the tree of this group based on the organization, and treat all the data in the tree as accessible data.
[0150] In step 606, the operation statement is rewritten.
[0151] The original operation statement is select * from user where name = 'zhouyu', and the rewritten operation statement is select * from user where name = "zhouyu" and tenant_id in (1, 2, 3, 4, 5, 6, 7, 8).
[0152] In step 607, the data permission configuration is loaded.
[0153] If the current user is not an administrator and the user type is a tenant, the configured data permissions are loaded from the request based on the pre-stored user type. The requested data permissions are represented by the organization ID set. If the assigned data permission organization ID is 7 (assuming it is the sales department) and 8 (assuming it is the development department), then this request can only access the data of the sales department and the development department.
[0154] In step 608, the operation statement is rewritten.
[0155] The original operation statement is select * from user where name = 'zhouyu', and the rewritten operation statement is select * from user where name = "zhouyu" and tenant_id in (7, 8).
[0156] The following introduces an application of the business data processing method provided by this application in a special scenario.
[0157] In actual applications, the following situation may occur: a user needs to be created for an account in Group A. The product requires that the user's name is unique within the group, and the current account is not an administrator. When creating a user, check whether the user name exists. If it exists, it cannot be created. Assume that the person zhangsan is only in Organization 6 (Project Department), and the current account has data permissions of 7 and 8. In this case, it is impossible to get zhangsan in Organization 6. At this time, another user named zhangsan will be created. If nothing is done, there will be two zhangsans in the system. In response to the above problem, the embodiment of the present application can be implemented in the following way. See. Figure 7 , Figure 7 It is a flowchart of creating data provided by an embodiment of the present application.
[0158] In step 701, the user type is a tenant.
[0159] Determines that the user type of the received request is a tenant.
[0160] In step 702, the interface uses a permission adjustment tag.
[0161] Add a permission adjustment tag (such as @IgnoreDataPermission) to an interface that does not require data permissions, intercept interface requests with this tag, and do not process data permissions for the connected request, but still ensure that the query scope of the request is the entire group and cannot cross groups. Specifically, modify the user type of the current request in the pre-interception logic and change the user type to group administrator (GROIUP_ADMIN).
[0162] In step 703, the operation statement corresponding to the operation authority is rewritten.
[0163] Rewrite the operation statement based on the modified operation permissions.
[0164] In step 704, the operation statement is executed.
[0165] Execute the rewritten operation statement.
[0166] In step 705, the result is obtained.
[0167] Get the execution result of the rewritten operation statement.
[0168] In step 706, the operation permissions are restored.
[0169] Before modifying the requested permissions, you need to record the current actual user type. Remember, when the interface with @IgnoreDataPermission is executed, change the requested user type back to the previous user type.
[0170] In step 707, other services are executed.
[0171] In subsequent requests, data permissions can still be isolated, and only the interface with the @IgnoreDataPermission tag is released.
[0172] In some special business scenarios, you need to query globally unique numbers, which means you need to query across groups. For example, when creating a customer, the product requires the phone number to be globally unique, so you need to query across groups.
[0173] To solve the above problems, the embodiments of the present application can be implemented in the following ways.
[0174] If the user type is determined to be a tenant, a permission adjustment tag (such as @SystemDataPermission) will be added to an interface that requires global query, and the interface request with this tag will be intercepted. The intercepted request will not be processed for data permissions to ensure that it can cross groups. In the pre-interception logic, the user type of the current request is modified to change the user type to a system administrator.
[0175] Before modifying the requested permissions, you need to record the current actual user type. Remember, after the interface with @IgnoreDataPermission is executed, you need to change the requested user type back to the previous user type. In subsequent requests, data permissions can still be isolated, and only the interface with the @IgnoreDataPermission tag is released.
[0176] Through the above method, based on the simple configuration tag annotation method, the data of different groups can be forced to be isolated to ensure absolute data security. The same group can be isolated on demand to ensure relative data security. Special businesses of the same group are not isolated to ensure general data sharing. The data permissions of system backend administrators are not isolated. The development workload is reduced, as well as the data leakage problem caused by the lax writing logic.
[0177] It is understandable that in the embodiments of the present application, related data such as user information is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.
[0178] The following further describes the exemplary structure of the business data processing device 555 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the service data processing device 555 of the memory 550 may include:
[0179] The data acquisition module 5551 is used to obtain the account type of the first account and the organizational structure of the organization to which the first account belongs in response to an operation request of the first account for the target business, wherein the operation request is used to request to perform a target operation on the business data of the target business, and the organizational structure is used to feedback the correspondence between the account in the organization and the operation authority that the account has for the target business;
[0180] The authority determination module 5552 is used to determine the first operation authority of the first account for the target business based on the account type of the first account and the organizational structure;
[0181] A statement adjustment module 5553, configured to adjust an operation statement for performing a target operation on the business data based on the first operation authority to obtain a target operation statement;
[0182] The business operation module 5554 is used to perform corresponding operations on the relevant business data of the target business based on the target operation statement.
[0183] In some embodiments, the data acquisition module 5551 is also used to respond to a login request from the first account for a business application corresponding to the target business, and obtain a first account type and a login password of the first account carried in the login request; in response to the login request, when it is determined that the first account matches the login password, distribute a first operation token corresponding to the first account type to the first account based on a mapping relationship between the account type and the operation token; in response to an access request from the first account for the target business, obtain a second account type and a second operation token of the first account carried in the access request; in response to the second account type being consistent with the first account type and the second operation token being consistent with the first operation token, use the first account type or the second account type as the account type of the first account, and store the account type and account information of the first account, wherein the account information includes at least the organizational structure of the organization to which the first account belongs.
[0184] In some embodiments, the data acquisition module 5551 is also used to perform attribute detection on the business data to obtain a detection result; in response to the detection result indicating that the business data does not belong to shared data, the account type of the first account and the organizational structure of the organization to which the first account belongs are obtained.
[0185] In some embodiments, the data acquisition module 5551 is also used to perform the target operation on the business data based on the operation statement in response to the detection result indicating that the business data belongs to shared data; or, in response to the account type of the first account being an administrator account of the organization, perform the target operation on the business data based on the operation statement.
[0186] In some embodiments, the authority determination module 5552 is also used to query the corresponding relationship fed back by the organizational structure based on the account type of the first account; and determine the queried operation authority corresponding to the account type of the first account as the first operation authority that the first account has for the target business.
[0187] In some embodiments, the statement adjustment module 5553 is also used to, in response to the first operation permission being used to limit the scope of business data for executing the target operation, determine, based on the first operation permission, the target business data in the total business data of the target business for which the first account has the operation permission to execute the target operation; in response to the target business data being inconsistent with the business data requested by the operation request, obtain a first operation statement for executing the target operation on the target business data, and a second operation statement for executing the target operation on the business data requested by the operation request; perform intersection fusion processing on the first operation statement and the second operation statement to obtain a target operation statement; and based on the target operation statement, execute the target operation on the target business data of the target business.
[0188] In some embodiments, the statement adjustment module 5553 is also used to, in response to the first operation permission being used to limit the type of operation performed on the business data requested by the operation request, determine, based on the first operation permission, a specific operation for which the first account has the first operation permission on the business data; in response to the specific operation being different from the target operation, obtain a third operation statement for performing the target operation on the business data requested by the operation request; adjust the keyword corresponding to the target operation in the third operation statement to a second keyword corresponding to the specific operation to obtain a target operation statement; and based on the target operation statement, perform the specific operation on the business data requested by the operation request.
[0189] In some embodiments, the statement adjustment module 5553 is also used to adjust the first operation permission in response to the first account carrying a permission adjustment label to obtain a second operation permission, and the permission adjustment label includes a permission upgrade label and a permission downgrade label; based on the first operation permission, obtain a fourth operation statement for the first account to perform a target operation on the business data, and the third operation statement corresponds to the first operation permission; adjust the fourth operation statement to obtain a target operation statement corresponding to the second operation permission.
[0190] In some embodiments, the statement adjustment module 5553 is further used to restore the second operation authority of the first account for the target business to the first operation authority.
[0191] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device executes the above-mentioned method for processing business data in the embodiment of the present application.
[0192] The present application embodiment provides a computer-readable storage medium in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will execute the method for processing business data provided by the present application embodiment, for example, Figure 3A The method for processing business data is shown.
[0193] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
[0194] In some embodiments, computer executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0195] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0196] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0197] In summary, the following technical effects can be achieved through the embodiments of the present application:
[0198] In response to an operation request from a first account for a target business, the account type of the first account and the organizational structure of the organization to which the first account belongs are obtained; wherein the operation request is used to request to perform a target operation on the business data of the target business, and the organizational structure is used to feedback the correspondence between the account in the organization and the operation authority that the account has for the target business, and based on the account type of the first account and the organizational structure, the first operation authority that the first account has for the target business is determined. By determining the operation authority of the account through the organizational structure, the authority of the account can be limited to the organization, which improves the accuracy of the operation authority and improves the security of executing the business. Based on the first operation authority, the operation statement for performing the target operation on the business data is adjusted to obtain the target operation statement; based on the target operation statement, the corresponding operation is performed on the relevant business data of the target business. Data isolation can be achieved only by adjusting the target operation statement, which improves the efficiency of operating the data.
[0199] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A method for processing business data, characterized in that: The method comprises: In response to an operation request from a first account for a target business, obtaining an account type of the first account and an organizational structure of an organization to which the first account belongs; The operation request is used to request to perform a target operation on the business data of the target business, and the organizational structure is used to feedback the correspondence between the account in the organization and the operation authority that the account has for the target business; Determining, based on the account type of the first account and the organizational structure, a first operation authority that the first account has for the target business; Based on the first operation authority, adjusting an operation statement for performing a target operation on the business data to obtain a target operation statement; Based on the target operation statement, a corresponding operation is performed on the relevant business data of the target business.
2. The method according to claim 1, characterized in that: Before obtaining the account type of the first account and the organizational structure of the organization to which the first account belongs in response to the operation request of the first account for the target business, the method further includes: In response to a login request from the first account for a service application corresponding to the target service, obtaining a first account type and a login password of the first account carried in the login request; In response to the login request, when it is determined that the first account matches the login password, based on a mapping relationship between account types and operation tokens, a first operation token corresponding to the first account type is distributed to the first account; In response to an access request from the first account to the target service, obtaining a second account type and a second operation token of the first account carried in the access request; In response to the second account type being consistent with the first account type and the second operation token being consistent with the first operation token, the first account type or the second account type is used as the account type of the first account, and the account type and account information of the first account are stored, wherein the account information includes at least the organizational structure of the organization to which the first account belongs.
3. The method according to claim 1, characterized in that: The obtaining the account type of the first account and the organizational structure of the organization to which the first account belongs includes: Performing attribute detection on the business data to obtain a detection result; In response to the detection result indicating that the business data is not shared data, an account type of the first account and an organizational structure of an organization to which the first account belongs are obtained.
4. The method according to claim 3, characterized in that The method further comprises: In response to the detection result indicating that the business data belongs to common data, performing the target operation on the business data based on the operation statement; or, In response to the account type of the first account being an administrator account of the organization, the target operation is performed on the business data based on the operation statement.
5. The method according to claim 1, characterized in that The determining, based on the account type of the first account and the organizational structure, a first operation authority that the first account has for the target business includes: Based on the account type of the first account, query the corresponding relationship of the organizational structure feedback; The queried operation authority corresponding to the account type of the first account is determined as the first operation authority of the first account for the target business.
6. The method according to claim 1, characterized in that The step of adjusting the operation statement for performing the target operation on the business data based on the first operation authority to obtain the target operation statement includes: In response to the first operation permission being used to limit the scope of business data for executing the target operation, based on the first operation permission, determining target business data in the total business data of the target business for which the first account has the operation permission to execute the target operation; In response to the target business data being inconsistent with the business data requested by the operation request, acquiring a first operation statement for executing the target operation on the target business data and a second operation statement for executing the target operation on the business data requested by the operation request; Performing intersection fusion processing on the first operation statement and the second operation statement to obtain a target operation statement; The performing corresponding operations on the relevant business data of the target business based on the target operation statement includes: Based on the target operation statement, the target operation is performed on the target business data of the target business.
7. The method according to claim 1, characterized in that The step of adjusting the operation statement for performing the target operation on the business data based on the first operation authority to obtain the target operation statement includes: In response to the first operation permission being used to limit the type of operation to be performed on the business data requested by the operation request, determining, based on the first operation permission, a specific operation for which the first account has the first operation permission on the business data; In response to the specific operation being different from the target operation, obtaining a third operation statement for executing the target operation on the business data requested by the operation request; Adjusting the key words corresponding to the target operation in the third operation statement to the second key words corresponding to the specific operation to obtain the target operation statement; The performing corresponding operations on the relevant business data of the target business based on the target operation statement includes: Based on the target operation statement, the specific operation is performed on the business data requested by the operation request.
8. The method according to claim 1, characterized in that The step of adjusting the operation statement for performing the target operation on the business data based on the first operation authority to obtain the target operation statement includes: In response to the first account carrying a permission adjustment tag, adjusting the first operation permission to obtain a second operation permission, the permission adjustment tag including a permission upgrade tag and a permission downgrade tag; Based on the first operation authority, obtaining a fourth operation statement for the first account to perform a target operation on the business data, where the fourth operation statement corresponds to the first operation authority; The fourth operation statement is adjusted to obtain a target operation statement corresponding to the second operation authority.
9. The method according to claim 8, characterized in that After performing a corresponding operation on the relevant business data of the target business based on the target operation statement, the method further includes: The second operation authority of the first account for the target business is restored to the first operation authority.
10. A device for processing business data, characterized in that: The device comprises: a data acquisition module, configured to acquire, in response to an operation request of a first account for a target business, an account type of the first account and an organizational structure of an organization to which the first account belongs, wherein the operation request is used to request to perform a target operation on business data of the target business, and the organizational structure is used to feedback a correspondence between an account in the organization and the operation authority that the account has for the target business; an authority determination module, configured to determine, based on the account type of the first account and the organizational structure, a first operation authority that the first account has for the target business; A statement adjustment module, configured to adjust an operation statement for performing a target operation on the business data based on the first operation authority to obtain a target operation statement; The business operation module is used to perform corresponding operations on the relevant business data of the target business based on the target operation statement.
11. An electronic device, characterized in that: The electronic device comprises: A memory for storing computer executable instructions; A processor is used to implement the business data processing method described in any one of claims 1 to 9 when executing the computer executable instructions stored in the memory.
12. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the method for processing business data described in any one of claims 1 to 9 is implemented.
13. A computer program product comprising computer executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the method for processing business data described in any one of claims 1 to 9 is implemented.
