Character creation method, device, computer equipment and storage medium

By building a hierarchical relationship between upper and lower levels of salary management in a distributed organizational structure and establishing the association between roles and permissions, the problems of limited applicability and low compatibility of traditional permission management and control methods are solved, and wider business scenario adaptation and refined permission management are achieved. .

CN112307444BActive Publication Date: 2024-09-17PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011192619.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-09-17
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

The traditional authority management and control method relies on the hierarchical relationship between the upper and lower levels of the administrative organizational structure. Its applicable scenarios are relatively limited, its compatibility is low, and it is difficult to adapt to the management relationships of various businesses.

Method used

In the distributed organizational structure, the management relationship tree is used to describe and construct the top-down hierarchical relationship between the upper and lower levels of salary management, receive role creation requests, read the organizational structure data and role-function permissions registry in the system database, and establish the original The relationship between role data, management object information, and functional permissions completes the role creation operation.

Benefits of technology

It improves the compatibility of permission management, can be applied to management relationships established by various businesses, and achieves more refined permission management and more convenient humanized permission management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112307444B
    Figure CN112307444B
Patent Text Reader

Abstract

The embodiments of the present application belong to the field of authority management technology, and relate to a role creation method, device, computer equipment and storage medium applied to a distributed organizational structure. In addition, the present application also relates to blockchain technology, and the target role data can be stored in the blockchain. The role creation method applied to a distributed organizational structure provided by the present application, because the organizational structure is described and constructed through a management relationship tree, the hierarchical relationship between the superiors and subordinates of the salary management from top to bottom, so that the authority management can be fully applicable to the management relationship constructed by various different businesses. Compared with the traditional single RBAC-based authority control model, the present application can be compatible with the management relationships of more business scenarios, greatly improving the compatibility of authority management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of authority management, and in particular to a role creation method, device, computer equipment and storage medium applied to a distributed organizational architecture. Background Art

[0002] Permission control is the foundation of every system and an indispensable part of the normal operation of the system. It distinguishes different users and different functions so that the functions and data that users can see are within their job functions.

[0003] There is a permission setting method based on the RBAC (Role-Based Access Control) permission control model, that is, role-based permission control. Users are indirectly granted permissions by associating roles with users and roles with permissions. The permission part generally includes functional permissions and data permissions.

[0004] However, traditional permission management methods are generally not intelligent. The permission management methods that rely on the hierarchical relationship of the administrative organizational structure are applicable to relatively limited scenarios and have low compatibility. Summary of the invention

[0005] The purpose of the embodiments of the present application is to propose a role creation method, device, computer equipment and storage medium for use in a distributed organizational structure, so as to solve the problem that the traditional permission management method relies on the hierarchical relationship of the administrative organizational structure, and the applicable scenarios are relatively limited and the compatibility is low.

[0006] In order to solve the above technical problems, the embodiment of the present application provides a role creation method applied to a distributed organizational architecture, which adopts the following technical solution:

[0007] When a role needs to be created in the organizational structure, a role creation request sent by a request terminal is received, wherein the role creation request carries at least user identification information, node location information, and at least one role data to be assigned;

[0008] In response to the role creation request, read the system database, and extract the organizational structure data and the role-function permission registry from the system database;

[0009] Creating original role data corresponding to the node location information in the distributed organizational structure;

[0010] Acquire management object information corresponding to the node location information in the distributed organizational structure, and establish an association relationship between the management object information and the original role data to complete a data permission creation operation;

[0011] Acquiring the functional authority corresponding to the to-be-assigned role data based on the role-functional authority registration table, and establishing an association relationship between the original role data and the functional authority to complete the functional authority creation operation;

[0012] After the association relationship between the original role data and the management object information and the functional authority is established, the target role data is obtained;

[0013] An association relationship between the user identification information and the target role data is established to complete the role creation operation.

[0014] In order to solve the above technical problems, the embodiment of the present application also provides a role creation device applied to a distributed organizational architecture, which adopts the following technical solution:

[0015] A request receiving module, used for receiving a role creation request sent by a request terminal when a role needs to be created in the organizational structure, wherein the role creation request carries at least user identification information, node location information and at least one role data to be assigned;

[0016] A request response module, used to respond to the role creation request, read the system database, and extract the organizational structure data and the role-function permission registry from the system database;

[0017] A role creation module, used to create original role data corresponding to the node location information in the distributed organizational structure;

