A data query method, device, system, server and storage medium

By introducing aggregation services into the data query system and using the query interface of business services to process data query requests from multiple data sources, the problem of low query efficiency of multiple data sources is solved and efficient data aggregation and resource utilization are achieved.

CN118395024BActive Publication Date: 2024-08-27HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410834080.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-27
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In the existing technology, data query efficiency from multiple data sources is low and the effect is poor, and data query requests from multiple data sources cannot be effectively processed.

Method used

By introducing aggregation services into the data query system, using the query interface of each business service to send data query instructions, aggregating and processing data from multiple data sources, supporting data queries with the same data characteristics, and achieving simultaneous access to multiple data sources and Reduce hardware resource usage.

Benefits of technology

It improves the efficiency of data query from multiple data sources, avoids the display of duplicate data on the client, and reduces the workload of data query and the occupation of hardware resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395024B
    Figure CN118395024B
Patent Text Reader

Abstract

The embodiments of the present application provide a data query method, device, system, server and storage medium. The aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; aggregates the target business data, and sends the aggregated result to the client, so that the client displays the aggregated result. Since the business data stored in multiple data sources have the same data characteristics, the business data stored in different data sources can be aggregated. Since the query interface of each business service is pre-constructed based on the same data characteristics, the query interface of each business service can support the same input parameters, and can achieve simultaneous access to multiple data sources, thereby improving data query efficiency and effectiveness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data query method, device, system, server and storage medium. Background Art

[0002] In many scenarios, various business data will be stored in data sources of different platforms. For example, surveillance videos of different places may be stored in data sources such as databases of different platforms. Then, when users need to query data, they need to obtain data from multiple different data sources and then display the queried data on the client.

[0003] Currently, data queries for multiple data sources are inefficient and have poor results. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data query method, device, system, server and storage medium to improve the efficiency and effect of data query for multiple data sources. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a data query method, which is applied to an aggregation service in a data query system, wherein the data query system further includes multiple business services and clients, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through a query interface of each business service, the query interface is pre-built based on the same data features, and the method includes:

[0006] In response to the data query request sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service;

[0007] The target business data is aggregated, and the aggregation result is sent to the client, so that the client displays the aggregation result.

[0008] Optionally, the aggregation service has a request aggregation interface;

[0009] The step of sending a data query instruction to each business service through a query interface of each business service in response to the data query request sent by the client includes:

[0010] In response to the data query request sent by the client, the query interface of each business service is called through the request aggregation interface to send a data query instruction to each business service.

[0011] Optionally, the step of sending a data query instruction to each business service through a query interface of each business service includes:

[0012] Sending data query instructions to each business service through the query interface of each business service multiple times, wherein the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request;

[0013] The step of aggregating the target business data includes:

[0014] The business data sent each time by the multiple business services are aggregated to obtain an aggregation result corresponding to the business data sent each time.

[0015] Optionally, the same data features include the same fields;

[0016] The step of aggregating the target business data includes:

[0017] Based on the same fields included in the business data sent by the multiple business services, determine a sorting condition satisfied by each business data, wherein the sorting condition is a preset condition with a sequence;

[0018] According to the order of the sorting conditions satisfied by each business data, the order corresponding to the business data is determined to obtain the sorting result corresponding to each business data;

[0019] Based on the sorting result corresponding to each business data, each business data is aggregated to obtain an aggregated result.

[0020] Optionally, each business service has a preset priority;

[0021] Before the step of determining the order corresponding to each business data according to the order of the sorting conditions satisfied by each business data, the method further includes:

[0022] For business data satisfying different sorting conditions, executing the step of determining the order corresponding to the business data according to the order of the sorting conditions satisfied by each business data;

[0023] For business data that meet the same sorting conditions but come from different data sources, the order of the business data is determined according to the priority of the corresponding business services;

[0024] For business data that meet the same sorting conditions and have the same data source, the corresponding order of the business data is determined according to the order identified by the corresponding identical fields.

[0025] Optionally, the step of sending a data query instruction to each business service through a query interface of each business service includes:

[0026] In response to the data query request sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains a preset number of business data with a corresponding top ranking result from the connected data source according to the predetermined ranking result of each business data, and sends the preset number of business data to the aggregation service, wherein the preset number is the number of business data displayed on each page of the client or the number of data that the user needs to query carried by the data query request;

[0027] The step of aggregating the target business data includes:

[0028] Sort a preset number of business data sent by each business service to obtain a sorting result;

[0029] Aggregate the preset number of business data that are at the top of the corresponding sorting results to obtain an aggregated result.

[0030] Optionally, the client is used to display the target business data in pages;

[0031] The step of sending data query instructions to each business service through the query interface of each business service for multiple times includes:

[0032] In response to a data query request for the business data displayed on each page sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and sends the business data corresponding to the current page to the aggregation service;

[0033] Wherein, the total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client, and the data information includes a current sorting condition, a current repetition number and a current data identifier, wherein the current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page, the current repetition number corresponding to the homepage is a preset value, and the current repetition number corresponding to a non-homepage indicates the number of business data in the currently displayed business data that has the same sorting condition as the next business data of the last business data displayed on the previous page, and the current data identifier is the identifier of the last business data from each business service in the currently displayed business data;

[0034] The step of aggregating the service data sent this time based on the sorting result corresponding to the service data sent this time to obtain the aggregation result includes:

[0035] Based on the sorting result corresponding to the business data sent this time, selecting business data of the quantity of business data displayed on each page of the client from the business data sent this time as the business data to be aggregated;

[0036] Aggregate the service data to be aggregated to obtain an aggregation result.

[0037] Optionally, the method further includes:

[0038] In the case of obtaining the business data corresponding to the current page sent by each business service, determining the relationship between the total number of business data included in the business data corresponding to the current page and the target number; wherein the target number is the number of business data displayed on each page of the client;

[0039] If the total number is greater than the target number, a message indicating that there is a next page of business data is sent to the client, so that when a next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service.

[0040] Optionally, the connection relationship between each business service and the connected data source is established in advance based on an account and password required to access the data source.

[0041] In a second aspect, an embodiment of the present application provides a data query method, which is applied to each business service in a data query system, wherein the data query system includes multiple business services, an aggregation service, and a client, wherein each business service is connected to a data source, wherein the data source is used to store business data, and the business data stored in the data source has the same data features and is non-repetitive, and the aggregation service communicates with the business service through a query interface of each business service, wherein the query interface is pre-constructed based on the same data features, and the method includes:

[0042] In response to the data query instruction sent by the aggregation service, the target business data indicated by the data query instruction is obtained from the connected data source, and the target business data is sent to the aggregation service so that the aggregation service aggregates the target business data, and the aggregation result is sent to the client so that the client displays the aggregation result;

[0043] The data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client.

[0044] Optionally, the client is used to display the target business data in pages;

[0045] The step of obtaining target business data indicated by the data query instruction from a connected data source in response to the data query instruction sent by the aggregation service, and sending the target business data to the aggregation service includes:

[0046] In response to the data query instruction sent by the aggregation service, obtain the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and send the business data corresponding to the current page to the aggregation service;

[0047] Among them, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client for the business data displayed on each page. The total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client. The data information includes the current sorting condition, the current number of repetitions and the current data identifier. The current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page. The current number of repetitions corresponding to the home page is a preset value. The current number of repetitions corresponding to non-home pages indicates the number of business data in the currently displayed business data that have the same sorting condition as the next business data of the last business data displayed on the previous page. The current data identifier is the identifier of the last business data from each business service in the currently displayed business data.

[0048] In a third aspect, an embodiment of the present application provides a data query device, which is applied to an aggregation service in a data query system, wherein the data query system further includes multiple business services and clients, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through a query interface of each business service, the query interface is pre-built based on the same data features, and the device includes:

[0049] An instruction sending module, configured to respond to a data query request sent by the client and send a data query instruction to each business service through a query interface of each business service, so that each business service obtains target business data indicated by the data query instruction from a connected data source and sends the target business data to the aggregation service;

[0050] The data aggregation module is used to aggregate the target business data and send the aggregation result to the client so that the client can display the aggregation result.

[0051] Optionally, the aggregation service has a request aggregation interface;

[0052] The instruction sending module comprises:

[0053] The first instruction sending submodule is used to respond to the data query request sent by the client, call the query interface of each business service through the request aggregation interface, and send a data query instruction to each business service.

[0054] Optionally, the instruction sending module includes:

[0055] A second instruction sending submodule is used to send data query instructions to each business service through the query interface of each business service for multiple times, wherein the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request;

[0056] The data aggregation module comprises:

[0057] The data aggregation submodule is used to aggregate the business data sent by the multiple business services each time to obtain aggregation results corresponding to the business data sent each time.

[0058] Optionally, the same data features include the same fields;

[0059] The data aggregation module comprises:

[0060] A condition determination submodule, used to determine a sorting condition satisfied by each business data based on the same fields included in the business data sent by the multiple business services, wherein the sorting condition is a preset condition with a sequence;

[0061] The data sorting submodule is used to determine the order of each business data according to the order of the sorting conditions satisfied by the business data, and obtain the sorting result corresponding to each business data;

[0062] The first data aggregation submodule is used to aggregate each business data based on the sorting result corresponding to each business data to obtain an aggregation result.

[0063] Optionally, each business service has a preset priority, and the device further includes:

[0064] A first sorting module, for executing the step of determining the order of the business data according to the order of the sorting conditions satisfied by each business data, for business data satisfying different sorting conditions;

[0065] The second sorting module is used to determine the order of the business data according to the priority of the corresponding business services for the business data that meet the same sorting conditions and have different data sources;

[0066] The third sorting module is used to determine the corresponding order of the business data according to the order identified by the corresponding same fields, with respect to the business data that meet the same sorting conditions and have the same data source.

[0067] Optionally, the instruction sending module includes:

[0068] A data acquisition submodule, configured to respond to a data query request sent by the client, and send a data query instruction to each business service through a query interface of each business service, so that each business service obtains a preset number of business data with a corresponding top ranking result from a connected data source according to a predetermined ranking result of each business data, and sends the preset number of business data to the aggregation service, wherein the preset number is the number of business data displayed on each page of the client or the number of data that the user needs to query carried in the data query request;

[0069] The data aggregation module comprises:

[0070] A result determination submodule is used to sort a preset number of business data sent by each business service to obtain a sorting result;

[0071] The second data aggregation submodule is used to aggregate the preset number of business data that are at the top of the corresponding sorting results to obtain an aggregation result.

[0072] Optionally, the client is used to display the target business data in pages;

[0073] The second instruction sending submodule includes:

[0074] an instruction sending unit, configured to respond to a data query request for the business data displayed on each page sent by the client, and to send a data query instruction to each business service through a query interface of each business service, so that each business service obtains the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and sends the business data corresponding to the current page to the aggregation service;

[0075] Wherein, the total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client, and the data information includes a current sorting condition, a current repetition number and a current data identifier, wherein the current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page, the current repetition number corresponding to the homepage is a preset value, and the current repetition number corresponding to a non-homepage indicates the number of business data in the currently displayed business data that has the same sorting condition as the next business data of the last business data displayed on the previous page, and the current data identifier is the identifier of the last business data from each business service in the currently displayed business data;

[0076] The data aggregation unit comprises:

[0077] A data selection subunit, configured to select, from the business data sent this time, business data of the quantity of business data displayed on each page of the client, as the business data to be aggregated, based on the sorting result corresponding to the business data sent this time;

[0078] The data aggregation subunit is used to aggregate the service data to be aggregated to obtain an aggregation result.

[0079] Optionally, the device further comprises:

[0080] A size relationship determination module, used to determine the size relationship between the total number of business data included in the business data corresponding to the current page and the target number when the business data corresponding to the current page sent by each business service is obtained; wherein the target number is the number of business data displayed on each page of the client;

[0081] The message sending module is used to send a message indicating the next page of business data to the client if the total number is greater than the target number, so that when the next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service.

