A data processing method and device, computer equipment and a storage medium

By acquiring data containers and business data templates for the target business type from the blockchain network, the challenges of data management and sharing in blockchain technology are solved, enabling unified management of business data and data sharing among multiple participants, thereby improving the efficiency of data organization and sharing.

CN115525641BActive Publication Date: 2026-03-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-24
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

The lack of a unified management and interconnection solution for on-chain business data in existing blockchain technology results in the inability to effectively manage and share data assets.

Method used

By obtaining the data container and business data template corresponding to the target business type in the blockchain network, and storing the content of multiple data fields managed by multiple participants, unified management and interconnection of business data can be achieved.

Benefits of technology

It enables unified management of business data and data co-construction and sharing among multiple participants, breaking down data silos between enterprises and improving the standardization of data organization and sharing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115525641B_ABST
    Figure CN115525641B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data processing method and device, computer equipment and a storage medium, wherein the method comprises: receiving a data creation request for a target service; obtaining a target data container corresponding to a target service type to which the target service belongs from a block chain network; obtaining a service data template corresponding to the target service in the target data container, the service data template comprising a plurality of data fields managed by a plurality of participants of the target service; obtaining a plurality of field contents from the plurality of participants, and storing each field content into a data field managed by a corresponding participant in the service data template to obtain service data corresponding to the target service, which can be uniformly managed and interconnected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to Internet technology, and more particularly to the field of computer technology, specifically to a data processing method, a data processing device, a computer equipment, and a storage medium. Background Technology

[0002] With the development of internet technology, the concept of blockchain has emerged. Blockchain possesses the characteristics of permanent data storage, tamper-proof nature, and traceability. Smart contracts in blockchain are computer protocols designed to disseminate, verify, or execute contracts in an information-based manner. Because smart contract technology in blockchain provides the possibility for flexible customization and management of on-chain data, a series of on-chain data storage and evidence preservation schemes have been proposed. However, the data assets of these schemes often lack unified standards, making it impossible to uniformly manage and interconnect data on the blockchain. Therefore, how to uniformly manage and interconnect on-chain business data has become a research hotspot. Summary of the Invention

[0003] This application provides a data processing method, apparatus, computer equipment, and storage medium, which can effectively manage business data in a unified manner and build data collaboratively.

[0004] On one hand, embodiments of this application provide a data processing method, the method including:

[0005] Receive data creation requests for the target business;

[0006] Obtain the target data container corresponding to the target business type to which the target business belongs from the blockchain network;

[0007] Obtain the business data template corresponding to the target business from the target data container. The business data template includes multiple data fields managed by multiple participants of the target business.

[0008] The data is obtained by acquiring multiple field contents from multiple participants and storing each field content in the data field managed by the corresponding participant in the business data template, thereby obtaining the business data corresponding to the target business.

[0009] On one hand, embodiments of this application provide a data processing apparatus, the apparatus comprising:

[0010] The communication unit is used to receive data creation requests for the target service;

[0011] The processing unit is used to obtain a target data container from the blockchain network that corresponds to the target business type to which the target business belongs;

[0012] The processing unit is further configured to obtain a business data template corresponding to the target business from the target data container, wherein the business data template includes multiple data fields managed by multiple participants of the target business;

[0013] The processing unit is also used to obtain multiple field contents from multiple participants and store each field content into the data field managed by the corresponding participant in the business data template to obtain the business data corresponding to the target business.

[0014] On one hand, embodiments of this application provide a computer device, which includes an input device, an output device, a processor, and a computer storage medium. The processor and the computer storage medium are interconnected. The computer storage medium is used to store a computer program, and the processor is configured to call the computer program to execute the data processing method described in the first aspect.

[0015] On one hand, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the above-described data processing method.

[0016] On one hand, embodiments of this application provide a computer program product, which includes a computer program; the computer program is stored in a computer-readable storage medium, and when the computer program is executed by the processor of a computer device, it performs the above-described data processing method.

[0017] In this embodiment, on the one hand, by obtaining the target data container corresponding to the target business type to which the target business belongs, businesses belonging to that target business type can be uniformly managed into one data container. Furthermore, when creating a business, the business is stored according to the business data template in the target data container, further realizing unified management of business data and defining the data organization format. On the other hand, by obtaining multiple field contents from multiple participants and storing these field contents into the data fields managed by the corresponding participants in the business data template, mutual access to business data among multiple participants is achieved, facilitating data co-construction and data sharing between enterprises. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1a This is an architecture diagram of a data processing system provided in an embodiment of this application;

[0020] Figure 1b This is the method of connecting blocks in a blockchain provided in the embodiments of this application;

[0021] Figure 1c This is a schematic diagram of the data uploading process provided in the embodiments of this application;

[0022] Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application;

[0023] Figure 3a This is a schematic diagram illustrating that the business data template provided in this application includes multiple data fields;

[0024] Figure 3b This is a schematic diagram of the field content in multiple data fields provided in the embodiments of this application;

[0025] Figure 4 This is a flowchart illustrating a data processing method provided in an embodiment of this application;

[0026] Figure 5 This is a schematic diagram illustrating a data query based on key data provided in an embodiment of this application;

[0027] Figures 6a-6c This is a schematic diagram of a data processing method provided in an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0029] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0030] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0031] This application relates to blockchain networks, which are a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and to generate the next block.

[0032] Based on the aforementioned blockchain network, this application provides a data processing scheme, the general principle of which is as follows: In the blockchain network, one or more participants create a specific business, and simultaneously authorize multiple participants to jointly maintain the business data corresponding to the business, achieving data co-construction and data sharing among multiple on-chain enterprises. Specifically, when one or more participants want to create a specific business, they can submit a data creation request for that business to any node in the blockchain network. Then, any node responds to the data creation request, obtaining a data container pre-stored in the blockchain network corresponding to the target business type of that business. This data container contains a pre-set business data template for storing the business data corresponding to that business. Here, the data container refers to a container used to uniformly store one or more businesses corresponding to the target business type; it can be understood as a database. Then, any node can obtain the field content related to the target business from one or more participants and store the target business-related field content into the corresponding data field in the business data template, obtaining the business data corresponding to that business. By obtaining the data container in the blockchain network, multiple participants on the chain can jointly establish and manage the same business. Storing the business data through the business data template also defines the data organization format.

