WO2018201887A1 - Data response method, apparatus, terminal device, and medium - Google Patents

Data response method, apparatus, terminal device, and medium Download PDF

Info

Publication number
WO2018201887A1
WO2018201887A1 PCT/CN2018/083297 CN2018083297W WO2018201887A1 WO 2018201887 A1 WO2018201887 A1 WO 2018201887A1 CN 2018083297 W CN2018083297 W CN 2018083297W WO 2018201887 A1 WO2018201887 A1 WO 2018201887A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
feature information
data management
management operation
request
Prior art date
Application number
PCT/CN2018/083297
Other languages
French (fr)
Chinese (zh)
Inventor
曾芳
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018201887A1 publication Critical patent/WO2018201887A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2425Iterative querying; Query formulation based on the results of a preceding query
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/256Integrating or interfacing systems involving database management systems in federated or virtual databases

Definitions

  • the present application belongs to the field of database technologies, and in particular, to a data response method, device, terminal device and medium.
  • a database for managing the information resources of the enterprise has been established within the existing major enterprises.
  • information resources of different service categories are usually stored in different databases.
  • This storage method also realizes the classification management of data to a certain extent.
  • the storage method also has the problem that the data is difficult to be uniformly processed.
  • the effective data that the user actually needs is usually not only an information resource of a certain category, and thus needs to jointly call information resources in multiple databases to achieve the data management purpose of the user.
  • the data management operation needs to be performed multiple times in the library, and the operation is cumbersome. Therefore, the data management efficiency is relatively low.
  • the embodiment of the present application provides a data response method and a data response device to solve the problem that the data management efficiency in the prior art is relatively low and the unified processing of data is difficult to implement.
  • a first aspect of the embodiments of the present application provides a data response method, including:
  • a second aspect of an embodiment of the present application provides a data response apparatus including means for performing the data response method of the first aspect described above.
  • a third aspect of the embodiments of the present application provides a terminal device, including a memory and a processor, where the computer stores computer readable instructions executable on the processor, the processor executing the computer The steps of the data response method as described in the first aspect are implemented when the instructions are read.
  • a fourth aspect of the embodiments of the present application provides a computer readable storage medium storing computer readable instructions, the computer readable instructions being executed by a processor to implement the first aspect as described in the first aspect The steps of the data response method.
  • the second database when the data management operation request for the feature information is received, the second database is used as a bridge to directly process the associated data corresponding to the feature information in the plurality of first databases in the background.
  • the unified processing of data is realized, and the user does not need to perform data management operations of multiple sub-databases, thereby improving data management efficiency.
  • FIG. 1 is a system architecture diagram applicable to a data response method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of an implementation of a data response method provided by an embodiment of the present application
  • FIG. 3 is a specific implementation flowchart of a data response method S202 provided by an embodiment of the present application.
  • FIG. 5 is a specific implementation flowchart of a data response method S206 provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of a specific implementation of a data response method S206 according to another embodiment of the present application.
  • FIG. 7 is a structural block diagram of a data response apparatus according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • FIG. 1 is a system architecture diagram of a data response method provided by an embodiment of the present application. For convenience of description, only parts related to the embodiment are shown.
  • the system consists of a second database 11, a client 12 and a plurality of independent first databases 13.
  • Each of the first databases 13 is used to store basic data of different service categories.
  • the second database 11 is configured to read the correlation data in the first database 13 according to the mutual relationship between the basic data of different service categories, and determine the feature information of the associated data, so as to match the feature information and the feature information.
  • the mapping relationship between the associated data is stored.
  • the second database 11 is further configured to provide the client 12 with the feature information-based data management operation response service to determine the data management operation request in the first database 13 according to the mapping relationship between the stored feature information and the associated data.
  • the data management operation on the associated data is implemented and the response result is returned, so that the client 12 can browse or manage the data actually stored in the first database 13 according to the response result.
  • the client 12 can be an application client or a web client, and runs on a terminal device that provides network access functions, including a personal computer, a tablet, or a mobile phone.
  • Each client 12 can serve as a request client of a data management operation, submit a data management operation request to the second database 11, and display a plurality of data records or display users required by the user according to the response result returned by the data management operation. Whether the management operation of the data is completed.
  • the back-end database is the first database
  • the intermediate database is the second database
  • FIG. 2 is a flowchart showing an implementation process of a data response method provided by an embodiment of the present application, which is described in detail as follows:
  • S201 Acquire associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed jointly during a data operation.
  • the intermediate database establishes a dblink connection with multiple databases independently in the background.
  • the intermediate database can access the data stored in the backend database just like a local database.
  • Each database in the background stores multiple data tables, each of which contains multiple fields and contains attribute values corresponding to each record in each field.
  • the same two fields may exist in different databases or different data tables. If a field abc in one data table A is the primary key field abc in another data table B, and another field efg included in the data table A also exists in the data table B, the two data tables are related to each other. Data sheet.
  • the interrelated data table B there are N attribute values under the primary key field, and each attribute value corresponds to one record, and for each record corresponding to each attribute value, it corresponds to the attribute value in the data table A.
  • One record is associated data. In the process of a data management operation, since the associated data is distributed in multiple data tables or multiple databases, and the associated data is consistent, it is necessary to perform the same data management operation in each data table to achieve The purpose of joint processing.
  • the user when the user needs to modify the attribute value of the field efg corresponding to a certain attribute value in the primary key field abc in the data table B, the user also needs to use the data in the data table A under the field abc.
  • the attribute value of the field efg corresponding to the attribute value is subjected to the same modification operation to ensure data consistency and integrity.
  • the intermediate database When the intermediate database receives the read instruction based on the multiple associated data tables input by the data administrator, the intermediate database reads the multiple associated data tables, and uses the union The all method connects multiple associated data tables to identify multiple sets of associated data between the associated data tables.
  • S202 Acquire first feature information of the associated data.
  • the feature information is information capable of describing a constraint condition between each group of associated data.
  • the foregoing S202 specifically includes: S301: respectively acquiring attribute values of each data in the associated data.
  • S302 Create an attribute group.
  • S303 If the attribute values of the at least two data are the same, the attribute value is stored in the attribute group.
  • each set of associated data For each set of associated data, it can be known from the above S201 that there are substantially multiple records in the data table having mutually constrained relationships, and the records have two or more identical attribute values, and one of the attribute values is a primary key. value. Thus, these same attribute values in the associated data can be read and the fields corresponding to each attribute value can be determined. Also, create an attribute group for each set of associated data. If each of the attribute values in each set of associated data has the same attribute value of at least two data, the attribute value is stored in the attribute group.
  • the action field is used to mark the type of data management operations that the attribute group is allowed to perform, including deleting, querying, modifying, and disabling all types.
  • the action field can be set by the database administrator in accordance with the data management authority.
  • the feature information of each group of associated data acquired by the intermediate database is referred to as first feature information
  • the operation field included in the first feature information is referred to as a first operation field.
  • S203 Establish a mapping relationship between the first feature information and the associated data, and store the first feature information and the mapping relationship to a pre-established second database.
  • the specific generated first feature information can be used to represent the constraint condition between each group of associated data, and therefore, the first feature information has a mapping relationship with a group of associated data.
  • the intermediate database stores a mapping relationship between each of the first feature information and its corresponding set of associated data.
  • the feature information field is the primary key
  • each of the first feature information is used as each primary key value in the mapping relationship data table, and each of the first feature information corresponds to one.
  • the data table name and database name of each record in the group association data are the attribute values of the remaining fields in the mapping relationship data table.
  • S204 Obtain a data management operation request that is sent by the client to the second database and carries the second feature information.
  • the user selects a field name in any number of field option drop-down boxes displayed by the client, and generates a real-time attribute value matching the selected multiple field names.
  • the Options drop-down box select the multiple attribute values that you want to perform data management operations on.
  • the data management operation drop-down box displayed by the client select the type of data management operation that you need to perform on the above multiple attribute values.
  • the client If the data management operation type selected by the user is a query, after the client receives the confirmation instruction issued by the user, the client generates second feature information, and encapsulates the second feature information in the data management operation request to Data management operation requests are sent to the intermediate database.
  • the second feature information includes the option values respectively corresponding to the respective drop-down boxes.
  • the client If the data management operation type selected by the user is modified, the client generates an input box corresponding to each attribute value selected by the user, so that the user types the parameter value modified by the attribute value in the input box.
  • the client After the client receives the confirmation command issued by the user, the client generates second feature information, and encapsulates the second feature information in the data modification operation request to send the data modification operation request to the intermediate database.
  • the second feature information includes an option value corresponding to each of the above-mentioned drop-down boxes and a parameter value in the input box.
  • S205 Determine, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the second feature information, and determine, according to the mapping relationship, that the data management operation request is matched. Linked data.
  • the intermediate database searches for the first feature information that is the same as the second feature information, and reads the corresponding data table stored in the record according to the record in which the first feature information is located. Name and database name.
  • the intermediate database determines that the associated data corresponding to the first feature information is each record stored in each data table of the background database, wherein each database in which the record is located is a back-end database corresponding to the read database name, and each The data table in which a record is located is the data table corresponding to the read data table name in the background database.
  • each determined record is associated data that matches the data management operation request.
  • the second feature information includes an attribute group and a second operation field.
  • the above S205 specifically includes:
  • S401 Determine, in the plurality of sets of the first feature information stored in the second database, the first feature information that is the same as the attribute group in the second feature information.
  • the attribute group includes the option values respectively selected by the user in each of the drop-down boxes of the client except the data management operation drop-down box.
  • Each option value selected by the user in each drop-down box except the data management operation drop-down box is an element in the attribute group of the second feature information.
  • the intermediate database searches for the first feature information that is the same as the attribute group in the second feature information, that is, in the mapping relationship data table, finds the first element that includes each element of the attribute group. Feature information.
  • S402 Determine whether the second operation field is the same as the first operation field in the determined first feature information.
  • the first operation field in the first feature information that is found is read to determine a data management operation type corresponding to the first feature information.
  • the first operation field is compared with the second operation field of the second feature information to determine whether the data management operation types corresponding to the two operation fields are the same.
  • step S403 is performed.
  • the S403 is specifically: returning the rejection response prompt information.
  • the intermediate database directly returns a rejection response prompt message to inform the user that it is an illegal operation, or informs the user that its operation is not within the scope of authorization.
  • step S404 is performed.
  • the S404 is specifically configured to: determine association data that matches the data management operation request according to the mapping relationship between the first feature information and the associated data.
  • the data management operation matching the data management operation type corresponding to the attribute group in the background database is allowed to be performed, and the second feature information and attributes are determined.
  • the first feature information of the same group is the same.
  • the intermediate database determines that the associated data corresponding to the first feature information is each record stored in each data table of the background database, wherein each database in which the record is located is a back-end database corresponding to the read database name, and each The data table in which a record is located is the data table corresponding to the read data table name in the background database.
  • the user only needs to directly select the attribute group element data of the associated operation and the data management operation type in the drop-down box displayed by the client, that is, the data management operation carrying the second feature information may be sent to the intermediate database.
  • the request does not need to input the SQL statement that can be recognized by the database, which improves the user's data acquisition efficiency.
  • the intermediate database can directly determine whether to allow the operation of the associated data related to the second feature information, without separately going to each database in the background. Request confirmation is performed, thereby further improving the efficiency of data processing.
  • S206 Perform a data management operation on the determined associated data according to the data management operation request to respond to the data management operation request.
  • the intermediate database serves as a request client of the background database, and respectively issues a request to each background database to request the determined data to be associated with the data management operation type. Matching data management operations.
  • the intermediate database After the background database returns the response result to the intermediate database, the intermediate database generates the client response data to extract the valid message data in the response result returned by the background database, encapsulates it into the client response data, and returns the client to the intermediate database.
  • the interaction between the client and the back-end database can be implemented in a form similar to an intermediate bridge.
  • the intermediate database when receiving the data management operation request for the feature information, is used as a bridge to directly process the associated data corresponding to the feature information in the plurality of databases in the background, thereby implementing the data. Unified processing, the user does not need to perform multiple data management operations of the sub-library, thereby improving data management efficiency.
  • the above S206 includes:
  • the intermediate database After the intermediate database obtains the associated data that matches the data query operation request, the background database and the data table stored by the associated data are obtained.
  • the intermediate database calls a preset query statement template, and fills a plurality of attribute values included in the second feature information and a database name and a data table name stored in each associated data into the query statement template, respectively, to generate a plurality of query statements. .
  • the intermediate database transmits the respective query statements to the corresponding database in the background based on the database name in the query statement.
  • each database in the background When each database in the background receives the query sent by the intermediate database, it processes and responds to the query. According to the plurality of attribute values and the data table name carried by the query statement, the database in the background reads a record corresponding to the plurality of attribute values from the data table corresponding to the data table name, and stores the record as The associated data in the background database is returned to the intermediate database.
  • the intermediate database After the intermediate database receives the associated data returned by each back-end database, the intermediate database summarizes the associated data to return all the associated data together as a response result of the data management operation request sent by the client.
  • the client after receiving the associated data returned by the background database one by one, the client can uniformly display all the associated data corresponding to the attribute group required by the user according to the response result returned by the intermediate database. For the user, it is not necessary to perform the data query operation of the multiple sub-databases, and it is not necessary to separately query the associated data corresponding to the attribute group in each background database, thereby realizing the unified processing of the data and improving the query efficiency of the data.
  • the above S206 includes:
  • the operation field in the second feature information carried by the data management operation request is a modification
  • the modified parameter value is input in the input box, and the modified parameter based on the attribute value in the second feature information is the parameter input by the user. value.
  • the intermediate database reads the modified parameters based on the attribute value from the data modification request.
  • the modified parameter is processed by using a preset conversion algorithm to respectively generate a parameter modification instruction corresponding to the associated data in the plurality of the first databases.
  • the intermediate database After the intermediate database obtains the associated data that matches the data modification operation request, the background database and the data table stored by the associated data are obtained.
  • the intermediate database calls the preset modification statement template, and fills the plurality of attribute values included in the second feature information, the modification parameters corresponding to each attribute value, and the database name and the data table name stored in each associated data to the query respectively.
  • the statement template multiple parameter modification instructions are generated.
  • S603 Send the parameter modification instruction to each of the plurality of first databases, so that the plurality of the first databases respectively modify the stored associated data.
  • the intermediate database transmits the parameter modification instructions to the corresponding database in the background based on the database name in the parameter modification instruction.
  • the parameter modification instruction is processed and responded.
  • the database in the background reads a record corresponding to the plurality of attribute values from the data table corresponding to the data table name, and the record is in the record
  • the attribute value is changed to the modified parameter in the parameter modification instruction, and at the same time, the modification completion prompt information is returned and returned to the intermediate database.
  • the intermediate database After the intermediate database receives the modification completion prompt information returned by each back-end database, the intermediate database returns a response result based on the modification completion prompt information to the client.
  • the intermediate database can automatically generate parameter modification instructions related to the associated data distributed in multiple back-end databases, thereby automatically requesting to uniformly modify all the records including the attribute group in each database in the background. Ensure data consistency and integrity. For the user, there is no need to perform multiple data modification operations of the sub-database, and it is not necessary to sequentially modify multiple records of the same attribute value in each background database, thereby realizing unified processing of data and improving data modification efficiency. .
  • FIG. 7 is a structural block diagram of the data response apparatus provided by the embodiment of the present application. For the convenience of explanation, only the parts related to the present embodiment are shown.
  • the data response device 71 includes:
  • the associated data obtaining unit 711 is configured to acquire associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed in common during a data operation.
  • the feature information obtaining unit 712 is configured to acquire first feature information of the associated data.
  • the mapping relationship establishing unit 713 is configured to establish a mapping relationship between the first feature information and the associated data, and store the first feature information and the mapping relationship to a pre-established second database.
  • the request obtaining unit 714 is configured to acquire a data management operation request that is sent by the client to the second database and that carries the second feature information.
  • the association data matching unit 715 is configured to determine, in the plurality of sets of the first feature information stored in the second database, the first feature information that is the same as the second feature information, and determine the location and the location according to the mapping relationship. The associated data of the data management operation request matching.
  • the request response unit 716 is configured to perform a data management operation on the determined associated data according to the data management operation request to respond to the data management operation request.
  • the feature information acquiring unit 712 includes: an obtaining subunit, configured to respectively acquire attribute values of each data in the associated data.
  • a storage subunit configured to store the attribute value in the attribute group if the attribute values of the at least two data are the same.
  • Adding a subunit configured to add a first operation field to the attribute group, and output the attribute group including the first operation field as the first feature information.
  • the first operation field is used to indicate the type of the data management operation corresponding to the attribute group.
  • the second feature information includes the attribute group and a second operation field
  • the associated data matching unit 715 includes:
  • Determining a subunit configured to determine, in the plurality of sets of the first feature information stored in the second database, the same first feature information as the attribute group in the second feature information.
  • a determining subunit configured to determine whether the second operation field is the same as the first operation field in the determined first feature information.
  • a matching subunit configured to determine the data according to the mapping relationship between the first feature information and the associated data, if the second operation field is the same as the first operation field in the determined first feature information Manage the associated data that the operation request matches.
  • the request response unit 716 includes:
  • the downloading subunit is configured to download the determined related data when the data management operation request is a data query request.
  • the method is used to return the associated data as a response result of the data query request.
  • the request response unit 716 includes:
  • the obtaining subunit is configured to acquire, when the data management operation request is a data modification request, a modification parameter based on the attribute group in the data modification request.
  • the modifying subunit is configured to separately send the parameter modification instruction to the plurality of the first databases, so that the plurality of the first databases respectively modify the stored associated data.
  • FIG. 8 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 8 of this embodiment includes a processor 80 and a memory 81 in which computer readable instructions 82, such as data response programs, executable on the processor 80 are stored.
  • the processor 80 executes the computer readable instructions 82 to implement the steps in the various data response method embodiments described above, such as steps 201 through 206 shown in FIG.
  • the processor 80 when executing the computer readable instructions 82, implements the functions of the various modules/units in the various apparatus embodiments described above, such as the functions of the units 711 through 716 shown in FIG.
  • the computer readable instructions 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80, To complete this application.
  • the one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 82 in the terminal device 8.
  • the terminal device 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer, or a cloud server.
  • the terminal device may include, but is not limited to, the processor 80 and the memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of the terminal device 8, and does not constitute a limitation on the terminal device 8, and may include more or less components than those illustrated, or combine some components, or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.
  • the so-called processor 80 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8.
  • the memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk provided on the terminal device 8, a smart memory card (SMC), and a secure digital (SD). Card, flash card, etc. Further, the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device.
  • the memory 81 is configured to store the computer readable instructions and other programs and data required by the terminal device.
  • the memory 81 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention applies to the field of database technology and provides a data response method, an apparatus, a terminal device, and a medium. The method comprises: obtaining associated data distributed over a plurality of first databases; obtaining first feature information of the associated data; establishing a mapping relation between the first feature information and the associated data, and storing the first feature information and the mapping relation in a second database; obtaining a data management operation request carrying second feature information and issued by a client to the second database; determining among multiple sets of the first feature information stored by the second database, the first feature information identical to the second feature information, and determining, according to the mapping relation, the associated data matching the data management operation request; and according to the data management operation request, performing a data management operation on the determined associated data so as to respond to the data management operation request. The present invention achieves unified data processing, such that a client does not need to perform a data management operation by implementing multiple sharding actions, thus improving data management efficiency.

