CN112000701B - Method, device, equipment and storage medium for data query - Google Patents

Method, device, equipment and storage medium for data query Download PDF

Info

Publication number
CN112000701B
CN112000701B CN202010880824.8A CN202010880824A CN112000701B CN 112000701 B CN112000701 B CN 112000701B CN 202010880824 A CN202010880824 A CN 202010880824A CN 112000701 B CN112000701 B CN 112000701B
Authority
CN
China
Prior art keywords
user
service
data
operation system
role
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.)
Active
Application number
CN202010880824.8A
Other languages
Chinese (zh)
Other versions
CN112000701A (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

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)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (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, configuring a service operation system through the user information, and inquiring data for a user by the service operation system; acquiring user configuration content in user information, and determining a user role based on the user configuration content in a service operation system, wherein the user role is a role displayed after a user logs in the service operation system; extracting and displaying a service template carried by a user role in a service operation system, wherein the service template is used for indicating a service query scheme of the user role, and each user role corresponds to one service template; and acquiring user query contents in the user information, and querying the user query contents in the carried service template to obtain a query result.

Description

Method, device, equipment and storage medium for data query
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 querying data.
Background
With the rapid development of computer technology, management systems of different business types are an integral part of various industries. For example, the system A comprises a background sales management system and a set of corresponding mobile terminal pages, and the inquiry of service data is realized through the configuration of the background and the interaction between the mobile terminal pages and users. Three different user role classifications exist in the system A, namely a management user, a checking user and a service user, wherein the service user can inquire different service data in the same system.
The existing management system distributes a role account to a service user to query service data, but when the service user needs to query two different service data at the same time, the original role account needs to be exited and a new role account needs to be logged in again for operation, so that the query mode has low query efficiency.
Disclosure of Invention
The invention mainly aims to solve the problem of low query efficiency of data query.
The first aspect of the invention provides a data query method, comprising the following steps: acquiring user information, and configuring a service operation system through the user information, wherein the service operation system is a system for inquiring data of a user; acquiring user configuration content in the user information, and determining a user role based on the user configuration content in the service operation system, wherein the user role is a role displayed after a user logs in the service operation system; extracting and displaying a service template carried by the user role in the service operation system, wherein the service template is used for indicating a service query scheme of the user role, and each user role corresponds to one service template; and acquiring user query contents in the user information, and querying the user query contents 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 system for acquiring user information and configuring a service operating system through the user information, where the service operating system performs data query for a user includes: acquiring a plurality of mark vectors in user information; mapping the plurality of mark vectors into feature vectors through a mapping matrix to obtain a plurality of feature vectors, and calculating the similarity between each feature vector 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 operation system, and the service operation system is a system for inquiring data of a user; and selecting the target similarity with the maximum basic similarity value for each feature vector, taking the user information corresponding to the sign vector for calculating the target similarity as target user information, and configuring the target user information in service options in the service operation system.
Optionally, in a second implementation manner of the first aspect of the present invention, the obtaining, in the service operating system, user configuration content in the user information, and determining, based on the user configuration content, a user role, where the user role is a role displayed after the user logs in to 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 sequence numbers corresponding to user roles in the service operation system; comparing the role code with preset codes, 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 operation system, and each preset code corresponds to one preset user role; and if the character code is the same as the preset code, taking the preset user character corresponding to the preset code as the user character of the user, wherein the user character is displayed after the user logs in the service operation 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 a service data code; 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 inquiring result.
Optionally, in a fourth implementation manner of the first aspect of the present invention, before the acquiring user information and configuring a service operating system through the user information, the service operating system performs a 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 acquiring service data, configuring, in a service operating system, a service template according to the service data includes: acquiring service data, extracting type identifiers of the service data, and classifying the service data with the same type identifiers in a service operation system to obtain a plurality of groups of classified service data; in each group of classified service data, a service template of hierarchical display is established through a logic inclusion relation between the classified service data.
Optionally, in a sixth implementation manner of the first aspect of the present invention, after the acquiring service data and configuring a service template according to the service data in a service operating system, the method for querying data further includes: and configuring the business theme of the business data in the business operation 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 operation system through the user information, wherein the service operation system is a system for inquiring data of a user; the determining module is used for obtaining user configuration content in the user information, and determining a user role based on the user configuration content in the service operation system, wherein the user role is a role displayed after a user logs in the service operation system; the display module is used for 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 inquiry scheme of the user roles, and each user role corresponds to one service template; and the query module is used for acquiring user query contents in the user information, and querying the user query contents 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 the plurality of mark vectors into feature vectors through a mapping matrix to obtain a plurality of feature vectors, and calculating the similarity between each feature vector 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 operation system, and the service operation system is a system for inquiring data of a user; and selecting the target similarity with the maximum basic similarity value for each feature vector, taking the user information corresponding to the sign vector for calculating the target similarity as target user information, and configuring the target user information in service options in the service operation 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 sequence numbers corresponding to user roles in the service operation system; comparing the role code with preset codes, 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 operation system, and each preset code corresponds to one preset user role; and if the character code is the same as the preset code, taking the preset user character corresponding to the preset code as the user character of the user, wherein the user character is displayed after the user logs in the service operation 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 a service data code; 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 inquiring result.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the apparatus for querying data further includes: the acquisition module is used for 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 second aspect of the present invention, the acquiring module is specifically configured to: acquiring service data, extracting type identifiers of the service data, and classifying the service data with the same type identifiers in a service operation system to obtain a plurality of groups of classified service data; in each group of classified service data, a service template of hierarchical display is established through a logic inclusion relation between 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 operation system.
A third aspect of the present invention provides an apparatus for data querying, comprising: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being 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 invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of data querying described above.
In the technical scheme provided by the invention, the user information is acquired, and a service operation system is configured through the user information, wherein the service operation system is a system for inquiring data of a user; acquiring user configuration content in the user information, and determining a user role based on the user configuration content in the service operation system, wherein the user role is a role displayed after a user logs in the service operation system; extracting and displaying a service template carried by the user role in the service operation system, wherein the service template is used for indicating a service query scheme of the user role, and each user role corresponds to one service template; and acquiring user query contents in the user information, and querying the user query contents in the carried service template to obtain a query result. In the embodiment of the invention, the user information is acquired, 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 queried in the corresponding service template according to the user query content in the user information, so that the query result is obtained, and the data query efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of one embodiment of a method for data polling in an embodiment of the invention;
FIG. 2 is a schematic diagram of another embodiment of a method of data polling in an embodiment of the invention;
FIG. 3 is a schematic diagram of an embodiment of an apparatus for data polling in an embodiment of the invention;
FIG. 4 is a schematic diagram of another embodiment of an apparatus for data polling in an embodiment of the invention;
fig. 5 is a schematic diagram of an embodiment of a device for data polling in an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a data query method, a device, equipment and a storage medium, which are used for obtaining user information and extracting user roles from the user information, extracting corresponding service templates in a service operation system according to the user roles, and finally, carrying out data query in the corresponding templates according to user query contents in the user information to obtain query results, thereby improving the data query efficiency.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, 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 or inherent to such process, method, article, or apparatus.
For ease of understanding, a specific flow of an embodiment of the present invention is described below with reference to fig. 1, and one embodiment of a method for data polling in an embodiment of the present invention includes:
101. acquiring user information, configuring a service operation system through the user information, and inquiring data for a user by the service operation system;
it will be appreciated 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 invention is described by taking a server as an execution main body as an example.
The user information here includes basic information of the user, such as: user name, user age, user place and user identity card, etc., after the server obtains the user information, the user information is configured into a service operation system, so that relevant information of the corresponding user appears in the service system, where the service operation system refers to a system capable of letting the user query the user data information, for example: vehicle insurance systems, banking systems, and fund systems, and the like. After the user information is configured in the service operation system, the information can be queried in the service operation system through the user query information in the user information.
The service operation system corresponds to a database, in which information of a plurality of users is stored, for example, vehicle information of the user X, a vehicle insurance type, a vehicle insurance period, and the like are stored in the vehicle insurance system, and when the user X needs to query the vehicle insurance period data, the user X needs to select information corresponding to the information to be queried 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 operation system, wherein the user role is a role displayed after a user logs in the service operation system;
the server extracts user configuration content from the user information, wherein the user configuration content refers to character codes of the user information, for example, students are users in an examination score inquiring system, corresponding student numbers are character codes, and the students can inquire the scientific examination scores of the corresponding students according to the student numbers in the examination score inquiring system. It should be noted that, here, each user corresponds to a role code, where the role code is generated when the service operating system inputs user information, and each role code is different, and the role code may be a number, a letter, or a combination of a number and a letter, where the role code is not limited in the present application, and in addition, the coding rules of the role code may be a regular arrangement of natural numbers, or a first letter of the user may be added with a date of birth as a coding rule, and in the present application, the coding rules of the role code are not limited.
103. Extracting and displaying a service template carried by a user role in a service operation system, wherein the service template is used for indicating a service query scheme of the user role, and each user role corresponds to one service template;
after the server determines the user roles displayed in the service operation system, extracting the service templates carried by the user roles in the service operation system according to the configuration information in the service operation system, wherein the service templates are set in the service operation system in advance, and in addition, different user roles correspond to different service templates, for example: taking an examination score query system as an example, when a user role is a student, after entering a business operation system, a business template corresponding to the student user is a query template, so that the corresponding examination score 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 an input template, and the score of the student 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 service operation system adopts the form of the service templates, classified data under service data are displayed in a hierarchical mode, and the structure improves the inquiring efficiency of data inquiry.
104. And acquiring user query contents in the user information, and querying the user query contents in the carried service template to obtain a query result.
After the server displays the service template corresponding to the user role, the server acquires the user query content in the user information, wherein the user query content comprises service data codes, then the server queries preset service data codes consistent with the service data codes in the service template, the preset service data codes are used for indicating the service data corresponding to the user role, and query results are obtained by querying the query data required by the user according to service options displayed in the service template in a hierarchical manner.
In the embodiment of the invention, the user information is acquired, 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 queried in the corresponding template according to the user query content in the user information, so that the query result is obtained, and the data query efficiency is improved.
Referring to fig. 2, another embodiment of the method for data polling 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 service data, extracts type identifiers of the service data, classifies the service data with the same type identifiers in a service operation system, and obtains a plurality of groups of classified service data; in each group of classified service data, the server establishes a service template of hierarchical display through a logic inclusion relation between classified service data.
The server acquires service data, wherein the service data refers to item labels which need to be queried by a user role, and takes configuration of a service template in a security service system as an example, according to type identification of the service data, the service data is divided into a plurality of groups of classified service data, which are respectively: when the user role is personal finance, extracting classified service data of which the type is identified as the personal finance product line from the service data, wherein the classified service data comprises: the method comprises the steps of establishing a service template with hierarchical display according to logic containing relations among classified service data, wherein a product major option appears after personal finance is clicked in a service operation system, the product major option comprises a standard product option, a self-selected product option, a general product option and an 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 period option in parallel. In this way, the business templates are configured in the business operating system.
202. Configuring a service theme of service data in a service operation system;
after the server configures the service template in the service operation system, the server may configure a service theme in the service operation 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 topics for different user roles, so that different display interfaces of different user roles in data query can be distinguished obviously, and the service operation system has more differentiation.
203. Acquiring user information, configuring a service operation system through the user information, and inquiring data for a user by the service operation system;
the server firstly acquires a plurality of mark vectors in the user information; then the server maps a plurality of mark vectors into feature vectors through a mapping matrix to obtain a plurality of feature vectors, calculates the similarity between each feature vector 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 operation system, and the service operation system is a system for inquiring data of a user; 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 mark vector for calculating the target similarity as target user information, and configures the target user information in service options in a service operation system.
In the process that a user queries the service in the service operation system, the types of the query service required by different users are different, and when the user needs to query the service data of different types, the user needs to log in the service operation system by different types of account numbers to query the data, so that the operation is complicated, and the query efficiency of the user for querying the data is reduced. The server logs in the service operation system through the user information, acquires the user configuration information in the service operation system, determines the roles displayed in the service operation system by the user according to the role codes in the user configuration information, and has different service templates carried by different roles and different types of data queried in the service templates.
The plurality of flag vectors in the user information refers to options having a flag in the user information, for example: the known user information is the user name: thirdly, stretching; age of user: 30; the user's native place: beijing, china; user identity card: 1234567891011 the flag vectors refer to four tag items of user name, user age, user place and user identity card, the server maps the flag vectors into feature vectors, calculates basic similarity between each flag vector and a preset vector arranged in a service operation system, selects target similarity with the largest basic similarity value, uses user information corresponding to the flag vector for calculating the target similarity as target user information, and configures the target user information in service options in the service operation system. It should be noted that, the preset vector here is a service option set in advance in the service operating system, that is, a vector representing the name, age, place and identity of the user, for example: and calculating the basic similarity between the feature vector representing the user name and the preset vector representing the user name to be 100%, directly taking the user information corresponding to the user name as target user information, and configuring the target user information in the corresponding options in the service operation system, so that the service operation system is configured 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 operation system, wherein the user role is a role displayed after a user logs in the service operation system;
firstly, a server acquires user configuration content in user information, and extracts character codes from the user configuration content, wherein the character codes are sequence numbers corresponding to user characters in a service operation system; secondly, the server compares the character codes with preset codes, judges whether the character codes are the same as the preset codes or not, wherein the preset codes are numbers set by a plurality of preset user characters configured in advance in a service operation system, and each preset code corresponds to one preset user character; if the character code is the same as the preset code, the server takes the preset user character corresponding to the preset code as the user character of the user, wherein the user character is the character displayed after the user logs in the service operation system.
The server extracts user configuration content from the user information, wherein the user configuration content refers to character codes of the user information, for example, students are users in an examination score inquiring system, corresponding student numbers are character codes, and the students can inquire the scientific examination scores of the corresponding students according to the student numbers in the examination score inquiring system. It should be noted that, here, each user corresponds to a role code, where the role code is generated when the service operating system inputs user information, and each role code is different, and the role code may be a number, a letter, or a combination of a number and a letter, where the role code is not limited in the present application, and in addition, the coding rule of the role code may be a regular arrangement of natural numbers, or a first letter of the user may be added with a date of birth as a coding rule, and in the present application, the coding rule of the role code is not limited.
Illustrating: taking service inquiry in a security service system as an example, preset codes in a service operation system may be: 0: "R_ICORE_TOSS_GRZBHBR" represents the personal role product line; 1: "R_ICORE_TOSS_XWZBHBR" represents the small micro-character product line; 2: "R_ICORE_TOSS_TTZBHBR" represents the community character product line; 3: "R_ICORE_TOSS_TYZBHBR" represents the group-intention character product line, and if the server obtains that the character code in the user configuration information is 0, it indicates that the character displayed by the user in the service operation system is a personal character product line.
205. Extracting and displaying a service template carried by a user role in a service operation system, wherein the service template is used for indicating a service query scheme of the user role, and each user role corresponds to one service template;
after the server determines the user roles displayed in the service operation system, extracting the service templates carried by the user roles in the service operation system according to the configuration information in the service operation system, wherein the service templates are set in the service operation system in advance, and in addition, different user roles correspond to different service templates, for example: taking an examination score query system as an example, when a user role is a student, after entering a business operation system, a business template corresponding to the student user is a query template, so that the corresponding examination score 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 an input template, and the score of the student can be input in the input template. Therefore, different user roles correspond to different service templates, the purpose of data query or change according to the service templates can be achieved, the service operation system adopts the form of the service templates, classified data under service data are displayed in a hierarchical mode, and the structure improves the query efficiency of data query.
206. And acquiring user query contents in the user information, and querying the user query contents in the carried service template to obtain a query result.
The server acquires user query content in the user information, wherein the user query content comprises service data codes; and then the server inquires a preset service data code consistent with the service data code in the carried service template, and invokes the service information carried by the preset service data code to obtain an inquiry result.
After the server displays the service template corresponding to the user role, the server acquires the user query content in the user information, wherein the user query content comprises service data codes, then the server queries preset service data codes consistent with the service data codes in the service template, the preset service data codes are used for indicating the service data corresponding to the user role, and query results are obtained by querying the query data required by the user according to service options displayed in the service template in a hierarchical manner.
In the embodiment of the invention, the user information is acquired, 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 queried in the corresponding template according to the user query content in the user information, so that the query result is obtained, and the data query efficiency is improved.
Having described the method for data polling in the embodiment of the present invention, the following describes the apparatus for data polling in the embodiment of the present invention, referring to fig. 3, one embodiment of the apparatus for data polling in the embodiment of the present invention includes:
the configuration module 301 is configured to obtain user information, and configure a service operating system according to the user information, where the service operating system is a system for performing data query for a user;
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;
the display module 303 is 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;
and 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, 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 queried in the corresponding template according to the user query content in the user information, so that the query result is obtained, and the data query efficiency is improved.
Referring to fig. 4, another embodiment of an apparatus for data polling according to an embodiment of the present invention includes:
the configuration module 301 is configured to obtain user information, and configure a service operating system according to the user information, where the service operating system is a system for performing data query for a user;
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;
the display module 303 is 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;
And 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 the plurality of mark vectors into feature vectors through a mapping matrix to obtain a plurality of feature vectors, and calculating the similarity between each feature vector 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 operation system, and the service operation system is a system for inquiring data of a user;
and selecting the target similarity with the maximum basic similarity value for each feature vector, taking the user information corresponding to the sign vector for calculating the target similarity as target user information, and configuring the target user information in service options in the service operation 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 sequence numbers corresponding to user roles in the service operation system;
Comparing the role code with preset codes, 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 operation system, and each preset code corresponds to one preset user role;
and if the character code is the same as the preset code, taking the preset user character corresponding to the preset code as the user character of the user, wherein the user character is displayed after the user logs in the service operation 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 a service data code;
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 inquiring result.
Optionally, the data query device further includes:
and the acquiring module 305 is configured to acquire 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 identifiers of the service data, and classifying the service data with the same type identifiers in a service operation system to obtain a plurality of groups of classified service data;
in each group of classified service data, a service template of hierarchical display is established through a logic inclusion relation between the classified service data.
Optionally, the data query device further includes:
a configuration theme module 306, configured to configure a service theme of the service data in the service operating system.
In the embodiment of the invention, the user information is acquired, 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 queried in the corresponding template according to the user query content in the user information, so that the query result is obtained, and the data query efficiency is improved.
The apparatus for data query in the embodiment of the present invention is described in detail above in fig. 3 and fig. 4 from the point of view of the modularized functional entity, and the apparatus for data query in the embodiment of the present invention is described in detail below from the point of view of hardware processing.
Fig. 5 is a schematic structural diagram of a device for querying data, where the device 500 for querying data may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 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) storing application programs 533 or data 532 according to an embodiment of the present invention. Wherein memory 520 and storage medium 530 may be transitory 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 data querying. Still further, the processor 510 may be arranged to communicate with a storage medium 530 to execute a series of instruction operations in the storage medium 530 on the data querying device 500.
The device 500 for data querying 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 Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the device structure of the data query shown in FIG. 5 does not constitute a limitation on the device of the data query, and may include more or fewer components than shown, or may combine certain components, or may be 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, or a volatile computer readable storage medium, having stored therein instructions that, when executed on a computer, cause the computer to perform the steps of the method of data querying.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of data querying, the method of data querying comprising:
acquiring user information, and configuring a service operation system through the user information, wherein the service operation system is a system for inquiring data of a user;
acquiring user configuration content in the user information, and determining a user role based on the user configuration content in the service operation system, wherein the user role is a role displayed after a user logs in the service operation system;
extracting and displaying a service template carried by the user role in the service operation system, wherein the service template is used for indicating a service query scheme of the user role, and each user role corresponds to one service template;
acquiring user query content in the user information, and querying the user query content in the carried service template to obtain a query result;
the system for acquiring the user information and configuring the service operation system through the user information, wherein the service operation system performs data query for the user and comprises the following components:
acquiring a plurality of mark vectors in user information;
mapping the plurality of mark vectors into feature vectors through a mapping matrix to obtain a plurality of feature vectors, and calculating the similarity between each feature vector 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 operation system, and the service operation system is a system for inquiring data of a user;
For each feature vector, selecting a target similarity with the maximum basic similarity value, taking user information corresponding to a mark vector for calculating the target similarity as target user information, and configuring the target user information in service options in the service operation system;
the obtaining the user configuration content in the user information, in the service operation system, determining a user role based on the user configuration content, wherein the user role is displayed after the user logs in the service operation system and comprises the following steps:
acquiring user configuration content in the user information, and extracting role codes from the user configuration content, wherein the role codes are sequence numbers corresponding to user roles in the service operation system;
comparing the role code with preset codes, 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 operation system, and each preset code corresponds to one preset user role;
if the character code is the same as the preset code, taking the preset user character corresponding to the preset code as a user character of a user, wherein the user character is a character displayed after the user logs in the service operation system;
The step of obtaining the user query content in the user information and querying the user query content in the carried service template to obtain a query result comprises the following steps:
acquiring user query content in the user information, wherein the user query content comprises a service data code;
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 inquiring result.
2. The method of claim 1, wherein prior to said obtaining user information and configuring a service operating system with said user information, said service operating system is a system for user data querying, said method further comprises:
and acquiring service data, and configuring a service template in a service operation system according to the service data.
3. The method of claim 2, wherein the obtaining service data, and configuring a service template in a service operating system according to the service data, comprises:
acquiring service data, extracting type identifiers of the service data, and classifying the service data with the same type identifiers in a service operation system to obtain a plurality of groups of classified service data;
In each group of classified service data, a service template of hierarchical display is established through a logic inclusion relation between the classified service data.
4. The method of claim 2, 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 data query further comprises:
and configuring the business theme of the business data in the business operation system.
5. An apparatus for querying data, the apparatus comprising:
the configuration module is used for acquiring user information and configuring a service operation system through the user information, wherein the service operation system is a system for inquiring data of a user;
the determining module is used for obtaining user configuration content in the user information, and determining a user role based on the user configuration content in the service operation system, wherein the user role is a role displayed after a user logs in the service operation system;
the display module is used for 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 inquiry scheme of the user roles, and each user role corresponds to one service template;
The query module is used for acquiring user query contents in the user information, and querying the user query contents in the carried business template to obtain a query result;
the configuration module is specifically configured to:
acquiring a plurality of mark vectors in user information;
mapping the plurality of mark vectors into feature vectors through a mapping matrix to obtain a plurality of feature vectors, and calculating the similarity between each feature vector 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 operation system, and the service operation system is a system for inquiring data of a user;
for each feature vector, selecting a target similarity with the maximum basic similarity value, taking user information corresponding to a mark vector for calculating the target similarity as target user information, and configuring the target user information in service options in the service operation system;
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 sequence numbers corresponding to user roles in the service operation system;
Comparing the role code with preset codes, 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 operation system, and each preset code corresponds to one preset user role;
if the character code is the same as the preset code, taking the preset user character corresponding to the preset code as a user character of a user, wherein the user character is a character displayed after the user logs in the service operation system;
the query module is specifically configured to:
acquiring user query content in the user information, wherein the user query content comprises a service data code;
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 inquiring result.
6. The apparatus for data querying as in claim 5, wherein the apparatus for data querying further comprises: the acquisition module is used for acquiring service data and configuring a service template in a service operation system according to the service data.
7. The apparatus of claim 6, wherein the obtaining module is specifically configured to: acquiring service data, extracting type identifiers of the service data, and classifying the service data with the same type identifiers in a service operation system to obtain a plurality of groups of classified service data; in each group of classified service data, a service template of hierarchical display is established through a logic inclusion relation between the classified service data.
8. The apparatus for data querying as in claim 6, wherein the apparatus for data querying further comprises: and the configuration theme module is used for configuring the business theme of the business data in the business operation system.
9. An apparatus for data querying, the apparatus for data querying comprising: a memory and at least one processor, the memory having instructions stored therein, the memory and the at least one processor being interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the apparatus of the data query to perform the method of the data query of any of claims 1-4.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of data querying according to any of claims 1-4.
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 CN112000701A (en) 2020-11-27
CN112000701B true 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)