[0033] Based on the data processing scheme provided in the embodiments of this application, the embodiments of this application also provide a data processing system, please refer to [link to relevant documentation]. Figure 1aThe data processing system 100 shown includes at least one computer device 101 and a blockchain network 102. The computer device 101 can be a terminal device or a server. The blockchain network 102 refers to a network used for data storage, management, and sharing between nodes. This blockchain network includes multiple nodes 1011, any of which can be a terminal device or a server. The computer device 101 and any node in the blockchain network 102 can be directly or indirectly connected via wired or wireless communication. This embodiment does not impose limitations on this. The terminal device can be a smartphone, tablet, laptop, desktop computer, smart vehicle, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms, etc.

[0034] In one embodiment, each node 1011 in the blockchain network receives input information (e.g., a data creation request or an operation request) during normal operation and maintains shared data within the data processing system based on the received input information. To ensure information exchange within the data processing system, information connections exist between each node, allowing for information transmission between nodes. Each node 1101 in the blockchain network stores an identical blockchain. The blockchain consists of multiple blocks, see [link to relevant documentation]. Figure 1b A blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores input information feature values, version number, timestamp, and difficulty value, while the block body stores the input information. The next block after the genesis block takes the genesis block as its parent block. The next block also includes a block header and a block body. The block header stores the input information feature values ​​of the current block, the block header feature values ​​of the parent block, version number, timestamp, and difficulty value, and so on. This ensures that the block data stored in each block is related to the block data stored in the parent block, guaranteeing the security of the input information in the blocks.

[0035] When generating the individual blocks in the blockchain, see Figure 1cWhen a node in the blockchain receives input information (such as a data creation request or operation request in this embodiment), it verifies the input information. After verification, it stores the input information in a memory pool and updates the hash tree used to record the input information. Then, it updates the timestamp to the time the input information was received and tries different random numbers to calculate the feature value multiple times, so that the calculated feature value can satisfy the following formula:

[0036]

[0037] in, SHA256 The eigenvalue algorithm used to compute eigenvalues; version (Version number) refers to the version information of the relevant block protocol in the blockchain; prev_hash This is the block header feature value of the parent block of the current block; merkle_root The feature values ​​of the input information; ntime The update time for the timestamp; nbits The current difficulty level will remain constant for a certain period of time, and will be redefined after the fixed time period has expired. x It is a random number; TARGET This is the eigenvalue threshold, which can be determined based on... nbits It has been confirmed.

[0038] Thus, when a random number satisfying the above formula is calculated, the information can be stored accordingly, generating a block header and block body to obtain the current block (e.g., a block including an operation request). Subsequently, the newly generated block (e.g., a block including an operation request) is sent to the consensus nodes in the data processing system. The consensus nodes verify the newly generated block and, after verification, add it to their stored blockchain, thereby ensuring data security and legitimacy.

[0039] In a specific implementation, computer device 102 can send a data creation request for a target business to any node 1011 in the blockchain network 101. The computer device 102 can be a device used by a participant in the target business or a device used by the manager of the target business. Then, any node 1011 responds to the data creation request, obtains the data container corresponding to the target business type to which the target business belongs, and then generates the business data of the target business according to the data template corresponding to the target business in the data container.

[0040] In this embodiment, on the one hand, by obtaining the target data container corresponding to the target business type to which the target business belongs, businesses belonging to that target business type can be uniformly managed into one data container. Furthermore, when creating a business, the business is stored according to the business data template in the target data container, further realizing unified management of business data and defining the data organization format. On the other hand, by obtaining multiple field contents from multiple participants and storing these field contents into the data fields managed by the corresponding participants in the business data template, mutual access to business data among multiple participants is achieved, facilitating data co-construction and data sharing between enterprises.

[0041] Based on the data processing solutions and systems provided above, please refer to Figure 2 , Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The data processing method can be executed by a computer device; the computer device can be a terminal device or a server, and can also be any node in the aforementioned data processing system. The data processing method described in this embodiment may include the following steps S201-S204:

[0042] S201. Receive a data creation request for the target business.

[0043] The target business can be any type of loan business, any type of sales business, etc. For example, the target business could be type A loan business, type B loan business, etc.

[0044] In one implementation, the computer device can receive a data creation request sent by any participant in the target business. The participants in the target business vary depending on the business type. For example, if the business type is type A (loan), the participants in the loan business can include lenders, financiers, regulatory agencies, etc. In this case, the computer device can receive a data creation request for the loan business from any participant such as the lender, financier, or regulator. As another example, if the business type is type A (sales), the participants in the sales business can include sellers, buyers, etc. In this case, the computer device can receive a data creation request for the sales business from any participant such as the seller or the buyer.

[0045] As another implementation, the computer device can also receive data creation requests for a target business sent by an administrator. The administrator can be a user managing the business data of that target business; or the administrator can be a user managing the blockchain network.

[0046] In one embodiment, to ensure data security, the data creation request needs to be validated for legitimacy. This data creation request carries identity information. In response to a data creation request for a target service, the computer device can validate the identity information. Once the validation of the target user's identity information passes, step S202 is executed. The identity information carried in the data creation request can refer to the identity information of the computer device sending the request, such as the device's serial number, hardware number, etc. Alternatively, the identity information can refer to the identity information of any participant or administrator in the target service that generated the data creation request; for example, any participant's identity information can include their ID card number, login account, etc.

[0047] Optionally, the data creation request may also include the content of multiple fields obtained from multiple participants.

[0048] S202. Obtain the target data container from the blockchain network that corresponds to the target business type to which the target business belongs.

[0049] The target data container is a container used to store one or more business functions under the target business type. For example, the target data container can be a database table structure.

[0050] In order to effectively manage multiple businesses under different types of business, a data container for a certain type of data can be implemented before step S202. This can be understood as: computer equipment can generate data containers corresponding to different business types to manage multiple businesses under the same business type in a unified manner, and store the data containers corresponding to different business types in the blockchain network.

[0051] Upon receiving a data creation request for a target business, the computer device, in response, can first determine the target business type to which the target business belongs. As one implementation method, the computer device can match the target business type with different business types in the blockchain network, and then use the data container corresponding to the business type that matches the target business type as the target data container corresponding to the target business type. For example, if the target business is a type A loan business, the computer device can determine that the target business type to which type A loan business belongs is type A loan. Then, the computer device matches type A loan with different business types, and then uses the data container corresponding to the business type that matches type A loan as the target data container corresponding to type A loan.

[0052] As another implementation, computer devices can determine the target data container corresponding to the target business type based on smart contracts in a blockchain network. In a specific implementation, the computer device uses a smart contract to generate the target data container corresponding to the target business. Then, when the computer device receives a data creation request, it can obtain the smart contract corresponding to the data creation request and invoke that smart contract to retrieve the target data container corresponding to the target business type from the blockchain network. Because smart contracts allow for trusted transactions without a third party, and these transactions are detectable and irreversible, the target data container corresponding to the target business type determined through smart contracts is more reliable.

[0053] S203. Obtain the business data template corresponding to the target business from the target data container. The business data template includes multiple data fields managed by multiple participants of the target business.

[0054] The above business data template can be found as follows: Figure 3a As shown, in Figure 3a The target business is managed by multiple participants and consists of three data fields: Field 1, Field 2, and Field 3. Field 1 contains the value XX, Field 2 contains the value XXXXXXX, and Field 3 contains the value XXXXXX.

[0055] The aforementioned multiple participants may include at least two of the following: data creators (or data owners), data editors, and data visitors. A data creator is a user who applies for or creates the target business; a data editor is a user who can edit some or all of the business data corresponding to the target business; and a data visitor is a user who can access some or all of the business data corresponding to the target business. Each participant in the target business may be responsible for managing one data field. For example, the data creator manages field 1, the data editor manages field 2, and the data visitor manages field 3. Alternatively, the multiple participants in the target business may jointly manage multiple data fields, meaning that any given data field is jointly managed by multiple participants; for example, the data creator and data editor are responsible for managing field 1.

[0056] In practical implementation, during the process of creating data containers for different business types, a business data template corresponding to the target business can also be created within the target data container. Subsequently, computer devices can obtain the business data template corresponding to the target business after the target data container is determined.

[0057] As one implementation method, business data templates can be created based on the target business type. That is, the multiple participants in the target business included in the business data template, and the multiple data fields managed by these participants, can be created according to the target business type. For example, if the target business is a type A loan business, and the target business type is type A loan, the corresponding business data template is determined based on this type A loan. When creating the business data template for a type A loan business, the computer device can, since type A loans generally include a loan creator (lender), a loan editor (lender), and a loan visitor (regulator), the multiple participants included in the business data template for type A loan business are: the loan creator (lender), the loan editor (lender), and the loan visitor (regulator). Then, the multiple data fields managed by these participants are the data fields managed by the loan creator (i.e., the lender), the data fields managed by the loan editor (lender), and the data fields managed by the loan visitor (regulator). Those not among these multiple participants cannot perceive the existence of the target business and cannot obtain the corresponding business data.

[0058] As another implementation method, the business data template can be determined according to business needs. That is, the multiple participants in the target business included in the business data template, and the multiple data fields managed by these participants, can be created according to business requirements. For example, if the target business is sales, and the target business type of sales is sales, the business data template corresponding to this sales activity is created according to user needs. This sales-related business data template includes two participants: the seller (i.e., the data editor) and the buyer (the data creator); the multiple data fields managed by the two participants are the data fields managed by the seller and the data fields managed by the buyer, respectively.

[0059] Optionally, the multiple data fields managed by multiple participants may include: immutable data fields, mutable data fields, and user operation permission fields. The content of the immutable data fields is maintained by the data creator, and this content indicates some attributes of the target business initialization, such as the target business's order number, the data creator's address, etc. The content of the mutable data fields is maintained by the data editor, and this content is used to record the real-time status of the target business. The user operation permission fields are used to record the business data of the multiple participants responsible for managing the target business. Each of the immutable, mutable, and user operation permission fields may further include multiple fields.

[0060] For example Figure 3bTaking the target business as a type A loan business as an example, the immutable data fields include the lender's (i.e., the data creator) order number field, the lender's address field, the loan amount field, etc.; the variable data fields include the platform's (i.e., the data editor) order number field, the lender's address field, the order status field, etc.; the user operation permission fields may also include the data creator field, the data editor field, and the data accessor field.

[0061] S204. Obtain the content of multiple fields from multiple participants, and store the content of each field into the data field managed by the corresponding participant in the business data template to obtain the business data corresponding to the target business.

[0062] In one implementation, when a computer device receives a service creation request for a target service, the service creation request carries multiple field contents obtained from multiple participants, and then the computer device directly obtains the multiple field contents from the service creation request; in another implementation, after the computer device obtains the service data template corresponding to the target service in the target data container, it can also send field content retrieval requests to the computer devices of multiple participants, so as to obtain multiple field contents from multiple participants.

[0063] The computer then validates the content of multiple fields obtained from multiple participants. Upon successful validation, each field is stored in the corresponding data field managed by the participant in the business data template, thus obtaining the business data corresponding to the target business. For example, the computer retrieves field content 1 and field content 2 from the data creator, and field content 3 from the data editor. It then validates field content 1, field content 2, and field content 3. After successful validation, the computer stores field content 1 in the immutable data field managed by the data creator in the business data template, field content 2 in the user operation permission field managed by the data creator, and field content 3 in the mutable data field managed by the data editor.

[0064] In one embodiment, the target data container may include a first data storage layer, a second data storage layer, and a third data storage layer. The first data storage layer stores the correspondence between target business types and the target data container. The second data storage layer stores business data corresponding to multiple businesses under the target business type. The third data storage layer stores key data fields in the business data corresponding to each business. It should be understood that key data fields can also be managed by multiple participants, and the key data field includes one or more of multiple data fields. Optionally, the key data field includes any one or more of the following: content-mutable data fields, content-immutable data fields, and user operation permission fields.

[0065] In this scenario, the computer stores the content of each field into the data field managed by the corresponding participant in the business data template. The specific implementation of obtaining the business data corresponding to the target business is as follows: The computer device can store the correspondence between the target business type and the target data container in the first data storage layer, store the business data corresponding to the target business under the target business type in the second data storage layer, and then store the content of each field into the data field included in the key data field of the business data corresponding to the target business in the third data storage layer.

[0066] Furthermore, the first, second, and third data storage layers within the data container all store data in key-value pairs. This facilitates subsequent lookups of value data based on the key data within the key-value pair, ensuring efficient querying of business data. Specifically, in the first data storage layer, the target business type is the key data, and the target data container is the value data. In the second data storage layer, the identification information of multiple businesses under the target business type is the key data, and the business data corresponding to each business is the value data; the identification information may include business ID, business name, etc. In the third data storage layer, the key data fields in the business data of each business are the key data, and the field content of the key data fields is the value data.

[0067] Similarly, in the process of the computer device storing the content of each field into the data field managed by the corresponding participant in the business data template, in the first data storage layer, the computer device uses the target business type as the key data and the target data container as the value data; in the second data storage layer, the computer device uses the identification information of the target business under the target business type as the key data and the business data corresponding to the target business as the value data; in the third data storage layer, the computer device uses the key data fields in the business data of the target business as the key data and the field content in the key data fields as the value data.

[0068] In one embodiment, a block including a data creation request may also be generated and sent to a consensus node for consensus. After the consensus on the block is passed, the block including the data creation request is saved to the blockchain network for post-event traceability and auditing, thereby ensuring data security.

[0069] In this embodiment, the computer device obtains a target data container corresponding to the target business type from the blockchain network. Then, it retrieves a business data template corresponding to the target business from the target data container. Next, it obtains multiple field contents from multiple participants and stores each field content into the corresponding data field managed by the participant in the business data template, thus obtaining the business data corresponding to the target business. For each target business of a target business type, the obtained multiple field contents can be stored in the corresponding data field of the business data template, thus defining the data organization format. This facilitates data co-construction and sharing among enterprises, achieving unified management and data interoperability of business data.

[0070] Please see Figure 4 , Figure 4 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The data processing method can be executed by a computer device, which can be a terminal device or a server, and can also be any node in the aforementioned blockchain network. The data processing method described in this embodiment may include the following steps S401-407:

[0071] S401: Receive a data creation request for the target business.

[0072] S402. Obtain the target data container from the blockchain network that corresponds to the target business type to which the target business belongs.

[0073] S403. Obtain the business data template corresponding to the target business from the target data container. The business data template includes multiple data fields managed by multiple participants of the target business.

[0074] S404. Obtain multiple field contents from multiple participants and store each field content into the data field managed by the corresponding participant in the business data template to obtain the business data corresponding to the target business.

[0075] For details on the implementation of steps S401-S404, please refer to the above embodiments. Figure 2 The specific implementation methods of steps S201-204 will not be elaborated here.

[0076] S405. Receive an operation request from the target user for the target service. The operation request includes the target service type to which the target service belongs.

[0077] The target user can be any one of the multiple participants in the target business, or the target user can be the manager of the target business. The operation request can be a change operation request, a query operation request, etc. In one embodiment, when the operation request is a change operation request, the operation indicated by the operation request is a change operation, and the operation request may also include change instruction information and an identifier of the data field to be modified. In another embodiment, when the operation request is a query operation request, the operation indicated by the operation request is a query operation, and the operation request may also include query instruction information and an identifier of the data field to be queried.

[0078] In another embodiment, the operation request may also carry the target user's identity information. Upon receiving the target user's operation request for the target service, the computer device can perform a legitimacy verification of the target user based on this identity information, and execute step S402 if the legitimacy verification passes. If the legitimacy verification of the target user fails, a prompt message can be sent to multiple participants in the target service, indicating that a target user is currently performing an operation on the target service.

[0079] S406. Obtain the target data container corresponding to the target business type, and retrieve the user operation permission field from the business data corresponding to the target business in the target data container. The content of the user operation permission field indicates the users allowed to perform preset operations on the target business.

[0080] The user operation permission field indicates the user who is allowed to perform preset operations on the target business. This refers to one or more of the multiple participants in the target business. The preset operations include any one or more of the following: change operations and query operations.

[0081] In one embodiment, a computer device may obtain a target data container corresponding to a target business type by: obtaining a smart contract corresponding to the operation request, and then calling the smart contract to obtain the target data container corresponding to the target business type from the blockchain network.

[0082] In one embodiment, the target data container includes a first data storage layer, a second data storage layer, and a third data storage layer; the first data storage layer stores the correspondence between the target business type and the target data container; the second data storage layer stores business data corresponding to multiple businesses under the target business type; and the third data storage layer stores key data fields in the business data corresponding to each business. The key data fields include any one or more of the following: content-variable data fields, content-immutable data fields, and user operation permission fields.

[0083] The specific implementation method for the computer device to obtain the target data container corresponding to the target business type is as follows: the computer device determines the target data container corresponding to the target business type in the first data storage layer according to the correspondence between the target business type and the target data container.

[0084] The specific implementation method for a computer device to retrieve the user operation permission field from the business data corresponding to the target business in the target data container can be as follows: In the second data storage layer, the computer device retrieves the business data corresponding to the target business from the business data corresponding to multiple businesses under the target business type, and then determines the user operation permission field from the business data corresponding to the target business. In one implementation, this business data includes all data fields related to the target business, and the computer device directly determines the user operation permission field from all data fields corresponding to the business data of the target business. In another implementation, the operation request also carries the user operation permission field, and the computer device directly retrieves the user operation permission field from the business data corresponding to the target business in the third data storage layer. This allows for a faster search for the user operation permission field in the business data corresponding to the target business. It should be noted that the computer retrieving the user operation permission field actually retrieves the field content of that user operation permission field.

[0085] In one embodiment, the first, second, and third data storage layers all store data in key-value pair format. Specifically, in the first data storage layer, the target business type is the key data, and the target data container is the value data. In the second data storage layer, the identification information of multiple businesses under the target business type is the key data, and the business data corresponding to each business is the value data. In the third data storage layer, the key data fields in the business data of each business are the key data, and the field content of the key data fields is the value data. The specific implementation method for the computer device to obtain the target data container corresponding to the target business type is as follows: the computer device obtains the target data container corresponding to the target business type in the first data storage layer through the key data target business type. For example, ... Figure 5 As shown, in the first data storage layer, the key data is business type 1, and the value data is data container 1; the computer device can obtain the data container 1 corresponding to business type 1.

[0086] Another possible implementation for a computer device to retrieve the user operation permission field from the business data corresponding to the target business in the target data container is as follows: In the second data storage layer, query the business data corresponding to the target business using the key data (the user operation permission field in the target business data); then, after retrieving the business data corresponding to the target business, query the field content corresponding to the user operation permission field in the third data storage layer using the key data (the user operation permission field in the target business data). For example... Figure 5As shown, the target business is business 1, and business 1 is key data. In the business data corresponding to business 1, the user operation permission field is field 1, and field 1 is key data. The computer device queries the business data corresponding to business 1 through business 1 in the second data storage layer. Then, after querying the business data corresponding to business 1, the field content corresponding to field 1 can be queried from the business data corresponding to business 1 in the third data storage layer.

[0087] S407. Execute the operation indicated by the operation request on the business data corresponding to the target business based on the field content in the user operation permission field.