Description

数据响应方法、装置、终端设备及介质Data response method, device, terminal device and medium
本申请要求于2017年05月05日提交中国专利局、申请号为201710313344.1、发明名称为“数据响应方法及数据响应设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 200910313344.1, entitled "Data Response Method and Data Response Device", filed on May 5, 2017, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本申请属于数据库技术领域,尤其涉及一种数据响应方法、装置、终端设备及介质。The present application belongs to the field of database technologies, and in particular, to a data response method, device, terminal device and medium.
背景技术Background technique
现有各大企业内部都已搭建有用于管理本企业信息资源的数据库。为了避免所有信息资源都存储于同一数据库而导致数据库压力过大以及数据库可靠性下降的问题发生,对于不同业务类别的信息资源,通常将其存储于不同的数据库。这种存储方式在一定程度上还实现了对数据的分类管理。然而,由于信息资源分布于不同的数据库,该存储方式也产生了数据难以统一处理的问题。具体地,用户实际所需的有效数据通常不只是某一类别的信息资源,因而需要联合调用多个数据库中的信息资源才能达到用户的数据管理目的。对于用户的一次数据管理过程来说,需要分库多次进行数据管理操作,操作繁琐,因此,数据管理效率较为低下。A database for managing the information resources of the enterprise has been established within the existing major enterprises. In order to avoid the problem that all information resources are stored in the same database, resulting in excessive database pressure and degraded database reliability, information resources of different service categories are usually stored in different databases. This storage method also realizes the classification management of data to a certain extent. However, since the information resources are distributed in different databases, the storage method also has the problem that the data is difficult to be uniformly processed. Specifically, the effective data that the user actually needs is usually not only an information resource of a certain category, and thus needs to jointly call information resources in multiple databases to achieve the data management purpose of the user. For the user's data management process, the data management operation needs to be performed multiple times in the library, and the operation is cumbersome. Therefore, the data management efficiency is relatively low.
技术问题technical problem
有鉴于此,本申请实施例提供了一种数据响应方法及数据响应设备,以解决现有技术中数据管理效率较为低下以及难以实现数据的统一处理的问题。In view of this, the embodiment of the present application provides a data response method and a data response device to solve the problem that the data management efficiency in the prior art is relatively low and the unified processing of data is difficult to implement.
技术解决方案Technical solution
本申请实施例的第一方面提供了一种数据响应方法,包括:A first aspect of the embodiments of the present application provides a data response method, including:
获取分布于多个第一数据库的关联数据,所述关联数据为一次数据操作过程中需要共同处理的数据;Obtaining associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed together during a data operation;
获取所述关联数据的第一特征信息;Obtaining first feature information of the associated data;
建立所述第一特征信息与所述关联数据的映射关系,并将所述第一特征信息及所述映射关系存储至预先建立的第二数据库;Establishing a mapping relationship between the first feature information and the associated data, and storing the first feature information and the mapping relationship to a pre-established second database;
获取客户端向所述第二数据库发出的携带第二特征信息的数据管理操作请求;Obtaining a data management operation request that is sent by the client to the second database and carries the second feature information;
在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据;Determining, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the second feature information, and determining an association that matches the data management operation request according to the mapping relationship data;
根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应。And performing data management operations on the determined associated data according to the data management operation request to respond to the data management operation request.
本申请实施例的第二方面提供了一种数据响应装置,该数据响应装置包括用于执行上述第一方面所述的数据响应方法的单元。A second aspect of an embodiment of the present application provides a data response apparatus including means for performing the data response method of the first aspect described above.
本申请实施例的第三方面提供了一种终端设备,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如第一方面所述的数据响应方法的步骤。A third aspect of the embodiments of the present application provides a terminal device, including a memory and a processor, where the computer stores computer readable instructions executable on the processor, the processor executing the computer The steps of the data response method as described in the first aspect are implemented when the instructions are read.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如第一方面所述的数据响应方法的步骤。A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing computer readable instructions, the computer readable instructions being executed by a processor to implement the first aspect as described in the first aspect The steps of the data response method.
有益效果Beneficial effect
本申请实施例中,可以在接收到关于特征信息的数据管理操作请求时,由第二数据库作为桥梁,直接对后台多个第一数据库中与该特征信息对应的关联数据统一进行处理,因此,实现了数据的统一处理,用户无需执行多次分库的数据管理操作,由此提高了数据的管理效率。In the embodiment of the present application, when the data management operation request for the feature information is received, the second database is used as a bridge to directly process the associated data corresponding to the feature information in the plurality of first databases in the background. The unified processing of data is realized, and the user does not need to perform data management operations of multiple sub-databases, thereby improving data management efficiency.
附图说明DRAWINGS
图1是本申请实施例提供的数据响应方法所适用的系统架构图;1 is a system architecture diagram applicable to a data response method provided by an embodiment of the present application;
图2是本申请实施例提供的数据响应方法的实现流程图;2 is a flowchart of an implementation of a data response method provided by an embodiment of the present application;
图3是本申请实施例提供的数据响应方法S202的具体实现流程图;3 is a specific implementation flowchart of a data response method S202 provided by an embodiment of the present application;
图4是本申请实施例提供的数据响应方法S205的具体实现流程图;4 is a specific implementation flowchart of a data response method S205 provided by an embodiment of the present application;
图5是本申请实施例提供的数据响应方法S206的具体实现流程图;FIG. 5 is a specific implementation flowchart of a data response method S206 provided by an embodiment of the present application;
图6是本申请另一实施例提供的数据响应方法S206的具体实现流程图;FIG. 6 is a flowchart of a specific implementation of a data response method S206 according to another embodiment of the present application;
图7是本申请实施例提供的数据响应装置的结构框图;7 is a structural block diagram of a data response apparatus according to an embodiment of the present application;
图8是本申请实施例提供的终端设备的示意图。FIG. 8 is a schematic diagram of a terminal device according to an embodiment of the present application.
本发明的实施方式Embodiments of the invention
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solutions described in the present application, the following description will be made by way of specific embodiments.
图1示出了本申请实施例提供的数据响应方法所适用的系统架构图,为了便于说明,仅示出了与本实施例相关的部分。FIG. 1 is a system architecture diagram of a data response method provided by an embodiment of the present application. For convenience of description, only parts related to the embodiment are shown.
参照图1,该系统由第二数据库11、客户端12和多个独立的第一数据库13组成。其中,每个第一数据库13分别用于存储不同业务类别的基础数据。第二数据库11用于根据不同业务类别的基础数据之间的相互关系,读取第一数据库13中存在相互关系的关联数据,并确定这些关联数据的特征信息,以对特征信息以及特征信息与关联数据之间的映射关系进行存储。同时,第二数据库11还用于为客户端12提供基于特征信息的数据管理操作响应服务,以根据其存储的特征信息与关联数据的映射关系,在确定数据管理操作请求在第一数据库13中所对应的关联数据后,实现对关联数据的数据管理操作并返回响应结果,以使得客户端12能够根据响应结果浏览或管理实际上存储在第一数据库13中的数据。Referring to Figure 1, the system consists of a second database 11, a client 12 and a plurality of independent first databases 13. Each of the first databases 13 is used to store basic data of different service categories. The second database 11 is configured to read the correlation data in the first database 13 according to the mutual relationship between the basic data of different service categories, and determine the feature information of the associated data, so as to match the feature information and the feature information. The mapping relationship between the associated data is stored. At the same time, the second database 11 is further configured to provide the client 12 with the feature information-based data management operation response service to determine the data management operation request in the first database 13 according to the mapping relationship between the stored feature information and the associated data. After the corresponding associated data, the data management operation on the associated data is implemented and the response result is returned, so that the client 12 can browse or manage the data actually stored in the first database 13 according to the response result.
在该系统中,客户端12可以为应用程序客户端或者网页客户端,且运行在包括个人计算机、平板电脑或者手机等提供网络接入功能的终端设备上。每个客户端12都可以作为一个数据管理操作的请求客户端,向第二数据库11提交数据管理操作请求,并根据数据管理操作返回的响应结果,展示用户所需的多条数据记录或展示用户对数据的管理操作是否完成。In this system, the client 12 can be an application client or a web client, and runs on a terminal device that provides network access functions, including a personal computer, a tablet, or a mobile phone. Each client 12 can serve as a request client of a data management operation, submit a data management operation request to the second database 11, and display a plurality of data records or display users required by the user according to the response result returned by the data management operation. Whether the management operation of the data is completed.
为了便于理解,在下文的各个实施例中,后台数据库即为第一数据库,中间数据库即为第二数据库。For ease of understanding, in the various embodiments below, the back-end database is the first database, and the intermediate database is the second database.
图2示出了本申请实施例提供的数据响应方法的实现流程,详述如下:FIG. 2 is a flowchart showing an implementation process of a data response method provided by an embodiment of the present application, which is described in detail as follows:
S201:获取分布于多个第一数据库的关联数据,所述关联数据为一次数据操作过程中需要共同处理的数据。S201: Acquire associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed jointly during a data operation.
本申请实施例中,中间数据库与后台独立的多个数据库分别建立dblink连接。通过dblink,中间数据库可以像访问本地数据库一样访问后台的数据库中所存储的数据。In the embodiment of the present application, the intermediate database establishes a dblink connection with multiple databases independently in the background. With dblink, the intermediate database can access the data stored in the backend database just like a local database.
后台的每一个数据库中均存储有多个数据表,每个数据表包含有多个字段及包含有各个字段下每一条记录所对应的属性值。实际情况下,在不同数据库或者不同数据表中可能存在相同的两个字段。若一个数据表A中的某个字段abc是另一个数据表B中的主键字段abc,且数据表A中包含的另一字段efg同样存在于数据表B,则这两个数据表为相互关联的数据表。在上述相互关联的数据表B中,主键字段下存在N个属性值,每个属性值对应一条记录,对于其中每个属性值对应的一条记录,其与数据表A中该属性值所对应的一条记录为关联数据。在一次数据管理操作的过程中,由于相互关联的关联数据分布于多个数据表或多个数据库中,且关联数据具有一致性,因而需要在各个数据表中分别执行相同的数据管理操作,达到共同处理的目的。Each database in the background stores multiple data tables, each of which contains multiple fields and contains attribute values corresponding to each record in each field. In practice, the same two fields may exist in different databases or different data tables. If a field abc in one data table A is the primary key field abc in another data table B, and another field efg included in the data table A also exists in the data table B, the two data tables are related to each other. Data sheet. In the above-mentioned interrelated data table B, there are N attribute values under the primary key field, and each attribute value corresponds to one record, and for each record corresponding to each attribute value, it corresponds to the attribute value in the data table A. One record is associated data. In the process of a data management operation, since the associated data is distributed in multiple data tables or multiple databases, and the associated data is consistent, it is necessary to perform the same data management operation in each data table to achieve The purpose of joint processing.
例如,在用户需要在数据表B中,对主键字段abc下的某一属性值所对应的字段efg的属性值进行修改操作时,则用户还需要在数据表A中,对字段abc下的该属性值所对应的字段efg的属性值进行相同的修改操作,才能保证数据的一致性和完整性。For example, when the user needs to modify the attribute value of the field efg corresponding to a certain attribute value in the primary key field abc in the data table B, the user also needs to use the data in the data table A under the field abc. The attribute value of the field efg corresponding to the attribute value is subjected to the same modification operation to ensure data consistency and integrity.
在中间数据库接收到数据管理员输入的基于多个关联数据表的读取指令时,中间数据库读取该多个关联数据表,利用union all方式将多个关联数据表连接,以识别出各个关联数据表之间的多组关联数据后。When the intermediate database receives the read instruction based on the multiple associated data tables input by the data administrator, the intermediate database reads the multiple associated data tables, and uses the union The all method connects multiple associated data tables to identify multiple sets of associated data between the associated data tables.
S202:获取所述关联数据的第一特征信息。S202: Acquire first feature information of the associated data.
本申请实施例中,特征信息为能够描述每组关联数据之间的约束情况的信息。In the embodiment of the present application, the feature information is information capable of describing a constraint condition between each group of associated data.
作为本申请的一个实施例,如图3所示,上述S202具体包括:S301:分别获取所述关联数据中每个数据的属性值。S302:创建属性组。S303:存在至少两个数据的所述属性值相同,则将该属性值存入所述属性组。As an embodiment of the present application, as shown in FIG. 3, the foregoing S202 specifically includes: S301: respectively acquiring attribute values of each data in the associated data. S302: Create an attribute group. S303: If the attribute values of the at least two data are the same, the attribute value is stored in the attribute group.
对于每一组关联数据,由上述S201可知,实质上为数据表中具有相互约束关系的多条记录,这些记录之间具有两对以上的相同的属性值,且其中的一个属性值为主键值。因而可读取关联数据中的这些相同的属性值,并确定每个属性值所对应的字段。并且,为每一组关联数据创建一个属性组。在每一组关联数据中的各个属性值中,若存在至少两个数据的属性值相同,则将该属性值存入所述属性组。For each set of associated data, it can be known from the above S201 that there are substantially multiple records in the data table having mutually constrained relationships, and the records have two or more identical attribute values, and one of the attribute values is a primary key. value. Thus, these same attribute values in the associated data can be read and the fields corresponding to each attribute value can be determined. Also, create an attribute group for each set of associated data. If each of the attribute values in each set of associated data has the same attribute value of at least two data, the attribute value is stored in the attribute group.
S304:为所述属性组添加第一操作字段,并将包含所述第一操作字段的所述属性组输出为所述第一特征信息。S304: Add a first operation field to the attribute group, and output the attribute group including the first operation field as the first feature information.
为确定出的每一组关联数据所对应的属性组添加操作字段。操作字段用于标记属性组所允许被执行的数据管理操作的类型,包括删除、查询、修改以及禁止所有等类型。操作字段可由数据库管理员依照数据管理权限进行设置。添加操作字段后的每一属性组,为其对应的一组关联数据的特征信息。本申请实施例中,将中间数据库所获取的每一组关联数据的特征信息称为第一特征信息,第一特征信息所包含的操作字段称为第一操作字段。Add an operation field for the attribute group corresponding to each group of associated data. The action field is used to mark the type of data management operations that the attribute group is allowed to perform, including deleting, querying, modifying, and disabling all types. The action field can be set by the database administrator in accordance with the data management authority. Add each attribute group after the operation field to its corresponding set of characteristic information of the associated data. In the embodiment of the present application, the feature information of each group of associated data acquired by the intermediate database is referred to as first feature information, and the operation field included in the first feature information is referred to as a first operation field.
S203:建立所述第一特征信息与所述关联数据的映射关系,并将所述第一特征信息及所述映射关系存储至预先建立的第二数据库。S203: Establish a mapping relationship between the first feature information and the associated data, and store the first feature information and the mapping relationship to a pre-established second database.
由上述步骤可知,特定生成的第一特征信息能够用于表征每一组关联数据之间的约束情况,因此,第一特征信息与一组关联数据之间具有映射关系。中间数据库对每一第一特征信息及其对应的一组关联数据的映射关系进行存储。It can be seen from the above steps that the specific generated first feature information can be used to represent the constraint condition between each group of associated data, and therefore, the first feature information has a mapping relationship with a group of associated data. The intermediate database stores a mapping relationship between each of the first feature information and its corresponding set of associated data.
具体地,在预设建立的映射关系数据表中,以特征信息字段为主键,以各个第一特征信息作为该映射关系数据表中的各个主键值,以每一第一特征信息对应的一组关联数据中各条记录的数据表名以及数据库名作为该映射关系数据表中其余字段的属性值。Specifically, in the preset mapping relationship data table, the feature information field is the primary key, and each of the first feature information is used as each primary key value in the mapping relationship data table, and each of the first feature information corresponds to one. The data table name and database name of each record in the group association data are the attribute values of the remaining fields in the mapping relationship data table.
S204:获取客户端向所述第二数据库发出的携带第二特征信息的数据管理操作请求。S204: Obtain a data management operation request that is sent by the client to the second database and carries the second feature information.
在终端设备所运行的客户端中,用户在客户端所展示的任意数量的字段选项下拉框中分别选取一个字段名,并在实时生成的与该选取出的多个字段名相匹配的属性值选项下拉框中,分别选取出自己所需执行数据管理操作的多个属性值。并且,在客户端所展示的数据管理操作下拉框中,选取自己对上述多个属性值所需执行的数据管理操作类型。In the client running on the terminal device, the user selects a field name in any number of field option drop-down boxes displayed by the client, and generates a real-time attribute value matching the selected multiple field names. In the Options drop-down box, select the multiple attribute values that you want to perform data management operations on. And, in the data management operation drop-down box displayed by the client, select the type of data management operation that you need to perform on the above multiple attribute values.
若用户选取的数据管理操作类型为查询时,在客户端接收到用户发出的确认指令后,客户端将生成第二特征信息,并将该第二特征信息封装于数据管理操作请求,以将该数据管理操作请求发送至中间数据库。其中,第二特征信息包括上述各个下拉框所分别对应的选项值。If the data management operation type selected by the user is a query, after the client receives the confirmation instruction issued by the user, the client generates second feature information, and encapsulates the second feature information in the data management operation request to Data management operation requests are sent to the intermediate database. The second feature information includes the option values respectively corresponding to the respective drop-down boxes.
若用户选取的数据管理操作类型为修改时,客户端将生成对应用户选取出的各属性值的输入框,以使用户在输入框中键入属性值修改后的参数值。在客户端接收到用户发出的确认指令后,客户端将生成第二特征信息,并将该第二特征信息封装于数据修改操作请求,以将该数据修改操作请求发送至中间数据库。其中,第二特征信息包括上述各个下拉框所分别对应的选项值以及输入框中的参数值。If the data management operation type selected by the user is modified, the client generates an input box corresponding to each attribute value selected by the user, so that the user types the parameter value modified by the attribute value in the input box. After the client receives the confirmation command issued by the user, the client generates second feature information, and encapsulates the second feature information in the data modification operation request to send the data modification operation request to the intermediate database. The second feature information includes an option value corresponding to each of the above-mentioned drop-down boxes and a parameter value in the input box.
S205:在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据。S205: Determine, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the second feature information, and determine, according to the mapping relationship, that the data management operation request is matched. Linked data.
在映射关系数据表的特征信息字段下,中间数据库查找出与第二特征信息相同的第一特征信息,则根据该第一特征信息所在的记录,读取该条记录中对应存储的各个数据表名及数据库名。中间数据库确定与该第一特征信息对应的关联数据为分别存储于后台数据库的各个数据表中的各条记录,其中,每一条记录所在的数据库为读取出的数据库名所对应的后台数据库,每一条记录所在的数据表为后台数据库中与读取出的数据表名所对应的数据表。本申请实施例中,确定出的各条记录即为与数据管理操作请求匹配的关联数据。In the feature information field of the mapping relationship data table, the intermediate database searches for the first feature information that is the same as the second feature information, and reads the corresponding data table stored in the record according to the record in which the first feature information is located. Name and database name. The intermediate database determines that the associated data corresponding to the first feature information is each record stored in each data table of the background database, wherein each database in which the record is located is a back-end database corresponding to the read database name, and each The data table in which a record is located is the data table corresponding to the read data table name in the background database. In the embodiment of the present application, each determined record is associated data that matches the data management operation request.
作为本申请的一个实施例,上述第二特征信息包括一个属性组以及第二操作字段。如图4所示,上述S205具体包括:As an embodiment of the present application, the second feature information includes an attribute group and a second operation field. As shown in FIG. 4, the above S205 specifically includes:
S401:在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息中所述属性组相同的第一特征信息。S401: Determine, in the plurality of sets of the first feature information stored in the second database, the first feature information that is the same as the attribute group in the second feature information.
本申请实施例中,属性组包括用户在客户端的除数据管理操作下拉框之外的各个下拉框中所分别选取的选项值。用户在除数据管理操作下拉框之外的各个下拉框中所分别选取的每一选项值,其为第二特征信息的属性组中的一个元素。In the embodiment of the present application, the attribute group includes the option values respectively selected by the user in each of the drop-down boxes of the client except the data management operation drop-down box. Each option value selected by the user in each drop-down box except the data management operation drop-down box is an element in the attribute group of the second feature information.
在映射关系数据表的特征信息字段下,中间数据库查找出与第二特征信息中属性组相同的第一特征信息,即,在映射关系数据表中,查找出包含该属性组各元素的第一特征信息。In the feature information field of the mapping relationship data table, the intermediate database searches for the first feature information that is the same as the attribute group in the second feature information, that is, in the mapping relationship data table, finds the first element that includes each element of the attribute group. Feature information.
S402:判断所述第二操作字段与确定出的第一特征信息中的所述第一操作字段是否相同。S402: Determine whether the second operation field is the same as the first operation field in the determined first feature information.
读取查找出的第一特征信息中的第一操作字段,以确定第一特征信息所对应的数据管理操作类型。将该第一操作字段与第二特征信息中的第二操作字段进行对比,以确定这两个操作字段所对应的数据管理操作类型是否相同。The first operation field in the first feature information that is found is read to determine a data management operation type corresponding to the first feature information. The first operation field is compared with the second operation field of the second feature information to determine whether the data management operation types corresponding to the two operation fields are the same.
若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段不同,则执行步骤S403。其中,S403具体为:返回拒绝响应提示信息。If the second operation field is different from the first operation field in the determined first feature information, step S403 is performed. The S403 is specifically: returning the rejection response prompt information.
若上述两个操作字段所对应的数据管理操作类型不同,则表示不允许对后台数据库中该属性组所对应的关联数据进行与该数据管理操作类型匹配的数据管理操作。此时,中间数据库直接返回拒绝响应提示信息,以告知用户其为非法操作,或者告知用户其操作不在授权范围内。If the data management operation types corresponding to the two operation fields are different, it indicates that the data management operation matching the data management operation type of the associated data corresponding to the attribute group in the background database is not allowed. At this point, the intermediate database directly returns a rejection response prompt message to inform the user that it is an illegal operation, or informs the user that its operation is not within the scope of authorization.
若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段相同,则执行步骤S404。其中,S404具体为:根据该第一特征信息与关联数据的映射关系,确定与所述数据管理操作请求匹配的关联数据。If the second operation field is the same as the first operation field in the determined first feature information, step S404 is performed. The S404 is specifically configured to: determine association data that matches the data management operation request according to the mapping relationship between the first feature information and the associated data.
若上述两个操作字段所对应的数据管理操作类型相同,则表示允许对后台数据库中该属性组所对应的关联数据进行与该数据管理操作类型匹配的数据管理操作,确定第二特征信息与属性组相同的该第一特征信息相同。根据该第一特征信息所在的记录,读取该条记录中对应存储的各个数据表名及数据库名。中间数据库确定与该第一特征信息对应的关联数据为分别存储于后台数据库的各个数据表中的各条记录,其中,每一条记录所在的数据库为读取出的数据库名所对应的后台数据库,每一条记录所在的数据表为后台数据库中与读取出的数据表名所对应的数据表。If the data management operations of the two operation fields are the same, the data management operation matching the data management operation type corresponding to the attribute group in the background database is allowed to be performed, and the second feature information and attributes are determined. The first feature information of the same group is the same. And reading, according to the record in which the first feature information is located, each data table name and a database name corresponding to the stored in the record. The intermediate database determines that the associated data corresponding to the first feature information is each record stored in each data table of the background database, wherein each database in which the record is located is a back-end database corresponding to the read database name, and each The data table in which a record is located is the data table corresponding to the read data table name in the background database.
本申请实施例中,用户只需要客户端所展示的下拉框中直接选取自己所需关联操作的属性组元素数据以及数据管理操作类型,即可以向中间数据库发出携带第二特征信息的数据管理操作请求,无须自行输入能够被数据库所识别的SQL语句,提高了用户的数据获取效率。通过将第二特征信息的操作字段与第一特征信息的操作字段进行对比,中间数据库能够直接判断是否允许对与第二特征信息相关的关联数据执行操作,而无需分别到后台的每一数据库中进行请求确认,由此也进一步提高了数据处理的效率。In the embodiment of the present application, the user only needs to directly select the attribute group element data of the associated operation and the data management operation type in the drop-down box displayed by the client, that is, the data management operation carrying the second feature information may be sent to the intermediate database. The request does not need to input the SQL statement that can be recognized by the database, which improves the user's data acquisition efficiency. By comparing the operation field of the second feature information with the operation field of the first feature information, the intermediate database can directly determine whether to allow the operation of the associated data related to the second feature information, without separately going to each database in the background. Request confirmation is performed, thereby further improving the efficiency of data processing.
S206:根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应。S206: Perform a data management operation on the determined associated data according to the data management operation request to respond to the data management operation request.
根据客户端所上传的数据管理操作请求中的数据管理操作类型,中间数据库作为后台数据库的请求客户端,分别对各个后台数据库发出请求,以请求对确定出的关联数据进行与上述数据管理操作类型匹配的数据管理操作。后台数据库向中间数据库返回响应结果后,中间数据库生成客户端响应数据,以提取后台数据库返回的响应结果中的有效报文数据,封装至客户端响应数据中,并返回客户端,以使中间数据库能够以类似于中间桥梁的形式,实现客户端与后台数据库的交互。According to the data management operation type in the data management operation request uploaded by the client, the intermediate database serves as a request client of the background database, and respectively issues a request to each background database to request the determined data to be associated with the data management operation type. Matching data management operations. After the background database returns the response result to the intermediate database, the intermediate database generates the client response data to extract the valid message data in the response result returned by the background database, encapsulates it into the client response data, and returns the client to the intermediate database. The interaction between the client and the back-end database can be implemented in a form similar to an intermediate bridge.
本申请实施例中,在接收到关于特征信息的数据管理操作请求时,由中间数据库作为桥梁,直接对后台多个数据库中与该特征信息对应的关联数据统一进行处理,因此,实现了数据的统一处理,用户无需执行多次分库的数据管理操作,由此提高了数据管理效率。In the embodiment of the present application, when receiving the data management operation request for the feature information, the intermediate database is used as a bridge to directly process the associated data corresponding to the feature information in the plurality of databases in the background, thereby implementing the data. Unified processing, the user does not need to perform multiple data management operations of the sub-library, thereby improving data management efficiency.
作为本申请的一个实施例,如图5所示,上述S206包括:As an embodiment of the present application, as shown in FIG. 5, the above S206 includes:
S501:当所述数据管理操作请求为数据查询请求时,对确定出的关联数据进行下载。S501: When the data management operation request is a data query request, download the determined related data.
当数据管理操作请求所携带的第二特征信息中的操作字段为查询时,确定该数据管理操作请求为数据查询请求。When the operation field in the second feature information carried by the data management operation request is a query, determining that the data management operation request is a data query request.
中间数据库获取出与数据查询操作请求匹配的关联数据后,即获取出这些关联数据所存储的后台数据库以及数据表。中间数据库调用预设的查询语句模板,将第二特征信息所包含的多个属性值以及每一关联数据所存储的数据库名以及数据表名分别填充至该查询语句模板后,生成多个查询语句。此时,中间数据库基于查询语句中的数据库名,将各个查询语句分别传送至后台相应的数据库中。After the intermediate database obtains the associated data that matches the data query operation request, the background database and the data table stored by the associated data are obtained. The intermediate database calls a preset query statement template, and fills a plurality of attribute values included in the second feature information and a database name and a data table name stored in each associated data into the query statement template, respectively, to generate a plurality of query statements. . At this time, the intermediate database transmits the respective query statements to the corresponding database in the background based on the database name in the query statement.
后台的每一数据库接收到中间数据库所发送的查询语句时,对该查询语句进行处理及响应。根据查询语句所携带的多个属性值以及数据表名,后台的数据库从该数据表名所对应的数据表中,读取该多个属性值所共同对应的一条记录,则将该记录作为存储于该后台数据库中的关联数据,返回至中间数据库。When each database in the background receives the query sent by the intermediate database, it processes and responds to the query. According to the plurality of attribute values and the data table name carried by the query statement, the database in the background reads a record corresponding to the plurality of attribute values from the data table corresponding to the data table name, and stores the record as The associated data in the background database is returned to the intermediate database.
S502:将所述关联数据作为所述数据查询请求的响应结果进行返回。S502: Return the associated data as a response result of the data query request.
当中间数据库接收到各后台数据库返回的关联数据后,中间数据库将各关联数据进行汇总处理,以将汇总后的所有关联数据一并作为客户端所发出的数据管理操作请求的响应结果进行返回。After the intermediate database receives the associated data returned by each back-end database, the intermediate database summarizes the associated data to return all the associated data together as a response result of the data management operation request sent by the client.
本申请实施例中,在接收到后台数据库逐一返回的关联数据后,客户端根据中间数据库返回的响应结果,能够统一展示用户所需的与属性组对应的所有关联数据。对于用户来说,无需执行多次分库的数据查询操作,无需依次在各台后台数据库中分别查询与属性组对应的关联数据,因此,实现了数据的统一处理,提高了数据的查询效率。In the embodiment of the present application, after receiving the associated data returned by the background database one by one, the client can uniformly display all the associated data corresponding to the attribute group required by the user according to the response result returned by the intermediate database. For the user, it is not necessary to perform the data query operation of the multiple sub-databases, and it is not necessary to separately query the associated data corresponding to the attribute group in each background database, thereby realizing the unified processing of the data and improving the query efficiency of the data.
作为本申请的另一个实施例,如图6所示,上述S206包括:As another embodiment of the present application, as shown in FIG. 6, the above S206 includes:
S601:当所述数据管理操作请求为数据修改请求时,获取所述数据修改请求中基于所述属性值的修改参数。S601: When the data management operation request is a data modification request, obtain a modification parameter based on the attribute value in the data modification request.
当数据管理操作请求所携带的第二特征信息中的操作字段为修改时,确定该数据管理操作请求为数据修改请求。When the operation field in the second feature information carried by the data management operation request is a modification, it is determined that the data management operation request is a data modification request.
由上述S204可知,在用户需要对其选取出的属性值进行修改时,将在输入框中输入修改后的参数值,则第二特征信息中的基于该属性值的修改参数为用户输入的参数值。中间数据库从数据修改请求中读取基于该属性值的修改参数。It can be known from the above S204 that when the user needs to modify the attribute value selected by the user, the modified parameter value is input in the input box, and the modified parameter based on the attribute value in the second feature information is the parameter input by the user. value. The intermediate database reads the modified parameters based on the attribute value from the data modification request.
S602:利用预设的转换算法对所述修改参数进行处理,以分别生成与多个所述第一数据库中所述关联数据对应的参数修改指令。S602: The modified parameter is processed by using a preset conversion algorithm to respectively generate a parameter modification instruction corresponding to the associated data in the plurality of the first databases.
中间数据库获取出与数据修改操作请求匹配的关联数据后,即获取出这些关联数据所存储的后台数据库以及数据表。中间数据库调用预设的修改语句模板,将第二特征信息所包含的多个属性值、每一属性值对应的修改参数以及每一关联数据所存储的数据库名以及数据表名分别填充至该查询语句模板后,生成多个参数修改指令。After the intermediate database obtains the associated data that matches the data modification operation request, the background database and the data table stored by the associated data are obtained. The intermediate database calls the preset modification statement template, and fills the plurality of attribute values included in the second feature information, the modification parameters corresponding to each attribute value, and the database name and the data table name stored in each associated data to the query respectively. After the statement template, multiple parameter modification instructions are generated.
S603:将所述参数修改指令分别发送至多个所述第一数据库,以使多个所述第一数据库分别对其存储的关联数据进行修改。S603: Send the parameter modification instruction to each of the plurality of first databases, so that the plurality of the first databases respectively modify the stored associated data.
中间数据库基于参数修改指令中的数据库名,将各个参数修改指令分别传送至后台相应的数据库中。The intermediate database transmits the parameter modification instructions to the corresponding database in the background based on the database name in the parameter modification instruction.
后台的每一数据库接收到中间数据库所发送的参数修改指令时,对该参数修改指令进行处理及响应。根据参数修改指令所携带的多个属性值以及数据表名,后台的数据库从该数据表名所对应的数据表中,读取该多个属性值所共同对应的一条记录,则将该记录中的属性值变更为参数修改指令中的修改参数,同时,返回修改完成提示信息,返回至中间数据库。When each database in the background receives the parameter modification instruction sent by the intermediate database, the parameter modification instruction is processed and responded. According to the plurality of attribute values and the data table name carried by the parameter modification instruction, the database in the background reads a record corresponding to the plurality of attribute values from the data table corresponding to the data table name, and the record is in the record The attribute value is changed to the modified parameter in the parameter modification instruction, and at the same time, the modification completion prompt information is returned and returned to the intermediate database.
当中间数据库接收到各后台数据库返回的修改完成提示信息后,中间数据库向客户端返回基于修改完成提示信息的响应结果。After the intermediate database receives the modification completion prompt information returned by each back-end database, the intermediate database returns a response result based on the modification completion prompt information to the client.
本申请实施例中,中间数据库能自动生成与分布于多台后台数据库中的关联数据相关的参数修改指令,从而自动在后台的各个数据库中,请求对包含该属性组的所有记录进行统一修改,保证数据的一致性和完整性。对于用户来说,无需执行多次分库的数据修改操作,无需依次在各台后台数据库中分别修改相同属性值所在的多条记录,因此,实现了数据的统一处理,提高了数据的修改效率。In the embodiment of the present application, the intermediate database can automatically generate parameter modification instructions related to the associated data distributed in multiple back-end databases, thereby automatically requesting to uniformly modify all the records including the attribute group in each database in the background. Ensure data consistency and integrity. For the user, there is no need to perform multiple data modification operations of the sub-database, and it is not necessary to sequentially modify multiple records of the same attribute value in each background database, thereby realizing unified processing of data and improving data modification efficiency. .
对应于本申请实施例所提供的数据响应方法,图7示出了本申请实施例提供的数据响应装置的结构框图。为了便于说明,仅示出了与本实施例相关的部分。Corresponding to the data response method provided by the embodiment of the present application, FIG. 7 is a structural block diagram of the data response apparatus provided by the embodiment of the present application. For the convenience of explanation, only the parts related to the present embodiment are shown.
参照图7,该数据响应装置71包括:Referring to Figure 7, the data response device 71 includes:
关联数据获取单元711,用于获取分布于多个第一数据库的关联数据,所述关联数据为一次数据操作过程中需要共同处理的数据。The associated data obtaining unit 711 is configured to acquire associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed in common during a data operation.
特征信息获取单元712,用于获取所述关联数据的第一特征信息。The feature information obtaining unit 712 is configured to acquire first feature information of the associated data.
映射关系建立单元713,用于建立所述第一特征信息与所述关联数据的映射关系,并将所述第一特征信息及所述映射关系存储至预先建立的第二数据库。The mapping relationship establishing unit 713 is configured to establish a mapping relationship between the first feature information and the associated data, and store the first feature information and the mapping relationship to a pre-established second database.
请求获取单元714,用于获取客户端向所述第二数据库发出的携带第二特征信息的数据管理操作请求。The request obtaining unit 714 is configured to acquire a data management operation request that is sent by the client to the second database and that carries the second feature information.
关联数据匹配单元715,用于在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据。The association data matching unit 715 is configured to determine, in the plurality of sets of the first feature information stored in the second database, the first feature information that is the same as the second feature information, and determine the location and the location according to the mapping relationship. The associated data of the data management operation request matching.
请求响应单元716,用于根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应。The request response unit 716 is configured to perform a data management operation on the determined associated data according to the data management operation request to respond to the data management operation request.
可选地,所述特征信息获取单元712包括:获取子单元,用于分别获取所述关联数据中每个数据的属性值。Optionally, the feature information acquiring unit 712 includes: an obtaining subunit, configured to respectively acquire attribute values of each data in the associated data.
创建子单元,用于创建属性组。Create subunits for creating attribute groups.
存储子单元,用于若存在至少两个数据的所述属性值相同,则将该属性值存入所述属性组。And a storage subunit, configured to store the attribute value in the attribute group if the attribute values of the at least two data are the same.
添加子单元,用于为所述属性组添加第一操作字段,并将包含所述第一操作字段的所述属性组输出为所述第一特征信息。Adding a subunit, configured to add a first operation field to the attribute group, and output the attribute group including the first operation field as the first feature information.
其中,所述第一操作字段用于表示所述属性组对应的数据管理操作的类型。The first operation field is used to indicate the type of the data management operation corresponding to the attribute group.
可选地,所述第二特征信息包括所述属性组以及第二操作字段,所述关联数据匹配单元715包括:Optionally, the second feature information includes the attribute group and a second operation field, and the associated data matching unit 715 includes:
确定子单元,用于在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息中所述属性组相同的第一特征信息。Determining a subunit, configured to determine, in the plurality of sets of the first feature information stored in the second database, the same first feature information as the attribute group in the second feature information.
判断子单元,用于判断所述第二操作字段与确定出的第一特征信息中的所述第一操作字段是否相同。a determining subunit, configured to determine whether the second operation field is the same as the first operation field in the determined first feature information.
拒绝子单元,用于若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段不同,则返回拒绝响应提示信息。And rejecting the subunit, if the second operation field is different from the first operation field in the determined first feature information, returning the rejection response prompt information.
匹配子单元,用于若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段相同,则根据该第一特征信息与关联数据的映射关系,确定与所述数据管理操作请求匹配的关联数据。a matching subunit, configured to determine the data according to the mapping relationship between the first feature information and the associated data, if the second operation field is the same as the first operation field in the determined first feature information Manage the associated data that the operation request matches.
可选地,所述请求响应单元716包括:Optionally, the request response unit 716 includes:
下载子单元,用于当所述数据管理操作请求为数据查询请求时,对确定出的关联数据进行下载。The downloading subunit is configured to download the determined related data when the data management operation request is a data query request.
返回子单元,用于将所述关联数据作为所述数据查询请求的响应结果进行返回。Returning to the subunit, the method is used to return the associated data as a response result of the data query request.
可选地,所述请求响应单元716包括:Optionally, the request response unit 716 includes:
获取子单元,用于当所述数据管理操作请求为数据修改请求时,获取所述数据修改请求中基于所述属性组的修改参数。The obtaining subunit is configured to acquire, when the data management operation request is a data modification request, a modification parameter based on the attribute group in the data modification request.
生成子单元,用于利用预设的转换算法对所述修改参数进行处理,以分别生成与多个所述第一数据库中所述关联数据对应的参数修改指令。And generating a subunit, configured to process the modified parameter by using a preset conversion algorithm to respectively generate a parameter modification instruction corresponding to the associated data in the plurality of the first databases.
修改子单元,用于将所述参数修改指令分别发送至多个所述第一数据库,以使多个所述第一数据库分别对其存储的关联数据进行修改。The modifying subunit is configured to separately send the parameter modification instruction to the plurality of the first databases, so that the plurality of the first databases respectively modify the stored associated data.
图8是本申请一实施例提供的终端设备的示意图。如图8所示,该实施例的终端设备8包括:处理器80以及存储器81,所述存储器81中存储有可在所述处理器80上运行的计算机可读指令82,例如数据响应程序。所述处理器80执行所述计算机可读指令82时实现上述各个数据响应方法实施例中的步骤,例如图2所示的步骤201至206。或者,所述处理器80执行所述计算机可读指令82时实现上述各装置实施例中各模块/单元的功能,例如图7所示单元711至716的功能。FIG. 8 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in FIG. 8, the terminal device 8 of this embodiment includes a processor 80 and a memory 81 in which computer readable instructions 82, such as data response programs, executable on the processor 80 are stored. The processor 80 executes the computer readable instructions 82 to implement the steps in the various data response method embodiments described above, such as steps 201 through 206 shown in FIG. Alternatively, the processor 80, when executing the computer readable instructions 82, implements the functions of the various modules/units in the various apparatus embodiments described above, such as the functions of the units 711 through 716 shown in FIG.
示例性的,所述计算机可读指令82可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器81中,并由所述处理器80执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机可读指令82在所述终端设备8中的执行过程。Illustratively, the computer readable instructions 82 may be partitioned into one or more modules/units that are stored in the memory 81 and executed by the processor 80, To complete this application. The one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer readable instructions 82 in the terminal device 8.
所述终端设备8可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于处理器80和存储器81。本领域技术人员可以理解,图8仅仅是终端设备8的示例,并不构成对终端设备8的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 8 may be a computing device such as a desktop computer, a notebook, a palmtop computer, or a cloud server. The terminal device may include, but is not limited to, the processor 80 and the memory 81. It will be understood by those skilled in the art that FIG. 8 is merely an example of the terminal device 8, and does not constitute a limitation on the terminal device 8, and may include more or less components than those illustrated, or combine some components, or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器80可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 80 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
所述存储器81可以是所述终端设备8的内部存储单元,例如终端设备8的硬盘或内存。所述存储器81也可以是所述终端设备8的外部存储设备,例如所述终端设备8上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器81还可以既包括所述终端设备8的内部存储单元也包括外部存储设备。所述存储器81用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器81还可以用于暂时地存储已经输出或者将要输出的数据。The memory 81 may be an internal storage unit of the terminal device 8, such as a hard disk or a memory of the terminal device 8. The memory 81 may also be an external storage device of the terminal device 8, such as a plug-in hard disk provided on the terminal device 8, a smart memory card (SMC), and a secure digital (SD). Card, flash card, etc. Further, the memory 81 may also include both an internal storage unit of the terminal device 8 and an external storage device. The memory 81 is configured to store the computer readable instructions and other programs and data required by the terminal device. The memory 81 can also be used to temporarily store data that has been output or is about to be output.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the embodiments are modified, or the equivalents of the technical features are replaced by the equivalents. The modifications and substitutions of the embodiments do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种数据响应方法,其特征在于,包括:A data response method, comprising:
    获取分布于多个第一数据库的关联数据,所述关联数据为一次数据操作过程中需要共同处理的数据;Obtaining associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed together during a data operation;
    获取所述关联数据的第一特征信息;Obtaining first feature information of the associated data;
    建立所述第一特征信息与所述关联数据的映射关系,并将所述第一特征信息及所述映射关系存储至预先建立的第二数据库;Establishing a mapping relationship between the first feature information and the associated data, and storing the first feature information and the mapping relationship to a pre-established second database;
    获取客户端向所述第二数据库发出的携带第二特征信息的数据管理操作请求;Obtaining a data management operation request that is sent by the client to the second database and carries the second feature information;
    在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据;Determining, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the second feature information, and determining an association that matches the data management operation request according to the mapping relationship data;
    根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应。And performing data management operations on the determined associated data according to the data management operation request to respond to the data management operation request.
  2. 如权利要求1所述的数据响应方法,其特征在于,所述获取所述关联数据的第一特征信息,包括:The data response method according to claim 1, wherein the acquiring the first feature information of the associated data comprises:
    分别获取所述关联数据中每个数据的属性值;Obtaining attribute values of each data in the associated data respectively;
    创建属性组;Create an attribute group;
    若存在至少两个数据的所述属性值相同,则将该属性值存入所述属性组;If the attribute values of the at least two data are the same, the attribute value is stored in the attribute group;
    为所述属性组添加第一操作字段,并将包含所述第一操作字段的所述属性组输出为所述第一特征信息;Adding a first operation field to the attribute group, and outputting the attribute group including the first operation field as the first feature information;
    其中,所述第一操作字段用于表示所述属性组对应的数据管理操作的类型。The first operation field is used to indicate the type of the data management operation corresponding to the attribute group.
  3. 如权利要求2所述的数据响应方法,其特征在于,所述第二特征信息包括所述属性组以及第二操作字段,所述在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据,包括:The data response method according to claim 2, wherein said second feature information comprises said attribute group and said second operation field, said plurality of said first feature information stored in said second database Determining the first feature information that is the same as the second feature information, and determining the associated data that matches the data management operation request according to the mapping relationship, including:
    在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息中所述属性组相同的第一特征信息;Determining, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the attribute group in the second feature information;
    判断所述第二操作字段与确定出的第一特征信息中的所述第一操作字段是否相同;Determining whether the second operation field is the same as the first operation field in the determined first feature information;
    若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段不同,则返回拒绝响应提示信息;If the second operation field is different from the first operation field in the determined first feature information, returning the rejection response prompt information;
    若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段相同,则根据该第一特征信息与关联数据的映射关系,确定与所述数据管理操作请求匹配的关联数据。And if the second operation field is the same as the first operation field in the determined first feature information, determining, according to the mapping relationship between the first feature information and the associated data, the association that matches the data management operation request data.
  4. 如权利要求1所述的数据响应方法,其特征在于,所述根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应,包括:The data response method according to claim 1, wherein the data management operation is performed on the determined associated data according to the data management operation request, to respond to the data management operation request, including:
    当所述数据管理操作请求为数据查询请求时,对确定出的关联数据进行下载;When the data management operation request is a data query request, downloading the determined associated data;
    将所述关联数据作为所述数据查询请求的响应结果进行返回。The associated data is returned as a response result of the data query request.
  5. 如权利要求1所述的数据响应方法,其特征在于,所述根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应,包括:The data response method according to claim 1, wherein the data management operation is performed on the determined associated data according to the data management operation request, to respond to the data management operation request, including:
    当所述数据管理操作请求为数据修改请求时,获取所述数据修改请求中基于所述属性组的修改参数;And acquiring, when the data management operation request is a data modification request, a modification parameter based on the attribute group in the data modification request;
    利用预设的转换算法对所述修改参数进行处理,以分别生成与多个所述第一数据库中所述关联数据对应的参数修改指令;Processing the modified parameter by using a preset conversion algorithm to respectively generate a parameter modification instruction corresponding to the associated data in the plurality of the first databases;
    将所述参数修改指令分别发送至多个所述第一数据库,以使多个所述第一数据库分别对其存储的关联数据进行修改。And sending the parameter modification instruction to the plurality of the first databases, respectively, so that the plurality of the first databases respectively modify the stored associated data.
  6. 一种数据响应装置,其特征在于,包括:A data response device, comprising:
    关联数据获取单元,用于获取分布于多个第一数据库的关联数据,所述关联数据为一次数据操作过程中需要共同处理的数据;An associated data obtaining unit, configured to acquire associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed jointly during a data operation;
    特征信息获取单元,用于获取所述关联数据的第一特征信息;a feature information acquiring unit, configured to acquire first feature information of the associated data;
    映射关系建立单元,用于建立所述第一特征信息与所述关联数据的映射关系,并将所述第一特征信息及所述映射关系存储至预先建立的第二数据库;a mapping relationship establishing unit, configured to establish a mapping relationship between the first feature information and the associated data, and store the first feature information and the mapping relationship to a pre-established second database;
    请求获取单元,用于获取客户端向所述第二数据库发出的携带第二特征信息的数据管理操作请求;a request obtaining unit, configured to acquire a data management operation request that is sent by the client to the second database and carries the second feature information;
    关联数据匹配单元,用于在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据;An association data matching unit, configured to determine, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the second feature information, and determine, according to the mapping relationship, Data management operation request matching associated data;
    请求响应单元,用于根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应。And a request response unit, configured to perform a data management operation on the determined associated data according to the data management operation request, to respond to the data management operation request.
  7. 根据权利要求6所述的数据响应装置,其特征在于,所述特征信息获取单元包括:The data response device according to claim 6, wherein the feature information acquiring unit comprises:
    获取子单元,用于分别获取所述关联数据中每个数据的属性值;Obtaining a subunit, configured to respectively acquire attribute values of each data in the associated data;
    创建子单元,用于创建属性组;Create subunits for creating attribute groups;
    存储子单元,用于若存在至少两个数据的所述属性值相同,则将该属性值存入所述属性组;a storage subunit, configured to store the attribute value in the attribute group if the attribute values of the at least two data are the same;
    添加子单元,用于为所述属性组添加第一操作字段,并将包含所述第一操作字段的所述属性组输出为所述第一特征信息;Adding a subunit, configured to add a first operation field to the attribute group, and output the attribute group including the first operation field as the first feature information;
    其中,所述第一操作字段用于表示所述属性组对应的数据管理操作的类型。The first operation field is used to indicate the type of the data management operation corresponding to the attribute group.
  8. 根据权利要求7所述的数据响应装置,其特征在于,所述第二特征信息包括所述属性组以及第二操作字段,所述关联数据匹配单元包括:The data response apparatus according to claim 7, wherein the second feature information comprises the attribute group and a second operation field, and the associated data matching unit comprises:
    确定子单元,用于在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息中所述属性组相同的第一特征信息;a determining subunit, configured to determine, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the attribute group in the second feature information;
    判断子单元,用于判断所述第二操作字段与确定出的第一特征信息中的所述第一操作字段是否相同;a determining subunit, configured to determine whether the second operation field is the same as the first operation field in the determined first feature information;
    拒绝子单元,用于若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段不同,则返回拒绝响应提示信息;And rejecting the subunit, if the second operation field is different from the first operation field in the determined first feature information, returning the rejection response prompt information;
    匹配子单元,用于若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段相同,则根据该第一特征信息与关联数据的映射关系,确定与所述数据管理操作请求匹配的关联数据。a matching subunit, configured to determine the data according to the mapping relationship between the first feature information and the associated data, if the second operation field is the same as the first operation field in the determined first feature information Manage the associated data that the operation request matches.
  9. 根据权利要求6所述的数据响应装置,其特征在于,所述请求响应单元包括:The data response apparatus according to claim 6, wherein the request response unit comprises:
    下载子单元,用于当所述数据管理操作请求为数据查询请求时,对确定出的关联数据进行下载;a downloading subunit, configured to download the determined related data when the data management operation request is a data query request;
    返回子单元,用于将所述关联数据作为所述数据查询请求的响应结果进行返回。Returning to the subunit, the method is used to return the associated data as a response result of the data query request.
  10. 根据权利要求6所述的数据响应装置,其特征在于,所述请求响应单元包括:The data response apparatus according to claim 6, wherein the request response unit comprises:
    获取子单元,用于当所述数据管理操作请求为数据修改请求时,获取所述数据修改请求中基于所述属性组的修改参数;Obtaining a subunit, configured to acquire a modification parameter based on the attribute group in the data modification request when the data management operation request is a data modification request;
    生成子单元,用于利用预设的转换算法对所述修改参数进行处理,以分别生成与多个所述第一数据库中所述关联数据对应的参数修改指令;Generating a subunit, configured to process the modified parameter by using a preset conversion algorithm to respectively generate a parameter modification instruction corresponding to the associated data in the plurality of the first databases;
    修改子单元,用于将所述参数修改指令分别发送至多个所述第一数据库,以使多个所述第一数据库分别对其存储的关联数据进行修改。The modifying subunit is configured to separately send the parameter modification instruction to the plurality of the first databases, so that the plurality of the first databases respectively modify the stored associated data.
  11. 一种终端设备,其特征在于,包括存储器以及处理器,所述存储器中存储有可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device, comprising: a memory and a processor, wherein the memory stores computer readable instructions executable on the processor, and the processor implements the following steps when the computer readable instructions are executed :
    获取分布于多个第一数据库的关联数据,所述关联数据为一次数据操作过程中需要共同处理的数据;Obtaining associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed together during a data operation;
    获取所述关联数据的第一特征信息;Obtaining first feature information of the associated data;
    建立所述第一特征信息与所述关联数据的映射关系,并将所述第一特征信息及所述映射关系存储至预先建立的第二数据库;Establishing a mapping relationship between the first feature information and the associated data, and storing the first feature information and the mapping relationship to a pre-established second database;
    获取客户端向所述第二数据库发出的携带第二特征信息的数据管理操作请求;Obtaining a data management operation request that is sent by the client to the second database and carries the second feature information;
    在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据;Determining, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the second feature information, and determining an association that matches the data management operation request according to the mapping relationship data;
    根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应。And performing data management operations on the determined associated data according to the data management operation request to respond to the data management operation request.
  12. 根据权利要求11所述的终端设备,其特征在于,所述获取所述关联数据的第一特征信息,包括:The terminal device according to claim 11, wherein the acquiring the first feature information of the associated data comprises:
    分别获取所述关联数据中每个数据的属性值;Obtaining attribute values of each data in the associated data respectively;
    创建属性组;Create an attribute group;
    若存在至少两个数据的所述属性值相同,则将该属性值存入所述属性组;If the attribute values of the at least two data are the same, the attribute value is stored in the attribute group;
    为所述属性组添加第一操作字段,并将包含所述第一操作字段的所述属性组输出为所述第一特征信息;Adding a first operation field to the attribute group, and outputting the attribute group including the first operation field as the first feature information;
    其中,所述第一操作字段用于表示所述属性组对应的数据管理操作的类型。The first operation field is used to indicate the type of the data management operation corresponding to the attribute group.
  13. 根据权利要求12所述的终端设备,其特征在于,所述第二特征信息包括所述属性组以及第二操作字段,所述在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据,包括:The terminal device according to claim 12, wherein the second feature information comprises the attribute group and a second operation field, wherein the plurality of sets of the first feature information stored in the second database are Determining the first feature information that is the same as the second feature information, and determining the associated data that matches the data management operation request according to the mapping relationship, including:
    在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息中所述属性组相同的第一特征信息;Determining, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the attribute group in the second feature information;
    判断所述第二操作字段与确定出的第一特征信息中的所述第一操作字段是否相同;Determining whether the second operation field is the same as the first operation field in the determined first feature information;
    若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段不同,则返回拒绝响应提示信息;If the second operation field is different from the first operation field in the determined first feature information, returning the rejection response prompt information;
    若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段相同,则根据该第一特征信息与关联数据的映射关系,确定与所述数据管理操作请求匹配的关联数据。And if the second operation field is the same as the first operation field in the determined first feature information, determining, according to the mapping relationship between the first feature information and the associated data, the association that matches the data management operation request data.
  14. 根据权利要求11所述的终端设备,其特征在于,所述根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应,包括:The terminal device according to claim 11, wherein the data management operation is performed on the determined associated data according to the data management operation request, to respond to the data management operation request, including:
    当所述数据管理操作请求为数据查询请求时,对确定出的关联数据进行下载;When the data management operation request is a data query request, downloading the determined associated data;
    将所述关联数据作为所述数据查询请求的响应结果进行返回。The associated data is returned as a response result of the data query request.
  15. 根据权利要求11所述的终端设备,其特征在于,所述根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应,包括:The terminal device according to claim 11, wherein the data management operation is performed on the determined associated data according to the data management operation request, to respond to the data management operation request, including:
    当所述数据管理操作请求为数据修改请求时,获取所述数据修改请求中基于所述属性组的修改参数;And acquiring, when the data management operation request is a data modification request, a modification parameter based on the attribute group in the data modification request;
    利用预设的转换算法对所述修改参数进行处理,以分别生成与多个所述第一数据库中所述关联数据对应的参数修改指令;Processing the modified parameter by using a preset conversion algorithm to respectively generate a parameter modification instruction corresponding to the associated data in the plurality of the first databases;
    将所述参数修改指令分别发送至多个所述第一数据库,以使多个所述第一数据库分别对其存储的关联数据进行修改。And sending the parameter modification instruction to the plurality of the first databases, respectively, so that the plurality of the first databases respectively modify the stored associated data.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被至少一个处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by at least one processor, implement the following steps:
    获取分布于多个第一数据库的关联数据,所述关联数据为一次数据操作过程中需要共同处理的数据;Obtaining associated data distributed in a plurality of first databases, where the associated data is data that needs to be processed together during a data operation;
    获取所述关联数据的第一特征信息;Obtaining first feature information of the associated data;
    建立所述第一特征信息与所述关联数据的映射关系,并将所述第一特征信息及所述映射关系存储至预先建立的第二数据库;Establishing a mapping relationship between the first feature information and the associated data, and storing the first feature information and the mapping relationship to a pre-established second database;
    获取客户端向所述第二数据库发出的携带第二特征信息的数据管理操作请求;Obtaining a data management operation request that is sent by the client to the second database and carries the second feature information;
    在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据;Determining, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the second feature information, and determining an association that matches the data management operation request according to the mapping relationship data;
    根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应。And performing data management operations on the determined associated data according to the data management operation request to respond to the data management operation request.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述获取所述关联数据的第一特征信息,包括:The computer readable storage medium according to claim 16, wherein the acquiring the first feature information of the associated data comprises:
    分别获取所述关联数据中每个数据的属性值;Obtaining attribute values of each data in the associated data respectively;
    创建属性组;Create an attribute group;
    若存在至少两个数据的所述属性值相同,则将该属性值存入所述属性组;If the attribute values of the at least two data are the same, the attribute value is stored in the attribute group;
    为所述属性组添加第一操作字段,并将包含所述第一操作字段的所述属性组输出为所述第一特征信息;Adding a first operation field to the attribute group, and outputting the attribute group including the first operation field as the first feature information;
    其中,所述第一操作字段用于表示所述属性组对应的数据管理操作的类型。The first operation field is used to indicate the type of the data management operation corresponding to the attribute group.
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述第二特征信息包括所述属性组以及第二操作字段,所述在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息相同的第一特征信息,并根据所述映射关系确定与所述数据管理操作请求匹配的关联数据,包括:The computer readable storage medium of claim 17, wherein the second feature information comprises the attribute group and a second operation field, the plurality of sets of the first stored in the second database And determining, in the feature information, the first feature information that is the same as the second feature information, and determining the associated data that matches the data management operation request according to the mapping relationship, including:
    在所述第二数据库存储的多组所述第一特征信息中,确定与所述第二特征信息中所述属性组相同的第一特征信息;Determining, in the plurality of sets of the first feature information stored in the second database, first feature information that is the same as the attribute group in the second feature information;
    判断所述第二操作字段与确定出的第一特征信息中的所述第一操作字段是否相同;Determining whether the second operation field is the same as the first operation field in the determined first feature information;
    若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段不同,则返回拒绝响应提示信息;If the second operation field is different from the first operation field in the determined first feature information, returning the rejection response prompt information;
    若所述第二操作字段与确定出的第一特征信息中的所述第一操作字段相同,则根据该第一特征信息与关联数据的映射关系,确定与所述数据管理操作请求匹配的关联数据。And if the second operation field is the same as the first operation field in the determined first feature information, determining, according to the mapping relationship between the first feature information and the associated data, the association that matches the data management operation request data.
  19. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应,包括:The computer readable storage medium according to claim 16, wherein said performing a data management operation on the determined associated data according to the data management operation request to respond to the data management operation request, including :
    当所述数据管理操作请求为数据查询请求时,对确定出的关联数据进行下载;When the data management operation request is a data query request, downloading the determined associated data;
    将所述关联数据作为所述数据查询请求的响应结果进行返回。The associated data is returned as a response result of the data query request.
  20. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述根据所述数据管理操作请求,对确定出的关联数据进行数据管理操作,以对所述数据管理操作请求作出响应,包括:The computer readable storage medium according to claim 16, wherein said performing a data management operation on the determined associated data according to the data management operation request to respond to the data management operation request, including :
    当所述数据管理操作请求为数据修改请求时,获取所述数据修改请求中基于所述属性组的修改参数;And acquiring, when the data management operation request is a data modification request, a modification parameter based on the attribute group in the data modification request;
    利用预设的转换算法对所述修改参数进行处理,以分别生成与多个所述第一数据库中所述关联数据对应的参数修改指令;Processing the modified parameter by using a preset conversion algorithm to respectively generate a parameter modification instruction corresponding to the associated data in the plurality of the first databases;
    将所述参数修改指令分别发送至多个所述第一数据库,以使多个所述第一数据库分别对其存储的关联数据进行修改。And sending the parameter modification instruction to the plurality of the first databases, respectively, so that the plurality of the first databases respectively modify the stored associated data.
