CN112000701A - Data query method, device, equipment and storage medium - Google Patents

Data query method, device, equipment and storage medium Download PDF

Info

Publication number
CN112000701A
CN112000701A CN202010880824.8A CN202010880824A CN112000701A CN 112000701 A CN112000701 A CN 112000701A CN 202010880824 A CN202010880824 A CN 202010880824A CN 112000701 A CN112000701 A CN 112000701A
Authority
CN
China
Prior art keywords
user
service
data
role
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010880824.8A
Other languages
Chinese (zh)
Other versions
CN112000701B (en
Inventor
邱泽斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN202010880824.8A priority Critical patent/CN112000701B/en
Publication of CN112000701A publication Critical patent/CN112000701A/en
Application granted granted Critical
Publication of CN112000701B publication Critical patent/CN112000701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computational Linguistics (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the field of big data, and discloses a method, a device, equipment and a storage medium for data query, which are used for solving the problem of low query efficiency of data query. The data query method comprises the following steps: acquiring user information, and configuring a service operating system through the user information, wherein the service operating system is a system for performing data query for a user; acquiring user configuration content in user information, and determining a user role based on the user configuration content in a service operating system, wherein the user role is a role displayed after a user logs in the service operating system; extracting and displaying a service template carried by user roles in a service operation system, wherein the service template is used for indicating a service inquiry scheme of the user roles, and each user role corresponds to one service template; and acquiring the user query content in the user information, and querying the user query content in the carried service template to obtain a query result.

Description

Data query method, device, equipment and storage medium
Technical Field
The present invention relates to the field of big data, and in particular, to a method, an apparatus, a device, and a storage medium for data query.
Background
With the rapid development of computer technology, management systems of different business types become an indispensable part of various industries. For example, the system a includes a background sales management system and a set of corresponding mobile pages, and the query of service data is realized through the configuration of the background and the interaction between the mobile pages and the user. Three different user role classifications exist in the system A, namely a management user, a check user and a service user, wherein the service user can inquire different service data in the same system.
The existing management system allocates one role account to a service user to query one service data, but when the service user needs to query two different service data at the same time, the service user needs to quit the original role account and log in the new role account again to perform operation, and the query efficiency of the query mode is low.
Disclosure of Invention
The invention mainly aims to solve the problem of low query efficiency of data query.
The first aspect of the present invention provides a method for querying data, including: acquiring user information, and configuring a service operating system through the user information, wherein the service operating system is a system for performing data query on a user; acquiring user configuration content in the user information, and determining a user role based on the user configuration content in the service operating system, wherein the user role is a role displayed after a user logs in the service operating system; extracting and displaying a service template carried by the user roles in the service operation system, wherein the service template is used for indicating a service query scheme of the user roles, and each user role corresponds to one service template; and acquiring user query content in the user information, and querying the user query content in the carried service template to obtain a query result.
Optionally, in a first implementation manner of the first aspect of the present invention, the obtaining user information and configuring a service operating system through the user information, where the system for the service operating system to perform data query for a user includes: acquiring a plurality of mark vectors in user information; mapping a plurality of mark vectors into a plurality of eigenvectors through a mapping matrix to obtain a plurality of eigenvectors, and calculating the similarity between each eigenvector and a plurality of preset vectors to obtain a plurality of basic similarities, wherein the preset vectors are used for indicating service options in a service operating system, and the service operating system is a system for a user to perform data query; and for each feature vector, selecting the target similarity with the maximum basic similarity value, taking the user information corresponding to the mark vector for calculating the target similarity as target user information, and configuring the target user information in the service options in the service operating system.
Optionally, in a second implementation manner of the first aspect of the present invention, the obtaining user configuration content in the user information, and in the service operating system, determining a user role based on the user configuration content, where the user role is a role displayed after a user logs in the service operating system, includes: acquiring user configuration content in the user information, and extracting role codes from the user configuration content, wherein the role codes are serial numbers corresponding to user roles in the service operating system; comparing the role code with preset codes, and judging whether the role code is the same as the preset codes, wherein the preset codes are numbers set by a plurality of preset user roles configured in advance in the service operating system, and each preset code corresponds to one preset user role; and if the role code is the same as the preset code, taking the preset user role corresponding to the preset code as the user role of the user, wherein the user role is the role displayed after the user logs in the service operating system.
Optionally, in a third implementation manner of the first aspect of the present invention, the obtaining user query content in the user information, and querying the user query content in the carried service template to obtain a query result includes: acquiring user query content in the user information, wherein the user query content comprises service data codes; and inquiring a preset service data code consistent with the service data code in the carried service template, and calling service information carried by the preset service data code to obtain an inquiry result.
Optionally, in a fourth implementation manner of the first aspect of the present invention, before the obtaining user information and configuring a service operating system through the user information, where the service operating system is a system for performing data query for a user, the method for querying data further includes: and acquiring service data, and configuring a service template in a service operation system according to the service data.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the obtaining the service data, and configuring, in the service operating system, a service template according to the service data includes: acquiring service data, extracting type identification of the service data, and classifying the service data with the same type identification in a service operation system to obtain a plurality of groups of classified service data; and in each group of classified service data, establishing a service template displayed hierarchically through the logic inclusion relation among the classified service data.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the obtaining the service data and configuring, in the service operating system, the service template according to the service data, the method for querying the data further includes: and configuring the business theme of the business data in the business operating system.
The second aspect of the present invention provides an apparatus for querying data, including: the configuration module is used for acquiring user information and configuring a service operating system through the user information, wherein the service operating system is a system for performing data query on a user; a determining module, configured to obtain user configuration content in the user information, and in the service operating system, determine a user role based on the user configuration content, where the user role is a role displayed after a user logs in the service operating system; the display module is used for extracting and displaying the service templates carried by the user roles in the service operation system, the service templates are used for indicating the service inquiry schemes of the user roles, and each user role corresponds to one service template; and the query module is used for acquiring the user query content in the user information and querying the user query content in the carried service template to obtain a query result.
Optionally, in a first implementation manner of the second aspect of the present invention, the configuration module is specifically configured to: acquiring a plurality of mark vectors in user information; mapping a plurality of mark vectors into a plurality of eigenvectors through a mapping matrix to obtain a plurality of eigenvectors, and calculating the similarity between each eigenvector and a plurality of preset vectors to obtain a plurality of basic similarities, wherein the preset vectors are used for indicating service options in a service operating system, and the service operating system is a system for a user to perform data query; and for each feature vector, selecting the target similarity with the maximum basic similarity value, taking the user information corresponding to the mark vector for calculating the target similarity as target user information, and configuring the target user information in the service options in the service operating system.
Optionally, in a second implementation manner of the second aspect of the present invention, the determining module is specifically configured to: acquiring user configuration content in the user information, and extracting role codes from the user configuration content, wherein the role codes are serial numbers corresponding to user roles in the service operating system; comparing the role code with preset codes, and judging whether the role code is the same as the preset codes, wherein the preset codes are numbers set by a plurality of preset user roles configured in advance in the service operating system, and each preset code corresponds to one preset user role; and if the role code is the same as the preset code, taking the preset user role corresponding to the preset code as the user role of the user, wherein the user role is the role displayed after the user logs in the service operating system.
Optionally, in a third implementation manner of the second aspect of the present invention, the query module is specifically configured to: acquiring user query content in the user information, wherein the user query content comprises service data codes; and inquiring a preset service data code consistent with the service data code in the carried service template, and calling service information carried by the preset service data code to obtain an inquiry result.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the apparatus for querying data further includes: and the acquisition module is used for acquiring the service data and configuring a service template in the service operation system according to the service data.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the obtaining module is specifically configured to: acquiring service data, extracting type identification of the service data, and classifying the service data with the same type identification in a service operation system to obtain a plurality of groups of classified service data; and in each group of classified service data, establishing a service template displayed hierarchically through the logic inclusion relation among the classified service data.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the apparatus for querying data further includes: and the configuration theme module is used for configuring the business theme of the business data in the business operating system.
The third aspect of the present invention provides a device for data query, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the data querying device to perform the data querying method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the above-described method of data query.
In the technical scheme provided by the invention, user information is obtained, and a service operating system is configured through the user information, wherein the service operating system is a system for a user to inquire data; acquiring user configuration content in the user information, and determining a user role based on the user configuration content in the service operating system, wherein the user role is a role displayed after a user logs in the service operating system; extracting and displaying a service template carried by the user roles in the service operation system, wherein the service template is used for indicating a service query scheme of the user roles, and each user role corresponds to one service template; and acquiring user query content in the user information, and querying the user query content in the carried service template to obtain a query result. In the embodiment of the invention, the user information is acquired and the user role is extracted from the user information, the corresponding service template is extracted in the service operation system according to the user role, and finally, the data is inquired in the corresponding service template according to the user inquiry content in the user information to obtain the inquiry result, so that the efficiency of data inquiry is improved.
Drawings
FIG. 1 is a diagram of an embodiment of a method for querying data in an embodiment of the present invention;
FIG. 2 is a diagram of another embodiment of a method for querying data according to an embodiment of the present invention;
FIG. 3 is a diagram of an embodiment of a device for querying data in an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of an apparatus for querying data according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a device for data query in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for data query, which are used for obtaining user information and extracting user roles from the user information, extracting a corresponding service template in a service operation system according to the user roles, and finally querying data in the corresponding template according to the user query content in the user information to obtain a query result, thereby improving the efficiency of data query.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For understanding, a detailed flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of the method for querying data in the embodiment of the present invention includes:
101. acquiring user information, and configuring a service operating system through the user information, wherein the service operating system is a system for performing data query for a user;
it is to be understood that the execution subject of the present invention may be a device for data query, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
The user information here includes basic information of the user, for example: the server, after obtaining the user information, configures the user information into a business operating system, so that relevant information of a corresponding user appears in the business system, where the business operating system refers to a system that enables the user to query user data information, such as: vehicle insurance systems, banking systems, and fund systems, among others. After the user information is configured in the business operation system, the information can be queried in the business operation system through the user query information in the user information.
It should be noted that the service operating system corresponds to a database, and information of a plurality of users is stored in the database, for example, vehicle information, vehicle insurance type, vehicle insurance limit, and the like of the user X are stored in the vehicle insurance system, and when the user X needs to query the vehicle insurance limit data, the user X may select information corresponding to the query by configuring basic information of the user in the vehicle insurance system.
102. Acquiring user configuration content in user information, and determining a user role based on the user configuration content in a service operating system, wherein the user role is a role displayed after a user logs in the service operating system;
the server extracts user configuration content in the user information, wherein the user configuration content refers to role codes of the user information, for example, in an examination result inquiry system, a student is a user, a number corresponding to the student is a role code, and in the examination result inquiry system, the student can inquire various examination results of the corresponding student according to the number. It should be noted that, here, each user corresponds to one role code, where the role codes are generated by the service operating system when inputting user information, and each role code is different, and the role codes may be numbers, letters, or a combination of numbers and letters, and in this application, the role codes are not limited, and in addition, the coding rules of the role codes may be arranged in order of natural numbers, or the year, month and day of birth may be added after the first letter of the user as a coding rule, and in this application, the coding rules of the role codes are not limited.
103. Extracting and displaying a service template carried by user roles in a service operation system, wherein the service template is used for indicating a service inquiry scheme of the user roles, and each user role corresponds to one service template;
after the server determines the user role displayed by the user in the service operating system, according to the configuration information in the service operating system, extracting a service template carried by the user role in the service operating system, where the service template is set in the service operating system in advance, and in addition, different user roles correspond to different service templates, for example: taking the examination result query system as an example, when the user role is a student, after entering the business operation system, the business template corresponding to the student user is the query template, the corresponding examination result can be queried in the query template, when the user role is a teacher, after entering the business operation system, the business template corresponding to the teacher user is the input template, and the student result can be input in the input template. Therefore, different user roles correspond to different service templates, the purpose of inquiring or changing data according to the service templates can be achieved, the classification data under the service data is displayed hierarchically in the form of the service templates in the service operating system, and the inquiring efficiency of the data inquiry is improved by the structure.
104. And acquiring the user query content in the user information, and querying the user query content in the carried service template to obtain a query result.
After a service template corresponding to a user role is displayed by a server, the server acquires user query content in user information, wherein the user query content comprises a service data code, then the server queries a preset service data code consistent with the service data code in the service template, the preset service data code is used for indicating the service data corresponding to the user role, and the query data required by the user is queried according to a service option displayed in the service template by a hierarchy to obtain a query result.
In the embodiment of the invention, the user information is acquired and the user role is extracted from the user information, the corresponding service template is extracted in the service operation system according to the user role, and finally, the data is inquired in the corresponding template according to the user inquiry content in the user information to obtain the inquiry result, so that the efficiency of data inquiry is improved.
Referring to fig. 2, another embodiment of the method for querying data according to the embodiment of the present invention includes:
201. acquiring service data, and configuring a service template in a service operation system according to the service data;
the server acquires the service data, extracts the type identification of the service data, and classifies the service data with the same type identification in a service operation system to obtain a plurality of groups of classified service data; in each group of classified service data, the server establishes a service template displayed hierarchically through the logical inclusion relationship between the classified service data.
The server obtains service data, where the service data refers to an item label that a user role needs to be queried, and takes configuring a service template in an insurance service system as an example, according to a type identifier of the service data, the service data is divided into a plurality of groups of classified service data, which are respectively: personal property product line, group's property product line and little product line, when the user role is personal property, the categorised business datum of type sign for personal property product line in the extraction business datum, this categorised business datum includes: the system comprises a standard product, a self-selection product, a general product and an employee product, wherein a service template for hierarchical display is established according to logic inclusion relation among classified service data, a product large option appears after personal financial interests are clicked in a service operating system, the product large option comprises the standard product option, the self-selection product option, the general product option and the employee product option in parallel, and the standard product option comprises a basic information option, a package information option, a personnel information option and an insurance deadline option in parallel. The service template is configured in the service operation system in such a way.
202. Configuring a business theme of business data in a business operation system;
after the server configures the service template in the service operating system, the server may configure a service theme in the service operating system, where configuring the service theme includes: the size of the display data, the color of the display data, the arrangement rule of the display data, and the like. The server can configure different service themes for different user roles, so that different display interfaces of different user roles can be obviously distinguished when the data is inquired, and the service operating system is more distinctive.
203. Acquiring user information, and configuring a service operating system through the user information, wherein the service operating system is a system for performing data query for a user;
the server firstly obtains a plurality of mark vectors in user information; then the server maps a plurality of mark vectors into a plurality of eigenvectors through a mapping matrix to obtain a plurality of eigenvectors, and calculates the similarity between each eigenvector and a plurality of preset vectors to obtain a plurality of basic similarities, wherein the preset vectors are used for indicating service options in a service operating system, and the service operating system is a system for a user to perform data query; and finally, for each feature vector, the server selects the target similarity with the maximum basic similarity value, takes the user information corresponding to the sign vector for calculating the target similarity as the target user information, and configures the target user information in the service options in the service operation system.
When a user needs to query different types of business data in the business operating system, the user needs to log in the business operating system to query data by using different types of accounts when the user needs to query different types of business data, so that the operation is not only tedious, but also reduces the query efficiency of the user for querying the data. The server logs in the service operation system through the user information, acquires the user configuration information in the service operation system, and determines the roles displayed by the user in the service operation system according to the role codes in the user configuration information, wherein the different roles carry different service templates, and the types of data inquired in the service templates are different, so that the data inquiry efficiency is improved by the data inquiry mode.
Here, the multiple flag vectors in the user information refer to options with flag in the user information, for example: the known user information is the user name: zhang III; age of the user: 30, of a nitrogen-containing gas; the user native: beijing, China; the user identity card: 1234567891011, where the mark vector refers to four label items of user name, user age, user native place and user ID card, the server maps these mark vectors into feature vectors, and calculates the basic similarity between each mark vector and the preset vector set in the service operation system, selects the target similarity with the maximum basic similarity, takes the user information corresponding to the mark vector with calculated target similarity as the target user information, and configures the target user information in the service option in the service operation system. It should be noted that the preset vector is a service option set in the service operating system in advance, that is, a vector representing a user name, a user age, a user native place, and a user identification card, such as: after calculating that the basic similarity between the feature vector representing the user name and the preset vector representing the user name is 100%, directly taking the user information corresponding to the user name three as the target user information, and configuring the target user information in corresponding options in the business operating system, thereby completing the configuration of the business operating system according to the user information.
204. Acquiring user configuration content in user information, and determining a user role based on the user configuration content in a service operating system, wherein the user role is a role displayed after a user logs in the service operating system;
the server firstly acquires user configuration content in user information, and extracts role codes from the user configuration content, wherein the role codes are serial numbers corresponding to user roles in a service operation system; secondly, the server compares the role code with preset codes, judges whether the role code is the same as the preset codes or not, the preset codes are numbers set by a plurality of preset user roles configured in advance in a service operating system, and each preset code corresponds to one preset user role; and if the role code is the same as the preset code, the server takes the preset user role corresponding to the preset code as the user role of the user, and the user role is the role displayed after the user logs in the service operating system.
The server extracts user configuration content in the user information, wherein the user configuration content refers to role codes of the user information, for example, in an examination result inquiry system, a student is a user, a number corresponding to the student is a role code, and in the examination result inquiry system, the student can inquire various examination results of the corresponding student according to the number. It should be noted that, here, each user corresponds to one role code, where the role codes are generated by the service operating system when inputting user information, and each role code is different, and the role codes may be numbers, letters, or a combination of numbers and letters, and in this application, the role codes are not limited, and in addition, the coding rules of the role codes may be arranged in order of natural numbers, or the year, month and day of birth may be added after the first letter of the user as a coding rule, and in this application, the rules of the role codes are not limited.
For example, the following steps are carried out: taking the service query in the insurance service system as an example, the preset code in the service operation system may be: 0: "R _ ICORE _ TOSS _ GRZBHR" represents a personal role product line; 1: "R _ ICORE _ TOSS _ XWZBHR" represents a small micro-character product line; 2: "R _ ICORE _ TOSS _ TTZBHR" represents a team role product line; 3: the "R _ ICORE _ TOSS _ tyzbhr" represents a group-meaning role product line, and if the role code obtained in the user configuration information by the server is 0, it indicates that the role displayed by the user in the service operating system is a personal role product line.
205. Extracting and displaying a service template carried by user roles in a service operation system, wherein the service template is used for indicating a service inquiry scheme of the user roles, and each user role corresponds to one service template;
after the server determines the user role displayed by the user in the service operating system, according to the configuration information in the service operating system, extracting a service template carried by the user role in the service operating system, where the service template is set in the service operating system in advance, and in addition, different user roles correspond to different service templates, for example: taking the examination result query system as an example, when the user role is a student, after entering the business operation system, the business template corresponding to the student user is the query template, the corresponding examination result can be queried in the query template, when the user role is a teacher, after entering the business operation system, the business template corresponding to the teacher user is the input template, and the student result can be input in the input template. Therefore, different user roles correspond to different service templates, the purpose of inquiring or changing data according to the service templates can be achieved, the classification data under the service data is displayed hierarchically in the form of the service templates in the service operating system, and the structure improves the inquiring efficiency of the data inquiry.
206. And acquiring the user query content in the user information, and querying the user query content in the carried service template to obtain a query result.
The server acquires user query contents in the user information, wherein the user query contents comprise service data codes; then the server inquires the preset service data code consistent with the service data code in the carried service template, and calls the service information carried by the preset service data code to obtain an inquiry result.
After a service template corresponding to a user role is displayed by a server, the server acquires user query content in user information, wherein the user query content comprises a service data code, then the server queries a preset service data code consistent with the service data code in the service template, the preset service data code is used for indicating the service data corresponding to the user role, and the query data required by the user is queried according to a service option displayed in the service template by a hierarchy to obtain a query result.
In the embodiment of the invention, the user information is acquired and the user role is extracted from the user information, the corresponding service template is extracted in the service operation system according to the user role, and finally, the data is inquired in the corresponding template according to the user inquiry content in the user information to obtain the inquiry result, so that the efficiency of data inquiry is improved.
With reference to fig. 3, the data query method in the embodiment of the present invention is described above, and a data query apparatus in the embodiment of the present invention is described below, where an embodiment of the data query apparatus in the embodiment of the present invention includes:
a configuration module 301, configured to obtain user information, and configure a service operating system through the user information, where the service operating system is a system for a user to perform data query;
a determining module 302, configured to obtain user configuration content in the user information, and in the service operating system, determine a user role based on the user configuration content, where the user role is a role displayed after a user logs in the service operating system;
a display module 303, configured to extract and display a service template carried by the user role in the service operating system, where the service template is used to indicate a service query scheme of the user role, and each user role corresponds to one service template;
the query module 304 is configured to obtain user query content in the user information, and query the user query content in the carried service template to obtain a query result.
In the embodiment of the invention, the user information is acquired and the user role is extracted from the user information, the corresponding service template is extracted in the service operation system according to the user role, and finally, the data is inquired in the corresponding template according to the user inquiry content in the user information to obtain the inquiry result, so that the efficiency of data inquiry is improved.
Referring to fig. 4, another embodiment of the apparatus for querying data according to the embodiment of the present invention includes:
a configuration module 301, configured to obtain user information, and configure a service operating system through the user information, where the service operating system is a system for a user to perform data query;
a determining module 302, configured to obtain user configuration content in the user information, and in the service operating system, determine a user role based on the user configuration content, where the user role is a role displayed after a user logs in the service operating system;
a display module 303, configured to extract and display a service template carried by the user role in the service operating system, where the service template is used to indicate a service query scheme of the user role, and each user role corresponds to one service template;
the query module 304 is configured to obtain user query content in the user information, and query the user query content in the carried service template to obtain a query result.
Optionally, the configuration module 301 may be further specifically configured to:
acquiring a plurality of mark vectors in user information;
mapping a plurality of mark vectors into a plurality of eigenvectors through a mapping matrix to obtain a plurality of eigenvectors, and calculating the similarity between each eigenvector and a plurality of preset vectors to obtain a plurality of basic similarities, wherein the preset vectors are used for indicating service options in a service operating system, and the service operating system is a system for a user to perform data query;
and for each feature vector, selecting the target similarity with the maximum basic similarity value, taking the user information corresponding to the mark vector for calculating the target similarity as target user information, and configuring the target user information in the service options in the service operating system.
Optionally, the determining module 302 may be further specifically configured to:
acquiring user configuration content in the user information, and extracting role codes from the user configuration content, wherein the role codes are serial numbers corresponding to user roles in the service operating system;
comparing the role code with preset codes, and judging whether the role code is the same as the preset codes, wherein the preset codes are numbers set by a plurality of preset user roles configured in advance in the service operating system, and each preset code corresponds to one preset user role;
and if the role code is the same as the preset code, taking the preset user role corresponding to the preset code as the user role of the user, wherein the user role is the role displayed after the user logs in the service operating system.
Optionally, the query module 304 may be further specifically configured to:
acquiring user query content in the user information, wherein the user query content comprises service data codes;
and inquiring a preset service data code consistent with the service data code in the carried service template, and calling service information carried by the preset service data code to obtain an inquiry result.
Optionally, the data querying apparatus further includes:
the obtaining module 305 is configured to obtain service data, and configure a service template in a service operating system according to the service data.
Optionally, the obtaining module 305 may be further specifically configured to:
acquiring service data, extracting type identification of the service data, and classifying the service data with the same type identification in a service operation system to obtain a plurality of groups of classified service data;
and in each group of classified service data, establishing a service template displayed hierarchically through the logic inclusion relation among the classified service data.
Optionally, the data querying apparatus further includes:
a configuration theme module 306, configured to configure a business theme of the business data in the business operating system.
In the embodiment of the invention, the user information is acquired and the user role is extracted from the user information, the corresponding service template is extracted in the service operation system according to the user role, and finally, the data is inquired in the corresponding template according to the user inquiry content in the user information to obtain the inquiry result, so that the efficiency of data inquiry is improved.
The above fig. 3 and fig. 4 describe the apparatus for data query in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the following describes the apparatus for data query in the embodiment of the present invention in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a data querying device according to an embodiment of the present invention, where the data querying device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing applications 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored on the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the device 500 for querying data. Still further, the processor 510 may be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the data querying device 500.
The data querying device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input-output interfaces 560, and/or one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the data querying device configuration shown in fig. 5 does not constitute a limitation of the data querying device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the method of data querying.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for data query, the method for data query comprising:
acquiring user information, and configuring a service operating system through the user information, wherein the service operating system is a system for performing data query on a user;
acquiring user configuration content in the user information, and determining a user role based on the user configuration content in the service operating system, wherein the user role is a role displayed after a user logs in the service operating system;
extracting and displaying a service template carried by the user roles in the service operation system, wherein the service template is used for indicating a service query scheme of the user roles, and each user role corresponds to one service template;
and acquiring user query content in the user information, and querying the user query content in the carried service template to obtain a query result.
2. The method according to claim 1, wherein the obtaining user information and configuring a service operating system through the user information, the system for the service operating system to perform data query for a user comprises:
acquiring a plurality of mark vectors in user information;
mapping a plurality of mark vectors into a plurality of eigenvectors through a mapping matrix to obtain a plurality of eigenvectors, and calculating the similarity between each eigenvector and a plurality of preset vectors to obtain a plurality of basic similarities, wherein the preset vectors are used for indicating service options in a service operating system, and the service operating system is a system for a user to perform data query;
and for each feature vector, selecting the target similarity with the maximum basic similarity value, taking the user information corresponding to the mark vector for calculating the target similarity as target user information, and configuring the target user information in the service options in the service operating system.
3. The method of claim 1, wherein the obtaining the user configuration content in the user information, and in the service operating system, determining a user role based on the user configuration content, where the user role is a role displayed after a user logs in the service operating system, includes:
acquiring user configuration content in the user information, and extracting role codes from the user configuration content, wherein the role codes are serial numbers corresponding to user roles in the service operating system;
comparing the role code with preset codes, and judging whether the role code is the same as the preset codes, wherein the preset codes are numbers set by a plurality of preset user roles configured in advance in the service operating system, and each preset code corresponds to one preset user role;
and if the role code is the same as the preset code, taking the preset user role corresponding to the preset code as the user role of the user, wherein the user role is the role displayed after the user logs in the service operating system.
4. The method according to claim 1, wherein the obtaining of the user query content in the user information and the querying of the user query content in the carried service template to obtain the query result comprises:
acquiring user query content in the user information, wherein the user query content comprises service data codes;
and inquiring a preset service data code consistent with the service data code in the carried service template, and calling service information carried by the preset service data code to obtain an inquiry result.
5. The method according to any one of claims 1 to 4, wherein before the obtaining user information and configuring a service operating system through the user information, the service operating system is a system for performing data query for a user, the method further comprises:
and acquiring service data, and configuring a service template in a service operation system according to the service data.
6. The method of claim 5, wherein the obtaining the service data and configuring the service template according to the service data in the service operating system comprises:
acquiring service data, extracting type identification of the service data, and classifying the service data with the same type identification in a service operation system to obtain a plurality of groups of classified service data;
and in each group of classified service data, establishing a service template displayed hierarchically through the logic inclusion relation among the classified service data.
7. The method of claim 5, wherein after the obtaining the service data and configuring the service template according to the service data in the service operating system, the method of querying data further comprises:
and configuring the business theme of the business data in the business operating system.
8. An apparatus for querying data, the apparatus comprising:
the configuration module is used for acquiring user information and configuring a service operating system through the user information, wherein the service operating system is a system for performing data query on a user;
a determining module, configured to obtain user configuration content in the user information, and in the service operating system, determine a user role based on the user configuration content, where the user role is a role displayed after a user logs in the service operating system;
the display module is used for extracting and displaying the service templates carried by the user roles in the service operation system, the service templates are used for indicating the service inquiry schemes of the user roles, and each user role corresponds to one service template;
and the query module is used for acquiring the user query content in the user information and querying the user query content in the carried service template to obtain a query result.
9. A data query device, the data query device comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the data querying device to perform the method of data querying as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of data query according to any one of claims 1 to 7.
CN202010880824.8A 2020-08-27 2020-08-27 Method, device, equipment and storage medium for data query Active CN112000701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010880824.8A CN112000701B (en) 2020-08-27 2020-08-27 Method, device, equipment and storage medium for data query

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010880824.8A CN112000701B (en) 2020-08-27 2020-08-27 Method, device, equipment and storage medium for data query

Publications (2)

Publication Number Publication Date
CN112000701A true CN112000701A (en) 2020-11-27
CN112000701B CN112000701B (en) 2023-11-28

Family

ID=73471851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010880824.8A Active CN112000701B (en) 2020-08-27 2020-08-27 Method, device, equipment and storage medium for data query

Country Status (1)

Country Link
CN (1) CN112000701B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089483A (en) * 2023-03-16 2023-05-09 深圳市思为软件技术有限公司 Event query method and related device based on real estate management system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545047A (en) * 2017-08-17 2018-01-05 平安科技(深圳)有限公司 The querying method and terminal device of user right data
US20190102571A1 (en) * 2017-10-03 2019-04-04 Servicenow, Inc. Searching for encrypted data within cloud based platform
CN109739873A (en) * 2018-12-27 2019-05-10 广州市玄武无线科技股份有限公司 A kind of business datum querying method, device, equipment and readable storage medium storing program for executing
CN109753492A (en) * 2019-01-02 2019-05-14 陕西西部资信股份有限公司 A kind of system constituting method and device based on metadata configurations
CN110287709A (en) * 2019-05-22 2019-09-27 深圳壹账通智能科技有限公司 User's operation authority control method, device, equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545047A (en) * 2017-08-17 2018-01-05 平安科技(深圳)有限公司 The querying method and terminal device of user right data
US20190102571A1 (en) * 2017-10-03 2019-04-04 Servicenow, Inc. Searching for encrypted data within cloud based platform
CN109739873A (en) * 2018-12-27 2019-05-10 广州市玄武无线科技股份有限公司 A kind of business datum querying method, device, equipment and readable storage medium storing program for executing
CN109753492A (en) * 2019-01-02 2019-05-14 陕西西部资信股份有限公司 A kind of system constituting method and device based on metadata configurations
CN110287709A (en) * 2019-05-22 2019-09-27 深圳壹账通智能科技有限公司 User's operation authority control method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116089483A (en) * 2023-03-16 2023-05-09 深圳市思为软件技术有限公司 Event query method and related device based on real estate management system
CN116089483B (en) * 2023-03-16 2023-07-18 深圳市思为软件技术有限公司 Event query method and related device based on real estate management system

Also Published As

Publication number Publication date
CN112000701B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
US20190171873A1 (en) Cognitive document image digitization
JP2019502979A (en) Automatic interpretation of structured multi-field file layouts
CN111125086B (en) Method, device, storage medium and processor for acquiring data resources
US9501554B2 (en) Image processing system, image processing method, and image processing program
US20210319039A1 (en) Extraction of a nested hierarchical structure from text data in an unstructured version of a document
CN112418798A (en) Information auditing method and device, electronic equipment and storage medium
CN110765101A (en) Label generation method and device, computer readable storage medium and server
CN111522901A (en) Method and device for processing address information in text
CN115203309A (en) Method and device for structuring bid-winning data of webpage
CN113836038A (en) Test data construction method, device, equipment and storage medium
CN115599885A (en) Document full-text retrieval method and device, computer equipment, storage medium and product
CN112000701A (en) Data query method, device, equipment and storage medium
US20240134860A1 (en) Order searching method, apparatus, computer device, and storage medium
CN111402068B (en) Premium data analysis method and device based on big data and storage medium
CN117150138A (en) Scientific and technological resource organization method and system based on high-dimensional space mapping
US11520827B2 (en) Converting unlabeled data into labeled data
CN109544348B (en) Asset security screening method, device and computer readable storage medium
CN115525761A (en) Method, device, equipment and storage medium for article keyword screening category
CN114996386A (en) Business role identification method, device, equipment and storage medium
US11170164B2 (en) System and method for cell comparison between spreadsheets
JP6763967B2 (en) Data conversion device and data conversion method
CN115392206B (en) Method, device and equipment for quickly querying data based on WPS/EXCEL and storage medium
CN111046629B (en) Outline display method, device and equipment
CN114663903B (en) Text data classification method, device, equipment and storage medium
CN113112179A (en) Merchant number generation method, device, equipment and storage medium

Legal Events

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