CN110599384A - Organization relation transfer method, device, equipment and storage medium - Google Patents

Organization relation transfer method, device, equipment and storage medium Download PDF

Info

Publication number
CN110599384A
CN110599384A CN201910863874.2A CN201910863874A CN110599384A CN 110599384 A CN110599384 A CN 110599384A CN 201910863874 A CN201910863874 A CN 201910863874A CN 110599384 A CN110599384 A CN 110599384A
Authority
CN
China
Prior art keywords
organization
user
transfer request
approval
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910863874.2A
Other languages
Chinese (zh)
Other versions
CN110599384B (en
Inventor
王星雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910863874.2A priority Critical patent/CN110599384B/en
Publication of CN110599384A publication Critical patent/CN110599384A/en
Application granted granted Critical
Publication of CN110599384B publication Critical patent/CN110599384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services

Abstract

The application discloses a method, a device, equipment and a storage medium for transferring organization relations, and relates to the technical field of block chains. The method comprises the following steps: acquiring a first organization relation transfer request submitted by a first user terminal from a first block chain; sending a first organization relation transfer request to an approval terminal; acquiring an approval result corresponding to a first organization relation transfer request submitted by an approval terminal; when the approval result indicates that the first user is allowed to be transferred from the first organization to the second organization, acquiring user information of the first user from the second blockchain; updating user information of the first user; and storing the updated user information of the first user into the second block chain. According to the technical scheme provided by the embodiment of the application, the organization relation transfer application is examined and approved through the block chain, so that the manual handover part is reduced, the processing efficiency of the organization relation transfer request is ensured, and the information in the organization relation transfer request is effectively prevented from being tampered.

Description

Organization relation transfer method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of block chaining technologies, and in particular, to a method, an apparatus, a device, and a storage medium for transferring an organization relationship.
Background
As the population of society increases in number and speed, the organization to which the user belongs also changes more frequently.
In the related art, during the process of transferring the organization, the user needs to issue a transfer-out introduction letter from the transfer-out organization, and then the user needs to submit the introduction letter to the transfer-in organization. The transfer organization opens the receipt information for transferring according to the introduction information, and after the user submits the receipt information to the transfer organization for confirmation, the user completes the tissue transfer, and the transfer organization is changed into the transfer organization.
In the related art, the user spends more time when transmitting the introduction letter and the response letter, so that the timeliness of the tissue transfer is poor, and the time consumption is long. Moreover, the contents of the introduction letter and the response letter are easy to be tampered, and the authenticity of the contents is difficult to guarantee, so that the approval is wrong.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for transferring an organization relationship, which can be used for solving the technical problems of poor timeliness, long time consumption and difficulty in guaranteeing authenticity of organization transfer in the related technology. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for transferring an organization relationship, which is applied to a target node of a blockchain system, where the blockchain system includes n nodes, each node is configured with a first blockchain and a second blockchain, and n is an integer greater than 1, where the method includes:
acquiring a first organization relation transfer request submitted by a first user terminal from a first block chain, wherein the first organization relation transfer request is used for indicating that a first user is transferred from a first organization to a second organization;
sending the first organization relation transfer request to an approval terminal;
acquiring an approval result corresponding to the first organization relation transfer request submitted by the approval terminal;
when the approval result indicates that the first user is allowed to transfer from the first organization to the second organization, acquiring user information of the first user from the second blockchain;
updating the user information of the first user;
and storing the updated user information of the first user into the second block chain.
On the other hand, an embodiment of the present application provides an organization relationship transfer apparatus, which is applied to a target node of a blockchain system, where the blockchain system includes n nodes, each node is configured with a first blockchain and a second blockchain, where n is an integer greater than 1, and the apparatus includes:
a request obtaining module, configured to obtain, from the first blockchain, a first organization relationship transfer request submitted by a first user terminal, where the first organization relationship transfer request is used to instruct a first user to transfer from a first organization to a second organization;
the request sending module is used for sending the first organization relation transfer request to an approval terminal;
the result acquisition module is used for acquiring an approval result corresponding to the first organization relation transfer request submitted by the approval terminal;
an information obtaining module, configured to obtain user information of the first user from the second blockchain when the approval result indicates that the first user is approved to be transferred from the first organization to the second organization;
the information updating module is used for updating the user information of the first user;
and the information storage module is used for storing the updated user information of the first user into the second block chain.
In yet another aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the transfer method of the above organizational relationship.
In yet another aspect, an embodiment of the present application provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the transfer method of the above organization relationship.
In yet another aspect, the present application provides a computer program product, which when executed by a processor, is configured to implement the above method for organizing relationships.
According to the technical scheme, the transfer application of the organization relation is examined and approved through the block chain, the manual handover part is reduced, the problems that the timeliness of the organization transfer relation is poor and the authenticity is difficult to guarantee in the related technology are solved, time delay is reduced, the processing efficiency of the organization relation transfer request is guaranteed, information transmission of the organization relation transfer request is carried out in the block chain system, and information in the organization relation transfer request is effectively prevented from being tampered. After the organization transfer, the user information is updated in time and is identified through the block chain whole network, so that the probability of user information loss in the organization transfer process is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a flowchart of a method for transferring organizational relationships according to an embodiment of the present disclosure;
FIG. 3 illustrates a diagram of information included in an organizational relationship transfer request;
fig. 4 is a diagram illustrating information included in first user information;
FIG. 5 illustrates another method flow diagram for organizational relationship transfer;
FIG. 6 is a block diagram of an organizational relationship transfer device according to an embodiment of the present disclosure;
FIG. 7 is a block diagram of another organizational relationship transfer device provided by an embodiment of the present application;
fig. 8 is a block diagram of a computer device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, a block chain system related to the embodiment of the present application is briefly described:
the blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
The platform product service layer provides basic capability and an implementation framework of typical application, and developers can complete block chain implementation of business logic based on the basic capability and the characteristics of the superposed business. The application service layer provides the application service based on the block chain scheme for the business participants to use.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an embodiment of the present application is shown. The implementation environment may include: a user terminal 10, an organization terminal 20 and a blockchain system 30.
The user terminal 10 is a terminal used by a user, such as an electronic device, e.g., a mobile phone, a tablet Computer, an electronic book reader, a multimedia player, a wearable device, a PC (Personal Computer), and the like.
The organization terminal 20 is a terminal used by a worker in an organization, and similar to the user terminal 10, the organization terminal 20 may be an electronic device such as a mobile phone, a tablet computer, an electronic book reader, a multimedia player, a wearable device, and a PC. The organization refers to a group formed by a plurality of users connected in a certain way, and optionally, the organization may be a party organization, a group organization, a school, a work unit or a household, and the like.
The blockchain system 30 includes n nodes, where n is an integer greater than 1, and optionally, the node is a computer device. Each node stores at least one block chain, namely, each computer device can store one or more block chains which can be shared by various organizations. For example, each node stores two blockchains, including a first blockchain for storing organizational relationship transfer requests of users and a second blockchain for storing user information of users in various organizations. Optionally, a third blockchain for storing the approval result, a fourth blockchain for storing the approval information, and a fifth blockchain for storing the organization information may also be stored on the computer device.
Optionally, at least two of the first, second, third, fourth, and fifth blockchains may be the same blockchain. It should be noted that the block chains stored in the n nodes and the information included in the block chains are the same.
The user terminal 10 and at least one node of the blockchain system 30 may communicate with each other over a network. The organization terminal 20 and at least one node of the blockchain system 30 may also communicate with each other via a network.
Please refer to fig. 2, which illustrates a flowchart of a method for transferring organizational relationships according to an embodiment of the present application. The method can be applied to the implementation environment as shown in fig. 1, for example, the method is applied to a target node of a blockchain system, and the target node can be any node in the blockchain system. The method comprises the following steps (201-205):
step 201, a first organization relation transfer request submitted by a first user terminal is obtained from a first block chain.
The first user refers to any person who performs organizational relationship transfer. The first organization relationship transfer request is used to instruct the first user to transfer from the first organization to the second organization, and optionally, the first organization relationship transfer request comprises an exit request and an entry request. The first organization and the second organization are the same type of organizations which can be moved or transferred by users, the transfer-out request is used for indicating the first user to transfer out of the first organization, and the transfer-in request is used for indicating the first user to transfer into the second organization.
Optionally, the first organization relationship transfer request includes, but is not limited to, the following items: a first user ID (Identity document), an organization ID (including a first organization ID and a second organization ID), a transfer reason, an approval result, and a timestamp. The first user ID may be generated when the first user registers as a user of the blockchain system, and is a unique corresponding relationship with the first user, and the organization ID is generated in a similar manner to the first user ID. Optionally, the IDs are displayed in a digital form. The timestamp refers to a time when the first user sent the first organizational relationship transfer request. Optionally, the organization relation request further includes an authentication request of the user, where the authentication request is used to authenticate the identity of the user sending the organization relation request.
In the embodiment of the application, a first user sends a first organization relation transfer request to any node in a blockchain system through a user terminal, wherein the first organization relation transfer request comprises an authentication request of the first user. After receiving the first organization relation transfer request, the any node verifies the identity of the sender of the first organization relation transfer request according to the identity verification request in the first organization relation transfer request, and if the identity of the sender is verified to be consistent with the identity of the first user, the any node stores the first organization relation transfer request and sends the first organization relation transfer request to other nodes in the block chain system through the network. At this time, each node in the blockchain system stores the first organization relation transfer request, and then any node in the blockchain system stores the first organization relation transfer request into the first blockchain of the blockchain system.
Optionally, the step 201 further includes the following sub-steps:
1. and receiving a request pulling instruction sent by the approval terminal.
The approval terminal refers to an organization terminal for processing a corresponding transfer-in request or transfer-out request, and optionally, in the embodiment of the present application, the approval terminal includes a first approval terminal and a second approval terminal. The first approval terminal is a terminal used by a first user to transfer out of an organization or a worker in the transfer-out organization, namely the first approval terminal is a terminal used by the first organization or the worker in the first organization; the second approval terminal is a terminal used by the first user or a worker in the transferred organization, namely the second approval terminal is a terminal used by the second organization or the worker in the second organization.
Optionally, the first approval terminal or the second approval terminal sends a request pull instruction to any node in the blockchain system, and correspondingly, any node in the blockchain system receives the request pull instruction sent by the first approval terminal or the second approval terminal, where the request pull instruction is used to request to obtain an unprocessed organizational relationship transfer request from the blockchain system.
2. And acquiring an unprocessed organization relation transfer request from the first block chain according to the request pull instruction.
Optionally, after receiving the request pull instruction of the first approval terminal or the second approval terminal, any node in the block chain system filters the organization relationship transfer request in the first block chain to obtain an unprocessed organization relationship transfer request. Of course, in a possible embodiment, the unprocessed organization relationship transfer request and the processed organization relationship transfer request are stored in different blocks of the first block chain, and after receiving the request pull instruction of the first approval terminal or the second approval terminal, any node in the block chain system directly obtains the unprocessed organization relationship transfer request from the block in the first block chain, where the unprocessed organization relationship transfer request is stored.
3. And screening the target organization relation transfer request from the unprocessed organization relation transfer requests.
The target organization relation transfer request refers to an organization relation transfer request which is obtained by an approval terminal and has authority, and the target organization relation transfer request comprises the first organization relation transfer request. In a possible implementation manner, when uploading the organizational relationship transfer request to the first blockchain, any node in the blockchain system may write an identifier of an approval terminal having an acquisition right into a header of the corresponding organizational relationship transfer request, where the identifier of the approval terminal may be an ID of the approval terminal. In another possible implementation manner, when uploading the organization relationship transfer request to the first blockchain, any node in the blockchain system may write an organization identifier having an acquisition right into a header of the corresponding organization relationship transfer request, where the organization identifier may be an organization ID, and take the first organization relationship transfer request as an example, the first organization relationship transfer request indicates that the first user is transferred from the first organization to the second organization, and therefore, the first organization ID and the second organization ID may be written into the header of the first organization relationship transfer request.
In a possible embodiment, any node in the blockchain system filters the unprocessed organization relationship transfer request according to an organization ID in the unprocessed organization relationship transfer request, and obtains a target organization relationship transfer request corresponding to the first approval terminal or the second approval terminal that sends the request pull instruction. In another possible embodiment, an identifier of an approval terminal with an acquisition right is written in a header of the organization relationship transfer request, and any node in the block chain system screens an unprocessed organization relationship transfer request according to the identifier of the approval terminal with the acquisition right in the header of the unprocessed organization relationship transfer request to acquire a target organization relationship transfer request corresponding to a first approval terminal or a second approval terminal that sends a request pull instruction. In yet another possible embodiment, an identifier of an organization having an acquisition right is written in a header of the organization relationship transfer request, and any node in the block chain system filters the unprocessed organization relationship transfer request according to the identifier of the organization having the acquisition right in the header of the unprocessed organization relationship transfer request, and acquires a target organization relationship transfer request corresponding to the first approval terminal or the second approval terminal that sends the request pull instruction.
Step 202, sending the first organization relation transfer request to an approval terminal.
Optionally, any node in the blockchain system sends the target organization relationship transfer request in step 201 to a corresponding approval terminal. Wherein the target organization relationship transfer request includes the first organization relationship transfer request.
Step 203, obtaining an approval result corresponding to the first organization relation transfer request submitted by the approval terminal.
The approval terminal comprises a first approval terminal and a second approval terminal. The approval result refers to a processing result of a first organization relation transfer request submitted by a first user, and is transfer approval when the first organization approves the transfer-out of the first user and the second organization approves the transfer-in of the first user; when the first organization does not agree with the first user to roll out and/or the second organization does not agree with the first user to roll in, the approval result is an approval transfer; in any case, the approval results are not processed. Any node in the block chain system acquires a transfer-out approval result corresponding to the first organization relation transfer request submitted by the first approval terminal, wherein the transfer-out approval result is used for indicating whether the first organization agrees to transfer out of the first organization by the first user; similarly, any node of the block chain system acquires a transfer-in approval result corresponding to the first organization relationship transfer request submitted by the second approval terminal, wherein the transfer-in approval result is used for indicating whether the second organization agrees to transfer the first user into the second organization. In this embodiment of the application, the first approval terminal or the second approval terminal sends an approval result to any node in the blockchain system, and further, the any node stores the approval result and sends the approval result to other nodes in the blockchain system through a network. At this time, each node of the blockchain system stores the approval result, then, each node in the blockchain system calculates a hash value according to the approval result, optionally, the node which calculates an appropriate hash value first obtains a right to store the approval result into the third blockchain, and further, the node stores the approval result into the third blockchain.
And step 204, when the approval result indicates that the first user is allowed to be transferred from the first organization to the second organization, acquiring the user information of the first user from the second blockchain.
The user information of the first user includes an organization where the first user is currently located, and history information of the first user, where the history information may include a work unit, a work title, or work content of the first user, and the like, which is not limited in this embodiment of the application. For example, the history may include "the first user performed XXXX work when the work unit of the first user is assigned the XX work job, and the history is thus raised". Optionally, the number of the user information records of the first user may be one or more, which is not limited in this embodiment of the application. Of course, the user information of the first user may further include an evaluation of the organization on the first user or an evaluation of the work unit on the first user, which is not limited in this embodiment of the application.
Illustratively, referring to fig. 3 in conjunction, the user information of the first user is introduced by way of party organization as an example. The user information of the first user may include a first user ID 31, an affiliated party organization 32, a period history 33, and party organization ratings 34. The period history 33 includes history 1, history 2, history 3, and the like.
In this embodiment of the present application, when the first organization agrees that the first user is transferred out of the first organization and the second organization agrees that the first user is transferred into the second organization, the approval result of the first organization relationship transfer request is a transfer agreement, and any node in the blockchain system allows the first user to be transferred from the first organization to the second organization according to the approval result, and generates approval information. Optionally, the approval information includes an approval result, and for example, with reference to fig. 4, taking the first organization relationship transfer request as an example, the corresponding first approval information includes contents of the following parts: first user ID 31, a roll-out party organization ID 41, a roll-in party organization ID 42, and approval results 43. Wherein the approval results 43 include a transfer-out approval and a transfer-in approval, and the approval results 43 of the first user are displayed as transfer approval only when the transfer-out approval and the transfer-in approval are both approved.
Optionally, any node sends the approval information to other nodes of the blockchain system through a network. At this time, each node in the blockchain system stores the approval information, then, each node in the blockchain system calculates a hash value according to the approval information, optionally, the node which calculates an appropriate hash value first obtains a right to store the approval information into the fourth blockchain, and further, the node stores the approval information into the fourth blockchain. Optionally, any node in the blockchain acquires the user information of the first user from the second blockchain according to the approval information.
Step 205, updating the user information of the first user.
And when the approval result is transfer agreement, any node of the block chain system updates the organization to which the first user belongs in the user information of the first user from a transfer-out organization to a transfer-in organization. In this embodiment, when the approval result agrees that the first user is transferred from the first organization to the second organization, the organization where the first user is currently located, which is included in the user information of the first user, is modified from the first organization to the second organization, and meanwhile, a history that the first user joins in the second organization is added to the history information of the first user, which is included in the user information of the first user. Referring to fig. 4 in combination, any one of the nodes updates the affiliated party organization 41 in fig. 4 from the first organization to the second organization, and stores the updated user information of the first user in the any one node.
And step 206, storing the updated user information of the first user into the second block chain.
Optionally, any node in the blockchain system sends the updated user information of the first user to other nodes in the blockchain system through a network, and further, any node in the blockchain stores the updated user information of the first user. Then, any node in the blockchain system calculates a hash value according to the updated user information of the first user. Optionally, the node which calculates the hash value meeting the requirement first obtains the authority of adding the block in the second block chain, and adds a third target block in the second block chain. The third target block is used for storing the updated user information of the first user.
In summary, in the technical scheme provided in the embodiment of the present application, the block chain is used to examine and approve the transfer application of the organization relationship, so that the manual handover is reduced, the problems of poor timeliness and difficulty in ensuring the authenticity of the organization transfer relationship in the related art are solved, the time delay is reduced, the processing efficiency of the organization relationship transfer request is ensured, the information transfer of the organization relationship transfer request is performed in the block chain system, and the information falsification in the organization relationship transfer request is effectively avoided. After the organization transfer, the user information is updated in time and is identified through the block chain whole network, so that the probability of user information loss in the organization transfer process is reduced.
In addition, each node in the block chain stores and updates the examination and approval result and the examination and approval information, so that the efficiency of information processing is ensured, and the accuracy of information processing is ensured.
Next, a method for storing the first organization relation transfer request and the user information of the first user in the blockchain system will be described.
For the first organization relation transfer request to be stored in the first block chain, the method comprises the following steps:
1. tissue transfer requests submitted during a first time period are collected.
The first time period is the time interval during which each node in the blockchain system collects the organizational transfer requests. Optionally, the first time period of each node in the blockchain system is the same, for example, each node in the blockchain system collects the organizational relationship transfer requests stored in all the nodes in the blockchain system every 5 minutes, 10 minutes, 15 minutes, or the like. In this embodiment of the application, the organization relationship transfer request submitted in the first time period includes the first organization relationship transfer request submitted by the first user terminal.
Optionally, after collecting the organization relationship transfer request submitted in the first time period, each node performs deduplication processing on the organization relationship transfer request submitted in the first time period to obtain a processed organization relationship transfer request, where the organization relationship transfer request subjected to deduplication processing is used for being stored in a first target block, and the first target block is a block used for storing the organization relationship transfer request in the block chain system. The deduplication processing refers to removing duplicate organization relationship transfer requests, for example, when a first user sends multiple identical organization relationship transfer requests, each node in the block chain system collects multiple identical organization relationship transfer requests, and selects an organization relationship transfer request with a closest timestamp for storage according to the timestamp in the organization relationship transfer request.
2. After obtaining the right to add a block in the first block chain, a first target block is added in the first block chain.
The first target block comprises an organization relation transfer request submitted in a first time period. After each node in the block chain system collects the organization relationship transfer request, a hash value is calculated according to the organization relationship transfer request, optionally, the node which firstly calculates the hash value meeting the requirement obtains the permission of adding the block in the first block chain, and a first target block is added in the first block chain. The first target block is used for storing the organization relation transfer request obtained after the deduplication processing.
3. And sending a block adding instruction to other nodes in the blockchain system, wherein the block adding instruction is used for instructing the other nodes to add the first target block in the first blockchain, namely each node in the blockchain system stores the same organization relation transfer request obtained after the deduplication processing.
Similarly, the step of storing the user information of the first user in the blockchain system includes the following steps:
1. user information submitted during the second time period is collected.
The second time period is the time interval during which each node in the blockchain system collects user information. Optionally, the second period of time may be the same or different from the first period of time. It should be noted that the shorter the second period of time, the faster the user information is updated, and the higher the accuracy of the obtained user information is.
2. After obtaining the right to add a block in the second block chain, a second target block is added in the second block chain.
The second target block refers to a block for storing user information in the block-chain system. In this embodiment, the second target block includes the user information submitted in the second time period. After the target node in the blockchain system collects the user information, a hash value is calculated according to the user information, optionally, the node which firstly calculates the hash value meeting the requirement obtains the permission of adding the block in the second blockchain, and a second blockchain target is added in the second blockchain.
In summary, any node in the blockchain system updates and stores the organization relationship transfer request and the user information, so that the accuracy of the information stored in the blockchain system is ensured.
It should be noted that the execution main body of each step may be any one node in the blockchain system, or at least two nodes in the blockchain system may cooperate to execute the steps. Since the information between the nodes in the blockchain system is synchronously shared, each node can execute all or part of the steps in the method flow to realize the functions realized by the method flow.
In addition, referring to fig. 5, a specific process of the present application is described in detail by taking party organization as an example.
The party organization enters party information, step 51.
Step 52, the party organization uploads the party information to any node in the block chain system, and further, the node performs overall network consensus on the party information. The global network consensus refers to that any node sends party member information to other nodes of the block chain system, and further stores the party member information in a second block chain after any node acquires the permission of adding blocks in the second block chain, and instructs other nodes to store the party member information.
Step 53, the party proposes an organization relationship transfer request, and uploads the organization relationship transfer request to any node in the block chain system, and further, the node performs overall network consensus on the organization relationship transfer request. The global network consensus refers to that any node sends an organization relation transfer request to other nodes of the block chain system, and further, after any node acquires the permission of adding a block in the first block chain, the organization relation transfer request is stored in the first block chain, and the other nodes are instructed to store the organization relation transfer request.
At step 54, the approval is organized. The organization acquires and processes the transfer-out application or the transfer-in application related to the organization at any node of the block chain.
And step 55, uploading the approval result to any node of the block chain system, updating the approval result synchronously in the whole network, and judging whether the approval is finished. And further, after any node acquires the authority of adding information in the first block chain, storing the approval result in the first block chain, and indicating other nodes to store the approval result.
And step 56, when the auditing result of the party organization relationship transfer request is to approve the transfer, any node updates the original party organization information into the transferred party organization information and synchronizes to the whole network. The synchronization to the whole network means that any node sends the updated party organization information to other nodes of the block chain system, and further, after any node acquires the authority of adding information in the fifth block chain, the updated party organization information is stored in the fifth block chain, and other nodes are instructed to store the updated party organization information.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 6, a block diagram of a transfer device for organizing relationships according to an embodiment of the present application is shown. The device has the function of realizing the transfer method of the organization relation. The apparatus may be a node (e.g., a computer device) in the above-described blockchain system, or may be provided in the node. The apparatus 600 may include: an application acquisition module 601, an application sending module 602, a result acquisition module 603, an information updating module 604 and an information storage module 605.
A request obtaining module 601, configured to obtain a first organization relationship transfer request from the first blockchain, where the first organization relationship transfer request is used to instruct a first user to transfer from a first organization to a second organization.
A request sending module 602, configured to send the first organization relationship transfer request to an approval terminal.
A result obtaining module 603, configured to obtain an approval result corresponding to the first organization relationship transfer request submitted by the approval terminal.
An information obtaining module 604, configured to obtain user information of the first user from the second blockchain when the approval result indicates that the first user is allowed to transfer from the first organization to the second organization.
An information updating module 605, configured to update the user information of the first user.
An information storage module 606, configured to store the updated user information of the first user in the second blockchain.
Illustratively, the approval terminal comprises a first approval terminal and a second approval terminal; the result obtaining module 603 is further configured to obtain a transfer-out approval result corresponding to the first organization relationship transfer request submitted by the first approval terminal, where the transfer-out approval result is used to indicate whether the first user is approved to transfer out from the first organization; and acquiring a transfer-in approval result corresponding to the first organization relation transfer request submitted by the second approval terminal, wherein the transfer-in approval result is used for indicating whether the first user is approved to transfer into the second organization or not.
Illustratively, the information updating module 605 is further configured to modify, from the first organization to the second organization, an organization in which the first user is currently located, which is included in the user information of the first user; and adding the history that the first user joins the second organization to the history information of the first user, which is included in the user information of the first user.
Illustratively, the request obtaining module 601 is further configured to receive a request pulling instruction sent by the approval terminal; acquiring an unprocessed organization relationship transfer request from the first block chain according to the request pull instruction; and screening a target organization relation transfer request from the unprocessed organization relation transfer request, wherein the target organization relation transfer request refers to an organization relation transfer request which is obtained by the approval terminal and has authority, and the target organization relation transfer request comprises the first organization relation transfer request.
Illustratively, the request sending module 602 is further configured to send the target organization relationship transfer request to the approval terminal.
Exemplarily, referring to fig. 7 in combination, the apparatus 600 further includes: a request collection module 607, a request addition module 608 and an indication sending module 609.
A request collection module 607, configured to collect the organization relationship transfer requests submitted in the first time period.
A request adding module 608, configured to, after obtaining a right to add a block in a first block chain configured in the blockchain system, add a first target block in the first blockchain, where the first target block includes an organizational relationship transfer request submitted in the first time period.
An indication sending module 609, configured to send a block addition indication to other nodes in the blockchain system, where the block addition indication is used to instruct the other nodes to add the first target block in the first blockchain.
Exemplarily, referring to fig. 7 in combination, the apparatus 600 further includes: request deduplication module 610.
A request deduplication module 610, configured to perform deduplication processing on the organization relationship transfer request submitted in the first time period to obtain a processed organization relationship transfer request; wherein the processed organizational relationship transfer request is used for storing into the first target block.
Exemplarily, referring to fig. 7 in combination, the apparatus 600 further includes: an information collection module 611 and an information addition module 612.
An information collecting module 611, configured to collect the user information submitted in the second time period.
The information adding module 612, after obtaining the authority to add blocks in the second block chain, adds a second target block in the second block chain, where the second target block includes the user information submitted in the second time period.
In summary, in the technical scheme provided in the embodiment of the present application, the block chain is used for examining and approving the transfer application of the organization relationship, so that the manual handover is reduced, the problems of poor timeliness and difficulty in ensuring authenticity of the organization transfer relationship in the related art are solved, the processing efficiency of the transfer request of the organization relationship is improved, the information transfer of the transfer request of the organization relationship is performed in the block chain system, and the information falsification in the transfer request of the organization relationship is effectively avoided. After the organization transfer, the user information is updated in time and is identified through the block chain whole network, so that the problem of user information loss in the transfer process is reduced.
In addition, each node in the block chain collects and processes the organization relation transfer request and the user information within a certain time period, so that the efficiency of information processing and the accuracy of information storage are ensured.
Referring to fig. 8, a block diagram of a computer device according to an embodiment of the present disclosure is shown. The computer device may be used to implement the method for transferring organizational relationships provided in the above-described embodiments. The computer device may be, for example, the computer device 20 in the implementation environment shown in FIG. 1. Specifically, the method comprises the following steps:
the computer apparatus 800 includes a Processing Unit (e.g., a CPU (central Processing Unit), a GPU (Graphics Processing Unit), an FPGA (Field Programmable gate array), etc.) 801, a system Memory 804 including a RAM (Random Access Memory) 802 and a ROM (Read Only Memory) 803, and a system bus 805 connecting the system Memory 804 and the central Processing Unit 801. The computer device 800 also includes a basic I/O system (Input/Output) 806 to facilitate information transfer between various devices within the computer device, and a mass storage device 807 for storing an operating system 813, application programs 814, and other program modules 812.
The basic input/output system 806 includes a display 808 for displaying information and an input device 809 such as a mouse, keyboard, etc. for user input of information. Wherein the display 808 and the input device 809 are connected to the central processing unit 801 through an input output controller 810 connected to the system bus 805. The basic input/output system 806 may also include an input/output controller 810 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 810 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 807 is connected to the central processing unit 801 through a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and its associated computer-readable media provide non-volatile storage for the computer device 800. That is, the mass storage device 807 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM (Compact disk Read-Only Memory) drive.
Without loss of generality, the computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 804 and mass storage 807 described above may be collectively referred to as memory.
The computer device 800 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with embodiments of the present application. That is, the computer device 800 may be connected to the network 812 through the network interface unit 811 coupled to the system bus 805, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 811.
The memory also includes at least one instruction, at least one program, set of codes, or set of instructions stored in the memory and configured to be executed by the one or more processors to implement the transfer method of the organizational relationship described above.
In an embodiment of the present application, a computer-readable storage medium is further provided, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and when executed by a processor, the at least one instruction, the at least one program, the code set, or the set of instructions implements the transfer method for organizing relationships described above.
In an exemplary embodiment, a computer program product is also provided for implementing the above-mentioned method of transferring organizational relationships when executed by a processor.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for transferring an organizational relationship, applied to a blockchain system, where the blockchain system includes n nodes, each node is configured with a first blockchain and a second blockchain, and n is an integer greater than 1, and the method includes:
obtaining a first organization relation transfer request from the first block chain, wherein the first organization relation transfer request is used for indicating a first user to transfer from a first organization to a second organization;
sending the first organization relation transfer request to an approval terminal;
acquiring an approval result corresponding to the first organization relation transfer request submitted by the approval terminal;
when the approval result indicates that the first user is allowed to transfer from the first organization to the second organization, acquiring user information of the first user from the second blockchain;
updating the user information of the first user;
and storing the updated user information of the first user into the second block chain.
2. The method of claim 1, wherein the approval terminals comprise a first approval terminal and a second approval terminal;
the obtaining of the approval result corresponding to the first organization relation transfer request submitted by the approval terminal includes:
obtaining a roll-out approval result corresponding to the first organization relation transfer request submitted by the first approval terminal, wherein the roll-out approval result is used for indicating whether the first user is approved to roll out from the first organization;
and acquiring a transfer-in approval result corresponding to the first organization relation transfer request submitted by the second approval terminal, wherein the transfer-in approval result is used for indicating whether the first user is approved to transfer into the second organization or not.
3. The method of claim 1, wherein the updating the user information of the first user comprises:
modifying the organization, in which the first user is currently located, included in the user information of the first user from the first organization to the second organization;
and adding the history that the first user joins the second organization to the history information of the first user, which is included in the user information of the first user.
4. The method of claim 1, wherein obtaining the first organization relationship transfer request from the first blockchain comprises:
receiving a request pulling instruction sent by the approval terminal;
acquiring an unprocessed organization relationship transfer request from the first block chain according to the request pull instruction;
screening out a target organization relation transfer request from the unprocessed organization relation transfer request, wherein the target organization relation transfer request refers to an organization relation transfer request which is obtained by the approval terminal and has authority, and the target organization relation transfer request comprises the first organization relation transfer request;
the sending the first organization relation transfer request to an approval terminal includes:
and sending the target organization relationship transfer request to the approval terminal.
5. The method of claim 1, further comprising:
collecting organization relation transfer requests submitted in a first time period;
after the authority of adding blocks in the first block chain is obtained, adding a first target block in the first block chain, wherein the first target block comprises an organization relation transfer request submitted in the first time period;
sending a block addition indication to other nodes in the blockchain system, the block addition indication instructing the other nodes to add the first target block in the first blockchain.
6. The method of claim 5, wherein collecting the organizational relationship transfer requests submitted during the first time period further comprises:
carrying out duplication elimination processing on the organization relation transfer request submitted in the first time interval to obtain a processed organization relation transfer request;
wherein the processed organizational relationship transfer request is used for storing into the first target block.
7. The method according to any one of claims 1 to 6, further comprising:
collecting user information submitted during a second time period;
after obtaining the authority of adding blocks in the second block chain, adding a second target block in the second block chain, wherein the second target block comprises user information submitted in the second time period.
8. An apparatus for transferring organizational relationships, applied to a target node of a blockchain system, the blockchain system including n nodes, each node having a first blockchain and a second blockchain, where n is an integer greater than 1, the apparatus comprising:
a request obtaining module, configured to obtain, from the first blockchain, a first organization relationship transfer request submitted by a first user terminal, where the first organization relationship transfer request is used to instruct a first user to transfer from a first organization to a second organization;
the request sending module is used for sending the first organization relation transfer request to an approval terminal;
the result acquisition module is used for acquiring an approval result corresponding to the first organization relation transfer request submitted by the approval terminal;
an information obtaining module, configured to obtain user information of the first user from the second blockchain when the approval result indicates that the first user is allowed to be transferred from the first organization to the second organization;
the information updating module is used for updating the user information of the first user;
and the information storage module is used for storing the updated user information of the first user into the second block chain.
9. A computer device comprising a processor and a memory, said memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by said processor to implement the transfer method of organizational relationships according to any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a transfer method of organizational relationships according to any one of claims 1 to 7.
CN201910863874.2A 2019-09-12 2019-09-12 Organization relation transferring method, device, equipment and storage medium Active CN110599384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910863874.2A CN110599384B (en) 2019-09-12 2019-09-12 Organization relation transferring method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910863874.2A CN110599384B (en) 2019-09-12 2019-09-12 Organization relation transferring method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110599384A true CN110599384A (en) 2019-12-20
CN110599384B CN110599384B (en) 2023-07-18

Family

ID=68859256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910863874.2A Active CN110599384B (en) 2019-09-12 2019-09-12 Organization relation transferring method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110599384B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553663A (en) * 2020-05-06 2020-08-18 中建材信息技术股份有限公司 Automatic collaborative approval system and method based on workflow
CN112488834A (en) * 2020-11-24 2021-03-12 成都质数斯达克科技有限公司 Node management method and device, electronic equipment and readable storage medium
CN113724822A (en) * 2021-08-31 2021-11-30 平安国际智慧城市科技股份有限公司 Medical information processing method and device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160321434A1 (en) * 2015-05-01 2016-11-03 Monegraph, Inc. Digital content rights transactions using block chain systems
US20170318141A1 (en) * 2016-04-29 2017-11-02 Samuel Philip Gerace Cloud-based contacts management
US10063568B1 (en) * 2017-05-15 2018-08-28 Forcepoint Llc User behavior profile in a blockchain
CN108537498A (en) * 2018-03-15 2018-09-14 上海卓辰信息科技有限公司 Interorganizational project management method, system, equipment and medium based on block chain
CN109146423A (en) * 2018-08-23 2019-01-04 四川赢才多多科技有限公司 The talent based on block chain assesses recommended method
CN109214780A (en) * 2018-09-12 2019-01-15 连尚(新昌)网络科技有限公司 A method of for managing and providing recruitment information
WO2019048574A1 (en) * 2017-09-07 2019-03-14 Yoti Holding Limited Digital identity system
CN109615515A (en) * 2018-12-05 2019-04-12 腾讯科技(深圳)有限公司 Credits voucher transfer method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160321434A1 (en) * 2015-05-01 2016-11-03 Monegraph, Inc. Digital content rights transactions using block chain systems
US20170318141A1 (en) * 2016-04-29 2017-11-02 Samuel Philip Gerace Cloud-based contacts management
US10063568B1 (en) * 2017-05-15 2018-08-28 Forcepoint Llc User behavior profile in a blockchain
WO2019048574A1 (en) * 2017-09-07 2019-03-14 Yoti Holding Limited Digital identity system
CN108537498A (en) * 2018-03-15 2018-09-14 上海卓辰信息科技有限公司 Interorganizational project management method, system, equipment and medium based on block chain
CN109146423A (en) * 2018-08-23 2019-01-04 四川赢才多多科技有限公司 The talent based on block chain assesses recommended method
CN109214780A (en) * 2018-09-12 2019-01-15 连尚(新昌)网络科技有限公司 A method of for managing and providing recruitment information
CN109615515A (en) * 2018-12-05 2019-04-12 腾讯科技(深圳)有限公司 Credits voucher transfer method, device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
任忠诚;闻亚;刘宏文;: "大学毕业生党员组织关系转移的难点及其对策研究", 中国林业教育, no. 1 *
吴智丹;岳丽娜;付鹏;郑颖;: "高校毕业生党员组织关系转移问题现状及对策研究", 科技展望, no. 05 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111553663A (en) * 2020-05-06 2020-08-18 中建材信息技术股份有限公司 Automatic collaborative approval system and method based on workflow
CN112488834A (en) * 2020-11-24 2021-03-12 成都质数斯达克科技有限公司 Node management method and device, electronic equipment and readable storage medium
CN112488834B (en) * 2020-11-24 2024-03-19 成都质数斯达克科技有限公司 Node management method, node management device, electronic equipment and readable storage medium
CN113724822A (en) * 2021-08-31 2021-11-30 平安国际智慧城市科技股份有限公司 Medical information processing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110599384B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
CN110599173B (en) Block chain consensus node determination method, device, equipment and storage medium
CN110990871B (en) Machine learning model training method, prediction method and device based on artificial intelligence
CN115210741B (en) Partially ordered blockchain
CN110602217B (en) Block chain-based alliance management method, device, equipment and storage medium
CN111291060A (en) Method, device and computer readable medium for managing block chain nodes
CN114365116A (en) Out-of-chain notification of updates from private blockchains
EP4216077A1 (en) Blockchain network-based method and apparatus for data processing, and computer device
CN110599384A (en) Organization relation transfer method, device, equipment and storage medium
CN111291394B (en) False information management method, false information management device and storage medium
CN112291372B (en) Asynchronous posting method, device, medium and electronic equipment for block chain
CN111311211A (en) Data processing method and device based on block chain
JP2021103342A (en) Information processing device, information processing method, and program
CN109194651A (en) A kind of identity identifying method, device, equipment and storage medium
CN111897770A (en) Method and system for initiating litigation request
CN111461881A (en) Data management method and device, computer equipment and storage medium
CN110908812A (en) Business data processing method and device, readable storage medium and computer equipment
CN113449322A (en) Data sharing method and device based on block chain, electronic equipment and readable medium
US11683185B2 (en) Entity certification management
CN114066451A (en) Method and system for managing fund transaction and electronic equipment
CN115427980A (en) Context integrity preservation
CN112488707A (en) Service flow supervision method and system
CN112883425A (en) Data processing method based on block chain and block chain link point
CN111008251A (en) Data processing method and equipment
CN111062497A (en) Property management method, platform and storage medium based on block chain network
CN110704862A (en) Block chain-based personal file management method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant