Data query method and device

By receiving the permission registration information and employee login information from the merchant administrator, it determines the employee's query permissions, solves the problem of multiple registered accounts under one merchant being unable to view data, enables employees to view report data, improves the merchant experience, and through The permission tree structure and openMid information ensure data controllability and security.

CN118708631APending Publication Date: 2024-09-27PING AN BANK CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410744006.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing data query method cannot allow employees with multiple registered accounts under one merchant to view the company's report data, resulting in poor merchant experience.

Method used

By receiving the permission registration information from the merchant administrator and the employee login information from the target client, it determines the target data table for which the target user has query permission, conducts queries according to the query request, and feeds back the query results, which solves the problem of employees being unable to view report data.

Benefits of technology

It enables other employees to view the company's report data, which improves the merchant's experience. Through the use of permission tree structure and openMid information, the controllability and security of data transmission are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708631A
    Figure CN118708631A
Patent Text Reader

Abstract

The invention provides a data query method and device. The method comprises the following steps: receiving authority registration information sent by a merchant administrator side; employee login information sent by the target user side is received; according to the employee login information, determining a target data table with query authority of the target user side; receiving a query request of a target user for the target data table; querying the target data table according to the query request to obtain a query result; and feeding back the query result to the target user side. According to the method and the device, multiple employees under one merchant can check the report data of the company, so that the merchant experience is improved.
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 and device. Background Art

[0002] At present, with the continuous discovery of the Internet, more and more people choose to conduct banking business online. The official website of the open bank portal supports merchants to view the statistics of operating data, such as auto financing and car owner loan reports, financial management reports, digital account reports, etc. In these reports, you can see the actual operating data generated after the merchant cooperates with the bank's financial products, such as the number of new customers, deposit amounts, and account openings. The existing data query method only supports querying the merchant's application appid from the merchant login state, and then determines whether the merchant has the right to view the report content based on the appid. If the merchant has the right, the corresponding query is performed. However, in practice, it is found that due to the problem of multiple registered accounts under one merchant, other employees are temporarily unable to view the company's report data, causing merchant experience problems. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a data query method and device, which can solve the problem that multiple registered accounts under a merchant cannot view data, and other employees can also view the company's report data, thereby improving the merchant experience.

[0004] The first aspect of the present application provides a data query method, comprising:

[0005] Receive permission registration information sent by the merchant administrator;

[0006] Receive employee login information sent by the target user;

[0007] Determine the target data table that the target user has query authority for according to the employee login information;

[0008] receiving a query request from the target user for the target data table;

[0009] Query the target data table according to the query request to obtain a query result;

[0010] The query result is fed back to the target user terminal.

[0011] In the above implementation process, the method can give priority to receiving the permission registration information sent by the merchant administrator; and receiving the employee login information sent by the target user; then, according to the employee login information, determine the target data table that the target user has the query permission; then receive the query request for the target data table from the target user; finally, query the target data table according to the query request to obtain the query result; and feed back the query result to the target user. It can be seen that this method can solve the problem of multiple registered accounts under one merchant, and other employees can also view the company's report data, thereby improving the merchant experience.

[0012] Furthermore, the permission registration information includes an employee configuration report and a report permission table corresponding to the employee configuration report;

[0013] The report permission table includes field name, type, whether null value is allowed, and description.

[0014] Further, the step of determining the target data table that the target user terminal has query authority for according to the employee login information includes:

[0015] Acquire the openMid information of the target user terminal according to the employee login information;

[0016] Determine the report viewing resource identifier configured by the target user terminal according to the openMid information and the permission registration information;

[0017] The target data table for which the target user terminal has query authority is determined based on the report viewing resource identifier.

[0018] Further, the determining, according to the openMid information and the permission registration information, the report viewing resource identifier configured by the target user terminal includes:

[0019] Constructing a tree structure of all permissions according to the permission registration information;

[0020] Based on the tree structure data interface and the openMid information, query the entire permission tree structure to obtain permission query results;