Families Citing this family (1)

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

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10402581B2 (en) * 2017-10-03 2019-09-03 Servicenow, Inc. Searching for encrypted data within cloud based platform

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN112000701A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
US10984344B2 (en) Document classifying device
CN111859195A (en) Information display method, information search method and device
CN109784146A (en) A kind of font type recognition methods, electronic equipment, storage medium
CN112000701B (en) Method, device, equipment and storage medium for data query
CN112231452A (en) Question-answering method, device, equipment and storage medium based on natural language processing
CN113656690A (en) Product recommendation method and device, electronic equipment and readable storage medium
CN110263021B (en) Theme library generation method based on personalized label system
CN116662839A (en) Associated big data cluster analysis method and device based on multidimensional intelligent acquisition
CN114416939A (en) Intelligent question and answer method, device, equipment and storage medium
CN113505273B (en) Data sorting method, device, equipment and medium based on repeated data screening
CN112416992B (en) Industry type identification method, system and equipment based on big data and keywords
CN111402068B (en) Premium data analysis method and device based on big data and storage medium
CN112632260A (en) Intelligent question and answer method and device, electronic equipment and computer readable storage medium
CN112632264A (en) Intelligent question and answer method and device, electronic equipment and storage medium
CN115210705A (en) Vector embedding model for relational tables with invalid or equivalent values
CN112685566A (en) Method, device and equipment for rapidly processing problems and storage medium
CN116340424A (en) Method, device, equipment and storage medium for separately storing report data
CN115525761A (en) Method, device, equipment and storage medium for article keyword screening category
JPH07182368A (en) Data processing system
CN114943306A (en) Intention classification method, device, equipment and storage medium
CN114610854A (en) Intelligent question and answer method, device, equipment and storage medium
CN113590845A (en) Knowledge graph-based document retrieval method and device, electronic equipment and medium
CN109977992B (en) Electronic device, method for identifying batch registration behaviors and storage medium
CN113590856A (en) Label query method and device, electronic equipment and readable storage medium
CN112163926B (en) Clothing chest size matching 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