[0082] Optionally, the connection relationship between each business service and the connected data source is established in advance based on an account and password required to access the data source.

[0083] In a fourth aspect, an embodiment of the present application provides a data query device, which is applied to each business service in a data query system, wherein the data query system includes multiple business services, an aggregation service, and a client, wherein each business service is connected to a data source, wherein the data source is used to store business data, and the business data stored in the data source has the same data features and is non-repetitive, wherein the aggregation service communicates with the business service through a query interface of each business service, wherein the query interface is pre-constructed based on the same data features, and wherein the device includes:

[0084] A data query module, configured to respond to a data query instruction sent by the aggregation service, obtain target business data indicated by the data query instruction from a connected data source, send the target business data to the aggregation service, so that the aggregation service aggregates the target business data, and send the aggregated result to the client, so that the client displays the aggregated result;

[0085] The data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client.

[0086] Optionally, the client is used to display the target business data in pages;

[0087] The data query module comprises:

[0088] A data query submodule, for responding to a data query instruction sent by the aggregation service, obtaining business data corresponding to the current page from the connected data source according to the data information carried in the data query instruction, and sending the business data corresponding to the current page to the aggregation service;

[0089] Among them, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client for the business data displayed on each page. The total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client. The data information includes the current sorting condition, the current number of repetitions and the current data identifier. The current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page. The current number of repetitions corresponding to the home page is a preset value. The current number of repetitions corresponding to non-home pages indicates the number of business data in the currently displayed business data that have the same sorting condition as the next business data of the last business data displayed on the previous page. The current data identifier is the identifier of the last business data from each business service in the currently displayed business data.

[0090] In a fifth aspect, an embodiment of the present application provides a data query system, the data query system comprising an aggregation service, multiple business services and a client, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through a query interface of each business service, and the query interface is pre-built based on the same data features;

[0091] The client is used to send a data query request to the aggregation service;

[0092] The aggregation service is used to send a data query instruction to each business service through the query interface of each business service in response to the data query request;

[0093] The business service is used to respond to the data query instruction, obtain the target business data indicated by the data query instruction from the connected data source, and send the target business data to the aggregation service;

[0094] The aggregation service is further used to aggregate the target business data and send the aggregation result to the client;

[0095] The client is also used to display the aggregation result.

[0096] In a sixth aspect, an embodiment of the present application provides a server, including:

[0097] Memory, used to store computer programs;

[0098] The processor is used to implement any method described in the first aspect or the second aspect when executing the program stored in the memory.

[0099] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspect or the second aspect is implemented.

[0100] Beneficial effects of the embodiments of the present application:

[0101] In the scheme provided by the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; aggregates the target business data, and sends the aggregated result to the client, so that the client displays the aggregated result. Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In this way, when each business service receives the same data query instruction, it can simultaneously obtain the target business data from the connected data source, and can access multiple data sources at the same time, thereby improving the efficiency of data query. Since the business data stored in multiple data sources have the same data features, the business data stored in different data sources can be aggregated based on the same data features. Since the business data stored in multiple data sources are not repeated, the business data in the aggregated result are also different, which can avoid the client from displaying multiple identical business data. Since each business service can obtain target business data from the connected data source and send the target business data to the aggregation service without merging the business data in multiple data sources into one data source, the workload of data query and the occupied hardware resources can be reduced, thereby improving data query efficiency. Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0103] Figure 1 A flowchart of the first data query method provided in an embodiment of the present application;

[0104] Figure 2 Based on Figure 1 A schematic diagram of a data query system of the illustrated embodiment;

[0105] Figure 3 Based on Figure 1 A schematic diagram of a data query result display interface of a client of the illustrated embodiment;

[0106] Figure 4 A flowchart of a data display method provided in an embodiment of the present application;

[0107] Figure 5(a) is based on Figure 4 A first schematic diagram of a data query result display interface of a client in the illustrated embodiment;

[0108] Figure 5(b) is based on Figure 4 A second schematic diagram of the data query result display interface of the client of the illustrated embodiment;

[0109] Figure 5(c) is based on Figure 4 A third schematic diagram of the data query result display interface of the client of the illustrated embodiment;

[0110] Figure 5(d) is based on Figure 4 A fourth schematic diagram of the data query result display interface of the client of the illustrated embodiment;

[0111] Figure 6 for Figure 1 A specific flow chart of step S102 in the illustrated embodiment;

[0112] Figure 7 Based on Figure 1 A flow chart of sorting business data in the illustrated embodiment;

[0113] Figure 8 Based on Figure 4 A flow chart of determining whether there is a next page of business data in the illustrated embodiment;

[0114] Fig. 9 Based on Figure 4 A schematic diagram of the distribution of business data corresponding to each business service connection in the illustrated embodiment;

[0115] Fig.10 Based on Figure 4 A flow chart of the paging display of the illustrated embodiment;

[0116] Fig.11 A schematic diagram of the structure of the first data query device provided in an embodiment of the present application;

[0117] Fig.12 A schematic diagram of the structure of a data query system provided in an embodiment of the present application;

[0118] Fig.13 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0119] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0120] In order to improve the efficiency and effect of data query for multiple data sources, the embodiments of the present application provide a data query method, device, system, server, computer-readable storage medium and computer program product. The first data query method provided by the embodiments of the present application is first introduced below.

[0121] The data query method provided in the embodiment of the present application can be applied to any service that needs to query data for multiple data sources, for example, it can be a front-end service, a front-end service, a proxy service, etc., which is not specifically limited here. For the sake of clarity, it is subsequently referred to as an aggregation service in this article.

[0122] like Figure 1 As shown, a data query method is applied to an aggregation service in a data query system, the data query system also includes multiple business services and clients, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through the query interface of each business service, the query interface is pre-built based on the same data features, the method includes:

[0123] S101, in response to a data query request sent by the client, sending a data query instruction to each business service through the query interface of each business service, so that each business service obtains target business data indicated by the data query instruction from a connected data source, and sends the target business data to the aggregation service;

[0124] S102, aggregate the target business data, and send the aggregated result to the client, so that the client displays the aggregated result.

[0125] It can be seen that in the scheme provided by the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; aggregate the target business data, and send the aggregation result to the client, so that the client displays the aggregation result. Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In this way, when each business service receives the same data query instruction, it can simultaneously obtain the target business data from the connected data source, and can achieve simultaneous access to multiple data sources, thereby improving data query efficiency. Since the business data stored in multiple data sources have the same data features, the business data stored in different data sources can be aggregated based on the same data features. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation result are also different, which can avoid the client from displaying multiple identical business data. Since each business service can obtain the target business data from the connected data source and send the target business data to the aggregation service without merging the business data from multiple data sources into one data source, the workload of data query and the occupied hardware resources can be reduced, thereby improving data query efficiency.

[0126] The data query system may include an aggregation service, multiple business services, and a client. Among them, the business service may be a server for managing business data, each business service may be connected to a data source, and the data source is used to store business data. The business data may be obtained from a database, from a cache, or by calling a third-party interface (Application Programming Interface, API), etc., which is not specifically limited here.

[0127] The business data stored in each data source can have the same data features. For example, the same data features can be carrying time information, location information or person information, or the data names can all be in English. In addition, the business data stored in each data source is different. The query interface of each business service can be pre-built based on the same data features, or can be pre-built based on the same data features and business scenarios. In this way, the query interface of each business service can support the same request input parameters, that is, it can respond to the same data query instruction.

[0128] The aggregation service can be a server used to initiate data query instructions to multiple business services and aggregate the target business data sent by the business services. The aggregation service can communicate with each business service through the query interface of the business service. The aggregation service can be deployed on a server alone, or it can be deployed on the same server as a business service to save resources. The client can be an application for users to query data, and the client can be installed on mobile phones, tablets, desktop computers, etc.

[0129] For example, a schematic diagram of a data query system can be as follows Figure 2 As shown, the client is connected to the aggregation service in communication, and the aggregation service is connected to the business service 1-business service 3 in communication, and the business service 1-business service 3 are respectively connected to the data source 1-data source 3. The business data acquisition methods of the data source 1-data source 3 may include: acquiring from the database, acquiring from the cache, and acquiring by calling the three-party interface. The business data stored in the data source 1-data source 3 have the same data characteristics and are not repeated.

[0130] When a user needs to query data, he can send a data query request to the aggregation service through the client. The data query request can be an HTTP (Hypertext Transfer Protocol) request, which specifies the message format that the client can send to the server and the response format sent by the server. The data query request can carry query conditions.

[0131] For example, business data is video data collected by image acquisition equipment in security scenarios. The same data feature of video data is time information, which can reflect the time period of the video recording. Assuming that the user wants to query video data recorded between 8:00 and 10:00, the query condition carried in the data query request is 8:00-10:00.

[0132] Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same request input parameters. When receiving the data query request sent by the client, the aggregation service can send the data query instruction to each business service through the query interface of each business service, that is, execute step S101. After receiving the data query instruction, the business service can obtain the target business data indicated by the data query instruction from the connected data source, assemble the target business data, and send the target business data set to the aggregation service. Among them, the data query instruction can carry the data features of the target business data that the user wants to query.

[0133] Continuing with the previous example, assume that business service 1 to business service 3 are connected to data source 1 to data source 3 respectively, and the video data and corresponding time information included in each data source are shown in Table 1:

[0134] Table 1 First time information table

[0135]

[0136] The aggregation service can send a data query instruction to business service 1-business service 3. The data query instruction can carry time information 8:00-10:00. In this way, the target business data obtained by business service 1 from data source 1 is video data 1 and video data 2, the target business data obtained by business service 1 from data source 2 is video data 5, and the target business data obtained by business service 3 from data source 3 is video data 9. Next, business service 1-business service 3 can send the target business data obtained by each of them to the aggregation service.

[0137] After receiving the target business data sent by each business service, the aggregation service can aggregate the target business data and send the aggregation result to the client, that is, execute step S102. In this way, the client can display the aggregation result.

[0138] Continuing from the previous example, the first schematic diagram of the client's data query result display interface can be as follows Figure 3 As shown, when the current query condition is 8:00-10:00, the client can display the obtained aggregation results. Specifically, the aggregation results include video data 1, video data 2, video data 5, and video data 9. The corresponding time information is 8:00-9:00, 9:00-10:00, 9:30-10:00, and 8:00-9:30, and the corresponding data sources are business service 1, business service 1, business service 2, and business service 3. Each video data also corresponds to a play button. When the user clicks the play button, the corresponding video data can be played directly. The user can also enter the query condition in the input box corresponding to the query condition. When the input box is not triggered, the prompt message "Please enter the query condition" can be displayed.

[0139] It can be seen that in the embodiment of the present application, since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In this way, when each business service receives the same data query instruction, it can simultaneously obtain the target business data from the connected data source, and can access multiple data sources at the same time, thereby improving the efficiency of data information retrieval. Since the business data stored in multiple data sources have the same data features, the business data stored in different data sources can be aggregated based on the same data features. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation results are also different, which can avoid the client from displaying multiple identical business data. By transforming the query aggregation function, the development labor cost is reduced and the risk of data security is reduced. Since each business service can obtain the target business data from the connected data source and send the target business data to the aggregation service, without merging the business data in multiple data sources into one data source, the workload of data query can be reduced and the occupied hardware resources can be reduced, and cross-platform data query and aggregation can be realized without extracting and migrating the underlying data.

[0140] As an implementation of an embodiment of the present application, the above-mentioned aggregation service may have a request aggregation interface. In this case, the above-mentioned step of sending a data query instruction to each business service through the query interface of each business service in response to the data query request sent by the client may include:

[0141] In response to the data query request sent by the client, the query interface of each business service is called through the request aggregation interface to send a data query instruction to each business service.