[0018] A data authority module, used to obtain management object information corresponding to the node location information in the distributed organizational structure, and establish an association relationship between the management object information and the original role data to complete a data authority creation operation;

[0019] A function permission module, used for acquiring the function permission corresponding to the role data to be assigned based on the role-function permission registration table, and establishing an association relationship between the original role data and the function permission, so as to complete the function permission creation operation;

[0020] A target role acquisition module, used to obtain target role data after establishing an association relationship between the original role data and the management object information and functional authority; and

[0021] The target role association module is used to establish an association relationship between the user identification information and the target role data to complete the role creation operation.

[0022] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0023] It includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the role creation method applied to the distributed organizational architecture as described above are implemented.

[0024] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0025] The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the role creation method applied to a distributed organizational architecture as described above are implemented.

[0026] Compared with the prior art, the role creation method, device, computer equipment and storage medium provided in the embodiments of the present application for a distributed organizational architecture have the following beneficial effects:

[0027] The role creation method applied to the distributed organizational structure provided in this application describes and constructs the top-down hierarchical relationship of salary management superiors and subordinates through the management relationship tree, so that the permission management can be fully applicable to the management relationship constructed by various different businesses. Compared with the traditional single RBAC-based permission control model, this application can be compatible with management relationships in more business scenarios, greatly improving the compatibility of permission management. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 This is a flowchart of the implementation of the role creation method applied to the distributed organizational architecture provided in the first embodiment of the present application;

[0030] Figure 2 It is a flowchart of the implementation of the management object determination method provided in Example 1 of the present application;

[0031] Figure 3 This is a flowchart for implementing the construction of an organizational structure provided in Example 1 of the present application;

[0032] Figure 4 This is a flowchart for implementing editing object data provided in Example 1 of the present application;

[0033] Figure 5 It is a structural diagram of a role creation device applied to a distributed organizational architecture provided in Embodiment 2 of the present application;

[0034] Figure 6 It is a structural diagram of a management object determination device provided in Embodiment 2 of the present application;

[0035] Figure 7 It is a structural diagram of the device for constructing an organizational structure provided in Embodiment 2 of the present application;

[0036] Figure 8 is a structural diagram of an object data editing device provided in Embodiment 2 of the present application;

[0037] Fig. 9 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0039] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0040] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Example

[0041] See also Figure 1 , shows an implementation flow chart of the role creation method applied to a distributed organizational architecture provided in Example 1 of the present application. For the sake of ease of explanation, only the parts related to the present application are shown.

[0042] In step S101, when a role needs to be created in the organizational structure, a role creation request sent by a requesting terminal is received, and the role creation request carries at least user identification information, node location information, and at least one role data to be assigned.

[0043] In an embodiment of the present application, the requesting terminal may be a mobile terminal such as a mobile phone, a smart phone, a laptop computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., as well as a fixed terminal such as a digital TV, a desktop computer, etc. It should be understood that the examples of the requesting terminal here are only for the convenience of understanding and are not used to limit the present application.

[0044] In the embodiments of the present application, user identification information is mainly used to uniquely identify the user who logs into the "distributed organizational architecture system". The user identification information can be set based on the user name, as an example, such as: zhangsan, lisi, etc.; the user identification information can also be set based on the digital serial number, as an example, such as: 001, 002, etc.; the user identification information can also be set based on the user name and the digital serial number, as an example, such as: zhangsan001, lisi002, etc. It should be understood that the examples of user identification information here are only for the convenience of understanding and are not used to limit the present application.

[0045] In the embodiment of the present application, the node position information is mainly used to identify the position information and superior and subordinate position information of the "functional system" in which the created role is located. Specifically, the node position information includes the tree node position and the leaf node position.

[0046] In the embodiment of the present application, the role data to be assigned is mainly used to identify the position role held by the logged-in user in the "distributed organizational architecture system". It should be noted that a user can have multiple roles in the "functional system" at the same time, each role contains different functions, and the range of functions available to the user is composed of the union of the functions of each role.

[0047] In step S102, in response to the role creation request, the system database is read, and the organizational structure data and the role-function permission registration table are extracted from the system database.

[0048] In an embodiment of the present application, the system database is mainly used to store data associated with the "distributed organizational architecture system". In the system database, the organizational framework composed of each node of the "distributed organizational architecture system" and the role-function permission registry corresponding to each intelligent role are preset in advance.