[0021] The report viewing resource identifier configured by the target user terminal is determined according to the permission query result.

[0022] A second aspect of the present application provides a data query device, the data query device comprising:

[0023] A first receiving unit, used to receive permission registration information sent by a merchant administrator terminal;

[0024] A second receiving unit, used to receive employee login information sent by a target user terminal;

[0025] A determination unit, configured to determine, according to the employee login information, a target data table for which the target user terminal has query authority;

[0026] A third receiving unit, configured to receive a query request from the target user for the target data table;

[0027] A query unit, configured to query the target data table according to the query request to obtain a query result;

[0028] A feedback unit is used to feed back the query result to the target user terminal.

[0029] In the above implementation process, the device can receive the permission registration information sent by the merchant administrator through the first receiving unit; receive the employee login information sent by the target user through the second receiving unit; determine the target data table that the target user has the query permission to query based on the employee login information through the determination unit; receive the query request for the target data table from the target user through the third receiving unit; query the target data table according to the query request through the query unit to obtain the query result; and then feedback the query result to the target user through the feedback unit. It can be seen that the device can solve the problem that multiple registered accounts under one merchant cannot view data, and other employees can also view the company's report data, thereby improving the merchant experience.

[0030] Furthermore, the permission registration information includes an employee configuration report and a report permission table corresponding to the employee configuration report;

[0031] The report permission table includes field name, type, whether null value is allowed, and description.

[0032] Furthermore, the determining unit includes:

[0033] An acquisition subunit, used for acquiring the openMid information of the target user terminal according to the employee login information;

[0034] A first determining subunit is used to determine the report viewing resource identifier configured by the target user terminal according to the openMid information and the permission registration information;

[0035] The second determining subunit is used to determine the target data table that the target user terminal has query authority for based on the report viewing resource identifier.

[0036] Further, the first determining subunit includes:

[0037] A construction module, used to construct a tree structure of all permissions according to the permission registration information;

[0038] A query module, used to query the entire permission tree structure based on the tree structure data interface and the openMid information to obtain permission query results;

[0039] A determination module is used to determine the report viewing resource identifier configured by the target user terminal according to the permission query result.

[0040] A third aspect of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute any data query method described in any one of the first aspects of the present application.

[0041] A fourth aspect of the present application provides a computer-readable storage medium storing computer program instructions, wherein when the computer program instructions are read and executed by a processor, the data query method described in any one of the first aspects of the present application is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

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

[0044] Figure 2 A flowchart of another data query method provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of the structure of a data query device provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of the structure of another data query device provided in an embodiment of the present application;

[0047] Figure 5 An example flowchart of SD report permission management provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0049] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0050] Example 1

[0051] Please see Figure 1 , Figure 1 A flowchart of a data query method provided in this embodiment. The data query method includes:

[0052] S101. Receive permission registration information sent by the merchant administrator.

[0053] In this embodiment, the permission registration information includes an employee configuration report and a report permission table corresponding to the employee configuration report;

[0054] The report permission table includes the field name, type, whether null values ​​are allowed, and description.

[0055] S102: Receive employee login information sent by the target user.

[0056] S103: Determine the target data table that the target user has query authority for according to the employee login information.

[0057] S104: Receive a query request from a target user for a target data table.

[0058] S105: query the target data table according to the query request to obtain the query result.

[0059] S106: Feedback the query result to the target user end.

[0060] In the financial field, open banking portals often support merchants to view data statistics of operating data, such as auto financing and car owner loan reports, financial management reports, digital account reports, etc. In these reports, you can see the actual operating data generated after the merchant cooperates with the bank's financial products, such as the number of new customers, deposit amounts, and account openings. However, the current official website report permission system only supports querying the merchant's application appid from the merchant login state, and determines whether the merchant has the right to view the report content based on the appid. However, when this permission system faces multiple registered accounts under one merchant, other employees cannot view the company's report data, which leads to a poor merchant experience.

