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

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

Info

Publication number
CN114911841A
CN114911841A CN202210362018.0A CN202210362018A CN114911841A CN 114911841 A CN114911841 A CN 114911841A CN 202210362018 A CN202210362018 A CN 202210362018A CN 114911841 A CN114911841 A CN 114911841A
Authority
CN
China
Prior art keywords
query
identification information
data
requester
attribute information
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.)
Pending
Application number
CN202210362018.0A
Other languages
Chinese (zh)
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202210362018.0A priority Critical patent/CN114911841A/en
Publication of CN114911841A publication Critical patent/CN114911841A/en
Pending legal-status Critical Current

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/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • 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/2453Query optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data query method, a data query device, computer equipment and a storage medium. The method comprises the following steps: when a data query request sent by a data query requester is detected, performing entry query transaction according to the data query request to obtain identification information of a query object; sending the query object and the identification information to a data query requester; performing component query transaction according to the identification information of the query object to obtain attribute information of the query object; and sending the attribute information of the query object to a data query requester so that the data query requester can display the identification information and the attribute information of the query object. By using the technical scheme of the invention, the efficient utilization of server resources can be realized.

Description

Data query method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data query method and apparatus, a computer device, and a storage medium.
Background
With the development of internet technology, palm bank, internet bank, counter, super counter, self-service terminal and the like can be used as transaction initiators to send query requests to a server, and the query requests received by the server are increasing.
In the prior art, the query transaction is usually performed by the event trigger of the data query requester. When the server executes a query transaction, a large amount of logic processing, database reading, file system interaction and the like are performed. Taking the fund product information query of the palm bank end as an example, when a user queries a saleable product list, the server queries product information of a plurality of products under multiple dimensions and multiple attributes, and feeds back the query result to the palm bank end. However, in practical applications, a user interactive interface presents limited information, and the information required by the user may be only a part of the query results. Therefore, the data query method in the prior art has the problems of large resource consumption, resource waste, low query efficiency and slow response.
Disclosure of Invention
The invention provides a data query method, a data query device, computer equipment and a storage medium, which are used for realizing the efficient utilization of server resources.
In a first aspect, an embodiment of the present invention provides a data query method, which is executed by a server, and the method includes:
when a data query request sent by a data query requester is detected, performing entry query transaction according to the data query request to obtain identification information of a query object;
sending the query object and the identification information to a data query requester;
performing component query transaction according to the identification information of the query object to obtain attribute information of the query object;
and sending the attribute information of the query object to a data query requester so that the data query requester displays the identification information and the attribute information of the query object.
In a second aspect, an embodiment of the present invention further provides a data query apparatus, deployed in a server, where the apparatus includes:
the entrance query module is used for performing entrance query transaction according to the data query request when detecting the data query request sent by the data query requester so as to obtain the identification information of a query object;
the identification information sending module is used for sending the query object and the identification information to the data query requester;
the component query module is used for performing component query transaction according to the identification information of the query object to obtain attribute information of the query object;
and the attribute information sending module is used for sending the attribute information of the query object to the data query requester so as to enable the data query requester to display the identification information and the attribute information of the query object.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the data query method according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium storing computer-executable instructions, which when executed by a computer processor, are used to perform the data query method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, one query is divided into an entry query transaction and an assembly query transaction to be completed, the entry query transaction queries and obtains identification information of a query object according to a data query request, the query object and the identification information of the query object are fed back to a data query requester, the assembly query transaction queries and obtains attribute information of the query object according to the identification information, and the attribute information is fed back to the data query requester. The problems that in the prior art, the resource consumption is high and the query efficiency is low in a mode of feeding back the information of the query object under the conditions of multiple dimensions and multiple attributes after the information is completely queried in one query transaction are solved, the efficient utilization of server resources is realized, and the query efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a data query method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a data query method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data query device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations 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, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a data query method, which is applicable to a case of performing data query according to a data query request of a data query requester, and is implemented by a data query device, where the data query device may be implemented in hardware and/or software, and the data query device may be configured in a server and used with the data query requester.
As shown in fig. 1, the method includes:
s110, when a data query request sent by a data query requester is detected, performing entry query transaction according to the data query request to obtain identification information of a query object.
In a specific application scenario of banking business, when a user queries data from data query requesters such as bank palms, internet banks, counter tops, super counters and self-service terminals, the user triggers data query by clicking a button and the like. And after detecting the user operation, the data query requester sends a data query request to the server.
In the embodiment of the invention, the data query process is completed through a plurality of query transactions. The first query transaction in the data query process is an entry query transaction. Illustratively, the entry query transaction may be a purchasable item listing query, a user position listing query, or an information query for a single item.
The identification information of the query object may be a unique tag of the query object, or may be key attribute information of the query object. For example, when the portal transaction is a fund product information query, the identification information of the query object may be a fund code of the fund product.
The entrance query transaction can be divided into a single query transaction and a plurality of query transactions, and the number of the entrance query transactions does not exceed the number of the query objects. Correspondingly, when the number of the query objects is one, the entry query transaction is a single query transaction; when the number of the query objects is multiple, the entry query transaction is a multi-query transaction. A single query transaction returns identification information for a single query object, and multiple query transactions return identification information for multiple query objects.
The number of the entry query transaction is determined for the server, and specifically, the server may determine the number of the entry query transaction according to the concurrency amount of the data query requester, the resource occupation condition, the response time, the current data query efficiency, and other factors. For example, when the data query requester is a counter terminal device, because the display screen is large, and the counter user, i.e., the teller, is familiar with the service, in order to facilitate the teller to obtain a large amount of product information at one time, the teller may initiate multiple entry query transactions to query the identification information of multiple products when querying the product information through the transaction interface of the display. In another example, when the data query requester is a mobile terminal and the user queries the information of the fund product through a palm bank, a small number of entry query transactions can be initiated to query the identification information of a small number of products due to the small screen of the mobile terminal and the less knowledge of the customer on the service.
In the embodiment of the invention, only the identification information of the query object is determined through the portal query transaction, so that the processing process of the server to the program logic can be reduced, the access to the data storage system is reduced, the excessive consumption of network resources and the redundancy of query results are avoided, and the efficient utilization of the server resources is realized.
And S120, sending the query object and the identification information to a data query requester.
After the server obtains the identification information of the query object through the entry query transaction, the query object and the identification information are fed back to the data query requester. And after the data query requester receives the query object and the identification information, determining whether to display the query object and the identification information according to the type and the service requirement of the data query requester.
The data query requester can directly display the query object and the identification information returned by the entry query transaction. Illustratively, when the data query requester is a mobile terminal, and a user queries the information of the fund product through a palm bank, because the user has less knowledge about the service, a plurality of interfaces are needed to guide the user, and the information required to be displayed on each interface is less, the query object and the identification information returned by the portal query transaction can be directly displayed.
The data query requester can also store the query object and the identification information thereof, wait for the result fed back by the component query transaction, assemble the result and display the result together. For example, when the data query requester is a counter terminal device, since the display screen is large and the counter user, i.e., the teller, is familiar with the service, the teller can obtain a large amount of product information at one time, and query the attribute information of the product through the component query transaction when the teller queries the product information through the transaction interface of the display. After receiving the query object and the identification information returned by the entry query transaction, the data query requester can be displayed together with the attribute information queried by the component query transaction after being spliced.
S130, conducting component query transaction according to the identification information of the query object to obtain attribute information of the query object.
The component query transaction is used for performing the transaction of querying the related attribute information of the query object according to the identification information of the query object and other query conditions in the data query request. Illustratively, when the data query request is to perform fund product information query, the portal query transaction returns identification information of each fund product, and the component query transaction can perform product latest net value query, product sale time query, product manager query, product description query, product investment target query and the like according to the identification information of each fund product.
The component query transaction can also be divided into a single query transaction and a plurality of query transactions, and the number of the component query transactions is matched with the number of the attributes of the query object.
In the embodiment of the invention, the combination is flexible by combining the entrance query transaction and the component query transaction, the flexible combination calling can be carried out according to the actual needs of the data query requester service, and the resource consumption of the query transaction is reduced.
Optionally, performing component query transaction according to the identification information of the query object to obtain attribute information of the query object, where the method includes: and performing component query transaction according to the identification information of the query object, and determining attribute information matched with the identification information in an attribute database as the attribute information of the query object.
And the component query transaction takes the identification information of the query object as a query condition, and queries in the attribute database to obtain the attribute information of each query object. The data query expandability is improved, and when the query attribute is expanded, the expansion of a query interface at the bottom layer is not needed, and only the newly added query component transaction and attribute database are needed.
Optionally, the component query transaction may also be used as an entry query transaction: determining identification information of a query object; and performing component query transaction according to the identification information of the query object to obtain attribute information of the query object.
In the embodiment of the present invention, after the data query requester has saved the identification information of each query object, when the query process for a certain query object is triggered again, the data query requester may send a data query request to the server according to the query object. After receiving the data query request, the server determines the identification information of the query object and queries corresponding attribute information according to the identification information. Illustratively, when a user inquires about a fund purchasable product through a palm bank of the mobile terminal, the server acquires identification information and attribute information of each purchasable fund product through entry inquiry transaction and component inquiry transaction, after a data inquiry requester displays a display interface, the user clicks an A fund product in a purchasable fund product list, at the moment, the data inquiry requester stores the identification information of the A fund product, after sending a data inquiry request to the server, the server inquires and acquires other attribute information of the A fund product and feeds the other attribute information back to the data inquiry requester, and after the data inquiry requester combines all information of the A fund product, the detailed information interface of the A fund product is displayed to the user.
S140, the attribute information of the query object is sent to the data query request party, so that the data query request party displays the identification information and the attribute information of the query object.
In the embodiment of the invention, after the server obtains the attribute information of the query object through the component query transaction, the server sends the attribute information of the query object to the data query requester. After the data query requester obtains each query object, the identification information and the attribute information thereof, the information can be displayed through a user interaction interface.
According to the technical scheme of the embodiment of the invention, one query is divided into an entry query transaction and an assembly query transaction to be completed, the entry query transaction queries and obtains identification information of a query object according to a data query request, the query object and the identification information of the query object are fed back to a data query requester, the assembly query transaction queries and obtains attribute information of the query object according to the identification information, and the attribute information is fed back to the data query requester. The problems that in the prior art, the resource consumption is high and the query efficiency is low in a mode of feeding back the information of the query object under the conditions of multiple dimensions and multiple attributes after the information is completely queried in one query transaction are solved, the efficient utilization of server resources is realized, and the query efficiency is improved.
Example two
Fig. 2 is a flowchart of a data query method according to a second embodiment of the present invention, where the second embodiment of the present invention further embodies a process of querying to obtain identification information of a query object and a process of querying to obtain attribute information, and adds a step of performing component query transaction directly according to the identification information of the query object, and a step of creating a new component query transaction when a query attribute is added.
As shown in fig. 2, the method includes:
s210, judging whether a data query request sent by a data query requester is detected, if so, executing S220, otherwise, returning to execute S210.
After receiving the data query request sent by the data query requester, the server parses the data query request to obtain the query condition, the query object attribute, and the like, or obtain the query condition and the data query requester type, and determines the query object attribute according to the data query requester type, which is not limited in this embodiment.
S220, performing entrance transaction query according to the data query request, and determining the identification information of the query object in the identification database.
The identification database only stores identification information of each product, and does not store specific attribute information of each product.
And S230, sending the query object and the identification information to a data query requester.
In the above embodiments, the query object and the identification information are sent to the data query requester, and the data query requester constructs the display interface according to the query object and the identification information, which is not described herein again.
S240, determining at least one attribute of the query object according to the data query request.
Wherein the number of attributes of the query object matches the type of the data query requestor. Specifically, the number of attributes of the query object may be predetermined according to the business needs of the data query requester, the size of the interface, and other factors.
Determining at least one attribute of the query object according to the data query request, wherein the attribute of the query object is determined by the data query requester according to factors such as actual service requirements, interface size and the like, generating the data query request according to the determined attributes, performing entry query transaction after the server receives the data query request, and performing component query transaction according to the analyzed attribute of the query object. The server may also preset a corresponding relationship between the type of the data query requester and the query condition and the attribute of the query object, and after receiving the data query request sent by the data query requester, the server determines the attribute of the corresponding query object according to the type of the data query requester, which is not limited in this embodiment.
And S250, performing component query transaction according to the identification information and the attribute of the query object to obtain attribute information of the query object.
In the embodiment of the invention, the server queries different attribute information of the query object by calling different components to query the transaction. For example, when the product detail information is queried, the latest net worth information, the latest selling period information and the quota information of each query object can be queried by calling the latest net worth query transaction, the latest selling period query transaction and the quota query transaction. The component query object takes the identification information of the query object as an input condition, and the attribute information of the query object is searched and obtained in the attribute database.
And S260, sending the attribute information of the query object to a data query requester so that the data query requester assembles and displays the identification information and the attribute information of the query object.
In this embodiment, taking an example that one query process includes an entry query transaction and a component query transaction, a query object and identification information thereof fed back by the entry query transaction and attribute information fed back by the component query transaction are assembled to generate a user interaction interface, and the user interaction interface is displayed to a user.
In some specific application scenarios, when the data query requester is a mobile terminal deployed with a palmtop bank, since product information required to be displayed on each user interaction interface is less, component transaction may not be invoked in one query process, and at this time, a query object and identification information thereof fed back by an entry query transaction are directly displayed, which is not limited in this embodiment.
And S270, judging whether the query object has the newly added attribute, if so, executing S280, otherwise, returning to execute S210.
S280, creating a newly added component query transaction matched with the newly added attribute so as to query the newly added attribute information of the query object according to the newly added query component transaction.
In the embodiment of the invention, when the query attribute of the query object is expanded, the query of the newly added attribute information can be realized only by establishing the attribute database matched with the newly added attribute and establishing the query transaction of the newly added component. Compared with the prior art, the method for modifying the interface of the query transaction during the expansion of the query attribute has the advantages that the technical scheme of the embodiment can be used for synchronously modifying the data query request party without modifying the interface, particularly, when the query transaction has a plurality of called data query request parties, the modification cost is high, the modification cost during the expansion of the query attribute is reduced, and meanwhile, the risk of other transactions caused by the modification and the upgrading of the interface is avoided.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a data query device according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: an entry query module 310, an identification information transmission module 320, a component query module 330, and an attribute information transmission module 340.
The entry query module 310 is configured to, when detecting a data query request sent by a data query requester, perform entry query transaction according to the data query request to obtain identification information of a query object;
an identification information sending module 320, configured to send the query object and the identification information to the data query requester;
the component query module 330 is configured to perform component query transaction according to the identification information of the query object, so as to obtain attribute information of the query object;
the attribute information sending module 340 is configured to send the attribute information of the query object to the data query requester, so that the data query requester displays the identification information and the attribute information of the query object.
According to the technical scheme of the embodiment of the invention, one query is divided into an entry query transaction and an assembly query transaction to be completed, the entry query transaction queries and obtains identification information of a query object according to a data query request, the query object and the identification information of the query object are fed back to a data query requester, the assembly query transaction queries and obtains attribute information of the query object according to the identification information, and the attribute information is fed back to the data query requester. The problems that in the prior art, the resource consumption is high and the query efficiency is low in a mode of feeding back the information of the query object under the conditions of multiple dimensions and multiple attributes after the information is completely queried in one query transaction are solved, the efficient utilization of server resources is realized, and the query efficiency is improved.
On the basis of the embodiment, the number of the entry query transactions is smaller than or equal to the number of the query objects, the number of the entry query transactions is determined for the server, and the number of the component query transactions is matched with the number of the attributes of the query objects.
On the basis of the above embodiment, the component query module 330 includes:
the attribute determining unit is used for determining at least one attribute of the query object according to the data query request;
the number of the attributes of the query object is matched with the type of the data query requester;
and the attribute information acquisition unit is used for carrying out component query transaction according to the identification information and the attribute of the query object to obtain the attribute information of the query object.
On the basis of the above embodiment, the portal query module 310 includes:
the entrance query unit is used for performing entrance transaction query according to the data query request and determining the identification information of a query object in the identification database;
a component query module 330, comprising:
and the component query unit is used for performing component query transaction according to the identification information of the query object, and determining attribute information matched with the identification information in the attribute database as the attribute information of the query object.
On the basis of the above embodiment, the attribute information sending module 340 includes:
and the attribute information sending unit is used for sending the attribute information of the query object to the data query requester so that the data query requester assembles the identification information and the attribute information of the query object and displays the assembled identification information and attribute information.
On the basis of the above embodiment, the apparatus further includes:
the identification information determining module is used for determining the identification information of the query object;
and the component query transaction module is used for performing component query transaction according to the identification information of the query object to obtain the attribute information of the query object.
On the basis of the above embodiment, the apparatus further includes:
and the component query transaction adding module is used for creating a new component query transaction matched with the new attribute if the new attribute of the query object is determined to exist, so as to query the new attribute information of the query object according to the new query component transaction.
The data query device provided by the embodiment of the invention can execute the data query method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of a computer apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the computer apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of processors 70 in the computer device may be one or more, and one processor 70 is taken as an example in fig. 4; the processor 70, the memory 71, the input device 72 and the output device 73 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 4.
The memory 71 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as modules corresponding to the data query method in the embodiment of the present invention (for example, the entry query module 310, the identification information sending module 320, the component query module 330, and the attribute information sending module 340 in the data query device). The processor 70 executes various functional applications of the computer device and data processing by executing software programs, instructions and modules stored in the memory 71, that is, implements the data query method described above. The method comprises the following steps:
when a data query request sent by a data query requester is detected, performing entry query transaction according to the data query request to obtain identification information of a query object;
sending the query object and the identification information to a data query requester;
performing component query transaction according to the identification information of the query object to obtain attribute information of the query object;
and sending the attribute information of the query object to a data query requester so that the data query requester displays the identification information and the attribute information of the query object.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to a computer device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function controls of the computer apparatus. The output device 73 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a data query method, including:
when a data query request sent by a data query requester is detected, performing entry query transaction according to the data query request to obtain identification information of a query object;
sending the query object and the identification information to a data query requester;
performing component query transaction according to the identification information of the query object to obtain attribute information of the query object;
and sending the attribute information of the query object to a data query requester so that the data query requester displays the identification information and the attribute information of the query object.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the data query method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the data query apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A data query method, performed by a server, the method comprising:
when a data query request sent by a data query requester is detected, performing entry query transaction according to the data query request to obtain identification information of a query object;
sending the query object and the identification information to a data query requester;
performing component query transaction according to the identification information of the query object to obtain attribute information of the query object;
and sending the attribute information of the query object to a data query requester so that the data query requester can display the identification information and the attribute information of the query object.
2. The method of claim 1, wherein the number of entry query transactions is less than or equal to the number of query objects, the number of entry query transactions is determined for the server, and the number of component query transactions matches the number of attributes of the query objects.
3. The method of claim 2, wherein performing a component query transaction based on the identification information of the query object to obtain attribute information of the query object comprises:
determining at least one attribute of a query object according to the data query request;
the number of the attributes of the query object is matched with the type of the data query requester;
and performing component query transaction according to the identification information and the attribute of the query object to obtain attribute information of the query object.
4. The method of claim 1, wherein performing an entry query transaction according to the data query request to obtain identification information of the query object comprises:
performing entry transaction query according to the data query request, and determining the identification information of a query object in an identification database;
according to the identification information of the query object, conducting component query transaction to obtain attribute information of the query object, wherein the attribute information comprises the following steps:
and performing component query transaction according to the identification information of the query object, and determining attribute information matched with the identification information in an attribute database as the attribute information of the query object.
5. The method of claim 1, wherein sending the attribute information of the query object to the data query requester so that the data query requester can display the identification information and the attribute information of the query object comprises:
and sending the attribute information of the query object to a data query requester so that the data query requester assembles and displays the identification information and the attribute information of the query object.
6. The method of claim 1, further comprising:
determining identification information of a query object;
and performing component query transaction according to the identification information of the query object to obtain attribute information of the query object.
7. The method of claim 1, wherein after sending the attribute information of the query object to the data query requester, further comprising:
and if the newly added attribute of the query object is determined, creating a newly added component query transaction matched with the newly added attribute so as to query the newly added attribute information of the query object according to the newly added query component transaction.
8. A data query apparatus, disposed in a server, the apparatus comprising:
the entrance query module is used for carrying out entrance query transaction according to the data query request when detecting the data query request sent by the data query requester so as to obtain the identification information of a query object;
the identification information sending module is used for sending the query object and the identification information to the data query requester;
the component query module is used for performing component query transaction according to the identification information of the query object to obtain attribute information of the query object;
and the attribute information sending module is used for sending the attribute information of the query object to the data query requester so as to enable the data query requester to display the identification information and the attribute information of the query object.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data query method of any one of claims 1-7 when executing the program.
10. A storage medium storing computer-executable instructions, which when executed by a computer processor, are for performing the data query method of any one of claims 1-7.
CN202210362018.0A 2022-04-07 2022-04-07 Data query method and device, computer equipment and storage medium Pending CN114911841A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210362018.0A CN114911841A (en) 2022-04-07 2022-04-07 Data query method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210362018.0A CN114911841A (en) 2022-04-07 2022-04-07 Data query method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114911841A true CN114911841A (en) 2022-08-16