[0049] In the embodiment of the present application, the role-function permission registry is mainly used to record the function permissions possessed by different roles. Specifically, the function permissions may be employee data editing, employee scheduling, and the like.

[0050] In step S103, original role data corresponding to the node location information is created in the distributed organizational structure.

[0051] In the embodiment of the present application, the original role data refers to a basic role with general functional permissions. Specifically, the general functional permissions may be logging into the system, logging out of the system, editing personal data, and the like.

[0052] In the embodiment of the present application, the permission initialization definition of the application is as follows: each sub-application of smart salary will define the user role of the application, and establish a mapping relationship between the role and (the user in the salary management group and the role in the group) through dynamic rules; and define which functional permissions the user role has for this application.

[0053] In step S104, management object information corresponding to the node location information is obtained in the distributed organizational structure, and an association relationship between the management object information and the original role data is established to complete the data permission creation operation.

[0054] In the embodiment of the present application, since the distributed organizational structure has clearly recorded the superior-subordinate relationship of each node, the management object information can be obtained by obtaining the subordinate-associated object corresponding to the node location information based on the superior-subordinate relationship.

[0055] In an embodiment of the present application, the management object information includes information of each team member and personal data associated with the team member. Specifically, the personal data may be data generated by the team member's position, group, etc., and the data is associated with the employee. As an example, the data may be functional information, salary information, etc.

[0056] In the embodiment of the present application, by establishing an association relationship between the original role data and the management object information, the logged-in user has the authority to access all data of the management object, so as to implement the data range permission authorization operation.

[0057] In step S105, the functional authority corresponding to the role data to be assigned is obtained based on the role-functional authority registration table, and an association relationship between the original role data and the functional authority is established to complete the functional authority creation operation.

[0058] In an embodiment of the present application, after establishing an association between the original role data and the functional authority, the page key corresponding to the functional authority will be displayed in the function bar of the "Distributed Organizational Architecture System" page, thereby realizing the functional scope permission authorization operation.

[0059] In an embodiment of the present application, when a user accesses a smart payroll application, the system will read the user's payroll management group and role in the group, and find the user's corresponding user role in the application through the previously defined mapping relationship, so that the user has the functional permissions of the application.

[0060] In the embodiment of the present application, the data range authority control is also determined by the salary management group to which the user belongs, and the salary data of all the people in the group can be accessed.

[0061] In step S106, after the association relationship between the original role data and the management object information and the functional authority is established, the target role data is obtained.

[0062] In the embodiment of the present application, the authorization of functional permissions and data permissions is integrated. The administrator only needs to attach the user to the corresponding role on the salary management node or salary management group, and will automatically have the corresponding functional permissions and data range permissions (row security permissions), making salary permission management more convenient and more user-friendly.

[0063] In step S107, an association relationship between the user identification information and the target role data is established to complete the role creation operation.

[0064] In an embodiment of the present application, when a user logs into the "Functional System" and establishes an association between the user ID and the role function, a page key corresponding to the role function will be displayed in the function bar of the "Functional System" page. The user can execute the corresponding functional authority by triggering the page key.

[0065] The role creation method applied to the distributed organizational structure provided in this application describes and constructs the top-down hierarchical relationship of salary management superiors and subordinates through the management relationship tree, so that the permission management can be fully applicable to the management relationship constructed by various different businesses. Compared with the traditional single RBAC-based permission control model, this application can be compatible with management relationships in more business scenarios, greatly improving the compatibility of permission management.

[0066] Continue reading Figure 2 , shows an implementation flow chart of the management object determination method provided in Example 1 of the present application. For the sake of convenience of explanation, only the parts related to the present application are shown.

[0067] In some optional implementations of the first embodiment of the present application, after the above step S101, it also includes: step S201, step S202 and step S203.

[0068] In step S201, it is determined whether the node position information is a leaf node position.

[0069] In the embodiment of the present application, leaf node data refers to the last node in the relationship tree, that is, the bottom-level node.

[0070] In step S202, if the node position information is a leaf node position, the group information corresponding to the leaf node position is obtained, and the group member information corresponding to the group information is used as the management object information.

[0071] In step S203, if the node position information is not a leaf node position, the associated tree node position and / or leaf node position corresponding to the node position information is obtained, and the member information corresponding to the associated tree node position and / or leaf node position is used as the management object information.

[0072] In the embodiment of the present application, a tree node refers to an associated node connected to each upper and lower tree node or lower leaf node, and the tree node is often located in the middle layer of the organizational structure.