[0142] The aggregation service can provide a request aggregation interface for aggregating data. The request aggregation interface can carry the request parameters provided by the client when executing the data query request to call the query interface of each business service to obtain the target business data. Among them, the request parameters can reflect the data characteristics of the target business data to be queried. In the case where the aggregation service has a request aggregation interface, if the aggregation service receives a data query request sent by the client, it can call the query interface of each business service through the request aggregation interface, thereby sending the data query instruction to each business service.

[0143] In one embodiment, the connection relationship between each of the above business services and the connected data source can be established in advance based on the account and password required to access the data source. For example, assuming that the data source connected to business service 1 is data source 1, the account required to access data source 1 is user001, and the password is 123456, then the connection relationship between business service 1 and data source 1 can be established in advance based on the account and password.

[0144] It can be seen that in the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and call the query interface of each business service by requesting the aggregation interface to send data query instructions to each business service. Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In the case where the aggregation service has a request aggregation interface, if the aggregation service needs to send data query instructions to each business service, it can call the query interface of each business service by requesting the aggregation interface, thereby sending data query instructions to each business service. In this way, the data query efficiency for multiple data sources can be improved, and the data query effect can be improved.

[0145] Since the connection relationship between the business service and the data source is pre-established, the business service can obtain business data from the connected data source without the client directly accessing the data source. Therefore, it is not necessary to obtain the account and password of the data source, and direct connection to the data source can be avoided.

[0146] After obtaining business data from multiple different data sources, the client needs to display the queried business data. In the current related technology, it is usually necessary to deduplicate the business data set obtained from multiple data sources, reorganize the deduplicated business data, obtain a new data set, and then display all the business data in the new data set. Since the above method requires a large amount of business data to be transmitted at one time, it will occupy a lot of bandwidth, resulting in poor data query performance and a lot of resource waste.

[0147] In order to improve the data query performance for multiple data sources and reduce resource waste in data query, the embodiment of the present application also provides a data display method. The following is an introduction to a data display method provided by the embodiment of the present application.

[0148] A data display method provided in an embodiment of the present application can be applied to any aggregation service that requires paging display or batch loading of data for multiple data sources, for example, it can be a foreground layer service, front-end service, proxy service, etc., without specific limitation here.

[0149] like Figure 4As shown, a data display method is applied to an aggregation service in a data query system, the data query system also includes multiple business services and clients, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through the query interface of each business service, the query interface is pre-built based on the same data features, the method includes:

[0150] S401, in response to a data query request sent by the client, sending a data query instruction to each business service through the query interface of each business service for multiple times, so that each business service obtains target business data indicated by the data query instruction from a connected data source, and sends the target business data to the aggregation service;

[0151] The service data indicated by the data query instruction sent each time is a non-repeated part of the target service data indicated by the data query request.

[0152] S402, aggregating the business data sent each time by the multiple business services to obtain an aggregation result corresponding to the business data sent each time, and sending the aggregation result to the client so that the client displays the aggregation result.

[0153] It can be seen that in the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service multiple times, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; wherein, the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request; the business data sent by multiple business services each time are aggregated to obtain the aggregation results corresponding to the business data sent each time, and the aggregation results are sent to the client, so that the client displays the aggregation results. Since the business data stored in multiple data sources have the same data characteristics, the business data stored in different data sources can be aggregated based on the same data characteristics. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation results are also different, which can avoid aggregating the same business data during data aggregation, thereby avoiding the inability to select which sorting result in the same sorting result during data aggregation. Since the aggregation service can send data query instructions to each business service multiple times, and the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request, the business service can send the target business data indicated by the data query request to the aggregation service multiple times instead of sending all the target business data indicated by the data query request to the aggregation service at one time, which can ensure the real-time and security of the business data and reduce the difficulty of development. Accordingly, the aggregation service can aggregate the business data sent by each business service each time instead of aggregating all the target business data indicated by the data query request at one time, so it can improve the data query performance for multiple data sources and reduce the waste of resources in data query.

[0154] The data query system may include an aggregation service, multiple business services, and a client. Among them, the business service may be a server for managing business data, each business service may be connected to a data source, and the data source is used to store business data. The business data may be obtained from a database, from a cache, or by calling a third-party interface (Application Programming Interface, API), etc., which is not specifically limited here.

[0155] The business data stored in each data source can have the same data features. For example, the same data features can be carrying time information, location information or person information, or the data names can all be in English. In addition, the business data stored in each data source is different. The query interface of each business service can be pre-built based on the same data features, or can be pre-built based on the same data features and business scenarios. In this way, the query interface of each business service can support the same request input parameters, that is, it can respond to the same data query instruction.

[0156] The aggregation service can be a server used to initiate data query instructions to multiple business services and aggregate the target business data sent by the business services. The aggregation service can communicate with each business service through the query interface of the business service. The aggregation service can be deployed on a server alone, or it can be deployed on the same server as a business service to save resources. The client can be an application for users to query data, and the client can be installed on mobile phones, tablets, desktop computers, etc.

[0157] For example, a schematic diagram of a data query system can be as follows Figure 2 As shown, the client is connected to the aggregation service in communication, and the aggregation service is connected to the business service 1-business service 3 in communication, and the business service 1-business service 3 are respectively connected to the data source 1-data source 3. The business data acquisition methods of the data source 1-data source 3 may include: acquiring from the database, acquiring from the cache, and acquiring by calling the three-party interface. The business data stored in the data source 1-data source 3 have the same data characteristics and are not repeated.

[0158] When a user needs to query data, he can send a data query request to the aggregation service through the client. The data query request can be an HTTP (Hypertext Transfer Protocol) request, which specifies the message format that the client can send to the server and the response format sent by the server. The data query request can carry query conditions.

[0159] For example, business data is video data collected by image acquisition equipment in security scenarios. The same data feature of video data is time information, which can reflect the time period of the video recording. Assuming that the user wants to query video data recorded between 8:00 and 9:30, the query condition carried in the data query request is 8:00-9:30.

[0160] The target business data indicated by the data query request is all the business data that the user wants to query. If the aggregation service sends data query instructions to each business service multiple times, and the business data indicated by the data query instructions sent each time is a non-repeating part of the target business data indicated by the data query request, then correspondingly, the business service will only obtain a non-repeating part of the target business data indicated by the data query request from the connected data source each time, and send this part of the business data to the aggregation service.

[0161] In this way, batch loading of business data from multiple data sources can be achieved. If the aggregated data aggregates the business data obtained each time after obtaining the business data sent by each business service, then the aggregated result obtained each time includes part of the business data in the target business data indicated by the data query request. Accordingly, the client displays the aggregated result obtained each time, and the paging display of the business data can be achieved.

[0162] Therefore, in order to realize batch loading and paging display of business data, the aggregation service can send data query instructions to each business service through the query interface of each business service multiple times when receiving the data query request sent by the client, that is, execute step S401. In this way, each business service can obtain the target business data indicated by the data query instruction from the connected data source, and send the target business data to the aggregation service. Among them, the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request, and the target business data indicated by the data query request is all the business data that the user wants to query.

[0163] Continuing with the previous example, assume that business service 1 to business service 3 are connected to data source 1 to data source 3 respectively, and the video data and corresponding time information included in each data source are shown in Table 2:

[0164] Table 2 Second time information table

[0165]

[0166] The user wants to query the video data recorded between 8:00 and 9:30, so the video data indicated by the data query request is video data 1 to video data 9. The aggregation service can send three data query instructions to business service 1 to business service 3, and the video data indicated by the three data query instructions are video data 1 to video data 3, video data 4 to video data 6, and video data 7 to video data 9. Then, each time business service 1 to business service 3 receives a data query instruction, it will send the corresponding video data to the aggregation service.

[0167] Since the business service sends the business data to the aggregation service multiple times, the aggregation service can aggregate only the business service received this time after receiving the business data sent by the business service each time, and obtain the aggregation result corresponding to the business service received this time. Therefore, in step S402, the aggregation service can aggregate the business data sent by multiple business services each time, obtain the aggregation result corresponding to the business data sent each time, and send the aggregation result to the client.

[0168] After receiving the aggregation results corresponding to the business data sent each time, the client can display only the aggregation results corresponding to the business data sent this time, or display the aggregation results corresponding to the business data sent multiple times together, which is reasonable.

[0169] Continuing with the previous example, the client can display the aggregated results obtained each time separately. The schematic diagrams of the data query result display interface displayed three times by the client can be shown in Figure 5 (a), Figure 5 (b) and Figure 5 (c). The user can enter the query condition in the input box corresponding to the query condition. When the input box is not triggered, the prompt message "Please enter the query condition" can be displayed. The current query condition is 8:00-9:30. Each video data also corresponds to a play button. When the user clicks the play button, the corresponding video data can be played directly. The aggregation results shown in Figure 5 (a) include video data 1, video data 2, and video data 3, and the corresponding time information is 8:00-8:10, 8:10-8:20, and 8:20-8:30, and the corresponding data sources are business service 1, business service 2, and business service 3; the aggregation results shown in Figure 5 (b) include video data 4, video data 5, and video data 6, and the corresponding time information is 8:30-8:40, 8:40-8:50, and 8:50-9:00, and the corresponding data sources are business service 1, business service 2, and business service 3; the aggregation results shown in Figure 5 (c) include video data 7, video data 8, and video data 9, and the corresponding time information is 9:00-9:10, 9:10-9:20, and 9:20-9:30, and the corresponding data sources are business service 1, business service 2, and business service 3.

[0170] It can be seen that in the embodiment of the present application, since the business data stored in multiple data sources have the same data characteristics, the business data stored in different data sources can be aggregated based on the same data characteristics. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation results are also different, which can avoid aggregating the same business data during data aggregation, and thus avoid being unable to select which sorting result in the same sorting result during data aggregation. Since the aggregation service can send data query instructions to each business service multiple times, and the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request, the business service can send the target business data indicated by the data query request to the aggregation service multiple times, instead of sending all the target business data indicated by the data query request to the aggregation service at one time, which can ensure the real-time and security of the business data and reduce the difficulty of development. Accordingly, the aggregation service can aggregate the business data sent by each business service each time, instead of aggregating all the target business data indicated by the data query request at one time, so the data query performance for multiple data sources can be improved and the waste of resources in data query can be reduced.

[0171] As an implementation method of the present application, the same data features may include the same fields. Figure 6 As shown, the above step of aggregating the target business data may include:

[0172] S601, determining a sorting condition satisfied by each piece of business data based on the same fields included in the business data sent by the multiple business services;

[0173] The user can pre-set sorting conditions and the corresponding order, and the sorting conditions can be used to classify business data. For example, when the same field of business data reflects time information, the sorting conditions can be various time periods; when the same field of business data reflects initial letter information, the sorting conditions can be which letter or letters the initial letter is. In one embodiment, an ordered condition axis can be constructed based on multiple sorting conditions with an order, and the position on the ordered condition axis represents the order of the sorting condition among all sorting conditions.

[0174] In one embodiment, the sorting conditions may be sorted in ascending or descending order. For example, assuming that the same field included in the business data reflects time information, sorting conditions 1 to 5 may be pre-set, and the time information corresponding to sorting conditions 1 to 5 is 8:00-9:00, 9:00-10:00, 10:00-11:00, 11:00-12:00, and 12:00-13:00, respectively. The order of the sorting conditions may be determined according to the order of the corresponding time periods, i.e., the order of sorting condition 1, sorting condition 2, sorting condition 3, sorting condition 4, and sorting condition 5. In another embodiment, the sorting may be performed in a manner that is neither ascending nor descending according to the actual use requirements of the user.

[0175] Since the order of sorting conditions satisfied by business data can reflect the order between business data, in order to sort business data, the aggregation service can determine the sorting conditions satisfied by each business data for each business data sent by multiple business services based on the same fields included in the business data. Continuing with the previous example, assuming that the time information corresponding to business data 1 to business data 5 is 10:10-10:30, 11:00-11:15, 8:40-8:50, 12:20-12:50, and 8:20-8:30, then it can be determined that the sorting conditions corresponding to business data 1 to business data 5 are sorting condition 3, sorting condition 4, sorting condition 1, sorting condition 5, and sorting condition 1, respectively.