[0061] Based on this, the present application proposes a website report permission management solution based on the login account, which can solve the problem that other employees cannot view the company's report data, thereby optimizing the merchant experience.

[0062] In this embodiment, the execution subject of the method may be a computing device such as a computer or a server, and no limitation is made in this embodiment.

[0063] In this embodiment, the execution subject of the method may also be a smart device such as a smart phone, a tablet computer, etc., which is not limited in this embodiment.

[0064] It can be seen that the implementation of the data query method described in this embodiment can enable the administrator to configure report viewing resources and permissions for other registered employees of the company in the personal center of the official website. When the employee uses his own account to log in to the open bank official website, the system background will query the openMid information of the login person according to the login state, and query the report viewing resource id configured under the account, so that the relevant report will be visible to the employee. At the same time, it is also possible to determine the report viewing permission or report download permission through the parentId field, so as to achieve the controllability and security of data transmission; then the specific path for employees to view the report can be controlled through the resource field. In addition, the permission control in this method is scalable, and it can be subsequently extended to other business report permission controls by adding resource configuration, thereby increasing its scope of use.

[0065] Example 2

[0066] Please see Figure 2 , Figure 2 A flowchart of a data query method provided in this embodiment. The data query method includes:

[0067] S201. Receive permission registration information sent by the merchant administrator.

[0068] In this embodiment, the permission registration information includes an employee configuration report and a report permission table corresponding to the employee configuration report;

[0069] The report permission table includes the field name, type, whether null values ​​are allowed, and description.

[0070] S202: Receive employee login information sent by the target user.

[0071] S203. Obtain the openMid information of the target user terminal according to the employee login information.

[0072] S204: Construct a tree structure of all permissions according to the permission registration information.

[0073] S205. Based on the tree structure data interface and openMid information, query all permission tree structures to obtain permission query results.

[0074] S206: Determine the report viewing resource identifier configured by the target user terminal according to the permission query result.

[0075] S207: Determine the target data table for which the target user has query authority based on the report viewing resource identifier.

[0076] S208: Receive a query request from a target user for a target data table.

[0077] S209: query the target data table according to the query request to obtain the query result.

[0078] S210: Feedback the query result to the target user terminal.

[0079] For example, the method includes the following functions:

[0080] (1) Add query and download rights control based on the original report classification;

[0081] (2) The query and download permissions belong to the report category, and parentId points to the report category ID;

[0082] (3) Report permissions (report category ID, auto finance report takes logical ID: carFinancial, query and download permission ID is the same as resource) are associated with the account (open_mid);

[0083] (4) Provide a tree-like permission data interface for all permissions and a tree-like permission data interface for querying by openMid;

[0084] (5) The backend controls the access rights of the interface based on the resource.

[0085] Please see Figure 5 , Figure 5 The following is a flow chart of an example of sd report permission management. In it, resource operation permissions (resouce) are added under the table category, and permissions are associated with accounts (openMid). Each time permissions are added or modified, the permissions are physically deleted according to openMid, and the associated data is re-inserted.

[0086] About interface definition:

[0087] (1) Obtain report permissions / obp / mch / manage / modelsys / reportPermissions;

[0088] (2) Add report permissions / obp / mch / manage / modelsys / addReportPermissions;

[0089] (3) Obtain report permissions by permission ID:

[0090] / obp / mch / manage / modelsys / getReportPermissionsByPermId.

[0091] For database design, please refer to Table 1:

[0092] Table 1 Report permissions table

[0093]

[0094] In this embodiment, the execution subject of the method may be a computing device such as a computer or a server, and no limitation is made in this embodiment.

[0095] In this embodiment, the execution subject of the method may also be a smart device such as a smart phone, a tablet computer, etc., which is not limited in this embodiment.