[0088] Specifically, the computer device can determine the target operation that the target user is allowed to perform on the target service based on the content of the user operation permission field, where the target operation is a preset operation. The computer device then determines whether the operation indicated by the operation request matches the target operation. If the operation indicated by the operation request matches the target operation, the computer device executes the operation indicated by the operation request on the business data corresponding to the target service. If the operation indicated by the operation request does not match the target operation, the computer device sends a prompt message to multiple participants in the target service, instructing the target user to request an operation outside their authorized operation permissions. The preset operation is one or more of a change operation or a query operation.

[0089] (1) When the operation requested is a change operation, the operation request carries a change prompt and an identifier of the data field to be modified. In this case, if the operation requested matches the target operation, the specific implementation of the operation requested on the business data corresponding to the target business is as follows: if the operation requested matches the target operation, the target data field to be modified is determined from multiple data fields of the business data corresponding to the target business based on the identifier of the data field to be modified; and it is determined whether the target data field is a variable data field.

[0090] If the computer device determines that the target data field is a variable-content data field, it modifies the field content according to the change instruction information. In one implementation, the change prompt information may include the changed data, indicating that the changed data should directly replace the field content in the target data field. The computer device then directly replaces the field content in the target data field according to the change prompt information. If the computer device determines that the target data field is not a variable-content data field, it may send a reminder message to multiple participants, indicating that the target user wants to change the field content in the target data field.

[0091] (2) When the operation requested is a query operation, if the operation requested matches the target operation, the specific implementation of executing the operation requested on the business data corresponding to the target business can be as follows: If the operation requested matches the target operation, the computer device can query and display the business data corresponding to the target business. In one embodiment, the operation request carries query instruction information and a data field identifier to be queried. The computer device can determine the target data field to be queried from multiple data fields of the business data corresponding to the target business based on the data field identifier to be queried. Then, the computer device queries the field content corresponding to the target data field from the target data field to be queried based on the query instruction information and displays the field content corresponding to the target data field. It should be understood that when the target user is restricted by query permissions or only wants to query a part of the business data of the target business, the query can be performed through the data field identifier to be queried.

[0092] In one embodiment, based on the traceability and immutability of blockchain, any operation performed by any participant among multiple parties in the target business on the business data of the target business will leave a trace in the blockchain network and be permanently recorded in the form of blockchain transactions. In specific implementation, after a computer device executes the operation indicated by the operation request on the business data corresponding to the target business, the computer device can generate an operation request block and broadcast the block to consensus nodes for consensus. Once consensus is reached, the computer device stores the block on the blockchain network, which can then be used for post-event traceability and auditing, ensuring the security and legality of the data.

[0093] In this embodiment, the computer device can store the acquired multiple field contents into the corresponding data fields of the business data template for the target business type, thereby defining the data organization format. This facilitates data co-construction and sharing among enterprises, achieving unified management and data interoperability of business data. Then, after receiving an operation request from a target user for the target business, the computer device can obtain the user operation permission field from the business data corresponding to the target business in the target data container, and then execute the operation indicated by the operation request on the business data corresponding to the target business according to the field contents in the user operation permission field. This enables multiple participants to co-construct and share the business data of the target business, breaking down the boundaries of upstream and downstream business order flows within the enterprise.

[0094] The data processing method provided in this application can be applied to scenarios where unified management of services is required under various types of business. Please refer to... Figures 6a-6c This is a schematic diagram of a data processing scenario provided in an embodiment of this application. Figure 6aAs shown, the on-chain business database table of loan business A is used to illustrate the data processing method provided in this application embodiment. Figure 6a In this system, a smart contract based on a blockchain network pre-generates a data container, which is a database table containing business data templates corresponding to the loan business. These business data templates include multiple participants: lenders (i.e., data creators), lenders (data editors), and data accessors. Each participant manages several data fields: immutable fields managed by the lender (data creator), and mutable fields managed by the lender (data editor). The database table includes a first data storage layer, a second data storage layer, and a third data storage layer. Data is stored in key-value pairs across all three layers. In the key-value structure of the first data storage layer, the key is the database table name, which represents loan business A, and the value is the table structure, which is the database structure. In the key-value structure of the second data storage layer, the key is the row primary key, which represents multiple loan business orders under loan business A, and the value is the row data, which represents the business data corresponding to each loan business order. In the key-value structure of the third data storage layer, the key represents multiple data fields managed by multiple participants corresponding to each loan business, and the value is the field content of each data field.

[0095] exist Figure 6b In this blockchain network, for a lender to initiate a loan, they can submit a data creation request for loan transaction A to any node. The node receives this request, retrieves the corresponding smart contract, and then calls the smart contract to obtain the database table corresponding to loan transaction type A within the blockchain network. The node then retrieves the business data template for the loan transaction from the database table. This template includes three data fields: immutable data fields, mutable data fields, and user operation permission fields. Each of these fields contains multiple subfields. The immutable data fields may include the lender's loan order number, loan amount, etc., and their content cannot be changed. The mutable data fields include the lender's address, loan status, etc., and these fields can be modified by upstream and downstream business participants. The user operation permission fields may include data creator, data editor, and data access fields.

[0096] Then any node retrieves the content of multiple fields from multiple participants. For example... Figure 6c In this process, multiple participants, including lenders and borrowers, are involved. Any node obtains the following fields from the lender: Loan Order Number 1123444, Lender Address XXXX, and Loan Amount 1,000,000. From the borrower, it obtains the following fields: Platform Order Number 474839, Lender Address XXXXXXX, and Order Status "Under Approval". Additionally, it can obtain the following fields jointly from both the lender and borrower: Data Creator (for the borrower), Data Editor (for the bank), and Data Visitor (for the regulatory agency). Each field is then stored in the corresponding data field managed by the relevant participant within the business data template, resulting in the business data for the loan transaction.

[0097] Furthermore, to facilitate subsequent queries, the computer device creates a first key-value pair in the first data storage layer of the database table. The key data in the first key-value pair is the business name of loan business type A, and the value data is the database container. It can be understood that the business data corresponding to the loan business in this database container all belong to loan business A. A second key-value pair is created in the second data storage layer. The key data in the second key-value pair is loan business order 3, and the value data is the business data of loan business order 3. A third key-value pair is created in the third data storage layer. The key data in the third key-value pair is any one of the following data fields in the business data of loan business order 3: immutable data fields, mutable data fields, and user operation permission fields. The value data in the third key-value pair is the content of any one of these data fields.