PCT/CN2018/083297 2017-05-05 2018-04-17 Data response method, apparatus, terminal device, and medium WO2018201887A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710313344.1 2017-05-05
CN201710313344.1A CN107798038B (en) 2017-05-05 2017-05-05 Data response method and data response equipment

Publications (1)

Publication Number Publication Date
WO2018201887A1 true WO2018201887A1 (en) 2018-11-08

Family

ID=61531047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083297 WO2018201887A1 (en) 2017-05-05 2018-04-17 Data response method, apparatus, terminal device, and medium

Country Status (2)

Country Link
CN (1) CN107798038B (en)
WO (1) WO2018201887A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107798038B (en) * 2017-05-05 2020-02-14 平安科技(深圳)有限公司 Data response method and data response equipment
CN108600333B (en) * 2018-04-03 2021-03-12 广东阿里影业云智软件有限公司 Data transmission method, equipment and system based on proxy server
CN108920109A (en) * 2018-07-19 2018-11-30 郑州云海信息技术有限公司 A kind of storage platform Explore of Unified Management Ideas, device, equipment and system
CN109241068B (en) * 2018-08-22 2023-04-07 中国平安人寿保险股份有限公司 Method and device for comparing foreground and background data and terminal equipment
CN109033457A (en) * 2018-08-29 2018-12-18 广州中赢财富信息科技有限公司 The associated auditing method of Various database and system
CN110928896A (en) * 2018-09-19 2020-03-27 北京国双科技有限公司 Data query method and device
CN109213821B (en) * 2018-09-25 2022-03-15 中国银行股份有限公司 Data processing method and system
CN110109924A (en) * 2019-04-23 2019-08-09 重庆紫光华山智安科技有限公司 Search method and device
CN110324403A (en) * 2019-05-23 2019-10-11 平安科技(深圳)有限公司 Dynamic divides library method for routing, device, server and storage medium
CN110442632A (en) * 2019-08-09 2019-11-12 泰康保险集团股份有限公司 Data processing method and device
CN112287644B (en) * 2020-09-30 2024-01-30 成都新潮传媒集团有限公司 Data submitting method, device, computer equipment and readable storage medium
CN113590883A (en) * 2021-08-10 2021-11-02 上海杉互健康科技有限公司 Method, system, device and storage medium for mapping medical information and database
CN114489510A (en) * 2022-01-28 2022-05-13 维沃移动通信有限公司 Data reading method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365929A (en) * 2012-04-10 2013-10-23 阿里巴巴集团控股有限公司 Management method and management system of database connection
CN105847320A (en) * 2016-03-02 2016-08-10 乐视致新电子科技(天津)有限公司 Resource obtaining method and device
CN107798038A (en) * 2017-05-05 2018-03-13 平安科技(深圳)有限公司 Data response method and data response apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100535856C (en) * 2006-10-16 2009-09-02 中兴通讯股份有限公司 Method for constructing middle library
US8229945B2 (en) * 2008-03-20 2012-07-24 Schooner Information Technology, Inc. Scalable database management software on a cluster of nodes using a shared-distributed flash memory
CN102438042B (en) * 2011-11-04 2014-04-02 中国工商银行股份有限公司 Dynamic parameter synchronizing method and system of multipoint access device
CN102724295B (en) * 2012-05-24 2016-05-18 中国电子科技集团公司第十五研究所 Method of data synchronization and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365929A (en) * 2012-04-10 2013-10-23 阿里巴巴集团控股有限公司 Management method and management system of database connection
CN105847320A (en) * 2016-03-02 2016-08-10 乐视致新电子科技(天津)有限公司 Resource obtaining method and device
CN107798038A (en) * 2017-05-05 2018-03-13 平安科技(深圳)有限公司 Data response method and data response apparatus