[0096] It can be seen that the implementation of the data query method described in this embodiment can enable the administrator to configure report viewing resources and permissions for other registered employees of the company in the personal center of the official website. When the employee uses his own account to log in to the open bank official website, the system background will query the openMid information of the login person according to the login state, and query the report viewing resource id configured under the account, so that the relevant report will be visible to the employee. At the same time, it is also possible to determine the report viewing permission or report download permission through the parentId field, so as to achieve the controllability and security of data transmission; then the specific path for employees to view the report can be controlled through the resource field. In addition, the permission control in this method is scalable, and it can be subsequently extended to other business report permission controls by adding resource configuration, thereby increasing its scope of use.

[0097] Example 3

[0098] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a data query device provided in this embodiment. Figure 3 As shown, the data query device includes:

[0099] The first receiving unit 310 is used to receive the authority registration information sent by the merchant administrator terminal;

[0100] The second receiving unit 320 is used to receive employee login information sent by the target user terminal;

[0101] A determination unit 330, configured to determine a target data table that a target user terminal has query authority for according to the employee login information;

[0102] The third receiving unit 340 is used to receive a query request from a target user for a target data table;

[0103] A query unit 350 is used to query the target data table according to the query request to obtain the query result;

[0104] The feedback unit 360 is used to feed back the query result to the target user terminal.

[0105] In this embodiment, the explanation of the data query device can refer to the description in Embodiment 1 or Embodiment 2, and will not be further elaborated in this embodiment.

[0106] It can be seen that the data query device described in this embodiment can be implemented so that the administrator can configure report viewing resources and permissions for other registered employees of the company in the personal center of the official website. When the employee uses his own account to log in to the open bank official website, the system background will query the openMid information of the login person according to the login state, and query the report viewing resource id configured under the account, so that the relevant report can be visible to the employee. At the same time, it is also possible to determine the report viewing permission or report download permission through the parentId field, so as to achieve the controllability and security of data transmission; then the specific path for employees to view the report can be controlled through the resource field. In addition, the permission control in this method is scalable, and it can be subsequently extended to other business report permission controls by adding resource configuration, thereby increasing its scope of use.

[0107] Example 4

[0108] Please see Figure 4 , Figure 4 This is a schematic diagram of the structure of a data query device provided in this embodiment. Figure 4 As shown, the data query device includes:

[0109] The first receiving unit 310 is used to receive the authority registration information sent by the merchant administrator terminal;

[0110] The second receiving unit 320 is used to receive employee login information sent by the target user terminal;

[0111] A determination unit 330, configured to determine a target data table that a target user terminal has query authority for according to the employee login information;

[0112] The third receiving unit 340 is used to receive a query request from a target user for a target data table;

[0113] A query unit 350 is used to query the target data table according to the query request to obtain the query result;

[0114] The feedback unit 360 is used to feed back the query result to the target user terminal.

[0115] In this embodiment, the permission registration information includes an employee configuration report and a report permission table corresponding to the employee configuration report;

[0116] The report permission table includes the field name, type, whether null values ​​are allowed, and description.

[0117] As an optional implementation manner, the determining unit 330 includes:

[0118] The acquisition subunit 331 is used to acquire the openMid information of the target user terminal according to the employee login information;

[0119] The first determining subunit 332 is used to determine the report viewing resource identifier configured by the target user terminal according to the openMid information and the permission registration information;

[0120] The second determining subunit 333 is used to determine the target data table that the target user terminal has the query permission based on the report viewing resource identifier.

[0121] As an optional implementation manner, the first determining subunit 332 includes:

[0122] The construction module is used to construct the entire permission tree structure based on the permission registration information;

[0123] The query module is used to query the entire permission tree structure based on the tree structure data interface and openMid information to obtain permission query results;

[0124] The determination module is used to determine the report viewing resource identifier configured by the target user end according to the permission query result.

[0125] In this embodiment, the explanation of the data query device can refer to the description in Embodiment 1 or Embodiment 2, and will not be further elaborated in this embodiment.