[0098] By using the above data processing methods, while maintaining the model similarity to traditional databases, it is possible to achieve the ability of multiple parties on the chain to share and co-build the same state data. This can break down the boundaries of upstream and downstream business order flows of enterprises, while ensuring data security and traceability. It can play a significant role in multi-party businesses such as supply chain finance.

[0099] Based on the data processing methods provided above, please refer to Figure 7 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. Figure 7 As shown, the data processing device can be applied to the above. Figure 2 or Figure 4 The computer device in the corresponding embodiment; specifically, the data processing device may be a computer program (including program code) running on the computer device, for example, the data processing device is an application software; the data processing device may be used to execute the corresponding steps in the method provided in the embodiments of this application.

[0100] Communication unit 701 is used to receive data creation requests for the target service;

[0101] Processing unit 702 is used to obtain a target data container from the blockchain network that corresponds to the target business type to which the target business belongs;

[0102] The processing unit 702 is further configured to obtain a business data template corresponding to the target business from the target data container, wherein the business data template includes multiple data fields managed by multiple participants of the target business;

[0103] The processing unit 702 is further configured to obtain multiple field contents from multiple participants and store each field content into the data field managed by the corresponding participant in the business data template, thereby obtaining the business data corresponding to the target business.

[0104] In one embodiment, the business data corresponding to the target business includes a user operation permission field. The content of the user operation permission field is used to indicate the user who is allowed to perform a preset operation on the target business. The preset operation includes any one or more of a change operation and a query operation. The communication unit 701 is also used to receive an operation request from the target user for the target business. The operation request includes the target business type to which the target business belongs.

[0105] The processing unit 702 is further configured to obtain the target data container corresponding to the target business type, and to obtain the user operation permission field in the business data corresponding to the target business from the target data container; and to perform the operation indicated by the operation request on the business data corresponding to the target business based on the field content in the user operation permission field.

[0106] In one embodiment, when the processing unit 702 executes the operation indicated by the operation request on the business data corresponding to the target business based on the field content in the user operation permission field, it may specifically be used to:

[0107] Based on the content of the fields in the user operation permission field, a target operation that the target user is allowed to perform on the target service is determined, and the target operation belongs to the preset operation;

[0108] If the operation indicated by the operation request matches the target operation, then the operation indicated by the operation request is executed on the business data corresponding to the target business.

[0109] In one embodiment, the communication unit is further configured to: if the operation indicated by the operation request does not match the target operation, send a prompt message to multiple participants of the target service, the prompt message being used to prompt the target user to request to perform an operation outside of their authorized scope on the target service.

[0110] In one embodiment, the target data container includes a first data storage layer, a second data storage layer, and a third data storage layer; the first data storage layer stores the correspondence between the target business type and the target data container; the second data storage layer stores business data corresponding to multiple businesses under the target business type; and the third data storage layer stores key data fields in the business data corresponding to each business. The key data fields include any one or more of the following: content-variable data fields, content-immutable data fields, and user operation permission fields.

[0111] In one embodiment, the operation requested is a change operation, and the operation request carries change indication information and an identifier of the data field to be modified. When the processing unit 702 executes the operation requested on the business data corresponding to the target business if the operation requested matches the target operation, it can be specifically used for:

[0112] If the operation indicated by the operation request matches the target operation, then based on the data field identifier to be modified, the target data field to be modified is determined from multiple data fields of the business data corresponding to the target business.

[0113] If the target data field is a variable-content data field, then the field content in the target data field is changed according to the change instruction information.

[0114] In one embodiment, after performing the operation indicated by the operation request on the business data corresponding to the target business, the communication unit 701 is further configured to: generate a block including the operation request and broadcast the block to the consensus node for consensus; the processing unit 702 is further configured to store the block on the blockchain network after consensus is passed.

[0115] In one embodiment, when the processing unit 702 obtains a target data container from the blockchain network that corresponds to the target business type to which the target business belongs, it may specifically be used for:

[0116] Obtain the smart contract corresponding to the data creation request;

[0117] The smart contract is invoked to obtain the target data container corresponding to the target business type from the blockchain network.

[0118] In one embodiment, the first data storage layer, the second data storage layer, and the third data storage layer all store data in key-value pair format. Specifically, in the first data storage layer, the target business type is the key data, and the target data container is the value data. In the second data storage layer, the identification information of multiple businesses under the target business type is the key data, and the business data corresponding to each business is the value data. In the third data storage layer, the key data fields in the business data of each business are the key data, and the field content in the key data fields is the value data.

[0119] According to one embodiment of this application, Figure 2 and Figure 4 The data processing method shown can involve various steps that can be derived from... Figure 7 This is performed by each unit in the data processing apparatus shown. For example, Figure 2 The aforementioned step S201 can be performed by Figure 7 The communication unit 701 in the data processing device shown executes the steps S202 to S204, which can be performed by... Figure 7 The data processing unit 702 in the shown data processing apparatus executes the operation; for example, Figure 4 In the data processing method shown, step S401 can be performed by... Figure 7 The communication unit 701 in the data processing device shown executes the steps S402 to S404, which can be performed by... Figure 7 The processing unit 702 in the data processing device shown executes step S405, which can be performed by... Figure 7 The communication unit 701 in the data processing device shown executes the steps S405-S406, which can be performed by... Figure 7 The processing unit 702 in the data processing device shown executes the data processing.

[0120] According to another embodiment of this application, Figure 7 The data processing apparatus shown can be composed of individual or combined units into one or more other units, or some of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are based on logical function division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the data processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.

[0121] According to another embodiment of this application, the following can be achieved by running on a general-purpose computing device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), a device capable of performing operations such as... Figure 2 and Figure 4 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 7 The data processing apparatus shown herein, and the data processing method for implementing the embodiments of this application, are described. The computer program may be recorded on, for example, a computer-readable storage medium, loaded onto the aforementioned computer device via the computer-readable storage medium, and run therein.

[0122] In this embodiment, the computer device obtains a target data container corresponding to the target business type from the blockchain network. Then, it retrieves the business data template corresponding to the target business from the target data container and obtains multiple field contents from multiple participants. Each field content is then stored in the data field managed by the corresponding participant in the business data template, thus obtaining the business data corresponding to the target business. For each target business of a target business type, the obtained multiple field contents can be stored in the corresponding data field of the business data template, thus defining the data organization format. This facilitates data co-construction and sharing among enterprises, achieving unified management and data interoperability of business data.