[0176] S602, determining the order of each business data according to the order of the ordering conditions satisfied by each business data, and obtaining the ordering result corresponding to each business data;

[0177] Since different sorting conditions have a sequence, if the business data meets different sorting conditions, the order of the sorting conditions met by the business data can be used as the order of the business data. Therefore, the order corresponding to the business data can be determined according to the order of the sorting conditions met by each business data, and the sorting result corresponding to each business data can be obtained.

[0178] For example, assuming that the order of the sorting conditions is sorting condition 1, sorting condition 2, and sorting condition 3, and business data 1 to business data 3 respectively meet sorting condition 2, sorting condition 3, and sorting condition 1, then based on the order of the sorting conditions, the corresponding order of the business data can be obtained as business data 3, business data 1, and business data 2.

[0179] S603: Aggregate each business data based on the sorting result corresponding to each business data to obtain an aggregation result.

[0180] In the process of data aggregation, the amount of business data that needs to be aggregated may be greater than the total amount of business data sent by each business service. Therefore, in order to determine the business data that needs to be aggregated from the business data sent by each business service, the aggregation service can aggregate each business data based on the sorting result corresponding to each business data obtained to obtain an aggregation result. In one embodiment, the aggregation service can aggregate the first number of business data that are at the front or back of the sorting result. In another embodiment, the aggregation service can aggregate the first number of business data that are not adjacent to each other in the sorting results. The first number is the number of business data that needs to be aggregated.

[0181] Continuing with the previous example, assuming that the number of business data that needs to be aggregated each time is 2, the aggregation service can aggregate the top two business data in the sorting results, that is, business data 3 and business data 1, to obtain the aggregation result.

[0182] It can be seen that in the embodiment of the present application, the aggregation service can determine the sorting conditions satisfied by each business data based on the same fields included in the business data sent by multiple business services, wherein the sorting conditions are preset conditions with a sequence of precedence; according to the order of the sorting conditions satisfied by each business data, the order corresponding to the business data is determined to obtain the sorting results corresponding to each business data; based on the sorting results corresponding to each business data, each business data is aggregated to obtain the aggregation results. Since the number of business data that needs to be aggregated may be greater than the number of business data sent by the business service, in order to determine the business data that needs to be aggregated from the business data sent by the business service, the aggregation service can sort the business data sent by the business service, and aggregate the business data sent each time based on the sorting results. Since the business data includes the same data features, the business data can be sorted based on the same data features. Since the business data are not repeated and the sorting conditions are pre-set, the order of the business data can be determined according to the order of the sorting conditions satisfied by the business data, and the sorting results of the business service can be obtained quickly and accurately.

[0183] As an implementation method of the embodiment of the present application, each of the above business services may have a preset priority. In this case, Figure 7 As shown, before the step of determining the order corresponding to each business data according to the order of the sorting conditions satisfied by each business data, the method may further include:

[0184] S701, determining the sorting conditions satisfied by each business data and the corresponding business services;

[0185] Since the sorting conditions have a sequence and the business services have priorities, in order to determine the sorting result of each business data, we can first determine the sorting conditions satisfied by each business data and the corresponding business services, and then sort the business data based on the sorting conditions satisfied by the business data and the corresponding business services.

[0186] S702, for business data satisfying different sorting conditions, executing the step of determining the order corresponding to the business data according to the order of the sorting conditions satisfied by each business data;

[0187] If the sorting conditions are different, the business data can be sorted according to the sorting conditions satisfied by the business data, that is, the step of determining the order corresponding to the business data according to the order of the sorting conditions satisfied by each business data is performed.

[0188] S703, for business data that satisfy the same sorting condition and have different data sources, determine the order of the business data according to the priority of the corresponding business services;

[0189] Since the priorities of the pre-set business services can also reflect the order, when the business data meets the same sorting conditions, the order of the business data can be determined according to the priorities of the business services corresponding to the business data. Therefore, for business data that meet the same sorting conditions and have different data sources, the aggregation service can determine the order of the business data according to the priorities of the corresponding business services.

[0190] For example, assuming that the priority of business service 1 is higher than that of business service 2, and the priority of business service 2 is higher than that of business service 3, the data sources of business data 1-business data 3 are business service 2, business service 1, and business service 3 respectively, and the sorting conditions satisfied by business data 1-business data 3 are the same, then the corresponding order of the business data can be determined as business data 2, business data 1, and business data 3 according to the priorities corresponding to the business services.

[0191] Since the same fields included in the business data can be used to reflect the same data features, the same fields included in the business data can reflect the order between the business data. In addition, the user can set the corresponding priority for each business service in advance, and the priority corresponding to each business service can also reflect the order between the business data. Therefore, for the business data sent by multiple business services each time, the aggregation service can sort each non-repeating business data based on the same fields included in the business data and the preset priority corresponding to each business service, and obtain the sorting result corresponding to the business data sent this time. Since the business data are non-repeating, there will be no business data with the same sorting result. In this way, it can be avoided that when selecting business data based on the sorting result, it is impossible to determine which business data among the business data corresponding to the same sorting result to select.

[0192] For example, suppose that the data sources of business data 1-business data 3 and business data 4-business data 5 are business service 1 and business service 2 respectively, and the priority of business service 1 is higher than that of business service 2. The same fields included in business data 1-business data 5 are English characters, and the corresponding first letters are b, a, h, g, and a respectively. The first letters corresponding to business data 2 and business data 5 are the same. Because the priority of the data source corresponding to business data 2 is higher than that of the data source corresponding to business data 5, the order of business data 2 is greater than that of business data 5. The first letters corresponding to other business data are different, so the order of other business data can be determined according to the order of the first letters, and the sorting result obtained is business data 2, business data 5, business data 1, business data 4, and business data 3. Assuming that the number of business data that need to be aggregated each time is 3, the aggregation service can aggregate the top three business data in the sorting result, that is, business data 2, business data 5, and business data 1, to obtain the aggregation result.

[0193] S704: For business data satisfying the same sorting condition and having the same data source, determine the corresponding order of the business data according to the order identified by the corresponding same fields.

[0194] Since the business data stored in each data source is different, the data features reflected by the same field in the business data have a sequence. If the sorting conditions satisfied by the business data and the corresponding data sources are the same, the aggregation service can determine the corresponding order of the business data according to the order identified by the corresponding same fields.

[0195] For example, assuming that the same field of the business data reflects time information, the sorting condition is sorted according to the order of the corresponding time information, the time information represented by the same field of business data 1 and business data 2 is 5:10-5:20 and 5:45-6:00 respectively, and the sorting condition and data source satisfied by business data 1 and business data 2 are the same. Since the time information corresponding to business data 1 is earlier than the time information corresponding to business data 2, it can be determined that the order of the business data is business data 1, business data 2.

[0196] It can be seen that in the embodiments of the present application, the aggregation service can, for business data that meet different sorting conditions, perform the steps of determining the order corresponding to the business data according to the order of the sorting conditions met by each business data; for business data that meet the same sorting conditions and have different data sources, determine the order corresponding to the business data according to the priority of the corresponding business service; for business data that meet the same sorting conditions and have the same data source, determine the order corresponding to the business data according to the order identified by the corresponding same fields. Since the sorting conditions, data sources, and the same fields can all reflect the order of business data, the aggregation service can determine the order corresponding to the business data based on different information in different situations. In this way, the order corresponding to the business data can be determined quickly and accurately.

[0197] As an implementation manner of the embodiment of the present application, the step of sending a data query instruction to each business service through the query interface of each business service may include:

[0198] In response to the data query request sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains a preset number of business data with a corresponding top sorting result from the connected data source according to the predetermined sorting result of each business data, and sends the preset number of business data to the aggregation service.

[0199] If the business data that the client needs to display is a preset number of business data ranked at the top among the data sources connected to all business services, then the preset number of business data may come from the same business service or from different business services. Therefore, when the aggregation service sends a data query instruction to each business service, each business service can obtain the corresponding preset number of business data ranked at the top from the connected data source according to the predetermined sorting result of each business data, and send the preset number of business data to the aggregation service. The preset number can be the number of business data displayed on each page of the client or the number of data that the user needs to query carried in the data query request.

[0200] In this case, the step of aggregating the target business data may include:

[0201] A preset number of business data sent by each business service is sorted to obtain a sorting result; and the preset number of business data at the top of the corresponding sorting result are aggregated to obtain an aggregated result.

[0202] Since the business data to be aggregated by the aggregation service is a preset number of business data ranked at the top of the data sources connected to all business services, the business data can sort the business data sent by each business service to determine the preset number of business data ranked at the top. In other words, the aggregation service can sort the preset number of business data sent by each business service to obtain a sorting result, and then aggregate the preset number of business data ranked at the top of the corresponding sorting result to obtain an aggregation result.

[0203] For example, suppose that the number of data that the user needs to query carried in the data query request is 5, business service 1 and business service 2 are connected to data source 1 and data source 2 respectively, the top 5 business data in data source 1 are business data 1 to business data 5, and the top 5 business data in data source 2 are business data 11 to business data 15, then business service 1 can send business data 1 to business data 5 to the aggregation service, and business service 2 can send business data 11 to business data 15 to the aggregation service.

[0204] Next, the aggregation service can sort business data 1 to business data 5 and business data 11 to business data 15. Assuming that the top five business data are business data 1, business data 2, business data 3, business data 11 and business data 12, the aggregation service can aggregate business data 1, business data 2, business data 3, business data 11 and business data 12 to obtain an aggregation result.

[0205] It can be seen that in the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service, so that each business service can obtain the preset number of business data with the corresponding top sorting result from the connected data source according to the predetermined sorting result of each business data, and send the preset number of business data to the aggregation service, wherein the preset number is the number of business data displayed on each page of the client or the number of data that the user needs to query carried by the data query request; sort the preset number of business data sent by each business service to obtain the sorting result; aggregate the preset number of business data with the corresponding top sorting result to obtain the aggregation result. In this way, the aggregation service can quickly and accurately determine the preset number of business data with the top sorting result in the data sources connected by all business services.

[0206] As an implementation of an embodiment of the present application, the client may be used to display the target business data in pages. In this case, the step of sending data query instructions to each business service through the query interface of each business service multiple times may include:

[0207] In response to a data query request for the business data displayed on each page sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and sends the business data corresponding to the current page to the aggregation service;

[0208] In security scenarios, some smaller locations can be used as personal sites, such as convenience stores and residences. The data collected at the personal sites are stored in the business services of the personal sites. Some larger locations can be used as team sites, such as train stations and companies. The data collected at the team sites are stored in the business services of the team sites. The data of the two business services are stored separately and do not overlap. If the user needs to view the data of the personal site and the team site at the same time, and needs to sort them in reverse order by creation time, then a site list display function is required. And because the total amount of data for personal sites and team sites is large, the data of personal sites and team sites needs to be displayed in pages.

[0209] Since the total amount of target business data may be large, the client may display the target business data in a paging manner, with each page displaying only a maximum of the target amount of target business data. For example, the target amount may be 5, 10, 20, etc., which is all reasonable.

[0210] When a user needs to query data, he can send a data query request for the business data displayed on each page to the aggregation service through the client. Specifically, when querying the target business data on the homepage, the client can send a data query request to the aggregation service to indicate all the target business data that need to be queried. In this way, the aggregation service can record the query conditions for all the target business data that need to be queried. Since only the target business data corresponding to the homepage needs to be queried currently, the aggregation service will send a data query instruction to each business service to indicate the target business data corresponding to the homepage. Each business service can send a data query instruction for the target business data corresponding to the homepage to the aggregation service, and the aggregation service aggregates the target business data received in this query, and sends the aggregated results to the client, and the client displays the aggregated results.