[0126] It can be seen that the data query device described in this embodiment can be implemented so that the administrator can configure report viewing resources and permissions for other registered employees of the company in the personal center of the official website. When the employee uses his own account to log in to the open bank official website, the system background will query the openMid information of the login person according to the login state, and query the report viewing resource id configured under the account, so that the relevant report can be visible to the employee. At the same time, it is also possible to determine the report viewing permission or report download permission through the parentId field, so as to achieve the controllability and security of data transmission; then the specific path for employees to view the report can be controlled through the resource field. In addition, the permission control in this method is scalable, and it can be subsequently extended to other business report permission controls by adding resource configuration, thereby increasing its scope of use.

[0127] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the data query method in embodiment 1 or embodiment 2 of the present application.

[0128] An embodiment of the present application provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, the data query method in Embodiment 1 or Embodiment 2 of the present application is executed.

[0129] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0130] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0131] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0132] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0134] 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.

Claims

1. A data query method, It is characterized in that include: Receive permission registration information sent by the merchant administrator; Receive employee login information sent by the target user; Determine the target data table that the target user has query authority for according to the employee login information; receiving a query request from the target user for the target data table; Query the target data table according to the query request to obtain a query result; The query result is fed back to the target user terminal.

2. The data query method according to claim 1, It is characterized in that The permission registration information includes an employee configuration report and a report permission table corresponding to the employee configuration report; The report permission table includes field name, type, whether null value is allowed, and description.

3. The data query method according to claim 1, It is characterized in that The step of determining the target data table that the target user terminal has query authority for according to the employee login information includes: Acquire the openMid information of the target user terminal according to the employee login information; Determine the report viewing resource identifier configured by the target user terminal according to the openMid information and the permission registration information; The target data table for which the target user terminal has query authority is determined based on the report viewing resource identifier.

4. The data query method according to claim 3, It is characterized in that The step of determining the report viewing resource identifier configured by the target user terminal according to the openMid information and the permission registration information includes: Constructing a tree structure of all permissions according to the permission registration information; Based on the tree structure data interface and the openMid information, query the entire permission tree structure to obtain permission query results; The report viewing resource identifier configured by the target user terminal is determined according to the permission query result.

5. A data query device, It is characterized in that The data query device comprises: A first receiving unit, used to receive permission registration information sent by a merchant administrator terminal; A second receiving unit, used to receive employee login information sent by a target user terminal; A determination unit, configured to determine, according to the employee login information, a target data table for which the target user terminal has query authority; A third receiving unit, configured to receive a query request from the target user for the target data table; A query unit, configured to query the target data table according to the query request to obtain a query result; A feedback unit is used to feed back the query result to the target user terminal.

6. The data query device according to claim 5, It is characterized in that The permission registration information includes an employee configuration report and a report permission table corresponding to the employee configuration report; The report permission table includes field name, type, whether null value is allowed, and description.

7. The data query device according to claim 5, It is characterized in that The determining unit comprises: An acquisition subunit, used for acquiring the openMid information of the target user terminal according to the employee login information; A first determining subunit is used to determine the report viewing resource identifier configured by the target user terminal according to the openMid information and the permission registration information; The second determining subunit is used to determine the target data table that the target user terminal has query authority for based on the report viewing resource identifier.

8. The data query device according to claim 7, It is characterized in that The first determining subunit includes: A construction module, used to construct a tree structure of all permissions according to the permission registration information; A query module, used to query the entire permission tree structure based on the tree structure data interface and the openMid information to obtain permission query results; A determination module is used to determine the report viewing resource identifier configured by the target user terminal according to the permission query result.

9. An electronic device, It is characterized in that The electronic device comprises a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the data query method according to any one of claims 1 to 4.

10. A readable storage medium, It is characterized in that The readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the data query method according to any one of claims 1 to 4 is executed.

Citation Information

Patent Citations

  • AOP-based row-level permission control method and device, and client

    CN110727929A

  • Data query method and device

    CN112069203A

  • Permission management method, system and related device for Presto query platform

    CN112800399A

  • Data authority control method and data authority control service

    CN114861208A

  • Data query method, device and equipment

    CN117828668A