Family

ID=82762360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210362018.0A Pending CN114911841A (en) 2022-04-07 2022-04-07 Data query method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114911841A (en)

Similar Documents

Publication Publication Date Title
CN110245069B (en) Page version testing method and device and page display method and device
CN109922132B (en) Form request processing method and device, electronic equipment and storage medium
CN110489440B (en) Data query method and device
CN108038009B (en) Front-end and back-end interaction method and device based on Web application and computer equipment
CN105590243A (en) Method, system, client, and server for centralized processing on discrete data
CN112099684A (en) Search display method and device and electronic equipment
CN111737300A (en) Service processing method, device, equipment and computer readable storage medium
CN115759433A (en) Method and device for determining waiting duration of business handling and server
CN110688581A (en) Information real-time pushing method and device, computing equipment and medium
CN112819638A (en) Transaction weight judging method, device, equipment and computer readable medium
CN112596617A (en) Message content input method and device and electronic equipment
US20200127908A1 (en) Monitoring cloud computing
CN114911841A (en) Data query method and device, computer equipment and storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN115291773A (en) Tree structure data display method and device
CN108390924A (en) Order fulfillment method and device
CN114237900A (en) Block chain business transaction execution method, device, equipment and readable storage medium
CN114048225A (en) Data monitoring method and device and computer equipment
CN113625967A (en) Data storage method, data query method and server
CN111611077A (en) Task parameter processing method, terminal and storage medium
CN114648410A (en) Stock staring method, apparatus, system, device and medium
CN111881148A (en) Object combination attribute determination method and device and electronic equipment
CN109561146A (en) Document down loading method, device, terminal device
CN114584605B (en) Service distribution method and device, electronic equipment and storage medium
CN117808556A (en) Shopping cart data processing method, device, equipment and readable 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