[0211] When querying the target business data of the second page and subsequent pages, the client only needs to send a data query request corresponding to the current page to the aggregation service. In this way, the aggregation service can send a data query request indicating the target business data corresponding to the current page to each business service. Each business service can send a data query instruction for the target business data corresponding to the current page to the aggregation service, and the aggregation service aggregates the target business data received in this query, sends the aggregated results to the client, and the client displays the aggregated results. This cycle continues until the client has displayed all the target business data that needs to be queried.

[0212] In the above data query process, the business service needs to obtain the business data corresponding to each page respectively. In order to enable the business service to determine which business data that satisfies the sorting condition is obtained each time, the above data query instruction can carry data information. In this way, after receiving the data query instruction, the business service can obtain the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction.

[0213] Specifically, the above data information may include the current sorting condition, the current number of repetitions, and the current data identifier. The current sorting condition may be the sorting condition satisfied by the last business data displayed on the previous page. For example, assuming that the current page is the third page, the business data displayed on the second page are business data 6, business data 7, business data 8, business data 9, and business data 10, respectively. Business data 6-business data 8 satisfy sorting condition 2, and business data 9 and business data 10 satisfy sorting condition 3. Then the current sorting condition is the sorting condition satisfied by business data 10, that is, sorting condition 3. Since the client has not displayed any business data when querying data for the home page, the current sorting condition corresponding to the home page is empty, indicating that the business data corresponding to the sorting condition with the highest order will be obtained.

[0214] The current number of repetitions may indicate the number of business data in the currently displayed business data that satisfy the same sorting condition as the next business data of the last business data displayed on the previous page. Since the client has not yet displayed any business data when querying the target business data corresponding to the home page, the current number of repetitions corresponding to the home page is a preset value, which is used to indicate that there is currently no business data with the same sorting condition. For example, the preset value may be 0. The current number of repetitions corresponding to non-home pages indicates the number of business data in the currently displayed business data that satisfy the same sorting condition as the next business data of the last business data displayed on the previous page.

[0215] For example, assuming that the current page is the fifth page, the business data displayed on the fourth page are business data 11, business data 12, business data 13, business data 14, and business data 15, respectively. The next business data of business data 15 is business data 16, and the business data meets the sorting condition 5. Among all the business data displayed on the first four pages, 6 business data meet the sorting condition 5, so it can be determined that the current number of repetitions is 6.

[0216] The current data identifier is the identifier of the last business data from each business service in the currently displayed business data. In this way, the business data can avoid sending the business data that has been displayed by the client to the aggregation service again. For example, suppose there are three business services in total, the current page is the seventh page, and among all the business data displayed on the first six pages, the last business data from business services 1 to business services 3 are business data 16, business data 14, and business data 18 respectively. If the identifiers corresponding to business data 16, business data 14, and business data 18 are 16, 14, and 18 respectively, then the current data identifiers are 16, 14, and 18.

[0217] The total amount of business data sent by multiple business services each time is greater than the amount of business data displayed on each page of the client. In one embodiment, among the business data stored in the data source connected to the business service, if the amount of business data not displayed by the client is not less than the target amount, then the amount of business data sent by the business service can be the above target amount; if the amount of business data not displayed by the client is less than the target amount, then the amount of business data sent by the business service can be the amount of business data not displayed by the client, that is, the business service can send all business data not displayed by the client to the aggregation service.

[0218] In different query phases and when data information values ​​are different, the business service will also determine the business data to be obtained in different ways. The business service can determine the business data to be obtained in one of the following three implementation methods:

[0219] In the first implementation, if the current number of repetitions received by the business service is a preset value, and the current sorting condition and the current data identifier are both empty, it means that the current query is for the home page data. The business service can start from the connected data source, starting with the business data that meets the top sorting condition, and obtain the top target number of business data in the order of the business data.

[0220] In the second implementation, if the current number of repetitions is a preset value, and the current sorting condition and the current data identifier are not empty, it indicates that the current query is for data other than the home page. Since the number of repetitions is a preset value, it means that the sorting conditions satisfied by the next business data of the currently displayed business data and the last business data displayed on the previous page are different, so the business service can obtain the target number of business data whose corresponding order is second only to the business data indicated by the current data identifier from the business data satisfying the next sorting condition of the current sorting condition.

[0221] In the third implementation, if the current number of repetitions is not a preset value, it indicates that the current query is for data other than the home page. Since the current number of repetitions is not a preset value, it indicates that there is business data in the currently displayed business data that meets the same sorting condition as the next business data of the last business data displayed on the previous page, so the business service can obtain the target number of business data whose corresponding order is second only to the business data indicated by the current data identifier from the business data that meets the current sorting condition.

[0222] In this case, the step of aggregating the service data sent this time based on the sorting result corresponding to the service data sent this time to obtain the aggregation result may include:

[0223] Based on the sorting result corresponding to the business data sent this time, business data corresponding to the amount of business data displayed on each page of the client is selected from the business data sent this time as the business data to be aggregated; the business data to be aggregated is aggregated to obtain an aggregation result.

[0224] Since the amount of business data received by the aggregation service each time may be greater than the amount of business data displayed per page by the client, the aggregation service needs to select the amount of business data displayed per page by the client from the business data received each time. Specifically, the aggregation service can select the amount of business data displayed per page by the client from the business data sent this time as the business data to be aggregated based on the sorting result corresponding to the business data sent this time. Then, the aggregation service can aggregate the business data to be aggregated to obtain an aggregation result.

[0225] In one implementation, the business data with the highest number of business data displayed on each page of the client can be selected from the business data sent this time as the business data to be aggregated. For example, assuming that the business data obtained by the aggregation service in a certain query and the corresponding sorting results are business data 9, business data 5, business data 15, business data 6, business data 16, and business data 10, and the number of business data displayed on each page of the client is 2, then business data 9 and business data 5 can be used as the business data to be aggregated.

[0226] If the amount of business data sent this time is not greater than the amount of business data displayed on each page of the client, the aggregation service can directly use the business data sent this time as the business data to be aggregated.

[0227] It can be seen that in the embodiment of the present application, the data query instruction sent by the aggregation service can carry data information, and the data information includes the current sorting condition, the current number of repetitions, and the current data identifier. In this way, the business service can determine the business data to be obtained each time based on the current sorting condition, the current number of repetitions, and the current data identifier transmitted by the aggregation service, instead of using the current page number as the query condition as in the current related technology. Since the business data in each data source has the same data characteristics, if multiple data sources have multiple business data that meet the data query instruction corresponding to the current page at the same time, then only the target number of business data with the highest order can be selected as the business data corresponding to the current page according to the pre-specified business data selection rule and the order corresponding to the business data. Since the business data in each data source do not repeat each other, it can avoid the situation where the order corresponding to multiple business data is the same, thereby avoiding errors in the subsequent process of selecting business data based on the sorting result. After the aggregation service obtains the business data sent by all business services each time, it can aggregate the acquired business data, and use special means to give the aggregation results to the client in the form of paging, and the client can display the business data in the form of paging. In this way, business data from multiple data sources can be displayed in pages, rather than only business data from one data source.

[0228] As an implementation method of the present application, Figure 8 As shown, the above method also includes:

[0229] S801, when the business data corresponding to the current page sent by each business service is obtained, determine the relationship between the total number of business data included in the business data corresponding to the current page and the target number; if the total number is greater than the target number, execute step S802;

[0230] If the total number of business data included in the business data corresponding to the current page is not greater than the target number, which is the number of business data displayed on each page of the client, it means that after the client displays the business data corresponding to the current page, all business data indicated by the data query request stored in the data source have been displayed, so there is no need to query the next page. If the total number of business data included in the business data corresponding to the current page is greater than the target number, it means that after the client displays the business data corresponding to the current page, there are still undisplayed business data among all business data indicated by the data query request stored in the data source, so there is still business data corresponding to the next page, so you can continue to query the business data corresponding to the next page.

[0231] Therefore, in order to determine whether there is the next page of business data, the aggregation service can determine the relationship between the total number of business data included in the business data corresponding to the current page and the target number after obtaining the business data corresponding to the current page sent by each business service, that is, execute step S801. For example, assuming that the target number is 10, if the total number of business data included in the business data corresponding to the current page is 8, it can be determined that there is no next page of business data, and if the total number of business data included in the business data corresponding to the current page is 26, it can be determined that there is the next page of business data.

[0232] S802, sending a message indicating that there is a next page of business data to the client, so that when a next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service.

[0233] When the total amount of business data included in the business data corresponding to the current page is greater than the target amount, it means that there is business data for the next page, and the aggregation service can send a message indicating that there is business data for the next page to the client, and the client can display a next page button on the current page. When the next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service.

[0234] For example, the fourth schematic diagram of the data query result display interface of the client can be shown in FIG5 (d), the current page is page 7, the data corresponding to page 7 are video data 13 and video data 14, the time information corresponding to video data 13 and video data 14 is 13:10-13:20 and 13:30-13:40, and the corresponding data sources are business service 1 and business service 2. The user can trigger the next page button 501, so that the client will send the data query request corresponding to page 8 to the aggregation service. The user can also enter the query condition in the input box corresponding to the query condition. When the input box is not triggered, the prompt message "Please enter the query condition" can be displayed. The current query condition is 13:00-14:00. Each video data also corresponds to a play button. When the user clicks the play button, the corresponding video data can be played directly.

[0235] For another example, a schematic diagram of the business data distribution corresponding to each business service connection can be as follows: Fig. 9 As shown, assuming that the priority corresponding to business service 1 is higher than the priority corresponding to business service 2, the business data from business service 1 are P1.1, P2.1, P2.2, P2.3, and P3.1, and the business data from business service 2 are T1.1, T2.1, T2.2, and T4.1. In the identifier corresponding to each business data, the first digit indicates the sorting condition satisfied by the business data, and the second digit indicates the order of the business data in the business data included in its corresponding data source that satisfies the same sorting condition as the business data. The positions corresponding to conditions 1 to 4 are marked on the ordered condition axis, indicating that the order corresponding to the sorting conditions is condition 1 to condition 4. The preset value is 0, and the target number is 2. In this process, the aggregation service can simultaneously collect business data from the data sources connected to each business service.

[0236] When querying the home page, the current sorting condition is empty, the current number of repetitions is 0, the current data identifier is empty, and the result of whether there is a next page is yes. The aggregation service can simultaneously obtain two business data of business service 1 and business service 2. The obtained business data are P1.1, P2.1, T1.1, and T2.1. In other words, business service 1 and business service 2 can send their respective two business data to the aggregation service. Business service 1 can send P1.1 and P2.1 to the aggregation service, and business service 2 can send T1.1 and T2.1 to the aggregation service. Since the two business data with the highest order are P1.1 and T1.1, the actual results corresponding to the home page are P1.1 and T1.1. The aggregation service can aggregate P1.1 and T1.1, and send the aggregated results to the client, and the client displays P1.1 and T1.1 on the home page.

[0237] Next, the data information corresponding to the second page needs to be determined. The last business data displayed on the previous page is T1.1, and the next business data of T1.1 is P2.1. Since T1.1 and P2.1 belong to cross-conditions, that is, they meet different sorting conditions, the current number of repetitions is set to 0, and the current sorting condition is condition 1 satisfied by T1.1. Since the total number of business data obtained is greater than the target number, the result of determining whether it is the last page is no.

[0238] When querying the second page, the current sorting condition is condition 1, the current number of repetitions is 0, the current data identifiers are P1.1 and T1.1, and the result of whether there is a next page is yes. The aggregation service can simultaneously obtain the two business data of business service 1 and business service 2. Since the current number of repetitions is 0, the sorting condition satisfied by the business data currently required is greater than condition 1, and the business data obtained are P2.1, P2.2, T2.1, and T2.2. Since the top two business data are P2.1 and P2.2, the actual results corresponding to the second page are P2.1 and P2.2. The aggregation service can aggregate P2.1 and P2.2, and send the aggregated results to the client, which displays P2.1 and P2.2 on the second page.