[0073] Continue reading Figure 3 , shows an implementation flow chart of building an organizational structure provided in Example 1 of the present application. For the sake of ease of explanation, only the parts related to the present application are shown.

[0074] In some optional implementations of the first embodiment of the present application, before the above step S102, it also includes: step S301 and step S302.

[0075] In step S301, a role group information table, a role dimension table, and a role group-dimension relationship are created to obtain a distributed organizational structure.

[0076] In step S302, a role information table and a function permission table corresponding to the role are created to obtain a role-function permission registration table.

[0077] In some optional implementations of the first embodiment of the present application, the role-function permission registration table also includes function permission time; the management object information also includes management time information.

[0078] In the embodiment of the present application, the functional permission time is mainly used to define the effective start and end dates of the functional permissions of the system user role.

[0079] In the embodiment of the present application, the management time information is mainly used to restrict the system user to view only all salary detail data within the time range before the members of the salary management group managed by the user leave the group.

[0080] In the embodiment of the present application, the salary data range permission management supports historical time versions: adding the time dimension to achieve more refined permission management:

[0081] 1) After adding the time dimension to functional permissions, you can customize the effective start and end dates of the functional permissions of system user roles;

[0082] 2) After the time dimension is added to the data range permission, the system user can only view all salary detail data within the time range before the members of the salary management group they manage leave the group.

[0083] Continue reading Figure 4 , shows an implementation flow chart of editing object data provided in Example 1 of the present application. For the sake of ease of explanation, only the parts related to the present application are shown.

[0084] In some optional implementations of the first embodiment of the present application, after the above step S107, the following steps are further included: step S401, step S402, step S403 and step S404.

[0085] In step S401, when it is necessary to edit a management object, after logging into the system through user identification information, the management object information is edited based on the functional authority to obtain a list of management objects to be updated.

[0086] In step S402, the list of management objects to be updated and the management object information are compared to obtain added object data and / or deleted object data.

[0087] In step S403, an association relationship between the added object data and the target role data is established.

[0088] In step S404, the association between the deletion object data and the target character data is cancelled.

[0089] In the embodiment of the present application, the system automatically disconnects or establishes the association relationship with the added or reduced objects simply by adding or reducing the members of the management objects. For management personnel, they only need to edit the management objects to realize the integrated dynamic permission management of "function + data", without redefining operations on individual management objects. This makes the implementation simple and greatly improves management efficiency.

[0090] In summary, the role creation method applied to the distributed organizational structure provided in the first embodiment of the present application, because the organizational structure is described and constructed through the management relationship tree, the hierarchical relationship between the superiors and subordinates of the salary management from top to bottom, so that the authority management can be fully applicable to the management relationship constructed by various different businesses, compared with the traditional single RBAC-based authority control model, the present application can be compatible with more business scenarios. The management relationship greatly improves the compatibility of authority management. At the same time, the salary data range authority management supports the historical time version: adding the time dimension realizes a more refined authority management: 1) After the functional authority adds the time dimension, the effective start and end dates of the functional authority of the system user role can be customized; 2) After the data range authority adds the time dimension, the system user can only view all the salary details data within the time range before the members of the salary management group they manage leave the group; only by adding or reducing the group members of the management object, the system automatically disconnects or establishes the association relationship with the added or reduced object. For managers, they only need to edit the management object to realize the integrated dynamic authority management of "function + data", without redefining the operation of individual management objects, which is simple to implement and greatly improves management efficiency.

[0091] It should be emphasized that in order to further ensure the privacy and security of the target role data, the above target role data can also be stored in a node of a blockchain.

[0092] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0093] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0094] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0095] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps. Example

[0096] Further references Figure 5 , as mentioned above Figure 1 The implementation of the method shown in the figure, the second embodiment of the present application provides a role creation device applied to a distributed organizational architecture, the device embodiment is Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0097] like Figure 5 As shown, the role creation device 100 applied to the distributed organizational structure provided in the second embodiment of the present application includes: a request receiving module 101, a request response module 102, a role creation module 103, a data authority module 104, a function authority module 105, a target role acquisition module 106 and a target role association module 107. Among them:

[0098] The request receiving module 101 is used to receive a role creation request sent by a request terminal when a role needs to be created in the organizational structure. The role creation request carries at least user identification information, node location information and at least one role data to be assigned;

