CN112464099B - Method, device, electronic equipment and medium for generating document based on query data - Google Patents

Method, device, electronic equipment and medium for generating document based on query data Download PDF

Info

Publication number
CN112464099B
CN112464099B CN202011458649.XA CN202011458649A CN112464099B CN 112464099 B CN112464099 B CN 112464099B CN 202011458649 A CN202011458649 A CN 202011458649A CN 112464099 B CN112464099 B CN 112464099B
Authority
CN
China
Prior art keywords
query data
query
page
data
target document
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
CN202011458649.XA
Other languages
Chinese (zh)
Other versions
CN112464099A (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.)
Beijing Mininglamp Software System Co ltd
Original Assignee
Beijing Mininglamp Software System Co 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 Beijing Mininglamp Software System Co ltd filed Critical Beijing Mininglamp Software System Co ltd
Priority to CN202011458649.XA priority Critical patent/CN112464099B/en
Publication of CN112464099A publication Critical patent/CN112464099A/en
Application granted granted Critical
Publication of CN112464099B publication Critical patent/CN112464099B/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • 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)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a method, a device, electronic equipment and a medium for generating a document based on query data, which are applied to terminal equipment, wherein the method comprises the following steps: responding to the selection operation of a user aiming at the query condition, sending a query request carrying the query condition to a server, so that the server returns a query result matched with the query condition to the terminal equipment based on the query request, wherein the query result comprises query data with a storage field in a first format; determining a storage field of a second format corresponding to the query data according to the storage field of the first format corresponding to the query data and a preset configuration library; wherein, the mapping configuration library comprises: mapping relation between the storage field in the first format and the storage field in the second format; and writing the query data into the created target document according to the storage field of the second format corresponding to the query data. The application can quickly acquire the required query data without format adjustment of the user, and improves the generation efficiency of the document.

Description