Also Published As

Publication number Publication date
CN107798038A (en) 2018-03-13
CN107798038B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
WO2018201887A1 (en) Data response method, apparatus, terminal device, and medium
JP7222036B2 (en) Model training system and method and storage medium
US10868865B2 (en) System and apparatus to manage data using a peer-to-peer network and the blockchain
WO2020001105A1 (en) Blockchain-based data verification method and apparatus, and electronic device
US11082226B2 (en) Zero-knowledge identity verification in a distributed computing system
WO2019200756A1 (en) Data examination and approval method and apparatus, computer device and storage medium
US20200287719A1 (en) Zero-knowledge identity verification in a distributed computing system
WO2021012553A1 (en) Data processing method and related device
US9483386B2 (en) Information interaction test device and method based on automatic generation of associated test cases
US20110302277A1 (en) Methods and apparatus for web-based migration of data in a multi-tenant database system
US20130151560A1 (en) Systems and Methods for Secure Access of Data
CN104506487B (en) The credible execution method of privacy policy under cloud environment
WO2020168692A1 (en) Mass data sharing method, open sharing platform and electronic device
WO2017173928A1 (en) Service processing system, service processing method and service updating method
US11106659B2 (en) Blockchain-based recording and querying operations
US10795882B2 (en) Blockchain-based data compression and searching
WO2021208762A1 (en) Data storage and query
WO2020001162A1 (en) Container management method, apparatus, and device
WO2019127773A1 (en) Method and apparatus for processing sales of insurance product, storage medium, and terminal
TWI812366B (en) A data sharing method, device, equipment and storage medium
WO2020168757A1 (en) Network system access method and apparatus, computer device, and readable storage medium
CN111782652B (en) Data calling method, device, computer equipment and storage medium
WO2023216532A1 (en) Digital asset management method and related device
CN107181801B (en) Electronic accessory storage method and terminal
WO2018188607A1 (en) Stream processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18794907

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/02/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18794907

Country of ref document: EP

Kind code of ref document: A1