[0239] Next, the data information corresponding to the third page needs to be determined. The last business data displayed on the previous page is P2.2, and the next business data of P2.2 is T2.1. Since T1.1 and P2.1 do not belong to cross-conditions, that is, they meet the same sorting conditions, the current number of repetitions is set to 2, and the current sorting condition is condition 2 satisfied by P2.2. Since the total number of business data obtained is greater than the target number, the result of determining whether it is the last page is no.

[0240] When querying the third page, the current sorting condition is condition 2, the current number of repetitions is 2, the current data identifiers are P2.1 and T1.1, and the result of whether there is a next page is yes. The aggregation service can simultaneously obtain the two business data of business service 1 and business service 2. Since the current number of repetitions is greater than 0, the sorting condition satisfied by the business data currently required is not less than condition 2, and the business data obtained are P2.3, P3.1, T2.1, and T2.2. Since the top two business data are P2.3 and T2.1, the actual results corresponding to the second page are P2.3 and T2.1. The aggregation service can aggregate P2.3 and T2.1, and send the aggregated results to the client, which displays P2.3 and T2.1 on the third page.

[0241] Next, the data information corresponding to the fourth page needs to be determined. The last business data displayed on the previous page is T2.1, and the next business data of T2.1 is T2.2. Since T2.1 and T2.2 do not belong to cross-conditions, the current number of repetitions is set to 4, and the current sorting condition is condition 2 satisfied by T2.1. Since the total number of business data obtained is greater than the target number, the result of determining whether it is the last page is no.

[0242] When querying the fourth page, the current sorting condition is condition 2, the current number of repetitions is 4, the current data identifiers are P2.3 and T2.1, and the result of whether there is a next page is yes. The aggregation service can simultaneously obtain the two business data of business service 1 and business service 2. Since the current number of repetitions is greater than 0, the sorting condition satisfied by the business data currently to be obtained is not less than condition 2, and the previously displayed business data needs to be excluded. The business data obtained are P3.1, T2.2, and T4.1. Since the top two business data are P3.1 and T2.2, the actual results corresponding to the second page are T2.2 and P3.1. The aggregation service can aggregate T2.2 and P3.1 and send the aggregated results to the client, which displays T2.2 and P3.1 on the fourth page.

[0243] Next, you need to determine the data information corresponding to the fifth page. The last business data displayed on the previous page is P3.1, and the next business data of P3.1 is T4.1. Since P3.1 and T4.1 belong to cross-conditions, the current number of repetitions is set to 0, and the current sorting condition is condition 3 satisfied by P3.1. Since the total number of acquired business data is greater than the target number, the result of determining whether it is the last page is no.

[0244] When querying the fifth page, the current sorting condition is condition 3, the current number of repetitions is 0, the current data identifiers are P3.1 and T2.2, and the result corresponding to whether there is a next page is yes. Since the current number of repetitions is 0, the sorting condition satisfied by the business data currently required is greater than condition 3. Since only T4.1 is not displayed, the business data retrieved is T4.1, and the actual result corresponding to the fifth page is T4.1. The aggregation service can aggregate T4.1 and send the aggregation results to the client, and the client displays T4.1 on the fifth page. Next, the aggregation service can also determine that the current number of repetitions is set to 0, the current sorting condition is condition 4, and the result corresponding to whether it is the last page is yes, and the current data identifiers are P3.1 and T4.1.

[0245] It can be seen that in the embodiment of the present application, the aggregation service can determine the relationship between the total number of business data included in the business data corresponding to the current page and the target number after obtaining the business data corresponding to the current page sent by each business service; wherein the target number is the number of business data displayed on each page of the client; if the total number is greater than the target number, a message indicating that there is business data for the next page is sent to the client, so that when the next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service. If the total number of business data included in the business data corresponding to the current page is greater than the target number, it means that after the client displays the business data corresponding to the current page, there are still undisplayed business data in all the business data indicated by the data query request stored in the data source, so there are still business data corresponding to the next page, then the business data corresponding to the next page can continue to be queried, and the client can display the next page button. In this way, it is possible to quickly and accurately determine whether there is business data for the next page.

[0246] As an implementation method of the present application, a flow chart of page display can be as follows: Fig.10 As shown, the following steps may be specifically included:

[0247] S1001, the user initiates a query request through the client;

[0248] After the paging display process starts, for the home page, the user can send a data query request to the aggregation service to indicate all the business data that needs to be queried. For non-home page situations, the user can trigger the next page button displayed on the client to send the data query request corresponding to the next page to the aggregation service.

[0249] S1002, the aggregation service sends a data query instruction to each business service;

[0250] When the aggregation service receives a data query request, it can send a data query instruction to each business service through the query interface of each business service.

[0251] S1003, each business service receives the data query instruction and sends business data;

[0252] When receiving a data query instruction, each business service can obtain the business data corresponding to the current page from the connected data source according to the data information carried in the data query instruction, and send a specified amount of business data per page to the aggregation service.

[0253] S1004, the aggregation service aggregates the received business data;

[0254] After receiving the business data sent by each business service, the aggregation service can sort the business data and select business data from it according to the sorting result. The number of selected business data is not greater than the target number. In addition, the aggregation service can also send the sorting conditions satisfied by the last business data displayed on the current page, whether there is subsequent business data that needs to be deleted, and whether there is a next page of business data. Among them, whether there is subsequent business data that needs to be deleted is indicated based on the current number of repetitions. If the current number of repetitions is a preset number, it means that there is no business data that needs to be deleted. Otherwise, it means that there is business data that needs to be deleted. Next, the aggregation service can aggregate the selected business data, obtain the aggregation result, and send the aggregation result to the client.

[0255] S1005, the client displays the aggregation result;

[0256] After receiving the aggregation results, the client can display the aggregation results on the current page.

[0257] S1006, determine whether there is the next page of business data; if yes, return to step S1001; if not, end the process.

[0258] The aggregation service can determine the relationship between the total number of business data included in the business data corresponding to the current page and the target number, thereby determining whether there is the next page of business data. If there is the next page of business data, a message indicating that there is the next page of business data can be sent to the client, and the client will display a next page button on the current page. When the user clicks the next page button, the aggregation service can send a data query instruction carrying the current number of repetitions, the current sorting condition, and the current data identifier to each business service. If there is no next page of business data, the process ends.

[0259] In the technical solution of this application, the operations involved in obtaining, storing, using, processing, transmitting, providing and disclosing user personal information are all carried out with the user's authorization.

[0260] Corresponding to the above-mentioned first data query method, the embodiment of the present application also provides a second data query method. The second data query method provided by the embodiment of the present application is introduced below.

[0261] A data query method is applied to each business service in a data query system, wherein the data query system includes multiple business services, an aggregation service, and a client, wherein each business service is connected to a data source, wherein the data source is used to store business data, and the business data stored in the data source has the same data features and is non-repetitive, wherein the aggregation service communicates with the business service through a query interface of each business service, wherein the query interface is pre-constructed based on the same data features, and wherein the method includes:

[0262] In response to the data query instruction sent by the aggregation service, the target business data indicated by the data query instruction is obtained from the connected data source, and the target business data is sent to the aggregation service so that the aggregation service aggregates the target business data, and the aggregation result is sent to the client so that the client displays the aggregation result;

[0263] The data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client.

[0264] It can be seen that in the embodiment of the present application, the business service can respond to the data query instruction sent by the aggregation service, obtain the target business data indicated by the data query instruction from the connected data source, and send the target business data to the aggregation service, so that the aggregation service aggregates the target business data, and sends the aggregated result to the client, so that the client displays the aggregated result; wherein the data query instruction is sent by the query interface of the business service when the aggregation service responds to the data query request sent by the client. Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In this way, when each business service receives the same data query instruction, it can simultaneously obtain the target business data from the connected data source, and can access multiple data sources at the same time, thereby improving the efficiency of data query. Since the business data stored in multiple data sources have the same data features, the business data stored in different data sources can be aggregated based on the same data features. Since the business data stored in multiple data sources are not repeated, the business data in the aggregated result are also different, which can avoid the client from displaying multiple identical business data. Since each business service can obtain the target business data from the connected data source and send the target business data to the aggregation service without merging the business data from multiple data sources into one data source, the workload of data query and the occupied hardware resources can be reduced, thereby improving data query efficiency.

[0265] As an implementation of an embodiment of the present application, the client may be used to display the target business data in pages. In this case, the step of responding to the data query instruction sent by the aggregation service, obtaining the target business data indicated by the data query instruction from the connected data source, and sending the target business data to the aggregation service may include:

[0266] In response to the data query instruction sent by the aggregation service, obtain the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and send the business data corresponding to the current page to the aggregation service;

[0267] Among them, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client for the business data displayed on each page. The total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client. The data information includes the current sorting condition, the current number of repetitions and the current data identifier. The current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page. The current number of repetitions corresponding to the home page is a preset value. The current number of repetitions corresponding to non-home pages indicates the number of business data in the currently displayed business data that have the same sorting condition as the next business data of the last business data displayed on the previous page. The current data identifier is the identifier of the last business data from each business service in the currently displayed business data.

[0268] It can be seen that in the embodiment of the present application, the business service can determine the business data to be obtained each time based on the current sorting condition, the current number of repetitions and the current data identifier transmitted by the aggregation service, instead of using the current page number as the query condition as in the current related art. Since the business data in each data source has the same data characteristics, if multiple data sources have multiple business data that meet the data query instruction corresponding to the current page at the same time, then only the target number of business data with the highest order can be selected as the business data corresponding to the current page according to the pre-specified business data selection rule and the order corresponding to the business data. Since the business data in each data source are not repeated, it is possible to avoid the situation where the order corresponding to multiple business data is the same, thereby avoiding errors in the subsequent process of selecting business data based on the sorting results. After the aggregation service obtains the business data sent by all business services each time, it can aggregate the acquired business data and use special means to give the aggregation results to the client in the form of paging, and the client can display the business data in the form of paging. In this way, the business data in multiple data sources can be displayed in pages, instead of only being displayed in pages for the business data of one data source.

[0269] Corresponding to the above-mentioned first data query method, the embodiment of the present application also provides a first data query device. The first data query device provided by the embodiment of the present application is introduced below.

[0270] like Fig.11 As shown, a data query device is applied to an aggregation service in a data query system, the data query system also includes multiple business services and clients, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through the query interface of each business service, the query interface is pre-built based on the same data features, and the device includes:

[0271] The instruction sending module 1101 is used to respond to the data query request sent by the client, send the data query instruction to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service;

[0272] The data aggregation module 1102 is used to aggregate the target business data and send the aggregation result to the client so that the client displays the aggregation result.

[0273] It can be seen that in the scheme provided by the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; aggregate the target business data, and send the aggregation result to the client, so that the client displays the aggregation result. Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In this way, when each business service receives the same data query instruction, it can simultaneously obtain the target business data from the connected data source, and can access multiple data sources at the same time, thereby improving the efficiency of data query. Since the business data stored in multiple data sources have the same data features, the business data stored in different data sources can be aggregated based on the same data features. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation result are also different, which can avoid the client from displaying multiple identical business data. Since each business service can obtain the target business data from the connected data source and send the target business data to the aggregation service without merging the business data from multiple data sources into one data source, the workload of data query and the occupied hardware resources can be reduced, thereby improving data query efficiency.

[0274] As an implementation of the embodiment of the present application, the above-mentioned aggregation service may have a request aggregation interface. In this case, the above-mentioned instruction sending module 1101 may include:

[0275] The first instruction sending submodule is used to respond to the data query request sent by the client, call the query interface of each business service through the request aggregation interface, and send a data query instruction to each business service.

[0276] As an implementation of the embodiment of the present application, the instruction sending module 1101 may include:

[0277] The second instruction sending submodule is used to send data query instructions to each business service through the query interface of each business service for multiple times, wherein the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request.

[0278] In this case, the data aggregation module 1102 may include:

[0279] The data aggregation submodule is used to aggregate the business data sent by the multiple business services each time to obtain aggregation results corresponding to the business data sent each time.