[0123] Further, please see Figure 8 This is a schematic diagram of a computer device provided in an embodiment of this application. Specifically, this computer device can be as described above. Figure 2 or Figure 4 The computer device in the corresponding embodiment. For example... Figure 8 As shown, the computer device may include a processor 801, an input device 802, an output device 803, and a computer storage medium 804. The processor 801, input device 802, output device 803, and computer storage medium 804 are connected via a bus 805.

[0124] The aforementioned computer storage medium 804 can be stored in the memory of a computer device. The computer storage medium 804 is used to store computer programs, and the processor 801 is used to execute the computer programs stored in the computer storage medium 804. The processor 801 (or CPU (Central Processing Unit)) is the computing and control core of the computer device, suitable for implementing one or more computer programs, specifically suitable for loading and executing:

[0125] Receive data creation requests for the target business;

[0126] Obtain the target data container corresponding to the target business type to which the target business belongs from the blockchain network;

[0127] Obtain the business data template corresponding to the target business from the target data container. The business data template includes multiple data fields managed by multiple participants of the target business.

[0128] The data is obtained by acquiring multiple field contents from multiple participants and storing each field content in the data field managed by the corresponding participant in the business data template, thereby obtaining the business data corresponding to the target business.

[0129] In this embodiment, the computer device obtains a target data container corresponding to the target business type from the blockchain network. Then, it retrieves the business data template corresponding to the target business from the target data container and obtains multiple field contents from multiple participants. Each field content is then stored in the data field managed by the corresponding participant in the business data template, thus obtaining the business data corresponding to the target business. For each target business of a target business type, the obtained multiple field contents can be stored in the corresponding data field of the business data template, thus defining the data organization format. This facilitates data co-construction and sharing among enterprises, achieving unified management and data interoperability of business data.

[0130] This application embodiment also provides a computer storage medium (memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer storage medium here can include the computer device's built-in storage medium, or it can include extended storage media supported by the computer device. The computer storage medium provides storage space, which stores the operating system of the computer device. Furthermore, this storage space also stores one or more computer programs suitable for loading and execution by the processor 801. It should be noted that the computer storage medium here can be high-speed RAM, or it can be non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer storage medium located remotely from the aforementioned processor.

[0131] In one embodiment, the computer storage medium may be loaded and executed by the processor 801, along with one or more computer programs stored in the computer storage medium, to achieve the above-mentioned purpose. Figure 2 and Figure 4 The corresponding steps of the data processing method shown are as follows. In a specific implementation, one or more computer programs in the computer storage medium are loaded by the processor 801 and executed as follows:

[0132] Receive data creation requests for the target business;

[0133] Obtain the target data container corresponding to the target business type to which the target business belongs from the blockchain network;

[0134] Obtain the business data template corresponding to the target business from the target data container. The business data template includes multiple data fields managed by multiple participants of the target business.

[0135] The data is obtained by acquiring multiple field contents from multiple participants and storing each field content in the data field managed by the corresponding participant in the business data template, thereby obtaining the business data corresponding to the target business.

[0136] In one embodiment, the business data corresponding to the target business includes a user operation permission field. The content of the user operation permission field is used to indicate users who are allowed to perform preset operations on the target business. The preset operations include any one or more of modification operations and query operations. One or more computer programs in the computer storage medium are loaded by the processor 801 and executed in the following steps:

[0137] Receive an operation request from a target user for the target service, wherein the operation request includes the target service type to which the target service belongs;

[0138] Obtain the target data container corresponding to the target business type, and obtain the user operation permission field from the business data corresponding to the target business in the target data container;

[0139] Based on the content of the user operation permission field, the operation indicated by the operation request is executed on the business data corresponding to the target business.

[0140] In one embodiment, based on the content of the user operation permission field, the operation indicated by the operation request is executed on the business data corresponding to the target business. One or more computer programs in the computer storage medium are loaded by the processor 801 and can specifically execute the following steps:

[0141] Based on the content of the fields in the user operation permission field, a target operation that the target user is allowed to perform on the target service is determined, and the target operation belongs to the preset operation;

[0142] If the operation indicated by the operation request matches the target operation, then the operation indicated by the operation request is executed on the business data corresponding to the target business.

[0143] In one embodiment, one or more computer programs in the computer storage medium are loaded by processor 801 and executed as follows:

[0144] If the operation indicated by the operation request does not match the target operation, a prompt message is sent to multiple participants of the target service. The prompt message is used to prompt the target user to request to perform an operation outside of their authorized scope on the target service.

[0145] In one embodiment, the target data container includes a first data storage layer, a second data storage layer, and a third data storage layer; the first data storage layer stores the correspondence between the target business type and the target data container; the second data storage layer stores business data corresponding to multiple businesses under the target business type; and the third data storage layer stores key data fields in the business data corresponding to each business. The key data fields include any one or more of the following: content-variable data fields, content-immutable data fields, and user operation permission fields.

[0146] In one embodiment, the operation request indicates a change operation. The operation request carries change indication information and an identifier of the data field to be modified. If the operation indicated by the operation request matches the target operation, the operation indicated by the operation request is executed on the business data corresponding to the target business. One or more computer programs in the computer storage medium are loaded by the processor 801 and can specifically execute the following steps:

[0147] If the operation indicated by the operation request matches the target operation, then based on the data field identifier to be modified, the target data field to be modified is determined from multiple data fields of the business data corresponding to the target business.

[0148] If the target data field is a variable-content data field, then the field content in the target data field is changed according to the change instruction information.

[0149] In one embodiment, after the operation indicated by the operation request is performed on the business data corresponding to the target business, one or more computer programs in the computer storage medium are loaded by the processor 801 and can execute the following steps:

[0150] Generate a block containing the operation request and broadcast the block to the consensus nodes for consensus.

[0151] Once consensus is reached, the block is stored on the blockchain network.

[0152] In one embodiment, a target data container corresponding to the target business type to which the target business belongs is obtained from the blockchain network, and one or more computer programs in the computer storage medium are loaded by processor 801 and can specifically execute the following steps:

[0153] Obtain the smart contract corresponding to the data creation request;

[0154] The smart contract is invoked to obtain the target data container corresponding to the target business type from the blockchain network.

[0155] In one embodiment, the first data storage layer, the second data storage layer, and the third data storage layer all store data in key-value pair format. Specifically, in the first data storage layer, the target business type is the key data, and the target data container is the value data. In the second data storage layer, the identification information of multiple businesses under the target business type is the key data, and the business data corresponding to each business is the value data. In the third data storage layer, the key data fields in the business data of each business are the key data, and the field content in the key data fields is the value data.

[0156] In this embodiment, the computer device obtains a target data container corresponding to the target business type from the blockchain network. Then, it retrieves the business data template corresponding to the target business from the target data container and obtains multiple field contents from multiple participants. Each field content is then stored in the data field managed by the corresponding participant in the business data template, thus obtaining the business data corresponding to the target business. For each target business of a target business type, the obtained multiple field contents can be stored in the corresponding data field of the business data template, thus defining the data organization format. This facilitates data co-construction and sharing among enterprises, achieving unified management and data interoperability of business data.

[0157] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. When executed by a processor of a computer device, the computer program performs the following: receiving a data creation request for a target business; obtaining a target data container from a blockchain network corresponding to the target business type to which the target business belongs; obtaining a business data template corresponding to the target business from the target data container, the business data template including multiple data fields managed by multiple participants of the target business; obtaining multiple field contents from multiple participants, and storing each field content into the corresponding data field managed by the participant in the business data template, thereby obtaining the business data corresponding to the target business.

[0158] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0159] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Those skilled in the art will understand that implementing all or part of the processes of the above embodiments and making equivalent changes in accordance with the claims of this application are still within the scope of the invention.