[0099] The request response module 102 is used to respond to the role creation request, read the system database, and extract the organizational structure data and the role-function permission registry in the system database;

[0100] A role creation module 103, for creating original role data corresponding to the node location information in the distributed organizational structure;

[0101] The data authority module 104 is used to obtain the management object information corresponding to the node location information in the distributed organizational structure, and establish an association relationship between the management object information and the original role data to complete the data authority creation operation;

[0102] The function permission module 105 is used to obtain the function permission corresponding to the role data to be assigned based on the role-function permission registration table, and establish an association relationship between the original role data and the function permission to complete the function permission creation operation;

[0103] The target role acquisition module 106 is used to obtain the target role data after the association relationship between the original role data and the management object information and the functional authority is established; and

[0104] The target role association module 107 is used to establish an association relationship between the user identification information and the target role data to complete the role creation operation.

[0105] In an embodiment of the present application, the requesting terminal may be a mobile terminal such as a mobile phone, a smart phone, a laptop computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, etc., as well as a fixed terminal such as a digital TV, a desktop computer, etc. It should be understood that the examples of the requesting terminal here are only for the convenience of understanding and are not used to limit the present application.

[0106] In the embodiments of the present application, user identification information is mainly used to uniquely identify the user who logs into the "distributed organizational architecture system". The user identification information can be set based on the user name, as an example, such as: zhangsan, lisi, etc.; the user identification information can also be set based on the digital serial number, as an example, such as: 001, 002, etc.; the user identification information can also be set based on the user name and the digital serial number, as an example, such as: zhangsan001, lisi002, etc. It should be understood that the examples of user identification information here are only for the convenience of understanding and are not used to limit the present application.

[0107] In the embodiment of the present application, the node position information is mainly used to identify the position information and superior and subordinate position information of the "functional system" in which the created role is located. Specifically, the node position information includes the tree node position and the leaf node position.

[0108] In the embodiment of the present application, the role data to be assigned is mainly used to identify the position role held by the logged-in user in the "distributed organizational architecture system". It should be noted that a user can have multiple roles in the "functional system" at the same time, each role contains different functions, and the range of functions available to the user is composed of the union of the functions of each role.

[0109] In an embodiment of the present application, the system database is mainly used to store data associated with the "distributed organizational architecture system". In the system database, the organizational framework composed of each node of the "distributed organizational architecture system" and the role-function permission registry corresponding to each intelligent role are preset in advance.

[0110] In the embodiment of the present application, the role-function permission registry is mainly used to record the function permissions possessed by different roles. Specifically, the function permissions may be employee data editing, employee scheduling, and the like.

[0111] In the embodiment of the present application, the original role data refers to a basic role with general functional permissions. Specifically, the general functional permissions may be logging into the system, logging out of the system, editing personal data, and the like.

[0112] In the embodiment of the present application, the permission initialization definition of the application is as follows: each sub-application of smart salary will define the user role of the application, and establish a mapping relationship between the role and (the user in the salary management group and the role in the group) through dynamic rules; and define which functional permissions the user role has for this application.

[0113] In the embodiment of the present application, since the distributed organizational structure has clearly recorded the superior-subordinate relationship of each node, the management object information can be obtained by obtaining the subordinate-associated object corresponding to the node location information based on the superior-subordinate relationship.

[0114] In an embodiment of the present application, the management object information includes information of each team member and personal data associated with the team member. Specifically, the personal data may be data generated by the team member's position, group, etc., and the data is associated with the employee. As an example, the data may be functional information, salary information, etc.

[0115] In the embodiment of the present application, by establishing an association relationship between the original role data and the management object information, the logged-in user has the authority to access all data of the management object, so as to implement the data range permission authorization operation.

[0116] In an embodiment of the present application, after establishing an association between the original role data and the functional authority, the page key corresponding to the functional authority will be displayed in the function bar of the "Distributed Organizational Architecture System" page, thereby realizing the functional scope permission authorization operation.

[0117] In an embodiment of the present application, when a user accesses a smart payroll application, the system will read the user's payroll management group and role in the group, and find the user's corresponding user role in the application through the previously defined mapping relationship, so that the user has the functional permissions of the application.

[0118] In the embodiment of the present application, the data range authority control is also determined by the salary management group to which the user belongs, and the salary data of all the people in the group can be accessed.