[0280] As an implementation of an embodiment of the present application, the same data features include the same fields. In this case, the data aggregation module 1102 may include:

[0281] A condition determination submodule, used to determine a sorting condition satisfied by each business data based on the same fields included in the business data sent by the multiple business services, wherein the sorting condition is a preset condition with a sequence;

[0282] The data sorting submodule is used to determine the order of each business data according to the order of the sorting conditions satisfied by the business data, and obtain the sorting result corresponding to each business data;

[0283] The first data aggregation submodule is used to aggregate each business data based on the sorting result corresponding to each business data to obtain an aggregation result.

[0284] As an implementation method of the embodiment of the present application, each of the above business services may have a preset priority. In this case, the above device may further include:

[0285] A first sorting module, for executing the step of determining the order of the business data according to the order of the sorting conditions satisfied by each business data, for business data satisfying different sorting conditions;

[0286] The second sorting module is used to determine the order of the business data according to the priority of the corresponding business services for the business data that meet the same sorting conditions and have different data sources;

[0287] The third sorting module is used to determine the corresponding order of the business data according to the order identified by the corresponding same fields, with respect to the business data that meet the same sorting conditions and have the same data source.

[0288] As an implementation of the embodiment of the present application, the instruction sending module 1101 includes:

[0289] A data acquisition submodule, configured to respond to a data query request sent by the client, and send a data query instruction to each business service through a query interface of each business service, so that each business service obtains a preset number of business data with a corresponding top ranking result from a connected data source according to a predetermined ranking result of each business data, and sends the preset number of business data to the aggregation service, wherein the preset number is the number of business data displayed on each page of the client or the number of data that the user needs to query carried in the data query request;

[0290] In this case, the data aggregation module 1102 may include:

[0291] A result determination submodule is used to sort a preset number of business data sent by each business service to obtain a sorting result;

[0292] The second data aggregation submodule is used to aggregate the preset number of business data that are at the top of the corresponding sorting results to obtain an aggregation result.

[0293] As an implementation of the embodiment of the present application, the client may be used to display the target service data in pages. In this case, the second instruction sending submodule may include:

[0294] an instruction sending unit, configured to respond to a data query request for the business data displayed on each page sent by the client, and to send a data query instruction to each business service through a query interface of each business service, so that each business service obtains the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and sends the business data corresponding to the current page to the aggregation service;

[0295] Among them, the total amount of business data sent by the multiple business services each time is greater than the amount of business data displayed on each page of the client, and the data information includes the current sorting condition, the current repetition number and the current data identifier. The current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page. The current repetition number corresponding to the homepage is a preset value. The current repetition number corresponding to the non-homepage indicates the number of business data in the currently displayed business data that have the same sorting condition as the next business data of the last business data displayed on the previous page. The current data identifier is the identifier of the last business data from each business service in the currently displayed business data.

[0296] In this case, the data aggregation unit may include:

[0297] A data selection subunit, configured to select, from the business data sent this time, business data of the quantity of business data displayed on each page of the client, as the business data to be aggregated, based on the sorting result corresponding to the business data sent this time;

[0298] The data aggregation subunit is used to aggregate the service data to be aggregated to obtain an aggregation result.

[0299] As an implementation of the embodiment of the present application, the above device may further include:

[0300] A size relationship determination module, used to determine the size relationship between the total number of business data included in the business data corresponding to the current page and the target number when the business data corresponding to the current page sent by each business service is obtained; wherein the target number is the number of business data displayed on each page of the client;

[0301] The message sending module is used to send a message indicating the next page of business data to the client if the total number is greater than the target number, so that when the next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service.

[0302] As an implementation method of the embodiment of the present application, the connection relationship between each of the above business services and the connected data source can be established in advance based on the account and password required to access the data source.

[0303] Corresponding to the above-mentioned second data query method, the embodiment of the present application also provides a second data query device. The second data query device provided by the embodiment of the present application is introduced below.

[0304] A data query device is applied to each business service in a data query system, wherein the data query system includes multiple business services, an aggregation service, and a client, wherein each business service is connected to a data source, wherein the data source is used to store business data, wherein the business data stored in the data source has the same data features and is non-repetitive, wherein the aggregation service communicates with the business service through a query interface of each business service, wherein the query interface is pre-constructed based on the same data features, and wherein the device includes:

[0305] A data query module, configured to respond to a data query instruction sent by the aggregation service, obtain target business data indicated by the data query instruction from a connected data source, send the target business data to the aggregation service, so that the aggregation service aggregates the target business data, and send the aggregated result to the client, so that the client displays the aggregated result;

[0306] The data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client.

[0307] It can be seen that in the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service multiple times, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; wherein, the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request; the business data sent by multiple business services each time are aggregated to obtain the aggregation results corresponding to the business data sent each time, and the aggregation results are sent to the client, so that the client displays the aggregation results. Since the business data stored in multiple data sources have the same data characteristics, the business data stored in different data sources can be aggregated based on the same data characteristics. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation results are also different, which can avoid aggregating the same business data during data aggregation, thereby avoiding the inability to select which sorting result in the same sorting result during data aggregation. Since the aggregation service can send data query instructions to each business service multiple times, and the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request, the business service can send the target business data indicated by the data query request to the aggregation service multiple times instead of sending all the target business data indicated by the data query request to the aggregation service at one time, which can ensure the real-time and security of the business data and reduce the difficulty of development. Accordingly, the aggregation service can aggregate the business data sent by each business service each time instead of aggregating all the target business data indicated by the data query request at one time, so it can improve the data query performance for multiple data sources and reduce the waste of resources in data query.

[0308] As an implementation of the embodiment of the present application, the client may be used to display the target business data in pages. In this case, the data query module may include:

[0309] A data query submodule, for responding to a data query instruction sent by the aggregation service, obtaining business data corresponding to the current page from the connected data source according to the data information carried in the data query instruction, and sending the business data corresponding to the current page to the aggregation service;

[0310] Among them, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client for the business data displayed on each page. The total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client. The data information includes the current sorting condition, the current number of repetitions and the current data identifier. The current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page. The current number of repetitions corresponding to the home page is a preset value. The current number of repetitions corresponding to non-home pages indicates the number of business data in the currently displayed business data that have the same sorting condition as the next business data of the last business data displayed on the previous page. The current data identifier is the identifier of the last business data from each business service in the currently displayed business data.

[0311] Corresponding to the first data query method mentioned above, an embodiment of the present application further provides a data query system. The following is an introduction to a data query system provided by an embodiment of the present application.

[0312] like Fig.12 As shown, a data query system includes an aggregation service 1201, multiple business services 1202 and a client 1203, each business service 1202 is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service 1201 communicates with the business service 1202 through the query interface of each business service 1202, and the query interface is pre-built based on the same data features;

[0313] The client 1203 is used to send a data query request to the aggregation service 1201;

[0314] The aggregation service 1201 is used to respond to the data query request and send a data query instruction to each business service 1202 through the query interface of each business service 1202;

[0315] The business service 1202 is used to respond to the data query instruction, obtain the target business data indicated by the data query instruction from the connected data source, and send the target business data to the aggregation service 1201;

[0316] The aggregation service 1201 is further used to aggregate the target business data and send the aggregation result to the client 1203;

[0317] The client 1203 is also used to display the aggregation result.

[0318] It can be seen that in the embodiment of the present application, in the scheme provided by the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; aggregates the target business data, and sends the aggregation result to the client, so that the client displays the aggregation result. Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In this way, when each business service receives the same data query instruction, it can simultaneously obtain the target business data from the connected data source, and can access multiple data sources at the same time, thereby improving the efficiency of data query. Since the business data stored in multiple data sources have the same data features, the business data stored in different data sources can be aggregated based on the same data features. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation result are also different, which can avoid the client from displaying multiple identical business data. Since each business service can obtain the target business data from the connected data source and send the target business data to the aggregation service without merging the business data from multiple data sources into one data source, the workload of data query and the occupied hardware resources can be reduced, thereby improving data query efficiency.

[0319] The present application also provides a server, such as Fig.13 As shown, including:

[0320] Memory 1301, used for storing computer programs;

[0321] The processor 1302 is used to implement the data query method described in any of the above embodiments when executing the program stored in the memory 1301.

[0322] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 1302, the communication interface, and the memory 1301 communicate with each other via the communication bus.

[0323] It can be seen that in the embodiment of the present application, in the scheme provided by the embodiment of the present application, the aggregation service can respond to the data query request sent by the client, and send the data query instruction to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; aggregates the target business data, and sends the aggregation result to the client, so that the client displays the aggregation result. Since the query interface of each business service is pre-built based on the same data features, the query interface of each business service can support the same input parameters. In this way, when each business service receives the same data query instruction, it can simultaneously obtain the target business data from the connected data source, and can access multiple data sources at the same time, thereby improving the efficiency of data query. Since the business data stored in multiple data sources have the same data features, the business data stored in different data sources can be aggregated based on the same data features. Since the business data stored in multiple data sources are not repeated, the business data in the aggregation result are also different, which can avoid the client from displaying multiple identical business data. Since each business service can obtain the target business data from the connected data source and send the target business data to the aggregation service without merging the business data from multiple data sources into one data source, the workload of data query and the occupied hardware resources can be reduced, thereby improving data query efficiency.

[0324] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0325] The communication interface is used for communication between the above electronic device and other devices.

[0326] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0327] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0328] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the data query method described in any of the above embodiments are implemented.

[0329] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the data query method described in any of the above embodiments.

[0330] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.

[0331] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0332] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, system, server, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0333] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A data query method, characterized in that: An aggregation service applied to a data query system, the data query system further comprising a plurality of business services and clients, each business service being connected to a data source, the data source being used to store business data, the business data stored in the data source having the same data features and being non-repetitive, the aggregation service communicating with the business service through a query interface of each business service, the query interface being pre-constructed based on the same data features, the method comprising: In response to the data query request sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains the target business data indicated by the data query instruction from the connected data source, and sends the target business data to the aggregation service; Aggregating the target business data, and sending the aggregation result to the client, so that the client displays the aggregation result; The step of sending a data query instruction to each business service through the query interface of each business service includes: Sending data query instructions to each business service through the query interface of each business service multiple times, wherein the target business data indicated by the data query request is all the business data to be queried by the user, and the business data indicated by the data query instruction sent each time is a non-repeated part of the target business data indicated by the data query request; The step of aggregating the target business data includes: The business data sent each time by the multiple business services are aggregated to obtain an aggregation result corresponding to the business data sent each time.

2. The method according to claim 1, characterized in that The aggregation service has a request aggregation interface; The step of sending a data query instruction to each business service through a query interface of each business service in response to the data query request sent by the client includes: In response to the data query request sent by the client, the query interface of each business service is called through the request aggregation interface to send a data query instruction to each business service.

3. The method according to claim 1, characterized in that The same data features include the same fields; The step of aggregating the target business data includes: Based on the same fields included in the business data sent by the multiple business services, determine a sorting condition satisfied by each business data, wherein the sorting condition is a preset condition with a sequence; According to the order of the sorting conditions satisfied by each business data, the order corresponding to the business data is determined to obtain the sorting result corresponding to each business data; Based on the sorting result corresponding to each business data, each business data is aggregated to obtain an aggregated result.

4. The method according to claim 3, characterized in that Each business service has a preset priority; Before the step of determining the order corresponding to each business data according to the order of the sorting conditions satisfied by each business data, the method further includes: For business data satisfying different sorting conditions, executing the step of determining the order corresponding to the business data according to the order of the sorting conditions satisfied by each business data; For business data that meet the same sorting conditions but come from different data sources, the order of the business data is determined according to the priority of the corresponding business services; For business data that meet the same sorting conditions and have the same data source, the corresponding order of the business data is determined according to the order identified by the corresponding identical fields.