Method, device, electronic equipment and medium for generating document based on query data
Technical Field
The present application relates to the field of data processing, and in particular, to a method, an apparatus, an electronic device, and a medium for generating a document based on query data.
Background
With the widespread use of the internet, each industry generates online service data when running a service, and accordingly, each industry needs to collect the service data.
At present, the method for summarizing business data in each industry is as follows: and acquiring the online service data, and importing the online service data into a document according to the original data format so as to collect and view the data.
However, the service data on various industry lines at present has the characteristics of various kinds, large data volume, complex structure and non-uniform construction standard, so that the service data with the characteristics is obtained and is imported into the document according to the original data format, and then, the staff converts the data format of the data in the document into the required format. Therefore, in the above data summarizing manner, on one hand, all the service data cannot be obtained quickly, and on the other hand, the data format in the document is manually adjusted, which makes the document generation efficiency low.
Disclosure of Invention
Accordingly, the present application aims to provide a method, an apparatus, an electronic device, and a medium for generating a document based on query data, which can quickly obtain required query data based on query conditions, and write the query data into a target document according to a storage field meeting user requirements based on a preset configuration library, so that format adjustment by a user is not required, and document generation efficiency is improved.
In a first aspect, an embodiment of the present application provides a method for generating a document based on query data, which is applied to a terminal device, and the method includes:
Responding to a selection operation of a user aiming at a query condition, and sending a query request carrying the query condition to a server so that the server returns a query result matched with the query condition to the terminal equipment based on the query request, wherein the query result comprises query data with a storage field in a first format;
Determining a storage field of a second format corresponding to the query data according to the storage field of the first format corresponding to the query data and a preset configuration library; wherein, the configuration library comprises: the mapping relation between the storage field in the first format and the storage field in the second format;
and writing the query data into the created target document according to the storage field of the second format corresponding to the query data.
In a second aspect, an embodiment of the present application further provides an apparatus for generating a document based on query data, where the apparatus includes:
The query module is used for responding to the selection operation of a user for the query condition, sending a query request carrying the query condition to a server, so that the server returns a query result matched with the query condition to the terminal equipment based on the query request, wherein the query result comprises query data with a storage field in a first format;
The first determining module is used for determining the storage field of the second format corresponding to the query data according to the storage field of the first format corresponding to the query data and a preset configuration library; wherein, the configuration library comprises: the mapping relation between the storage field in the first format and the storage field in the second format;
And the first writing module is used for writing the query data into the created target document according to the storage field of the second format corresponding to the query data.
According to the method, the device, the electronic equipment and the medium for generating the document based on the query data, the required query data can be quickly obtained based on the query conditions, and the query data can be written into the target document according to the storage field meeting the user requirements based on the preset configuration library, so that format adjustment of a user is not required, and the generation efficiency of the document is improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a flow chart of a method for generating documents based on query data provided by an embodiment of the application.
FIG. 2 illustrates a flow chart of another method for generating documents based on query data provided by an embodiment of the present application.
Fig. 3 is a schematic structural diagram of an apparatus for generating a document based on query data according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
At present, when the business data on the line is summarized in each industry, the business data on the line is imported into a document according to the original data format, but the business data has the characteristics of various types, large data volume, complex structure and non-uniform construction standard, so the data importing mode is adopted at present, and the following two problems exist: on the one hand, all the service data cannot be obtained quickly, and on the other hand, the data format in the document is manually adjusted, so that the document generation efficiency is low.
Based on the above, the embodiment of the application provides a method, a device, electronic equipment and a medium for generating a document based on query data, which can quickly acquire the required query data based on query conditions, and write the query data into a target document according to a storage field meeting the requirements of a user based on a preset configuration library, so that the user does not need to perform format adjustment, and the generation efficiency of the document is improved.
The method for generating the document based on the query data provided by the embodiment of the application is described in detail below.
Referring to fig. 1, an embodiment of the present application provides a method for generating a document based on query data, which is applied to a terminal device, and the method includes:
S101, responding to a selection operation of a user aiming at a query condition, and sending a query request carrying the query condition to a server so that the server returns a query result matched with the query condition to the terminal equipment based on the query request, wherein the query result comprises query data with a storage field in a first format.
In the embodiment of the application, a target client is installed in the terminal equipment, and the target client can perform data communication with a server corresponding to the target client through the terminal equipment. In one embodiment, the target client is an elastic search client.
The user can specify inquiry conditions in the terminal device by selecting operations, the inquiry conditions including: at least one of the following: query time, data type, scroll properties, etc. Correspondingly, the terminal device sends a query request carrying the query condition to the server. After receiving the query request, the server queries query data meeting the query conditions according to a preset index from the server. Optionally, the selection operation may be a selection operation performed by a user on an existing option, or may be an input operation performed by a user on data.
The scroll attribute is the effective duration of scrolling, and the effective duration is determined according to the target time required by one page of inquiry data to be exported to the target document; that is, the effective time period is longer than or equal to the target time. Through the effective duration, the ordered progress of the query data of each page can be ensured, and the phenomenon of data confusion can not occur. The effective duration of the scroll is that is, how long the elastiscearch needs to keep the context environment of the search, and the effective duration of the scroll is specified by using setScroll () method, and the scroll parameter is new TimeValue (60000).
In another embodiment, the scrolling attribute may be pre-configured in the server.
In the embodiment of the application, the server returns the query result matching the query condition to the terminal equipment based on the query request.
In the embodiment of the application, after receiving the query result, the terminal equipment stores the query result in the memory. In practice, the query is stored in pages, and the query data matching the query request may have multiple pages, and correspondingly, the server sequentially returns the multiple pages of query data to the terminal device; correspondingly, the query result of each time also comprises a page identification, namely a rolling identity number (Identity document, ID).
In a specific embodiment, when there are multiple pages of query data matching the query request, the server returns a query result including the rolling ID of the first page and the query data to the terminal device, the terminal device (i.e., the client) obtains the rolling ID of the current batch (i.e., the first page) of query results through a getScrollId () method, and sends a request to the server according to the rolling ID, so as to obtain the query result of the next batch through the rolling ID, and each batch of query results returns a new rolling ID, and the process is repeated until no residual query data exists.
S102, determining a storage field of a second format corresponding to the query data according to the storage field of the first format corresponding to the query data and a preset configuration library; wherein, the configuration library comprises: mapping relation between the storage field in the first format and the storage field in the second format.
In the embodiment of the present application, a configuration library is preset in a terminal device, and the mapping configuration library includes: mapping relation between the storage field in the first format and the storage field in the second format. For example, a configuration table exists in the configuration library, and has two matched field identifications with different formats, namely a first field identification with a first format and a second field identification with a second format matched with the first format; each field identifies a number of data items (i.e., the storage fields described above) that include a matching format.
For example, a field in the first format identifies "en" which includes the data item in the first format (i.e., the storage field) as: "name", "sex", "age", "height", "weight"; the field of the second format identifies "cn" which includes the data items of the second format (i.e., the storage fields) as: "name", "set", "age", "height", "weight".
Wherein, the data items (i.e. storage fields) in the first format and the second format are in one-to-one correspondence, that is: the "name" corresponds to the "name", the "gender" corresponds to the "sex", the "age" corresponds to the "age", the "height" corresponds to the "height", and the "weight" corresponds to the "weight".
S103, writing the query data into the created target document according to the storage field of the second format corresponding to the query data.
In the embodiment of the application, a target document is pre-established in the terminal equipment, and in one implementation mode, after the terminal equipment receives query data which is returned by the server and matches with the query conditions, the target document is established, and the target document comprises a first page; after acquiring the query data, the terminal device writes the query data into the first page of the target document.
For example, three title fields (i.e. the storage fields in the first format) of the query result are "name", "six" and "age", respectively, and these three data items are matched in the configuration library, if there are storage fields in the second format that are absolutely matched with the three title fields in the configuration table: "name", "gender", "age", then the second format of the storage field: the "name", "gender", "age" is written into the created target document.
Referring to fig. 2, further, the method for generating a document based on query data according to the embodiment of the present application further includes, after writing the query data into the first page of the target document:
S201, if the first page is full, but residual query data still exists, determining first query data corresponding to the first page; wherein the first query data is the last query data in the first page.
In the embodiment of the present application, the target document is Excel. If the total amount of the results of the query data is greater than the maximum line number 1048576 of a page of Excel, which is equivalent to that the page does not have residual memory space, determining the last line data of the Excel page, namely the 1048576 line data, as the first query data.
S202, determining second query data after the first query data according to page identifiers corresponding to the first query data.
In the embodiment of the application, if the first query data is not the last data in the page corresponding to the page identifier (i.e. the rolling ID) where the first query data is located, the corresponding page identifier (i.e. the rolling ID) is first determined according to the first query data, then the position in the page corresponding to the page identifier (i.e. the rolling ID) where the first query data is located is determined, and the next data of the first query data in the page is determined as the second query data.
In another possible case, the first query data is just the last data in the page corresponding to the page identifier (i.e. the rolling ID) where the first query data is located, then the corresponding page identifier (i.e. the rolling ID) is determined according to the first query data, then the next page identifier (i.e. the rolling ID) is determined according to the page identifier (i.e. the rolling ID), and the first data of the page corresponding to the next page identifier (i.e. the rolling ID) is determined as the second query data.
S203, creating a second page of the target document, and writing the second query data and the subsequent query data into the second page.
After writing the second query data and subsequent query data to the second page, the method further comprises: and if the second page is full but the residual query data still exists, taking the second page as a new first page, and returning to the step of determining the first query data corresponding to the first page until the residual query data does not exist.
In addition, in the embodiment of the present application, the second page of the target document is created at two different occasions, specifically including:
first, if the first page is full but there is still remaining query data, a second page of the target document is created.
Second, after determining second query data subsequent to the first query data, a second page of the target document is created.
In the embodiment of the application, when the first page of Excel is full of query data but has residual data, a new Sheet page is created in the current Excel, the page is used as a second page of the target document, then second query data is determined, and the second query data and the subsequent query data are sequentially written into the second page.
In another possible case, after the second page is fully written, the remaining query data still exists, then a new Sheet page is continuously created in the current Excel, the previous second page is used as the first page, the newly created page is used as the new second page, the second query data and the query data after the second query data are sequentially written into the second page, if the data are fully written, the steps are continuously repeated, and the new Sheet page is created as the new second page until all the query data are imported into the Excel.
In another possible case, after determining the second query data subsequent to the first query data, a new Sheet page is created in Excel as the second page.
According to the method for generating the document based on the query data, which is provided by the embodiment of the application, the required query data can be quickly acquired based on the query condition, and the query data can be written into the target document based on the preset configuration library according to the storage field meeting the user requirement, so that the user does not need to adjust the format, and the generation efficiency of the document is improved.
Based on the same inventive concept, the embodiment of the present application further provides a device for generating a document based on query data, which corresponds to the method for generating a document based on query data in the embodiment of the present application.
As shown in fig. 3, the embodiment of the present application further provides an apparatus for generating a document based on query data, where the apparatus includes:
A query module 301, configured to respond to a selection operation for a query condition by a user, and send a query request carrying the query condition to a server, so that the server returns a query result matching the query condition to the terminal device based on the query request, where the query result includes query data with a storage field in a first format;
A first determining module 302, configured to determine, according to a storage field of a first format corresponding to the query data and a preset configuration library, a storage field of a second format corresponding to the query data; wherein, the configuration library comprises: the mapping relation between the storage field in the first format and the storage field in the second format;
And the first writing module 303 is configured to write the query data into the created target document according to the storage field of the second format corresponding to the query data.
In one possible embodiment, the apparatus further comprises:
and the first creating module is used for creating the target document after receiving the query data which is returned by the server and matches the query condition.
In a possible implementation manner, the query result further comprises a page identifier corresponding to the query data, and the target document comprises a first page;
the first writing module 303 writes the query data into the created target document, including: writing the query data into a first page of the target document;
the apparatus further comprises:
A second determining module (not shown in the figure) configured to determine, after writing the query data to a first page of the target document, first query data corresponding to the first page if the first page is full but there is remaining query data; wherein the first query data is the last query data in the first page;
A third determining module (not shown in the figure) configured to determine second query data subsequent to the first query data according to a page identifier corresponding to the first query data;
a second creation module (not shown in the figure) for creating a second page of the target document;
And a second writing module (not shown in the figure) for writing the second query data and the subsequent query data into the second page according to the storage field of the second format corresponding to the query data.
In one possible embodiment, the apparatus further comprises:
and the processing module (not shown in the figure) is used for returning the second page as a new first page to the step of determining the first query data corresponding to the first page until no residual query data exists after the second query data and the subsequent query data are written into the second page if the second page is full but the residual query data still exist.
In one possible implementation manner, the second creating module creates a second page of the target document, including:
If the first page is full but residual query data still exists, creating a second page of the target document;
or alternatively
After determining second query data subsequent to the first query data, a second page of the target document is created.
The embodiment of the application provides a device for generating a document based on query data, which can quickly acquire the required query data based on query conditions, and can write the query data into a target document according to a storage field meeting the requirements of a user based on a preset configuration library, so that the user does not need to adjust the format, and the generation efficiency of the document is improved.
Referring to fig. 4, an electronic device 400 according to an embodiment of the present application includes: a processor 401, a memory 402 and a bus, said memory 402 storing machine-readable instructions executable by said processor 401, said processor 401 communicating with said memory 402 via the bus when the electronic device is running, said processor 401 executing said machine-readable instructions to perform the steps of the method of generating documents based on query data as described above.
Corresponding to the above method for generating a document based on query data, the embodiment of the application further provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor performs the steps of the above method for generating a document based on query data.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, and are not repeated in the present disclosure. In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (12)