[0119] In the embodiment of the present application, the authorization of functional permissions and data permissions is integrated. The administrator only needs to attach the user to the corresponding role on the salary management node or salary management group, and will automatically have the corresponding functional permissions and data range permissions (row security permissions), making salary permission management more convenient and more user-friendly.

[0120] In an embodiment of the present application, when a user logs into the "Functional System" and establishes an association between the user ID and the role function, a page key corresponding to the role function will be displayed in the function bar of the "Functional System" page. The user can execute the corresponding functional authority by triggering the page key.

[0121] The role creation device provided by the present application is applied to the distributed organizational structure. Since the organizational structure is described and constructed through a management relationship tree, a top-down hierarchical relationship between superiors and subordinates in salary management is constructed, so that permission management can be fully applicable to the management relationships constructed by various different businesses. Compared with the traditional single RBAC-based permission control model, the present application can be compatible with management relationships in more business scenarios, greatly improving the compatibility of permission management.

[0122] Continue reading Figure 6 , shows a schematic diagram of the structure of the management object determination device provided in Example 2 of the present application. For the sake of convenience of explanation, only the parts related to the present application are shown.

[0123] In some optional implementations of the second embodiment of the present application, the above-mentioned role creation device 100 applied to the distributed organizational architecture further includes: a node judgment module 108, a first object determination module 109 and a second object determination module 110. Among them:

[0124] A node determination module 108 is used to determine whether the node position information is a leaf node position;

[0125] A first object determination module 109, configured to obtain group information corresponding to the leaf node position if the node position information is a leaf node position, and use group member information corresponding to the group information as management object information;

[0126] The second object determination module 110 is used to obtain the associated tree node position and / or leaf node position corresponding to the node position information if the node position information is not a leaf node position, and use the member information corresponding to the associated tree node position and / or leaf node position as the management object information.

[0127] In the embodiment of the present application, leaf node data refers to the last node in the relationship tree, that is, the bottom-level node.

[0128] In the embodiment of the present application, a tree node refers to an associated node connected to each upper and lower tree node or lower leaf node, and the tree node is often located in the middle layer of the organizational structure.

[0129] Continue reading Figure 7 , shows a schematic diagram of the structure of the device for building an organizational structure provided in the second embodiment of the present application. For the sake of convenience, only the parts related to the present application are shown.

[0130] In some optional implementations of the second embodiment of the present application, the above-mentioned role creation device 100 applied to the distributed organizational structure further includes: an organizational structure creation module 111 and a role function creation module 112. Among them:

[0131] An organizational structure creation module 111 is used to create a role group information table, a role dimension table, and a role group-dimension relationship to obtain a distributed organizational structure;

[0132] The role function creation module 112 is used to create a role information table and a function permission table corresponding to the role, and obtain a role-function permission registration table.

[0133] In some optional implementations of Example 2 of the present application, the role-function permission registration table also includes function permission time; the management object information also includes management time information.

[0134] In the embodiment of the present application, the functional permission time is mainly used to define the effective start and end dates of the functional permissions of the system user role.

[0135] In the embodiment of the present application, the management time information is mainly used to restrict the system user to view only all salary detail data within the time range before the members of the salary management group managed by the user leave the group.

[0136] In the embodiment of the present application, the salary data range permission management supports historical time versions: adding the time dimension to achieve more refined permission management:

[0137] 1) After adding the time dimension to functional permissions, you can customize the effective start and end dates of the functional permissions of system user roles;

[0138] 2) After the time dimension is added to the data range permission, the system user can only view all salary detail data within the time range before the members of the salary management group they manage leave the group.

[0139] Continue reading Figure 8, shows a schematic diagram of the structure of the object data editing device provided in Example 2 of the present application. For the sake of convenience of explanation, only the parts related to the present application are shown.

[0140] In some optional implementations of the second embodiment of the present application, the above-mentioned role creation device 100 applied to the distributed organizational structure further includes: an object update module 113, a data comparison module 114, a data addition module 115 and a data cancellation module 116. Among them:

[0141] The object updating module 113 is used to obtain a list of management objects to be updated after logging into the system through user identification information when it is necessary to edit the management objects based on the functional authority.

[0142] The data comparison module 114 is used to compare the list of management objects to be updated and the management object information to obtain the added object data and / or deleted object data.

[0143] The data adding module 115 is used to establish an association relationship between the added object data and the target role data.

[0144] The data canceling module 116 is used to cancel the association between the deletion object data and the target character data.