Claims

1. A data processing method, characterized in that, The method includes: Receive data creation requests for the target business; Obtain the target data container corresponding to the target business type to which the target business belongs from the blockchain network; Obtain the business data template corresponding to the target business from the target data container. The business data template includes multiple data fields managed by multiple participants of the target business. The data is obtained by acquiring multiple field contents from multiple participants and storing each field content in the data field managed by the corresponding participant in the business data template, thereby obtaining the business data corresponding to the target business. The business data corresponding to the target business includes a user operation permission field. The content of the user operation permission field is used to indicate users who are allowed to perform preset operations on the target business. The preset operations include any one or more of modification operations and query operations. The method further includes: Receive an operation request from a target user for the target service, wherein the operation request includes the target service type to which the target service belongs; Obtain the target data container corresponding to the target business type, and obtain the user operation permission field from the business data corresponding to the target business in the target data container; Based on the content of the user operation permission field, the operation indicated by the operation request is executed on the business data corresponding to the target business.

2. The method as described in claim 1, characterized in that, The step of performing the operation indicated by the operation request on the business data corresponding to the target business based on the field content in the user operation permission field includes: Based on the content of the fields in the user operation permission field, a target operation that the target user is allowed to perform on the target service is determined, and the target operation belongs to the preset operation; If the operation indicated by the operation request matches the target operation, then the operation indicated by the operation request is executed on the business data corresponding to the target business.

3. The method as described in claim 2, characterized in that, The method further includes: If the operation indicated by the operation request does not match the target operation, a prompt message is sent to multiple participants of the target service. The prompt message is used to prompt the target user to request to perform an operation outside of their authorized scope on the target service.

4. The method as described in claim 1, characterized in that, The target data container includes a first data storage layer, a second data storage layer, and a third data storage layer. The first data storage layer stores the correspondence between the target business type and the target data container. The second data storage layer stores business data corresponding to multiple businesses under the target business type. The third data storage layer stores key data fields in the business data corresponding to each business. The key data fields include any one or more of the following: content-variable data fields, content-immutable data fields, and user operation permission fields.

5. The method as described in claim 2, characterized in that, The operation request indicates a change operation. The operation request carries change instruction information and an identifier of the data field to be modified. If the operation indicated by the operation request matches the target operation, then the operation indicated by the operation request is executed on the business data corresponding to the target business, including: If the operation indicated by the operation request matches the target operation, then based on the data field identifier to be modified, the target data field to be modified is determined from multiple data fields of the business data corresponding to the target business. If the target data field is a variable-content data field, then the field content in the target data field is changed according to the change instruction information.

6. The method as described in claim 1, characterized in that, After executing the operation indicated by the operation request on the business data corresponding to the target business, the method further includes: Generate a block containing the operation request and broadcast the block to the consensus nodes for consensus. Once consensus is reached, the block is stored on the blockchain network.

7. The method as described in claim 1, characterized in that, The step of obtaining the target data container corresponding to the target business type to which the target business belongs from the blockchain network includes: Obtain the smart contract corresponding to the data creation request; The smart contract is invoked to obtain the target data container corresponding to the target business type from the blockchain network.

8. The method as described in claim 4, characterized in that, The first data storage layer, the second data storage layer, and the third data storage layer all store data in key-value pair format. Specifically, in the first data storage layer, the target business type is the key data, and the target data container is the value data. In the second data storage layer, the identification information of multiple businesses under the target business type is the key data, and the business data corresponding to each business is the value data. In the third data storage layer, the key data fields in the business data of each business are the key data, and the field content in the key data fields is the value data.

9. A data processing apparatus, characterized in that, include: The communication unit is used to receive data creation requests for the target service; The processing unit is used to obtain a target data container from the blockchain network that corresponds to the target business type to which the target business belongs; The processing unit is further configured to obtain a business data template corresponding to the target business from the target data container, wherein the business data template includes multiple data fields managed by multiple participants of the target business; The processing unit is also used to obtain multiple field contents from multiple participants and store each field content into the data field managed by the corresponding participant in the business data template to obtain the business data corresponding to the target business. The business data corresponding to the target business includes a user operation permission field. The content of the user operation permission field is used to indicate the user who is allowed to perform a preset operation on the target business. The preset operation includes any one or more of a change operation and a query operation. The communication unit is also used to receive an operation request from the target user for the target business. The operation request includes the target business type to which the target business belongs. The processing unit is further configured to obtain the target data container corresponding to the target business type, and to obtain the user operation permission field from the business data corresponding to the target business in the target data container; and to perform the operation indicated by the operation request on the business data corresponding to the target business based on the field content in the user operation permission field.

10. A computer device, characterized in that, include: A processor is used to implement one or more computer programs; as well as A computer storage medium storing one or more computer programs, said one or more computer programs being adapted to be loaded by the processor and executed as described in any one of claims 1-8.

11. A computer storage medium, characterized in that, The computer storage medium stores a computer program, which, when executed by a processor, performs the data processing method according to any one of claims 1-8.

12. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, performs the data processing method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Block chain-based data processing method, device and system

    CN109711817A

  • Business data processing method and device

    CN111177252A