1. A method of generating a document based on query data, the method being applied to a terminal device, the method comprising:
Responding to a selection operation of a user aiming at a query condition, and sending a query request carrying the query condition to a server so that the server returns a query result matched with the query condition to the terminal equipment based on the query request, wherein the query result comprises query data with a storage field in a first format; the method comprises the steps that when query data matched with a query request have multiple pages, a server firstly returns the query result comprising the page identifier of a first page and the query data to terminal equipment, the terminal equipment obtains the page identifier of the query result of the current batch, and sends a request to the server according to the page identifier so as to obtain the query result of the next batch through the page identifier, and each batch of query result returns a new page identifier; determining a storage field of a second format corresponding to the query data according to the storage field of the first format corresponding to the query data and a preset configuration library; wherein, the configuration library comprises: the mapping relation between the storage field in the first format and the storage field in the second format;
and writing the query data into the created target document according to the storage field of the second format corresponding to the query data.
2. The method of generating documents based on query data of claim 1, wherein the method further comprises:
and after receiving the query data which is returned by the server and matches the query conditions, creating a target document.
3. A method of generating a document based on query data as claimed in claim 1 or claim 2, wherein the target document comprises a first page;
the writing of the query data into the created target document comprises the following steps: writing the query data into a first page of the target document;
After writing the query data to the first page of the target document, the method further comprises:
If the first page is fully written and residual query data still exist, determining first query data corresponding to the first page; wherein the first query data is the last query data in the first page;
determining second query data after the first query data according to the page identifier corresponding to the first query data;
and creating a second page of the target document, and writing the second query data and the subsequent query data into the second page.
4. A method of generating documents based on query data as claimed in claim 3, wherein after writing the second query data and subsequent query data to the second page, the method further comprises:
And if the second page is full but the residual query data still exists, taking the second page as a new first page, and returning to the step of determining the first query data corresponding to the first page until the residual query data does not exist.
5. The method of generating documents based on query data as claimed in claim 3, wherein said creating a second page of said target document comprises:
If the first page is full but residual query data still exists, creating a second page of the target document;
or alternatively
After determining second query data subsequent to the first query data, a second page of the target document is created.
6. An apparatus for generating a document based on query data, the apparatus comprising:
The query module is used for responding to the selection operation of a user for the query conditions, sending a query request carrying the query conditions to the server, so that the server returns a query result matched with the query conditions to the terminal equipment based on the query request, wherein the query result comprises query data with a storage field in a first format; the method comprises the steps that when query data matched with a query request have multiple pages, a server firstly returns the query result comprising the page identifier of a first page and the query data to terminal equipment, the terminal equipment obtains the page identifier of the query result of the current batch, and sends a request to the server according to the page identifier so as to obtain the query result of the next batch through the page identifier, and each batch of query result returns a new page identifier;
The first determining module is used for determining the storage field of the second format corresponding to the query data according to the storage field of the first format corresponding to the query data and a preset configuration library; wherein, the configuration library comprises: the mapping relation between the storage field in the first format and the storage field in the second format;
And the first writing module is used for writing the query data into the created target document according to the storage field of the second format corresponding to the query data.
7. The apparatus for generating documents based on query data as claimed in claim 6, wherein said apparatus further comprises:
and the first creating module is used for creating the target document after receiving the query data which is returned by the server and matches the query condition.
8. The apparatus for generating documents based on query data according to claim 6 or 7, wherein the query result further comprises a page identifier corresponding to the query data, and the target document comprises a first page;
the first writing module writes the query data into the created target document, including: writing the query data into a first page of the target document;
the apparatus further comprises:
The second determining module is used for determining first query data corresponding to the first page if the first page is full but residual query data still exists after the query data are written into the first page of the target document; wherein the first query data is the last query data in the first page;
The third determining module is used for determining second query data after the first query data according to the page identifier corresponding to the first query data;
The second creation module is used for creating a second page of the target document;
and the second writing module is used for writing the second query data and the subsequent query data into the second page according to the storage field of the second format corresponding to the query data.
9. The apparatus for generating documents based on query data as claimed in claim 8, wherein said apparatus further comprises:
And the processing module is used for returning the step of determining the first query data corresponding to the first page by taking the second page as a new first page if the second page is full but the residual query data still exists after the second query data and the query data after the second query data are written into the second page until the residual query data do not exist.
10. The apparatus for generating documents based on query data as claimed in claim 8, wherein said second creation module creates a second page of said target document comprising:
If the first page is full but residual query data still exists, creating a second page of the target document;
or alternatively
After determining second query data subsequent to the first query data, a second page of the target document is created.
11. An electronic device, the electronic device further comprising:
A processor, a memory and a bus, the memory storing execution instructions that when executed by the electronic device, communicate with the memory over the bus, the execution of the execution instructions by the processor causing the electronic device to perform the method of generating documents based on query data of any one of claims 1 to 5.
12. A computer medium having stored thereon computer executable instructions for performing the method of generating a document based on query data as claimed in any one of claims 1 to 5.
CN202011458649.XA 2020-12-10 2020-12-10 Method, device, electronic equipment and medium for generating document based on query data Active CN112464099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011458649.XA CN112464099B (en) 2020-12-10 2020-12-10 Method, device, electronic equipment and medium for generating document based on query data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011458649.XA CN112464099B (en) 2020-12-10 2020-12-10 Method, device, electronic equipment and medium for generating document based on query data