[0145] In the embodiment of the present application, the system automatically disconnects or establishes the association relationship with the added or reduced objects simply by adding or reducing the members of the management objects. For management personnel, they only need to edit the management objects to realize the integrated dynamic permission management of "function + data", without redefining operations on individual management objects. This makes the implementation simple and greatly improves management efficiency.

[0146] In summary, the role creation device applied to the distributed organizational structure provided in the second embodiment of the present application, because the organizational structure is described and constructed through the management relationship tree, the hierarchical relationship between the superiors and subordinates of the salary management from top to bottom, so that the authority management can be fully applicable to the management relationship constructed by various different businesses, compared with the traditional single RBAC-based authority control model, the present application can be compatible with more business scenarios. The management relationship greatly improves the compatibility of authority management. At the same time, the salary data range authority management supports the historical time version: adding the time dimension realizes a more refined authority management: 1) After the functional authority adds the time dimension, the effective start and end date of the functional authority of the system user role can be customized; 2) After the data range authority adds the time dimension, the system user can only view all the salary details data within the time range before the members of the salary management group they manage leave the group; only by adding or reducing the group members of the management object, the system automatically disconnects or establishes the association relationship with the added or reduced object. For managers, they only need to edit the management object to realize the integrated dynamic authority management of "function + data", without redefining the operation of individual management objects, which is simple to implement and greatly improves management efficiency.

[0147] To solve the above technical problems, the present application also provides a computer device. Fig. 9 , Fig. 9 This is a basic structural block diagram of the computer device in this embodiment.

[0148] The computer device 200 includes a memory 210, a processor 220, and a network interface 230 that are interconnected and communicated through a system bus. It should be noted that the figure only shows a computer device 200 having components 210-230, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0149] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0150] The memory 210 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 210 can be an internal storage unit of the computer device 200, such as a hard disk or memory of the computer device 200. In other embodiments, the memory 210 can also be an external storage device of the computer device 200, such as a plug-in hard disk equipped on the computer device 200, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 210 can also include both the internal storage unit of the computer device 200 and its external storage device. In this embodiment, the memory 210 is generally used to store an operating system and various application software installed on the computer device 200, such as computer-readable instructions for a method for creating a role in a distributed organizational structure. In addition, the memory 210 can also be used to temporarily store various data that have been output or are to be output.

[0151] The processor 220 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 220 is generally used to control the overall operation of the computer device 200. In this embodiment, the processor 220 is used to run computer-readable instructions stored in the memory 210 or process data, such as running computer-readable instructions of the role creation method applied to the distributed organizational architecture.

[0152] The network interface 230 may include a wireless network interface or a wired network interface. The network interface 230 is generally used to establish a communication connection between the computer device 200 and other electronic devices.

[0153] The role creation method applied to the distributed organizational structure provided in this application describes and constructs the top-down hierarchical relationship of salary management superiors and subordinates through the management relationship tree, so that the permission management can be fully applicable to the management relationship constructed by various different businesses. Compared with the traditional single RBAC-based permission control model, this application can be compatible with management relationships in more business scenarios, greatly improving the compatibility of permission management.

[0154] The present application also provides another embodiment, namely, providing a computer-readable storage medium, which stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the role creation method applied to the distributed organizational architecture as described above.

[0155] The role creation method applied to the distributed organizational structure provided in this application describes and constructs the top-down hierarchical relationship of salary management superiors and subordinates through the management relationship tree, so that the permission management can be fully applicable to the management relationship constructed by various different businesses. Compared with the traditional single RBAC-based permission control model, this application can be compatible with management relationships in more business scenarios, greatly improving the compatibility of permission management.

[0156] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0157] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.

Claims

1. A role creation method applied to a distributed organizational architecture, characterized in that: The steps include: When a role needs to be created in the organizational structure, a role creation request sent by a request terminal is received, wherein the role creation request carries at least user identification information, node location information, and at least one role data to be assigned; In response to the role creation request, read the system database, and extract the organizational structure data and the role-function permission registry from the system database; Creating original role data corresponding to the node location information in the distributed organizational structure; Acquire management object information corresponding to the node location information in the distributed organizational structure, and establish an association relationship between the management object information and the original role data to complete a data permission creation operation; Acquire the functional authority corresponding to the to-be-assigned role data based on the role-functional authority registration table, and establish an association relationship between the original role data and the functional authority to complete the functional authority creation operation; After the association relationship between the original role data and the management object information and the functional authority is established, the target role data is obtained; Establishing an association relationship between the user identification information and the target role data to complete the role creation operation; The node location information is used to identify the position information and superior and subordinate position information of the created role in the functional system, and the management object information includes the information of each member and the personal data associated with the member; Wherein, the role-function permission registration table also includes function permission time; the management object information also includes management time information; Among them, the functional authority time is used to define the effective start and end dates of the functional authority of the system user role, and the management time information is used to limit the system user to only view all salary detail data within the time range before the members of the salary management group he manages leave the group.