5. The method according to claim 1, characterized in that The step of sending a data query instruction to each business service through the query interface of each business service includes: In response to the data query request sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains a preset number of business data with a corresponding top ranking result from the connected data source according to the predetermined ranking result of each business data, and sends the preset number of business data to the aggregation service, wherein the preset number is the number of business data displayed on each page of the client or the number of data that the user needs to query carried by the data query request; The step of aggregating the target business data includes: Sort a preset number of business data sent by each business service to obtain a sorting result; Aggregate the preset number of business data that are at the top of the corresponding sorting results to obtain an aggregated result.

6. The method according to claim 1, characterized in that The client is used to display the target business data in pages; The step of sending data query instructions to each business service through the query interface of each business service for multiple times includes: In response to a data query request for the business data displayed on each page sent by the client, a data query instruction is sent to each business service through the query interface of each business service, so that each business service obtains the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and sends the business data corresponding to the current page to the aggregation service; Wherein, the total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client, and the data information includes a current sorting condition, a current repetition number and a current data identifier, wherein the current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page, the current repetition number corresponding to the homepage is a preset value, and the current repetition number corresponding to a non-homepage indicates the number of business data in the currently displayed business data that has the same sorting condition as the next business data of the last business data displayed on the previous page, and the current data identifier is the identifier of the last business data from each business service in the currently displayed business data; The step of aggregating the business data sent this time based on the sorting result corresponding to the business data sent this time to obtain the aggregation result includes: Based on the sorting result corresponding to the business data sent this time, selecting business data of the quantity of business data displayed on each page of the client from the business data sent this time as the business data to be aggregated; Aggregate the service data to be aggregated to obtain an aggregation result.

7. The method according to claim 6, characterized in that The method further comprises: In the case of obtaining the business data corresponding to the current page sent by each business service, determining the relationship between the total number of business data included in the business data corresponding to the current page and the target number; wherein the target number is the number of business data displayed on each page of the client; If the total number is greater than the target number, a message indicating that there is a next page of business data is sent to the client, so that when a next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service.

8. The method according to any one of claims 1 to 7, characterized in that: The connection relationship between each business service and the connected data source is established in advance based on the account and password required to access the data source.

9. A data query method, characterized in that: Applied to each business service in a data query system, the data query system includes multiple business services, an aggregation service and a client, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through the query interface of each business service, the query interface is pre-built based on the same data features, the method includes: In response to the data query instruction sent by the aggregation service, the target business data indicated by the data query instruction is obtained from the connected data source, and the target business data is sent to the aggregation service so that the aggregation service aggregates the target business data, and the aggregation result is sent to the client so that the client displays the aggregation result; Wherein, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client; The step of obtaining target business data indicated by the data query instruction from the connected data source in response to the data query instruction sent by the aggregation service includes: Receiving data query instructions sent by the aggregation service multiple times through the query interface of each business service, and obtaining the business data indicated by the data query instruction sent by the aggregation service each time from the connected data source, wherein the target business data indicated by the data query request is all the business data to be queried by the user, and the business data indicated by the data query instruction sent each time is a non-repeated part of the target business data indicated by the data query request; The step of sending the target business data to the aggregation service so that the aggregation service aggregates the target business data includes: The business data indicated by the data query instruction sent by the aggregation service each time is sent to the aggregation service, so that the aggregation service aggregates the business data sent by the multiple business services each time to obtain an aggregation result corresponding to the business data sent each time.

10. The method according to claim 9, characterized in that The client is used to display the target business data in pages; The step of obtaining target business data indicated by the data query instruction from a connected data source in response to the data query instruction sent by the aggregation service, and sending the target business data to the aggregation service includes: In response to the data query instruction sent by the aggregation service, obtain the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and send the business data corresponding to the current page to the aggregation service; Among them, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client for the business data displayed on each page. The total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client. The data information includes the current sorting condition, the current number of repetitions and the current data identifier. The current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page. The current number of repetitions corresponding to the home page is a preset value. The current number of repetitions corresponding to non-home pages indicates the number of business data in the currently displayed business data that have the same sorting condition as the next business data of the last business data displayed on the previous page. The current data identifier is the identifier of the last business data from each business service in the currently displayed business data.

11. A data query device, characterized in that: An aggregation service applied to a data query system, the data query system further comprising a plurality of business services and clients, each business service being connected to a data source, the data source being used to store business data, the business data stored in the data source having the same data features and being non-repetitive, the aggregation service communicating with the business service through a query interface of each business service, the query interface being pre-constructed based on the same data features, the device comprising: An instruction sending module, configured to respond to a data query request sent by the client and send a data query instruction to each business service through a query interface of each business service, so that each business service obtains target business data indicated by the data query instruction from a connected data source and sends the target business data to the aggregation service; A data aggregation module, used to aggregate the target business data and send the aggregation result to the client so that the client displays the aggregation result; The instruction sending module comprises: A second instruction sending submodule is used to send data query instructions to each business service through the query interface of each business service for multiple times, wherein the target business data indicated by the data query request is all the business data to be queried by the user, and the business data indicated by the data query instruction sent each time is a non-repeated part of the target business data indicated by the data query request; The data aggregation module comprises: The data aggregation submodule is used to aggregate the business data sent by the multiple business services each time to obtain aggregation results corresponding to the business data sent each time.

12. The device according to claim 11, characterized in that The aggregation service has a request aggregation interface; The instruction sending module comprises: A first instruction sending submodule is used to respond to the data query request sent by the client, call the query interface of each business service through the request aggregation interface, and send a data query instruction to each business service; The same data features include the same fields; The data aggregation module comprises: A condition determination submodule, used to determine a sorting condition satisfied by each business data based on the same fields included in the business data sent by the multiple business services, wherein the sorting condition is a preset condition with a sequence; The data sorting submodule is used to determine the order of the business data according to the order of the sorting conditions satisfied by each business data, and obtain the sorting result corresponding to each business data; A first data aggregation submodule is used to aggregate each business data based on the sorting result corresponding to each business data to obtain an aggregation result; Each of the business services has a preset priority, and the device further includes: A first sorting module, for executing the step of determining the order of the business data according to the order of the sorting conditions satisfied by each business data, for business data satisfying different sorting conditions; The second sorting module is used to determine the order of the business data according to the priority of the corresponding business services for the business data that meet the same sorting conditions and have different data sources; A third sorting module is used to determine the order of the business data according to the order identified by the corresponding same fields for the business data that meet the same sorting conditions and have the same data source; The instruction sending module comprises: A data acquisition submodule, configured to respond to a data query request sent by the client, and send a data query instruction to each business service through a query interface of each business service, so that each business service obtains a preset number of business data with a corresponding top ranking result from a connected data source according to a predetermined ranking result of each business data, and sends the preset number of business data to the aggregation service, wherein the preset number is the number of business data displayed on each page of the client or the number of data that the user needs to query carried in the data query request; The data aggregation module comprises: A result determination submodule is used to sort a preset number of business data sent by each business service to obtain a sorting result; A second data aggregation submodule is used to aggregate the preset number of business data with the top ranking results to obtain an aggregation result; The client is used to display the target business data in pages; The second instruction sending submodule includes: an instruction sending unit, configured to respond to a data query request for the business data displayed on each page sent by the client, and to send a data query instruction to each business service through a query interface of each business service, so that each business service obtains the business data corresponding to the current page from the connected data source according to the data information carried by the data query instruction, and sends the business data corresponding to the current page to the aggregation service; Wherein, the total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client, and the data information includes a current sorting condition, a current repetition number and a current data identifier, wherein the current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page, the current repetition number corresponding to the homepage is a preset value, and the current repetition number corresponding to a non-homepage indicates the number of business data in the currently displayed business data that has the same sorting condition as the next business data of the last business data displayed on the previous page, and the current data identifier is the identifier of the last business data from each business service in the currently displayed business data; The data aggregation unit comprises: A data selection subunit, configured to select, from the business data sent this time, business data of the quantity of business data displayed on each page of the client, as the business data to be aggregated, based on the sorting result corresponding to the business data sent this time; A data aggregation subunit, used to aggregate the service data to be aggregated to obtain an aggregation result; The device also includes: A size relationship determination module, used to determine the size relationship between the total number of business data included in the business data corresponding to the current page and the target number when the business data corresponding to the current page sent by each business service is obtained; wherein the target number is the number of business data displayed on each page of the client; A message sending module, configured to send a message indicating the next page of business data to the client if the total number is greater than the target number, so that when a next page button is triggered, the client sends a data query request corresponding to the next page to the aggregation service; The connection relationship between each business service and the connected data source is established in advance based on the account and password required to access the data source.

13. A data query device, characterized in that: Applied to each business service in a data query system, the data query system includes multiple business services, an aggregation service and a client, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through the query interface of each business service, the query interface is pre-built based on the same data features, and the device includes: A data query module, configured to respond to a data query instruction sent by the aggregation service, obtain target business data indicated by the data query instruction from a connected data source, send the target business data to the aggregation service, so that the aggregation service aggregates the target business data, and send the aggregated result to the client, so that the client displays the aggregated result; Wherein, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client; The data query module is specifically used to receive data query instructions sent by the aggregation service multiple times through the query interface of each business service, obtain the business data indicated by the data query instruction sent by the aggregation service each time from the connected data source; send the business data indicated by the data query instruction sent by the aggregation service each time to the aggregation service, so that the aggregation service aggregates the business data sent by the multiple business services each time to obtain the aggregation results corresponding to the business data sent each time, wherein the target business data indicated by the data query request is all the business data to be queried by the user, and the business data indicated by the data query instruction sent each time is a non-repeating part of the target business data indicated by the data query request.

14. The device according to claim 13, characterized in that The client is used to display the target business data in pages; The data query module comprises: A data query submodule, for responding to a data query instruction sent by the aggregation service, obtaining business data corresponding to the current page from the connected data source according to the data information carried in the data query instruction, and sending the business data corresponding to the current page to the aggregation service; Among them, the data query instruction is sent by the aggregation service through the query interface of the business service in response to the data query request sent by the client for the business data displayed on each page. The total number of business data sent by the multiple business services each time is greater than the number of business data displayed on each page of the client. The data information includes the current sorting condition, the current number of repetitions and the current data identifier. The current sorting condition is the sorting condition satisfied by the last business data displayed on the previous page. The current number of repetitions corresponding to the home page is a preset value. The current number of repetitions corresponding to non-home pages indicates the number of business data in the currently displayed business data that have the same sorting condition as the next business data of the last business data displayed on the previous page. The current data identifier is the identifier of the last business data from each business service in the currently displayed business data.

15. A data query system, characterized in that: The data query system includes an aggregation service, multiple business services and a client, each business service is connected to a data source, the data source is used to store business data, the business data stored in the data source has the same data features and is non-repetitive, the aggregation service communicates with the business service through the query interface of each business service, and the query interface is pre-built based on the same data features; The client is used to send a data query request to the aggregation service; The aggregation service is used to send a data query instruction to each business service through the query interface of each business service in response to the data query request; The business service is used to respond to the data query instruction, obtain the target business data indicated by the data query instruction from the connected data source, and send the target business data to the aggregation service; The aggregation service is further used to aggregate the target business data and send the aggregation result to the client; The client is also used to display the aggregation result; The aggregation service is specifically used to send data query instructions to each business service through the query interface of each business service for multiple times, wherein the target business data indicated by the data query request is all the business data to be queried by the user, and the business data indicated by the data query instruction sent each time is a non-repeated part of the target business data indicated by the data query request; The business service is specifically configured to receive data query instructions sent by the aggregation service multiple times through the query interface of each business service, obtain the business data indicated by the data query instruction sent by the aggregation service each time from the connected data source, and send the business data indicated by the data query instruction sent by the aggregation service each time to the aggregation service; The aggregation service is specifically used to aggregate the business data sent by the multiple business services each time to obtain an aggregation result corresponding to the business data sent each time.

16. A server, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-8 or 9-10 when executing a program stored in a memory.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1-8 or 9-10 is implemented.