Publications (2)

Publication Number Publication Date
CN112464099A CN112464099A (en) 2021-03-09
CN112464099B true CN112464099B (en) 2024-07-09

Family

ID=74802825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011458649.XA Active CN112464099B (en) 2020-12-10 2020-12-10 Method, device, electronic equipment and medium for generating document based on query data

Country Status (1)

Country Link
CN (1) CN112464099B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108520037A (en) * 2018-03-30 2018-09-11 新华三大数据技术有限公司 Data query method, apparatus and data visualisation system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9146994B2 (en) * 2013-03-15 2015-09-29 International Business Machines Corporation Pivot facets for text mining and search
CN107391506A (en) * 2016-05-16 2017-11-24 华为软件技术有限公司 Method and apparatus for inquiring about data
CN111159099B (en) * 2019-11-15 2023-08-22 杭州数梦工场科技有限公司 Online data generation method and device, electronic equipment and storage medium
CN111914135B (en) * 2020-07-24 2024-08-13 平安证券股份有限公司 Data query method, device, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108520037A (en) * 2018-03-30 2018-09-11 新华三大数据技术有限公司 Data query method, apparatus and data visualisation system

Also Published As

Publication number Publication date
CN112464099A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN108388604B (en) User authority data management apparatus, method and computer readable storage medium
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN112269789B (en) Method and device for storing data, and method and device for reading data
CN110020086B (en) User portrait query method and device
WO2019024496A1 (en) Enterprise recommendation method and application server
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
US20140067548A1 (en) Saving on device functionality for business calendar
CN105450705A (en) Service data processing method and apparatus
CN105488125A (en) Page access method and apparatus
CN110737747A (en) data operation method, device and system
CN104866985A (en) Express bill number identification method, device and system
CN109684270B (en) Database archiving method, device, system, equipment and readable storage medium
CN112579321A (en) Method, device and equipment for downloading service data
CN111159211A (en) Order information generation method, device and system, computer equipment and storage medium
CN110222046B (en) List data processing method, device, server and storage medium
CN112100092A (en) Information caching method, device, equipment and medium
CN114237806A (en) Page information display method and device, electronic equipment and storage medium
CN107967305B (en) Image file uploading method, server and readable storage medium
CN107291923B (en) Information processing method and device
CN112464099B (en) Method, device, electronic equipment and medium for generating document based on query data
CN112948441B (en) Multi-dimensional data collection method and equipment for financial data
CN115732052A (en) Case report table generation method and device based on structured clinical project
CN107977381B (en) Data configuration method, index management method, related device and computing equipment
CN113761102B (en) Data processing method, device, server, system and storage medium
CN111310088B (en) Page rendering method and device

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