2. The role creation method applied to a distributed organizational structure according to claim 1, characterized in that: The node position information includes a tree node position or a leaf node position. When a role needs to be created in the organizational structure, after the step of receiving a role creation request sent by a requesting terminal, the following steps are also included: Determine whether the node position information is a leaf node position; If the node position information is a leaf node position, then obtaining the group information corresponding to the leaf node position, and using the group member information corresponding to the group information as the management object information; If the node position information is not a leaf node position, the associated tree node position and / or leaf node position corresponding to the node position information is obtained, and the member information corresponding to the associated tree node position and / or leaf node position is used as the management object information.

3. The role creation method applied to a distributed organizational structure according to claim 1, characterized in that: Before the step of responding to the role creation request, reading the system database, and extracting the organizational structure data and the role-function permission registry from the system database, the method further includes the following steps: Creating a role group information table, a role dimension table, and a role group-dimension relationship to obtain the distributed organizational structure; Create a role information table and a function permission table corresponding to the role to obtain the role-function permission registration table.

4. The role creation method applied to a distributed organizational structure according to claim 1, characterized in that: After the step of establishing an association relationship between the user identification information and the target role data to complete the role creation operation, the method further includes the following steps: When it is necessary to edit the management object, after logging into the system through the user identification information, the management object information is edited based on the functional authority to obtain a list of management objects to be updated; Comparing the list of management objects to be updated and the management object information to obtain added object data and / or deleted object data; Establishing an association relationship between the added object data and the target role data; The association relationship between the deletion object data and the target character data is cancelled.

5. The role creation method applied to a distributed organizational structure according to claim 1, characterized in that: After the step of establishing an association relationship between the user identification information and the target role data to complete the role creation operation, the method further includes the following steps: The target role data is stored in the blockchain.

6. A role creation device applied to a distributed organizational structure, characterized in that: include: A request receiving module, used for receiving a role creation request sent by a request terminal when a role needs to be created in the organizational structure, wherein the role creation request carries at least user identification information, node location information and at least one role data to be assigned; A request response module, used to respond to the role creation request, read the system database, and extract the organizational structure data and the role-function permission registry from the system database; A role creation module, used to create original role data corresponding to the node location information in the distributed organizational structure; A data authority module, used to obtain management object information corresponding to the node location information in the distributed organizational structure, and establish an association relationship between the management object information and the original role data to complete a data authority creation operation; A function permission module, used for acquiring the function permission corresponding to the role data to be assigned based on the role-function permission registration table, and establishing an association relationship between the original role data and the function permission, so as to complete the function permission creation operation; A target role acquisition module, used to obtain target role data after establishing an association relationship between the original role data and the management object information and functional authority; as well as A target role association module, used to establish an association relationship between the user identification information and the target role data to complete the role creation operation; The node location information is used to identify the position information and superior and subordinate position information of the created role in the functional system, and the management object information includes the information of each member and the personal data associated with the member; Wherein, the role-function permission registration table also includes function permission time; the management object information also includes management time information; Among them, the functional authority time is used to define the effective start and end dates of the functional authority of the system user role, and the management time information is used to limit the system user to only view all salary detail data within the time range before the members of the salary management group he manages leave the group.

7. The role creation device applied to a distributed organizational structure according to claim 6, characterized in that: The device also includes: A node determination module, used to determine whether the node position information is a leaf node position; A first object determination module, configured to obtain group information corresponding to the leaf node position if the node position information is a leaf node position, and use group member information corresponding to the group information as the management object information; The second object determination module is used to obtain the associated tree node position and / or leaf node position corresponding to the node position information if the node position information is not a leaf node position, and use the member information corresponding to the associated tree node position and / or leaf node position as the management object information.

8. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the role creation method applied to a distributed organizational architecture as described in any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the role creation method applied to a distributed organizational architecture as described in any one of claims 1 to 5 are implemented.