WO2019062019A1 - Data list exporting method and terminal using same - Google Patents

Data list exporting method and terminal using same Download PDF

Info

Publication number
WO2019062019A1
WO2019062019A1 PCT/CN2018/077662 CN2018077662W WO2019062019A1 WO 2019062019 A1 WO2019062019 A1 WO 2019062019A1 CN 2018077662 W CN2018077662 W CN 2018077662W WO 2019062019 A1 WO2019062019 A1 WO 2019062019A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
export
user terminal
query result
sub
Prior art date
Application number
PCT/CN2018/077662
Other languages
French (fr)
Chinese (zh)
Inventor
林林
张琛
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019062019A1 publication Critical patent/WO2019062019A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • 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

Definitions

  • the present application belongs to the field of data processing technologies, and in particular, to a method for deriving a data list and a terminal thereof.
  • the embodiment of the present application provides a method for deriving a data list and a terminal thereof, so as to solve the existing data exporting technology, all the exported data are encapsulated in a data list for export, and the number of data rows of the data list often occurs. If the maximum number of rows is exceeded, and the export fails, the failure rate of data export is high, which reduces the problem of data export efficiency.
  • a first aspect of the embodiment of the present application provides a method for deriving a data list, where the method for deriving the data list includes:
  • all the data to be exported are split into multiple data sub-lists for export, so that the number of rows actually included in each data sub-list will not exceed the maximum capacity of the file.
  • the number of rows is avoided to avoid the failure of the export due to the excessive amount of data, which improves the success rate of the data export process.
  • the improvement of the data export success rate the number of times the user repeatedly performs the export operation is also reduced, and the efficiency of data list export is also improved.
  • FIG. 1 is a flowchart of implementing a method for deriving a data list according to a first embodiment of the present application
  • FIG. 2 is a specific implementation flowchart of a method for deriving a data list according to a second embodiment of the present application
  • FIG. 3 is a flowchart of implementing a method for deriving a data list S101 according to a third embodiment of the present application;
  • FIG. 4 is a flowchart of implementing a method for deriving a data list S104 according to a fourth embodiment of the present application;
  • FIG. 5 is a flowchart of implementing a method for deriving a data list S104 according to a fifth embodiment of the present application
  • FIG. 6 is a structural block diagram of a data terminal deriving terminal according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a terminal device according to an embodiment of the present application.
  • FIG. 1 is a flowchart showing an implementation of a method for deriving a data list provided by a first embodiment of the present application, which is described in detail as follows:
  • the data query result is displayed according to the data query request sent by the user terminal.
  • the user generates a data query request through the local user terminal, and then connects to the terminal device provided in this embodiment through the communication network, and sends a data query request to the terminal device.
  • the user can input the keyword of the required query through the data service query interface of the user terminal, and after determining the keywords of all the queries, click the corresponding query confirmation button in the query interface, and the user terminal according to the user in the query interface.
  • the selection content and the input content, the data query request is generated, and is sent to the device corresponding to the destination address indicated by the query interface, that is, the terminal device provided in this embodiment, thereby completing the sending operation of the data query request.
  • the user can open the corresponding data service query interface through the APP or the client and other related application programs to complete the data query operation, in addition to opening the webpage page corresponding to the data service query interface through the browser provided in the user terminal.
  • the terminal device after receiving the data query request sent by the user terminal, the terminal device queries the data matching the keyword in the database according to the keyword included in the data query request, and uses the matched data as data. Query the query result corresponding to the request, and then display the query result.
  • the terminal device can display all the query results in one page, so that the user can view all the query data by scrolling the page. Since the data content that can be displayed by one interface is limited, in this case, the terminal device only loads the first M query data results, wherein the M value is the number of maximum query data results that can be accommodated in one page interface, when the user slides When viewing the data below, the terminal device reloads the query data result of the corresponding location, thereby avoiding the waiting time for the first display being too long.
  • the terminal device can display the query result by paging, divide the query result into multiple pages, and set the corresponding number. The user terminal controls the display interface to display the corresponding query result display page by sending the corresponding number.
  • a data export instruction that is returned by the user terminal according to the data query result is received, and data to be exported corresponding to the data export instruction is determined from the data query result.
  • the user terminal may select data to be exported in the query result. For example, the user can select the data to be exported by checking the manner. If the query result is displayed by paging, the corresponding data page can be selected to indicate that all the query data in the data page is exported. Of course, the user can also export all the query results, and select all the options by clicking the all-select button or the all-export button. After confirming the data that the user needs to export, the user terminal generates a data export instruction corresponding thereto and returns it to the terminal device.
  • the terminal device after receiving the data export instruction returned by the user terminal, extracts the data identifier included in the data export instruction, and determines the data that the user needs to export according to the data identifier, and extracts the query result. , get the data to be exported.
  • data matching the maximum number of rows of the preset file is extracted from the data to be exported, and at least one data sub-list is generated according to the data extracted each time.
  • the user terminal pre-sets the maximum number of lines of the file, and the maximum number of lines of the file is specifically used to display the maximum number of lines included in a data sub-list, so as to avoid the number of data rows included in the data sub-list being too large.
  • the sending of an export exception occurred.
  • the matching with the maximum number of lines of the preset file is specifically: the number of extracted lines is less than or equal to the maximum number of lines of the file.
  • the terminal device determines the data to be exported according to the data exporting instruction
  • the data of the corresponding row number is sequentially extracted from the data to be exported according to the maximum number of rows of the preset file, and a data sub-list is generated, if not extracted, If the number of rows of the exported data is less than the maximum number of rows of the file, the last data sub-list is generated from the un-exported data to be extracted, and the operation of S104 is performed.
  • the maximum number of lines of the preset file can be set by default by the terminal device, and the default value is the maximum number of lines that the data sub-list can actually accommodate.
  • the data sub-list is sent to the user terminal.
  • the terminal device after the terminal device generates at least one data sub-list according to the data export instruction of the user, all the data sub-lists are sent to the user terminal to implement the purpose of exporting the page in response to the user's data.
  • the terminal device may send the data sub-list to the user terminal immediately after each data sub-list is generated, or after all the data sub-lists are generated, the terminal device aggregates all the data sub-lists and uniformly sends them to the user terminal.
  • the terminal device determines whether the data to be exported includes unexported data through a preset data leak detection algorithm, and if so, determines the last generated data sub-list. Whether the number of rows is less than the maximum number of rows in the file. If less, the data to be exported is added to the last generated data sublist; if equal, an independent data sublist is generated.
  • the method for deriving a data list receives the data query request of the user and displays the data query result required by the user, so that the user can select the data to be exported from the data query result.
  • the export terminal of the data list After receiving the data export instruction of the user, extracts only the data matching the maximum number of rows of the preset file at a time, and generates a data sub-list, and then takes all the generated data sub-lists as The result of the export is returned to the user terminal.
  • the method for deriving the data list does not encapsulate all the data to be exported in one data list, but according to the maximum number of rows of the preset file,
  • the data to be exported is split into multiple data sub-lists for export, so that the number of rows actually included in each data sub-list will not exceed the maximum number of rows that can be accommodated by the file, so as to avoid the situation that the export fails due to excessive data volume. Occurs, improving the success rate of the data export process.
  • the improvement of the data export success rate the number of times the user repeatedly performs the export operation is also reduced, and the efficiency of data list export is also improved.
  • FIG. 2 is a flowchart showing a specific implementation of a method for deriving a data list according to a second embodiment of the present application.
  • a method for deriving a data list provided by this embodiment includes the following steps, which are detailed as follows:
  • the data query result is displayed according to the data query request sent by the user terminal.
  • the determining, by the data query result, the data to be exported corresponding to the data exporting instruction includes:
  • the terminal device and the user terminal perform information exchange through the established communication connection, for example, the terminal device receives the data query request initiated by the user terminal, and the user terminal receives the query result returned by the terminal device, etc., therefore, the two In the process of data interaction, the corresponding port number is inevitably occupied to establish a communication connection, and data communication is performed through the communication connection.
  • the terminal device after receiving the data export instruction sent by the user terminal, the terminal device disconnects the communication connection with the user terminal, and adjusts the corresponding port number from the occupied state to the idle state, and executes the slave
  • the operation of determining the data to be exported corresponding to the data export instruction is determined in the data query result. Since the time of the data export process is generally long, and there is no data interaction between the terminal device and the user terminal during the export process, the data is waiting for the result. Therefore, the relevant communication resources can be released at this time to reduce the network resources. Occupy.
  • data matching the maximum number of rows of the preset file is extracted from the data to be exported, and at least one data sub-list is generated according to the data extracted each time.
  • the sending the data sub-list to the user terminal includes:
  • a communication connection request is sent to the user terminal to establish a communication connection with the user terminal.
  • the terminal device determines that all the data to be exported has been extracted, and the last data sub-list has been generated, it indicates that the export operation has been completed, and the relevant export result can be fed back to the user terminal. Therefore, a communication connection request is sent to the user terminal according to the network address of the user terminal, so that the user terminal establishes a communication link and feeds back the relevant derivation result.
  • the user terminal after receiving the communication connection request sent by the terminal device, the user terminal returns a connection confirmation command to the terminal device, and after receiving the connection confirmation command returned by the user terminal, the terminal device determines that the communication connection has been established. , the related operations of S206 can be performed.
  • a derivation result is generated according to the plurality of the data sub-lists, and the derivation result is sent to the user terminal.
  • the terminal device may generate a plurality of data sub-lists in the process of exporting data, in this case, the plurality of data sub-lists are encapsulated in the same file to generate the above-mentioned derivation result.
  • the terminal device after generating the derivation result, sends the derivation result to the user terminal through the communication channel established in S205 to complete the response of the derivation data service.
  • the user terminal is configured to have a maximum waiting time.
  • the user terminal sends a data export instruction, the user terminal starts to perform timing. If the waiting time is greater than the maximum waiting time, the communication connection is established with the terminal device, and the export progress is obtained. Instructions to confirm the current export progress.
  • the communication connection with the user is disconnected, the communication resource is released, and the connection is established after the export operation is completed, and the corresponding export is returned to the same.
  • the connection failure is prevented due to long-time connection, and the export result cannot be fed back to the user.
  • the network resource is also released, and the process of waiting for a long time in the export process has less data interaction.
  • the terminal device can respond to the service request of the other user terminal. Therefore, the time division multiplexing of the terminal device service can be fully implemented in the embodiment, the utilization rate of the terminal device is improved, and the occupancy rate of the exported operation resource is reduced.
  • FIG. 3 is a flowchart showing a specific implementation of a method for deriving a data list S101 according to the third embodiment of the present application.
  • a method S101 for processing customer feedback information provided by this embodiment includes S301 ⁇ S303, which is as follows:
  • the terminal device After receiving the data query request of the user, the terminal device determines, according to the query keyword included in the data query request, a data query result that matches the query keyword in the database, and in this step, the terminal device The data obtained by the query is not extracted, but the data matching the query keyword is marked in the database.
  • the terminal device After the terminal device completes the search in the entire database, the data query result is obtained, and all the data to be displayed that matches the query keyword in the database is determined. At this time, the terminal device will include the statistics included in the query result. The number of data, specifically, the number of rows included in the data list obtained by the query.
  • the data query result is divided into a plurality of sub-data query results according to a preset maximum number of displays, and a display number is associated with each of the sub-data query results.
  • the maximum number of displays is displayed in the terminal device, that is, the number of data or the number of list lines that can be displayed at one time in one page.
  • the maximum number of displays can be set by the system default, or can be adjusted at any time by the user during the query process.
  • the maximum number of displays is related to the resolution of the user terminal and the area of the display module, and the maximum number of data that can be accommodated in the same interface is determined according to the resolution of the user terminal and the area of the display module, as the maximum number of displays. .
  • the terminal device divides the maximum number of displays and the number of data included in the data query result into multiple sub-data query results, wherein each sub-data query result includes the maximum number of data.
  • the maximum number of displays are the maximum number of displays and the number of data included in the data query result into multiple sub-data query results, wherein each sub-data query result includes the maximum number of data. The maximum number of displays.
  • the terminal device associates each sub-data query result with a display number, that is, a relationship in which the display number and the sub-data query result are in one-to-one correspondence. Specifically, the terminal device may sort the data in the data query result according to a preset sorting manner, and sequentially divide the data query result according to the maximum display number, and sequentially number them.
  • the sub-data query result associated with the display number is extracted from the database according to the display number selected by the user terminal, and displayed.
  • the terminal device may extract the sub-data query result associated with the display number from the database to the local cache according to the display number sent by the user terminal, and display the data included in the sub-data query result. That is, in the embodiment, the amount of data extracted by the terminal device from the database is the amount of data corresponding to the maximum number of displays.
  • the amount of data extracted by the terminal device is the amount of data corresponding to the maximum number of displays. Since the terminal device does not extract all the data obtained by the query at one time, the waiting time is less, and the response rate is shorter. Fast, so as to avoid the service response timeout caused by the long extraction operation time.
  • FIG. 4 is a flowchart showing a specific implementation of a method for deriving a data list S103 according to the fourth embodiment of the present application.
  • the S103 in the embodiment of the data list, the S103 further includes S401 ⁇ S403 in the method for deriving the data list according to the embodiment shown in FIG.
  • the corresponding export control button is set by the AJAX technology in the export display page of the user terminal.
  • the user can click the corresponding export control button on the local user terminal, and then after receiving the relevant click operation, the user terminal will generate a corresponding export control instruction through the AJAX technology in the page, and export the control command. Send to the terminal device.
  • the export control instructions include, but are not limited to, suspending the export instruction, terminating the export instruction, restoring the export instruction, re-exporting the instruction, and the like.
  • the export control instruction is added to the extraction operation control data flow; wherein the extraction operation control data flow is: control data generated between the export terminal of the data list and the database when performing the extraction operation.
  • two data streams are generated between the two, which are: the data stream of the extraction result pointed out by the database to the terminal device, that is, the data sub-list of the generated data is extracted.
  • the data stream generated by the data; and the terminal device, that is, the export terminal of the above data list points to the extraction operation control data flow of the database, and is used for controlling the database to perform related extraction operations, such as sending the maximum number of lines of the file to the database, and the current extraction operation
  • the number range of the data to be exported and the control data such as the above-mentioned export control command.
  • the terminal device after receiving the export control instruction sent by the user terminal, the terminal device adds the export control command to the extraction operation control data stream, so that the control data stream is transmitted to the database to implement a corresponding export control operation. .
  • the export control operation of the response is performed. Specifically, if the export control instruction is a pause export instruction, stopping the data extraction operation, waiting for the user to start the export process again; if the export control instruction is aborting the export instruction, ending the export response operation and deleting the generated output The data sub-list; if the export control instruction is the resume export instruction, the data extraction operation corresponding to the pause time is continued, and the data sub-list corresponding to the pause time is generated.
  • the user terminal can control the export operation of the terminal device at any time, thereby improving the operable range of the user and the user experience.
  • FIG. 5 is a flowchart showing a specific implementation of a method for deriving a data list S103 according to the fifth embodiment of the present application. As shown in FIG. 5, in the method for deriving the data list provided in this embodiment, S103 further includes S501 and S502, which are as follows:
  • the value of the derived response timer is reset after each of the data sublists is generated.
  • the terminal device sets a corresponding maximum operation duration in each related operation to automatically repair the abnormal operation. Therefore, the terminal device sets the maximum response duration in order to determine whether the export operation is abnormal.
  • the terminal device resets the value of the derivation response timer to avoid that the amount of data to be exported is too large, and the response time is too long, and is determined to be an abnormal operation.
  • the export response timer is also used to keep the session between the terminal device and the database valid. Since the terminal device and the database need to maintain data interaction status for a long time during the export process, a session is established between the two. The duration, that is, the session value, when the terminal device resets the value of the response timer, the session value is also updated synchronously to maintain the session between the terminal device and the database.
  • the terminal device when the terminal device detects that the value of the export response timer is greater than the maximum response duration, it determines that there is an abnormality in the current export operation, and thus the export abnormal operation is performed.
  • the exporting the abnormal operation may be: disconnecting the data connection with the database, and restarting the database; and re-establishing the connection after the database startup is completed, so as to perform the export operation again.
  • the value of the export response timer is reset to keep the session between the terminal device and the database valid, and the export timeout is avoided due to excessive data volume. The situation happened.
  • FIG. 6 is a structural block diagram of a derivation terminal of a data list according to an embodiment of the present application, where each unit included in the derivation terminal of the data list is used to execute each step in the embodiment corresponding to FIG. 1.
  • each unit included in the derivation terminal of the data list is used to execute each step in the embodiment corresponding to FIG. 1.
  • FIG. 6 For details, please refer to the related description in the embodiment corresponding to FIG. 1 and FIG. For the convenience of explanation, only the parts related to the present embodiment are shown.
  • the export terminal of the data list includes:
  • the data query result display unit 61 is configured to display a data query result according to the data query request sent by the user terminal;
  • the to-be-exported data determining unit 62 is configured to receive a data exporting instruction that is returned by the user terminal according to the data query result, and determine, from the data query result, the to-be-exported data corresponding to the data exporting instruction;
  • the data sub-list generating unit 63 is configured to sequentially extract data matching the maximum number of rows of the preset file from the data to be exported, and generate at least one data sub-list according to the data extracted each time;
  • the data sub-list sending unit 64 is configured to send the data sub-list to the user terminal.
  • the to-be-exported data determining unit 62 includes:
  • a communication connection interruption unit configured to disconnect a communication connection with the user terminal, and determine, after the communication connection is disconnected, the data to be exported corresponding to the data export instruction from the data query result;
  • the data sub-list sending unit 64 includes:
  • a communication connection reconnection unit configured to: if it is detected that the to-be-exported data has been extracted, send a communication connection request to the user terminal to establish a communication connection with the user terminal;
  • a derivation result sending unit configured to generate a derivation result according to the plurality of the data sub-lists, and send the derivation result to the user terminal.
  • the data query result display unit 61 includes:
  • a data query result determining unit configured to determine the data query result in the database that matches the data query request, and the number of data corresponding to the data query result
  • a data query result dividing unit configured to divide the data query result into a plurality of sub-data query results according to a preset maximum number of displays, and associate a display number with each of the sub-data query results;
  • the sub-data query result display unit is configured to extract and display the sub-data query result associated with the display number from the database according to the display number selected by the user terminal.
  • the data sub-list generating unit 63 includes:
  • an export control instruction receiving unit configured to receive an export control instruction initiated by the user terminal
  • an export control instruction adding unit configured to add the export control command to the extracting operation control data stream; wherein the extracting operation controls the data stream to be: when the extracting terminal of the data list and the database are generated during the extracting operation Control data;
  • the export control command response unit is configured to execute the export control operation corresponding to the export control command if the extraction operation control data stream includes an export control command.
  • the data sub-list generating unit 63 includes:
  • a response timer reset unit configured to reset a value of the export response timer after each generating the data sublist
  • the exception processing unit is configured to perform an export exception operation if the value of the export response timer is greater than a preset maximum response duration.
  • the derivation terminal of the data category provided by the embodiment of the present application can also split all the data to be exported into multiple data sub-lists according to the preset maximum number of lines of the file, so that each data sub-list actually contains The number of rows will not exceed the maximum number of rows that the file can accommodate, avoiding the failure of the export due to excessive data volume, and improving the success rate of the data export process.
  • the improvement of the data export success rate the number of times the user repeatedly performs the export operation is also reduced, and the efficiency of data list export is also improved.
  • FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application.
  • the terminal device 7 of this embodiment includes a processor 70, a memory 71, and computer readable instructions 72 stored in the memory 71 and operable on the processor 70, such as a data list. Export the program.
  • the processor 70 executes the steps of the method for deriving the respective data lists when the computer readable instructions 72 are executed, such as S101 to S104 shown in FIG. 1.
  • the processor 70 when executing the computer readable instructions 72, implements the functions of the various units in the various apparatus embodiments described above, such as the functions of the modules 61-64 shown in FIG.
  • the computer readable instructions 72 may be partitioned into one or more units, the one or more units being stored in the memory 71 and executed by the processor 70 to complete the application.
  • the one or more units may be a series of computer readable instruction instructions segments capable of performing a particular function for describing the execution of the computer readable instructions 72 in the terminal device 7.
  • the computer readable instructions 72 may be segmented into a data query result display unit, a data to be derived determination unit, a data sub-list generation unit, and a data sub-list transmission unit, each unit functioning as above.
  • the terminal device 7 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 70 and a memory 71. It will be understood by those skilled in the art that FIG. 7 is only an example of the terminal device 7, and does not constitute a limitation of the terminal device 7, and may include more or less components than those illustrated, or combine some components or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.
  • the so-called processor 70 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7.
  • the memory 71 may also be an external storage device of the terminal device 7, for example, a plug-in hard disk provided on the terminal device 7, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on.
  • the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device.
  • the memory 71 is configured to store the computer readable instructions and other programs and data required by the terminal device.
  • the memory 71 can also be used to temporarily store data that has been output or is about to be output.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Fuzzy Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data list exporting method, a terminal, a terminal device and computer-readable storage medium, the method comprising: displaying a data query result according to a data query request sent by a user terminal (S101); receiving a data exporting instruction returned by the user terminal according to the data query result, and determining data to be exported corresponding to the data export instruction from the data query result (S102); extracting data of which the number of rows matches a preset maximum number of rows for a file from the data to be exported, and generating at least one data sublist according to the data extracted each time (S103); and sending the data sublist to the user terminal (S104).

Description

一种数据列表的导出方法及其终端Method for deriving data list and terminal thereof
本申请申明享有2017年09月30日递交的申请号为201710919421.8、名称为“一种数据列表的导出方法及其终端”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。The present application claims the priority of the Chinese Patent Application No. 201710919421.8, entitled "Derivation of a Data List and Its Terminal", which is incorporated by reference in its entirety. In this application.
技术领域Technical field
本申请属于数据处理技术领域,尤其涉及一种数据列表的导出方法及其终端。The present application belongs to the field of data processing technologies, and in particular, to a method for deriving a data list and a terminal thereof.
背景技术Background technique
随着各种各样文件均实行电子化,数据库中包含的数据量也越来越庞大。用户在日常工作以及生活中,常常需要通过数据库查询以及导出相应的数据列表,因此如何高效地导出数据列表显得尤为重要。而当用户需要导出的数据列表包含的数据量较大时,由于现有的数据导出技术中,将所有导出的数据封装于一个数据列表中进行导出,常常会发生数据列表的数据行数超出最大容纳行数,而导致导出失败的情况,数据导出的失败率较高,降低了数据的导出效率。As various documents are electronically implemented, the amount of data contained in the database is also growing. In daily work and life, users often need to query and export the corresponding data list through the database. Therefore, how to efficiently export the data list is particularly important. When the data list that the user needs to export contains a large amount of data, since the existing data export technology encapsulates all the exported data in one data list for export, the number of data rows of the data list often exceeds the maximum. When the number of rows is accommodated, and the export fails, the data export failure rate is high, which reduces the data export efficiency.
技术问题technical problem
本申请实施例提供了一种数据列表的导出方法及其终端,以解决现有的数据导出技术中,将所有导出的数据封装于一个数据列表中进行导出,常常会发生数据列表的数据行数超出最大容纳行数,而导致导出失败的情况,数据导出的失败率较高,降低了数据的导出效率的问题。The embodiment of the present application provides a method for deriving a data list and a terminal thereof, so as to solve the existing data exporting technology, all the exported data are encapsulated in a data list for export, and the number of data rows of the data list often occurs. If the maximum number of rows is exceeded, and the export fails, the failure rate of data export is high, which reduces the problem of data export efficiency.
技术解决方案Technical solution
本申请实施例的第一方面提供了一种数据列表的导出方法,所述数据列表的导出方法包括:A first aspect of the embodiment of the present application provides a method for deriving a data list, where the method for deriving the data list includes:
根据用户终端发送的数据查询请求,显示数据查询结果;Displaying a data query result according to a data query request sent by the user terminal;
接收所述用户终端根据所述数据查询结果返回的数据导出指令,并从所述数据查询结果中确定所述数据导出指令对应的待导出数据;Receiving, by the user terminal, a data export instruction returned according to the data query result, and determining, from the data query result, the to-be-exported data corresponding to the data export instruction;
依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表;And sequentially extracting data matching the maximum number of rows of the preset file from the data to be exported, and generating at least one data sub-list according to the data extracted each time;
将所述数据子列表发送给所述用户终端。Sending the data sublist to the user terminal.
有益效果Beneficial effect
本申请实施例根据预设的文件最大行数,将所有的待导出数据拆分为多个数据子列表进行导出,从而每个数据子列表实际包含的行数将不会超过文件最大可容纳的行数,避免因数据量过大而导致导出失败的情况发生,提高了数据导出过程的成功率。另一方面,由于数据导出成功率的提高,也减少了用户重复执行导出操作的次数,也提高了数据列表导出的效率。According to the preset maximum number of lines of the file, all the data to be exported are split into multiple data sub-lists for export, so that the number of rows actually included in each data sub-list will not exceed the maximum capacity of the file. The number of rows is avoided to avoid the failure of the export due to the excessive amount of data, which improves the success rate of the data export process. On the other hand, due to the improvement of the data export success rate, the number of times the user repeatedly performs the export operation is also reduced, and the efficiency of data list export is also improved.
附图说明DRAWINGS
图1是本申请第一实施例提供的一种数据列表的导出方法的实现流程图;1 is a flowchart of implementing a method for deriving a data list according to a first embodiment of the present application;
图2是本申请第二实施例提供的一种数据列表的导出方法的具体实现流程图;2 is a specific implementation flowchart of a method for deriving a data list according to a second embodiment of the present application;
图3是本申请第三实施例提供一种数据列表的导出方法S101实现流程图;3 is a flowchart of implementing a method for deriving a data list S101 according to a third embodiment of the present application;
图4是本申请第四实施例提供一种数据列表的导出方法S104实现流程图;4 is a flowchart of implementing a method for deriving a data list S104 according to a fourth embodiment of the present application;
图5是本申请第五实施例提供一种数据列表的导出方法S104实现流程图;FIG. 5 is a flowchart of implementing a method for deriving a data list S104 according to a fifth embodiment of the present application;
图6是本申请一实施例提供的一种数据列表的导出终端的结构框图;FIG. 6 is a structural block diagram of a data terminal deriving terminal according to an embodiment of the present application;
图7是本申请一实施例提供的一种终端设备的示意图。FIG. 7 is a schematic diagram of a terminal device according to an embodiment of the present application.
本发明的实施方式Embodiments of the invention
在本申请实施例中,流程的执行主体为安装有数据列表的导出程序的终端设备。图1示出了本申请第一实施例提供的数据列表的导出方法的实现流程图,详述如下:In the embodiment of the present application, the execution subject of the process is a terminal device in which the export program of the data list is installed. FIG. 1 is a flowchart showing an implementation of a method for deriving a data list provided by a first embodiment of the present application, which is described in detail as follows:
在S101中,根据用户终端发送的数据查询请求,显示数据查询结果。In S101, the data query result is displayed according to the data query request sent by the user terminal.
在本实施例中,用户通过本地的用户终端内生成数据查询请求,继而通过通信网络与本实施例提供的终端设备相连,并向终端设备发送数据查询请求。具体地,用户可通过用户终端的数据业务查询界面,输入所需查询的关键词,在确定所有查询的关键词后,则点击查询界面中相应的查询确认按钮,用户终端根据该查询界面中用户的选择内容以及输入内容,生成数据查询请求,并发送给该查询界面所指的目的地址对应的装置,即本实施例提供的终端设备,从而完成数据查询请求的发送操作。优选地,用户除了通过用户终端内设的浏览器打开数据业务查询界面对应的网页页面外,还可以通过APP或客户端等相关应用程序,开启相应的数据业务查询界面,完成数据查询操作。In this embodiment, the user generates a data query request through the local user terminal, and then connects to the terminal device provided in this embodiment through the communication network, and sends a data query request to the terminal device. Specifically, the user can input the keyword of the required query through the data service query interface of the user terminal, and after determining the keywords of all the queries, click the corresponding query confirmation button in the query interface, and the user terminal according to the user in the query interface. The selection content and the input content, the data query request is generated, and is sent to the device corresponding to the destination address indicated by the query interface, that is, the terminal device provided in this embodiment, thereby completing the sending operation of the data query request. Preferably, the user can open the corresponding data service query interface through the APP or the client and other related application programs to complete the data query operation, in addition to opening the webpage page corresponding to the data service query interface through the browser provided in the user terminal.
在本实施例中,终端设备在接收到用户终端发送的数据查询请求后,将根据该数据查询请求包含的关键词,查询数据库中与该关键词匹配的数据,并将匹配得到的数据作为数据查询请求对应的查询结果,继而对查询结果进行显示。In this embodiment, after receiving the data query request sent by the user terminal, the terminal device queries the data matching the keyword in the database according to the keyword included in the data query request, and uses the matched data as data. Query the query result corresponding to the request, and then display the query result.
在本实施例中,终端设备可在一个页面中显示所有查询结果,以便用户通过滚动页面查看所有的查询数据。由于一个界面可显示的数据内容有限,因此在该情况下,终端设备只加载最前的M个查询数据结果,其中M值为一个页面界面内可容纳的最大查询数据结果的个数,当用户下滑查看下方的数据时,终端设备再加载对应位置的查询数据结果,从而避免首次显示的等待时间过长。除此之外,终端设备还可以通过分页方式显示查询结果,将查询结果分为多个页面,并设置对应的编号,用户终端通过发送对应的编号来控制显示界面显示对应的查询结果显示页面。In this embodiment, the terminal device can display all the query results in one page, so that the user can view all the query data by scrolling the page. Since the data content that can be displayed by one interface is limited, in this case, the terminal device only loads the first M query data results, wherein the M value is the number of maximum query data results that can be accommodated in one page interface, when the user slides When viewing the data below, the terminal device reloads the query data result of the corresponding location, thereby avoiding the waiting time for the first display being too long. In addition, the terminal device can display the query result by paging, divide the query result into multiple pages, and set the corresponding number. The user terminal controls the display interface to display the corresponding query result display page by sending the corresponding number.
在S102中,接收所述用户终端根据所述数据查询结果返回的数据导出指令,并从所述数据查询结果中确定所述数据导出指令对应的待导出数据。In S102, a data export instruction that is returned by the user terminal according to the data query result is received, and data to be exported corresponding to the data export instruction is determined from the data query result.
在本实施例中,用户终端在获取到终端设备返回的查询结果后,可在查询结果中选取需要导出的数据。举例性地,用户可通过勾选的方式,选择所需导出的数据,若查询结果通过分页的方式进行显示,则可选择对应的数据页来表示对该数据页内所有的查询数据进行导出。当然,用户也可以对所有查询结果进行导出,通过点击全选按钮或全部导出按钮等方式进行全选操作。用户终端在确认用户所需导出的数据后,则生成与之对应的数据导出指令,并返回给终端设备。In this embodiment, after obtaining the query result returned by the terminal device, the user terminal may select data to be exported in the query result. For example, the user can select the data to be exported by checking the manner. If the query result is displayed by paging, the corresponding data page can be selected to indicate that all the query data in the data page is exported. Of course, the user can also export all the query results, and select all the options by clicking the all-select button or the all-export button. After confirming the data that the user needs to export, the user terminal generates a data export instruction corresponding thereto and returns it to the terminal device.
在本实施例中,终端设备在接收到用户终端返回的数据导出指令后,则提取数据导出指令中包含的数据标识,并根据该数据标识确定用户所需导出的数据,并从查询结果进行提取,得到待导出数据。In this embodiment, after receiving the data export instruction returned by the user terminal, the terminal device extracts the data identifier included in the data export instruction, and determines the data that the user needs to export according to the data identifier, and extracts the query result. , get the data to be exported.
在S103中,依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表。In S103, data matching the maximum number of rows of the preset file is extracted from the data to be exported, and at least one data sub-list is generated according to the data extracted each time.
在本实施例中,用户终端预设有文件最大行数,该文件最大行数具体用于显示一个数据子列表中最大包含的行数,避免因数据子列表中包含的数据行数过大而发送导出异常的情况发生。In this embodiment, the user terminal pre-sets the maximum number of lines of the file, and the maximum number of lines of the file is specifically used to display the maximum number of lines included in a data sub-list, so as to avoid the number of data rows included in the data sub-list being too large. The sending of an export exception occurred.
在本实施例中,与预设的文件最大行数匹配具体为:提取行数小于或等于该文件最大行数。具体地,终端设备根据数据导出指令确定了待导出数据后,则根据预设的文件最大行数依次从待导出数据中提取相应行数的数据,生成一个数据子列表,若未被提取的待导出数据的行数小于该文件最大行数,则将未被提取的待导出数据生成最后一个数据子列表,并执行S104的操作。In this embodiment, the matching with the maximum number of lines of the preset file is specifically: the number of extracted lines is less than or equal to the maximum number of lines of the file. Specifically, after the terminal device determines the data to be exported according to the data exporting instruction, the data of the corresponding row number is sequentially extracted from the data to be exported according to the maximum number of rows of the preset file, and a data sub-list is generated, if not extracted, If the number of rows of the exported data is less than the maximum number of rows of the file, the last data sub-list is generated from the un-exported data to be extracted, and the operation of S104 is performed.
在本实施例中,该预设的文件最大行数可通过终端设备默认设置,该默认值则为数据子列表实际可容纳的最大的行数。In this embodiment, the maximum number of lines of the preset file can be set by default by the terminal device, and the default value is the maximum number of lines that the data sub-list can actually accommodate.
在S104中,将所述数据子列表发送给所述用户终端。In S104, the data sub-list is sent to the user terminal.
在本实施例中,终端设备根据用户的数据导出指令生成了至少一个数据子列表后,则将所有数据子列表发送给用户终端,实现响应用户的数据导出页面的目的。具体地,终端设备可在每生成一个数据子列表后,则马上发送给用户终端,也可以在生成了所有数据子列表后,终端设备将所有数据子列表进行汇总并统一发送给用户终端。In this embodiment, after the terminal device generates at least one data sub-list according to the data export instruction of the user, all the data sub-lists are sent to the user terminal to implement the purpose of exporting the page in response to the user's data. Specifically, the terminal device may send the data sub-list to the user terminal immediately after each data sub-list is generated, or after all the data sub-lists are generated, the terminal device aggregates all the data sub-lists and uniformly sends them to the user terminal.
在本实施例中,终端设备在生成了所有数据子列表后,则通过预设的数据查漏算法,确定待导出数据中是否包含未被导出的数据,若是,则判断最后生成的数据子列表的行数是否小于文件最大行数,若小于,则将待导出的数据添加到最后生成的数据子列表内;若等于,则生成一个独立的数据子列表。In this embodiment, after all the data sub-lists are generated, the terminal device determines whether the data to be exported includes unexported data through a preset data leak detection algorithm, and if so, determines the last generated data sub-list. Whether the number of rows is less than the maximum number of rows in the file. If less, the data to be exported is added to the last generated data sublist; if equal, an independent data sublist is generated.
以上可以看出,本申请实施例提供的一种数据列表的导出方法通过接收用户的数据查询请求,并显示用户所需的数据查询结果,从而用户可从数据查询结果中选取待导出的数据,数据列表的导出终端在接收到用户的数据导出指令后,则每次只提取行数与预设的文件最大行数匹配的数据,并生成一个数据子列表,继而将所有生成得到数据子列表作为导出结果返回给用户终端。与现有的数据导出技术相比,本申请实施例提供的数据列表的导出方法,并非将所有待导出的数据均封装于一个数据列表中,而是根据预设的文件最大行数,将所有的待导出数据拆分为多个数据子列表进行导出,从而每个数据子列表实际包含的行数将不会超过文件最大可容纳的行数,避免因数据量过大而导致导出失败的情况发生,提高了数据导出过程的成功率。另一方面,由于数据导出成功率的提高,也减少了用户重复执行导出操作的次数,也提高了数据列表导出的效率。It can be seen that the method for deriving a data list provided by the embodiment of the present application receives the data query request of the user and displays the data query result required by the user, so that the user can select the data to be exported from the data query result. After receiving the data export instruction of the user, the export terminal of the data list extracts only the data matching the maximum number of rows of the preset file at a time, and generates a data sub-list, and then takes all the generated data sub-lists as The result of the export is returned to the user terminal. Compared with the existing data exporting technology, the method for deriving the data list provided by the embodiment of the present application does not encapsulate all the data to be exported in one data list, but according to the maximum number of rows of the preset file, The data to be exported is split into multiple data sub-lists for export, so that the number of rows actually included in each data sub-list will not exceed the maximum number of rows that can be accommodated by the file, so as to avoid the situation that the export fails due to excessive data volume. Occurs, improving the success rate of the data export process. On the other hand, due to the improvement of the data export success rate, the number of times the user repeatedly performs the export operation is also reduced, and the efficiency of data list export is also improved.
图2示出了本申请第二实施例提供的一种数据列表的导出方法的具体实现流程图。参见图2所示,相对于图1所述实施例,本实施例提供的一种数据列表的导出方法包括以下步骤,详述如下:FIG. 2 is a flowchart showing a specific implementation of a method for deriving a data list according to a second embodiment of the present application. Referring to FIG. 2, with reference to the embodiment shown in FIG. 1, a method for deriving a data list provided by this embodiment includes the following steps, which are detailed as follows:
在S201中,根据用户终端发送的数据查询请求,显示数据查询结果。In S201, the data query result is displayed according to the data query request sent by the user terminal.
在S202中,接收所述用户终端根据所述数据查询结果返回的数据导出指令。In S202, a data export instruction that is returned by the user terminal according to the data query result is received.
进一步地,所述从所述数据查询结果中确定所述数据导出指令对应的待导出数据包括:Further, the determining, by the data query result, the data to be exported corresponding to the data exporting instruction includes:
在S203中,断开与所述用户终端的通信连接,并在通信连接断开后,从所述数据查询结果中确定所述数据导出指令对应的待导出数据。In S203, the communication connection with the user terminal is disconnected, and after the communication connection is disconnected, the data to be exported corresponding to the data export instruction is determined from the data query result.
在本实施例中,终端设备与用户终端通过已建立的通信连接来进行信息交互,如终端设备接收用户终端发起的数据查询请求,用户终端接收终端设备返回的查询结果等,因此,两者在数据交互的过程中,必然占用对应的端口号来建立通信连接,并通过该通信连接进行数据通信。In this embodiment, the terminal device and the user terminal perform information exchange through the established communication connection, for example, the terminal device receives the data query request initiated by the user terminal, and the user terminal receives the query result returned by the terminal device, etc., therefore, the two In the process of data interaction, the corresponding port number is inevitably occupied to establish a communication connection, and data communication is performed through the communication connection.
在本实施例中,终端设备在接收到用户终端发送的数据导出指令后,将断开与该用户终端之间的通信连接,并将对应的端口号从占用状态调整为空闲状态,并执行从所述数据查询结果中确定所述数据导出指令对应的待导出数据的操作。由于数据导出过程的时间一般较长,而在导出过程中终端设备与用户终端之间并没有数据交互,是处于等待结果的状态,因此,此时可释放相关的通信资源,来减少对网络资源的占用。In this embodiment, after receiving the data export instruction sent by the user terminal, the terminal device disconnects the communication connection with the user terminal, and adjusts the corresponding port number from the occupied state to the idle state, and executes the slave The operation of determining the data to be exported corresponding to the data export instruction is determined in the data query result. Since the time of the data export process is generally long, and there is no data interaction between the terminal device and the user terminal during the export process, the data is waiting for the result. Therefore, the relevant communication resources can be released at this time to reduce the network resources. Occupy.
在S204中,依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表。In S204, data matching the maximum number of rows of the preset file is extracted from the data to be exported, and at least one data sub-list is generated according to the data extracted each time.
进一步地,所述将所述数据子列表发送给所述用户终端包括:Further, the sending the data sub-list to the user terminal includes:
在S205中,若检测到所述待导出数据已提取完毕,则向所述用户终端发送通信连接请求,以建立与所述用户终端之间的通信连接。In S205, if it is detected that the to-be-exported data has been extracted, a communication connection request is sent to the user terminal to establish a communication connection with the user terminal.
在本实施例中,终端设备在判定所有待导出数据已提取完毕,并且最后一个数据子列表已生成完成后,则表示该次导出操作已完成,此时可向用户终端反馈相关的导出结果。因此,将根据用户终端的网络地址,向用户终端发送一个通信连接请求,以便于用户终端建立一条通信链路,向其反馈相关的导出结果。In this embodiment, after the terminal device determines that all the data to be exported has been extracted, and the last data sub-list has been generated, it indicates that the export operation has been completed, and the relevant export result can be fed back to the user terminal. Therefore, a communication connection request is sent to the user terminal according to the network address of the user terminal, so that the user terminal establishes a communication link and feeds back the relevant derivation result.
在本实施例中,用户终端在接收到终端设备发送的通信连接请求后,则返回连接确认指令给到终端设备,终端设备在接收到用户终端返回的连接确认指令后,则判定通信连接已建立,可执行S206的相关操作。In this embodiment, after receiving the communication connection request sent by the terminal device, the user terminal returns a connection confirmation command to the terminal device, and after receiving the connection confirmation command returned by the user terminal, the terminal device determines that the communication connection has been established. , the related operations of S206 can be performed.
在S206中,根据多个所述数据子列表生成导出结果,将所述导出结果发送给所述用户终端。In S206, a derivation result is generated according to the plurality of the data sub-lists, and the derivation result is sent to the user terminal.
在本实施例中,由于终端设备在导出数据的过程中,可能生成多个数据子列表,在该情况下,将多个数据子列表封装于同一个文件内,生成上述导出结果。In this embodiment, since the terminal device may generate a plurality of data sub-lists in the process of exporting data, in this case, the plurality of data sub-lists are encapsulated in the same file to generate the above-mentioned derivation result.
在本实施例中,终端设备在生成导出结果后,将通过在S205中建立的通信信道,向用户终端发送导出结果,以完成导出数据服务的响应。可选地,用户终端设有最大等待时间,当用户终端在发送数据导出指令后,将开始进行计时,若检测到等待时间大于最大等待时间,则与终端设备建立通信连接,并发送导出进度获取指令,以便确认当前的导出进度。In this embodiment, after generating the derivation result, the terminal device sends the derivation result to the user terminal through the communication channel established in S205 to complete the response of the derivation data service. Optionally, the user terminal is configured to have a maximum waiting time. When the user terminal sends a data export instruction, the user terminal starts to perform timing. If the waiting time is greater than the maximum waiting time, the communication connection is established with the terminal device, and the export progress is obtained. Instructions to confirm the current export progress.
在本申请实施例中,通过在接收到用户发送的数据导出指令后,则断开与其之间的通信连接,释放通信资源,在导出操作完成后,才建立连接,并向其返回对应的导出结果,从而避免因长时间连接而导致连接失效,无法将导出结果反馈给用户,另一方面,也释放了网络资源,在导出过程中属于长时间等待结果的过程,数据交互的情况较少,此时终端设备可响应其他用户终端的服务请求,因此本实施例也可以充分实现终端设备业务的时分复用,提高了终端设备的利用率以及减少导出操作资源的占用率。In the embodiment of the present application, after receiving the data export instruction sent by the user, the communication connection with the user is disconnected, the communication resource is released, and the connection is established after the export operation is completed, and the corresponding export is returned to the same. As a result, the connection failure is prevented due to long-time connection, and the export result cannot be fed back to the user. On the other hand, the network resource is also released, and the process of waiting for a long time in the export process has less data interaction. In this case, the terminal device can respond to the service request of the other user terminal. Therefore, the time division multiplexing of the terminal device service can be fully implemented in the embodiment, the utilization rate of the terminal device is improved, and the occupancy rate of the exported operation resource is reduced.
图3示出了本申请第三实施例提供的一种数据列表的导出方法S101的具体实现流程图。参见图3所示,相对于图1所述实施例,本实施例提供的一种客户反馈信息的处理方法S101包含S301~S303,详述如下:FIG. 3 is a flowchart showing a specific implementation of a method for deriving a data list S101 according to the third embodiment of the present application. As shown in FIG. 3, with respect to the embodiment shown in FIG. 1, a method S101 for processing customer feedback information provided by this embodiment includes S301~S303, which is as follows:
数据库中与所述数据查询请求匹配的所述数据查询结果,以及所述数据查询结果对应的数据个数。The data query result in the database that matches the data query request, and the number of data corresponding to the data query result.
在本实施例中,终端设备在接收到用户的数据查询请求后,则根据数据查询请求中包含的查询关键词,确定数据库中与查询关键词匹配的数据查询结果,在该步骤中,终端设备并未对查询得到的数据进行提取,只是在数据库中标记与查询关键词匹配的数据。In this embodiment, after receiving the data query request of the user, the terminal device determines, according to the query keyword included in the data query request, a data query result that matches the query keyword in the database, and in this step, the terminal device The data obtained by the query is not extracted, but the data matching the query keyword is marked in the database.
在本实施例中,终端设备在对整个数据库中查找完成后,则得到数据查询结果,确定数据库中与查询关键词匹配的所有待显示的数据,此时,终端设备将统计查询结果中包含的数据个数,具体地,则查询得到的数据列表中包含的行数为多少。In this embodiment, after the terminal device completes the search in the entire database, the data query result is obtained, and all the data to be displayed that matches the query keyword in the database is determined. At this time, the terminal device will include the statistics included in the query result. The number of data, specifically, the number of rows included in the data list obtained by the query.
在S302中,根据预设的最大显示个数,将所述数据查询结果划分为多个子数据查询结果,并对每个所述子数据查询结果分别关联显示编号。In S302, the data query result is divided into a plurality of sub-data query results according to a preset maximum number of displays, and a display number is associated with each of the sub-data query results.
在本实施例中,终端设备内设有最大显示个数,即表示一个页面中一次可显示的数据个数或列表行数。其中,该最大显示个数可通过系统默认设置,也可以通过用户在查询过程中随时调整。优选地,该最大显示个数与用户终端的分辨率以及显示模块的面积相关,根据用户终端的分辨率以及显示模块的面积,确定同一界面内最大可容纳的数据个数,作为最大显示个数。In this embodiment, the maximum number of displays is displayed in the terminal device, that is, the number of data or the number of list lines that can be displayed at one time in one page. The maximum number of displays can be set by the system default, or can be adjusted at any time by the user during the query process. Preferably, the maximum number of displays is related to the resolution of the user terminal and the area of the display module, and the maximum number of data that can be accommodated in the same interface is determined according to the resolution of the user terminal and the area of the display module, as the maximum number of displays. .
在本实施例中,终端设备将根据预设的最大显示个数以及数据查询结果中包含的数据个数,划分为多个子数据查询结果,其中,每个子数据查询结果包含的数据个数最多为最大显示个数。In this embodiment, the terminal device divides the maximum number of displays and the number of data included in the data query result into multiple sub-data query results, wherein each sub-data query result includes the maximum number of data. The maximum number of displays.
在本实施例中,终端设备将分别为每个子数据查询结果关联一个显示编号,即显示编号与子数据查询结果是一一对应的关系。具体地,终端设备可根据预设的排序方式,对数据查询结果内的数据进行排序,并根据最大显示个数,依次对数据查询结果进行划分,并依次进行编号。In this embodiment, the terminal device associates each sub-data query result with a display number, that is, a relationship in which the display number and the sub-data query result are in one-to-one correspondence. Specifically, the terminal device may sort the data in the data query result according to a preset sorting manner, and sequentially divide the data query result according to the maximum display number, and sequentially number them.
在S303中,根据所述用户终端选择的所述显示编号,从所述数据库中提取所述显示编号关联的所述子数据查询结果并显示。In S303, the sub-data query result associated with the display number is extracted from the database according to the display number selected by the user terminal, and displayed.
在本实施例中,终端设备可根据用户终端发送的显示编号,从数据库中提取该显示编号关联的子数据查询结果至本地缓存中,并显示该子数据查询结果中包含的数据。即本实施例中,终端设备每次从数据库中提取的数据量为最大显示个数对应的数据量。In this embodiment, the terminal device may extract the sub-data query result associated with the display number from the database to the local cache according to the display number sent by the user terminal, and display the data included in the sub-data query result. That is, in the embodiment, the amount of data extracted by the terminal device from the database is the amount of data corresponding to the maximum number of displays.
在本申请实施例中,终端设备每次提取的数据量为最大显示个数对应的数据量,由于终端设备并非一次性对所有查询得到的数据进行提取,因此等待的时间较少,响应速率较快,从而避免因提取操作时间过长而导致服务响应超时的情况发生。In the embodiment of the present application, the amount of data extracted by the terminal device is the amount of data corresponding to the maximum number of displays. Since the terminal device does not extract all the data obtained by the query at one time, the waiting time is less, and the response rate is shorter. Fast, so as to avoid the service response timeout caused by the long extraction operation time.
图4示出了本申请第四实施例提供的一种数据列表的导出方法S103的具体实现流程图。参见图4所示,相对于图1至图3所述实施例,本实施例提供的一种数据列表的导出方法中S103还包含S401~S403,详述如下:FIG. 4 is a flowchart showing a specific implementation of a method for deriving a data list S103 according to the fourth embodiment of the present application. Referring to FIG. 4, in the embodiment of the data list, the S103 further includes S401~S403 in the method for deriving the data list according to the embodiment shown in FIG.
在S401中,接收所述用户终端发起的导出控制指令。In S401, an export control instruction initiated by the user terminal is received.
在本实施例中,用户终端的导出显示页面中通过AJAX技术设置相应的导出控制按钮。用户在导出过程中,可在本地的用户终端上点击相应的导出控制按钮,继而用户终端接收到相关的点击操作后,将通过页面中AJAX技术生成相应的导出控制指令,并将该导出控制指令发送给终端设备。In this embodiment, the corresponding export control button is set by the AJAX technology in the export display page of the user terminal. During the export process, the user can click the corresponding export control button on the local user terminal, and then after receiving the relevant click operation, the user terminal will generate a corresponding export control instruction through the AJAX technology in the page, and export the control command. Send to the terminal device.
在本实施例中,导出控制指令包括但不限于:暂停导出指令、终止导出指令、恢复导出指令、重新导出指令等。In this embodiment, the export control instructions include, but are not limited to, suspending the export instruction, terminating the export instruction, restoring the export instruction, re-exporting the instruction, and the like.
在S402中,添加所述导出控制指令至提取操作控制数据流;其中,所述提取操作控制数据流为:数据列表的导出终端与所述数据库之间在进行提取操作时所产生的控制数据。In S402, the export control instruction is added to the extraction operation control data flow; wherein the extraction operation control data flow is: control data generated between the export terminal of the data list and the database when performing the extraction operation.
在本实施例中,终端设备与数据库在进行导出操作的过程中,两者之间将产生两路数据流,分别为:由数据库指向终端设备的提取结果数据流,即提取生成数据子列表的数据产生的数据流;以及有终端设备,即上述数据列表的导出终端指向数据库的提取操作控制数据流,用于控制数据库进行相关的提取操作,如向数据库发送文件最大行数、本次提取操作中待导出数据的编号范围以及上述导出控制指令等控制数据。In this embodiment, in the process of performing the export operation between the terminal device and the database, two data streams are generated between the two, which are: the data stream of the extraction result pointed out by the database to the terminal device, that is, the data sub-list of the generated data is extracted. The data stream generated by the data; and the terminal device, that is, the export terminal of the above data list points to the extraction operation control data flow of the database, and is used for controlling the database to perform related extraction operations, such as sending the maximum number of lines of the file to the database, and the current extraction operation The number range of the data to be exported and the control data such as the above-mentioned export control command.
在本实施例中,终端设备在接收到用户终端发送的导出控制指令后,将该导出控制指令添加到该提取操作控制数据流中,以便该控制数据流传输至数据库中实现相应的导出控制操作。In this embodiment, after receiving the export control instruction sent by the user terminal, the terminal device adds the export control command to the extraction operation control data stream, so that the control data stream is transmitted to the database to implement a corresponding export control operation. .
在S403中,若所述提取操作控制数据流包含导出控制指令,则执行所述导出控制指令对应的导出控制操作。In S403, if the extraction operation control data stream includes an export control instruction, the derivation control operation corresponding to the derivation control instruction is executed.
在本实施例中,终端设备对应的数据库检测到该提取操作控制数据流中包含导出控制指令,则执行响应的导出控制操作。具体地,若该导出控制指令为暂停导出指令,则停止数据提取操作,等待用户再次启动该导出流程;若该导出控制指令为中止导出指令,则结束本次导出响应操作,并删除已生成的数据子列表;若导出控制指令为恢复导出指令,则在继续执行暂停时刻所对应的数据提取操作,生成暂停时刻所对应的数据子列表。In this embodiment, when the database corresponding to the terminal device detects that the extraction operation control data stream includes the export control instruction, the export control operation of the response is performed. Specifically, if the export control instruction is a pause export instruction, stopping the data extraction operation, waiting for the user to start the export process again; if the export control instruction is aborting the export instruction, ending the export response operation and deleting the generated output The data sub-list; if the export control instruction is the resume export instruction, the data extraction operation corresponding to the pause time is continued, and the data sub-list corresponding to the pause time is generated.
在本申请实施例中,用户终端可随时控制终端设备的导出操作,提高了用户的可操作范围以及用户体验度。In the embodiment of the present application, the user terminal can control the export operation of the terminal device at any time, thereby improving the operable range of the user and the user experience.
图5示出了本申请第五实施例提供的一种数据列表的导出方法S103的具体实现流程图。参见图5所示,相对于图1所述实施例,本实施例提供的一种数据列表的导出方法中S103还包含S501以及S502,详述如下:FIG. 5 is a flowchart showing a specific implementation of a method for deriving a data list S103 according to the fifth embodiment of the present application. As shown in FIG. 5, in the method for deriving the data list provided in this embodiment, S103 further includes S501 and S502, which are as follows:
在S501中,在每生成一所述数据子列表后,重置导出响应计时器的数值。In S501, the value of the derived response timer is reset after each of the data sublists is generated.
在本实施例中,终端设备在执行每个相关操作中,均设置对应的最大操作时长,来自动对异常操作进行修复。因此,终端设备为了判定导出操作是否异常,将设置最大响应时长。In this embodiment, the terminal device sets a corresponding maximum operation duration in each related operation to automatically repair the abnormal operation. Therefore, the terminal device sets the maximum response duration in order to determine whether the export operation is abnormal.
在本实施例中,终端设备在每生成一个数据子列表后,则重置导出响应计时器的数值,以避免因导出的数据量过大,而导致响应时间过长,被判断为导出异常操作。另一方面,该导出响应计时器还用于保持终端设备与数据库之间的会话有效,由于导出过程中,需要终端设备与数据库长时间保持数据交互状态,因此两者之间会设立一个会话有效时长,即session值,终端设备在重置该响应计时器的数值时,也会同步更新该session值,来维持终端设备与数据库之间的会话有效。In this embodiment, after each data sub-list is generated, the terminal device resets the value of the derivation response timer to avoid that the amount of data to be exported is too large, and the response time is too long, and is determined to be an abnormal operation. . On the other hand, the export response timer is also used to keep the session between the terminal device and the database valid. Since the terminal device and the database need to maintain data interaction status for a long time during the export process, a session is established between the two. The duration, that is, the session value, when the terminal device resets the value of the response timer, the session value is also updated synchronously to maintain the session between the terminal device and the database.
在S502中,若所述导出响应计时器的数值大于预设的最大响应时长,则执行导出异常操作。In S502, if the value of the export response timer is greater than a preset maximum response duration, the export exception operation is performed.
在本实施例中,终端设备在检测到导出响应计时器的数值大于最大响应时长时,则判定当前导出操作存在异常,因此将执行导出异常操作。具体地,该导出异常操作可以为:断开与数据库之间的数据连接,并重启数据库;当数据库启动完成后再重新建立连接,以便再次执行导出操作。In this embodiment, when the terminal device detects that the value of the export response timer is greater than the maximum response duration, it determines that there is an abnormality in the current export operation, and thus the export abnormal operation is performed. Specifically, the exporting the abnormal operation may be: disconnecting the data connection with the database, and restarting the database; and re-establishing the connection after the database startup is completed, so as to perform the export operation again.
在本申请实施例中,通过每次生成一个数据子列表后,重置导出响应计时器的数值,以保持终端设备与数据库之间的会话有效,并避免因数据量过大而导致导出超时的情况发生。In the embodiment of the present application, after each data sub-list is generated, the value of the export response timer is reset to keep the session between the terminal device and the database valid, and the export timeout is avoided due to excessive data volume. The situation happened.
图6示出了本申请一实施例提供的一种数据列表的导出终端的结构框图,该数据列表的导出终端包括的各单元用于执行图1对应的实施例中的各步骤。具体请参阅图1与图1所对应的实施例中的相关描述。为了便于说明,仅示出了与本实施例相关的部分。FIG. 6 is a structural block diagram of a derivation terminal of a data list according to an embodiment of the present application, where each unit included in the derivation terminal of the data list is used to execute each step in the embodiment corresponding to FIG. 1. For details, please refer to the related description in the embodiment corresponding to FIG. 1 and FIG. For the convenience of explanation, only the parts related to the present embodiment are shown.
参见图6,所述数据列表的导出终端包括:Referring to FIG. 6, the export terminal of the data list includes:
数据查询结果显示单元61,用于根据用户终端发送的数据查询请求,显示数据查询结果;The data query result display unit 61 is configured to display a data query result according to the data query request sent by the user terminal;
待导出数据确定单元62,用于接收所述用户终端根据所述数据查询结果返回的数据导出指令,并从所述数据查询结果中确定所述数据导出指令对应的待导出数据;The to-be-exported data determining unit 62 is configured to receive a data exporting instruction that is returned by the user terminal according to the data query result, and determine, from the data query result, the to-be-exported data corresponding to the data exporting instruction;
数据子列表生成单元63,用于依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表;The data sub-list generating unit 63 is configured to sequentially extract data matching the maximum number of rows of the preset file from the data to be exported, and generate at least one data sub-list according to the data extracted each time;
数据子列表发送单元64,用于将所述数据子列表发送给所述用户终端。The data sub-list sending unit 64 is configured to send the data sub-list to the user terminal.
可选地,所述待导出数据确定单元62包括:Optionally, the to-be-exported data determining unit 62 includes:
通信连接中断单元,用于断开与所述用户终端的通信连接,并在通信连接断开后,从所述数据查询结果中确定所述数据导出指令对应的待导出数据;a communication connection interruption unit, configured to disconnect a communication connection with the user terminal, and determine, after the communication connection is disconnected, the data to be exported corresponding to the data export instruction from the data query result;
所述数据子列表发送单元64包括:The data sub-list sending unit 64 includes:
通信连接重连单元,用于若检测到所述待导出数据已提取完毕,则向所述用户终端发送通信连接请求,以建立与所述用户终端之间的通信连接;a communication connection reconnection unit, configured to: if it is detected that the to-be-exported data has been extracted, send a communication connection request to the user terminal to establish a communication connection with the user terminal;
导出结果发送单元,用于根据多个所述数据子列表生成导出结果,将所述导出结果发送给所述用户终端。And a derivation result sending unit, configured to generate a derivation result according to the plurality of the data sub-lists, and send the derivation result to the user terminal.
可选地,所述数据查询结果显示单元61包括:Optionally, the data query result display unit 61 includes:
数据查询结果确定单元,用于确定数据库中与所述数据查询请求匹配的所述数据查询结果,以及所述数据查询结果对应的数据个数;a data query result determining unit, configured to determine the data query result in the database that matches the data query request, and the number of data corresponding to the data query result;
数据查询结果划分单元,用于根据预设的最大显示个数,将所述数据查询结果划分为多个子数据查询结果,并对每个所述子数据查询结果分别关联显示编号;a data query result dividing unit, configured to divide the data query result into a plurality of sub-data query results according to a preset maximum number of displays, and associate a display number with each of the sub-data query results;
子数据查询结果显示单元,用于根据所述用户终端选择的所述显示编号,从所述数据库中提取所述显示编号关联的所述子数据查询结果并显示。The sub-data query result display unit is configured to extract and display the sub-data query result associated with the display number from the database according to the display number selected by the user terminal.
可选地,所述数据子列表生成单元63包括:Optionally, the data sub-list generating unit 63 includes:
导出控制指令接收单元,用于接收所述用户终端发起的导出控制指令;And an export control instruction receiving unit, configured to receive an export control instruction initiated by the user terminal;
导出控制指令添加单元,用于添加所述导出控制指令至提取操作控制数据流;其中,所述提取操作控制数据流为:数据列表的导出终端与所述数据库之间在进行提取操作时所产生的控制数据;And an export control instruction adding unit, configured to add the export control command to the extracting operation control data stream; wherein the extracting operation controls the data stream to be: when the extracting terminal of the data list and the database are generated during the extracting operation Control data;
导出控制指令响应单元,用于若所述提取操作控制数据流包含导出控制指令,则执行所述导出控制指令对应的导出控制操作。The export control command response unit is configured to execute the export control operation corresponding to the export control command if the extraction operation control data stream includes an export control command.
可选地,所述数据子列表生成单元63包括:Optionally, the data sub-list generating unit 63 includes:
响应计时器重置单元,用于在每生成一所述数据子列表后,重置导出响应计时器的数值;a response timer reset unit, configured to reset a value of the export response timer after each generating the data sublist;
异常处理单元,用于若所述导出响应计时器的数值大于预设的最大响应时长,则执行导出异常操作。The exception processing unit is configured to perform an export exception operation if the value of the export response timer is greater than a preset maximum response duration.
因此,本申请实施例提供的数据类别的导出终端同样可以根据预设的文件最大行数,将所有的待导出数据拆分为多个数据子列表进行导出,从而每个数据子列表实际包含的行数将不会超过文件最大可容纳的行数,避免因数据量过大而导致导出失败的情况发生,提高了数据导出过程的成功率。另一方面,由于数据导出成功率的提高,也减少了用户重复执行导出操作的次数,也提高了数据列表导出的效率。Therefore, the derivation terminal of the data category provided by the embodiment of the present application can also split all the data to be exported into multiple data sub-lists according to the preset maximum number of lines of the file, so that each data sub-list actually contains The number of rows will not exceed the maximum number of rows that the file can accommodate, avoiding the failure of the export due to excessive data volume, and improving the success rate of the data export process. On the other hand, due to the improvement of the data export success rate, the number of times the user repeatedly performs the export operation is also reduced, and the efficiency of data list export is also improved.
图7是本申请另一实施例提供的一种终端设备的示意图。如图7所示,该实施例的终端设备7包括:处理器70、存储器71以及存储在所述存储器71中并可在所述处理器70上运行的计算机可读指令72,例如数据列表的导出程序。所述处理器70执行所述计算机可读指令72时实现上述各个数据列表的导出方法实施例中的步骤,例如图1所示的S101至S104。或者,所述处理器70执行所述计算机可读指令72时实现上述各装置实施例中各单元的功能,例如图6所示模块61至64功能。FIG. 7 is a schematic diagram of a terminal device according to another embodiment of the present application. As shown in FIG. 7, the terminal device 7 of this embodiment includes a processor 70, a memory 71, and computer readable instructions 72 stored in the memory 71 and operable on the processor 70, such as a data list. Export the program. The processor 70 executes the steps of the method for deriving the respective data lists when the computer readable instructions 72 are executed, such as S101 to S104 shown in FIG. 1. Alternatively, the processor 70, when executing the computer readable instructions 72, implements the functions of the various units in the various apparatus embodiments described above, such as the functions of the modules 61-64 shown in FIG.
示例性的,所述计算机可读指令72可以被分割成一个或多个单元,所述一个或者多个单元被存储在所述存储器71中,并由所述处理器70执行,以完成本申请。所述一个或多个单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令72在所述终端设备7中的执行过程。例如,所述计算机可读指令72可以被分割成数据查询结果显示单元、待导出数据确定单元、数据子列表生成单元以及数据子列表发送单元,各单元功能如上。Illustratively, the computer readable instructions 72 may be partitioned into one or more units, the one or more units being stored in the memory 71 and executed by the processor 70 to complete the application. . The one or more units may be a series of computer readable instruction instructions segments capable of performing a particular function for describing the execution of the computer readable instructions 72 in the terminal device 7. For example, the computer readable instructions 72 may be segmented into a data query result display unit, a data to be derived determination unit, a data sub-list generation unit, and a data sub-list transmission unit, each unit functioning as above.
所述终端设备7可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器70、存储器71。本领域技术人员可以理解,图7仅仅是终端设备7的示例,并不构成对终端设备7的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 7 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 70 and a memory 71. It will be understood by those skilled in the art that FIG. 7 is only an example of the terminal device 7, and does not constitute a limitation of the terminal device 7, and may include more or less components than those illustrated, or combine some components or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器70可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 70 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
所述存储器71可以是所述终端设备7的内部存储单元,例如终端设备7的硬盘或内存。所述存储器71也可以是所述终端设备7的外部存储设备,例如所述终端设备7上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器71还可以既包括所述终端设备7的内部存储单元也包括外部存储设备。所述存储器71用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器71还可以用于暂时地存储已经输出或者将要输出的数据。The memory 71 may be an internal storage unit of the terminal device 7, such as a hard disk or a memory of the terminal device 7. The memory 71 may also be an external storage device of the terminal device 7, for example, a plug-in hard disk provided on the terminal device 7, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on. Further, the memory 71 may also include both an internal storage unit of the terminal device 7 and an external storage device. The memory 71 is configured to store the computer readable instructions and other programs and data required by the terminal device. The memory 71 can also be used to temporarily store data that has been output or is about to be output.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种数据列表的导出方法,其特征在于,包括:A method for deriving a data list, comprising:
    根据用户终端发送的数据查询请求,显示数据查询结果;Displaying a data query result according to a data query request sent by the user terminal;
    接收所述用户终端根据所述数据查询结果返回的数据导出指令,并从所述数据查询结果中确定所述数据导出指令对应的待导出数据;Receiving, by the user terminal, a data export instruction returned according to the data query result, and determining, from the data query result, the to-be-exported data corresponding to the data export instruction;
    依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表;And sequentially extracting data matching the maximum number of rows of the preset file from the data to be exported, and generating at least one data sub-list according to the data extracted each time;
    将所述数据子列表发送给所述用户终端。Sending the data sublist to the user terminal.
  2. 根据权利要求1所述的导出方法,其特征在于,所述从所述数据查询结果中确定所述数据导出指令对应的待导出数据包括:The method according to claim 1, wherein the determining, from the data query result, the data to be exported corresponding to the data exporting instruction comprises:
    断开与所述用户终端的通信连接,并在通信连接断开后,从所述数据查询结果中确定所述数据导出指令对应的待导出数据;Disconnecting the communication connection with the user terminal, and determining, after the communication connection is disconnected, the data to be exported corresponding to the data exporting instruction from the data query result;
    所述将所述数据子列表发送给所述用户终端包括:The sending the data sub-list to the user terminal includes:
    若检测到所述待导出数据已提取完毕,则向所述用户终端发送通信连接请求,以建立与所述用户终端之间的通信连接;If it is detected that the data to be exported has been extracted, sending a communication connection request to the user terminal to establish a communication connection with the user terminal;
    根据多个所述数据子列表生成导出结果,将所述导出结果发送给所述用户终端。Generating an export result according to the plurality of data sub-lists, and transmitting the export result to the user terminal.
  3. 根据权利要求1所述的导出方法,其特征在于,所述根据用户终端发送的数据查询请求,显示数据查询结果包括:The derivation method according to claim 1, wherein the displaying the data query result according to the data query request sent by the user terminal comprises:
    确定数据库中与所述数据查询请求匹配的所述数据查询结果,以及所述数据查询结果对应的数据个数;Determining, in the database, the data query result that matches the data query request, and the number of data corresponding to the data query result;
    根据预设的最大显示个数,将所述数据查询结果划分为多个子数据查询结果,并对每个所述子数据查询结果分别关联显示编号;Dividing the data query result into a plurality of sub-data query results according to a preset maximum number of displays, and respectively correlating display numbers with each of the sub-data query results;
    根据所述用户终端选择的所述显示编号,从所述数据库中提取所述显示编号关联的所述子数据查询结果并显示。And extracting, according to the display number selected by the user terminal, the sub-data query result associated with the display number from the database and displaying the sub-data query result.
  4. 根据权利要求1-3任一项所述的导出方法,其特征在于,所述依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表包括:The derivation method according to any one of claims 1-3, wherein the data that is matched with the maximum number of rows of the preset file is extracted from the data to be exported in turn, and is extracted according to each time. The data generated by the at least one data sub-list includes:
    接收所述用户终端发起的导出控制指令;Receiving an export control instruction initiated by the user terminal;
    添加所述导出控制指令至提取操作控制数据流;其中,所述提取操作控制数据流为:数据列表的导出终端与所述数据库之间在进行提取操作时所产生的控制数据;Adding the export control instruction to the extraction operation control data flow; wherein the extraction operation control data flow is: control data generated between the export terminal of the data list and the database when performing an extraction operation;
    若所述提取操作控制数据流包含导出控制指令,则执行所述导出控制指令对应的导出控制操作。And if the extraction operation control data stream includes an export control instruction, performing an export control operation corresponding to the export control instruction.
  5. 根据权利要求1所述的导出方法,其特征在于,所述依次从所述待导出数据中提取与预设的文件最大行数匹配的数据,并根据每次提取的所述数据生成数据子列表包括:The derivation method according to claim 1, wherein the data that matches the maximum number of rows of the preset file is extracted from the data to be exported in turn, and the data sublist is generated according to the data extracted each time. include:
    在每生成一所述数据子列表后,重置导出响应计时器的数值;Resetting the value of the export response timer after each generation of the data sublist;
    所述导出方法还包括:The export method further includes:
    若所述导出响应计时器的数值大于预设的最大响应时长,则执行导出异常操作。If the value of the export response timer is greater than a preset maximum response duration, an export exception operation is performed.
  6. 一种数据列表的导出终端,其特征在于,包括:An export terminal for a data list, comprising:
    数据查询结果显示单元,用于根据用户终端发送的数据查询请求,显示数据查询结果;a data query result display unit, configured to display a data query result according to the data query request sent by the user terminal;
    待导出数据确定单元,用于接收所述用户终端根据所述数据查询结果返回的数据导出指令,并从所述数据查询结果中确定所述数据导出指令对应的待导出数据;a to be derived data determining unit, configured to receive a data export instruction returned by the user terminal according to the data query result, and determine, from the data query result, the to-be-exported data corresponding to the data exporting instruction;
    数据子列表生成单元,用于依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表;a data sub-list generating unit, configured to sequentially extract data matching the maximum number of rows of the preset file from the data to be exported, and generate at least one data sub-list according to the data extracted each time;
    数据子列表发送单元,用于将所述数据子列表发送给所述用户终端。And a data sub-list sending unit, configured to send the data sub-list to the user terminal.
  7. 根据权利要求6所述的导出终端,其特征在于,所述待导出数据确定单元包括:The deriving terminal according to claim 6, wherein the data to be derived determining unit comprises:
    通信连接中断单元,用于断开与所述用户终端的通信连接,并在通信连接断开后,从所述数据查询结果中确定所述数据导出指令对应的待导出数据;a communication connection interruption unit, configured to disconnect a communication connection with the user terminal, and determine, after the communication connection is disconnected, the data to be exported corresponding to the data export instruction from the data query result;
    所述数据子列表发送单元包括:The data sub-list sending unit includes:
    通信连接重连单元,用于若检测到所述待导出数据已提取完毕,则向所述用户终端发送通信连接请求,以建立与所述用户终端之间的通信连接;a communication connection reconnection unit, configured to: if it is detected that the to-be-exported data has been extracted, send a communication connection request to the user terminal to establish a communication connection with the user terminal;
    导出结果发送单元,用于根据多个所述数据子列表生成导出结果,将所述导出结果发送给所述用户终端。And a derivation result sending unit, configured to generate a derivation result according to the plurality of the data sub-lists, and send the derivation result to the user terminal.
  8. 根据权利要求6所述的导出终端,其特征在于,所述数据查询结果显示单元包括:The derivation terminal according to claim 6, wherein the data query result display unit comprises:
    数据查询结果确定单元,用于确定数据库中与所述数据查询请求匹配的所述数据查询结果,以及所述数据查询结果对应的数据个数;a data query result determining unit, configured to determine the data query result in the database that matches the data query request, and the number of data corresponding to the data query result;
    数据查询结果划分单元,用于根据预设的最大显示个数,将所述数据查询结果划分为多个子数据查询结果,并对每个所述子数据查询结果分别关联显示编号;a data query result dividing unit, configured to divide the data query result into a plurality of sub-data query results according to a preset maximum number of displays, and associate a display number with each of the sub-data query results;
    子数据查询结果显示单元,用于根据所述用户终端选择的所述显示编号,从所述数据库中提取所述显示编号关联的所述子数据查询结果并显示。The sub-data query result display unit is configured to extract and display the sub-data query result associated with the display number from the database according to the display number selected by the user terminal.
  9. 根据权利要求6-8任一项所述的导出终端,其特征在于,所述数据子列表生成单元包括:The deriving terminal according to any one of claims 6 to 8, wherein the data sub-list generating unit comprises:
    导出控制指令接收单元,用于接收所述用户终端发起的导出控制指令;And an export control instruction receiving unit, configured to receive an export control instruction initiated by the user terminal;
    导出控制指令添加单元,用于添加所述导出控制指令至提取操作控制数据流;其中,所述提取操作控制数据流为:数据列表的导出终端与所述数据库之间在进行提取操作时所产生的控制数据;And an export control instruction adding unit, configured to add the export control command to the extracting operation control data stream; wherein the extracting operation controls the data stream to be: when the extracting terminal of the data list and the database are generated during the extracting operation Control data;
    导出控制指令响应单元,用于若所述提取操作控制数据流包含导出控制指令,则执行所述导出控制指令对应的导出控制操作。The export control command response unit is configured to execute the export control operation corresponding to the export control command if the extraction operation control data stream includes an export control command.
  10. 根据权利要求6所述的调整终端,其特征在于,所述数据子列表生成单元包括:The adjustment terminal according to claim 6, wherein the data sub-list generating unit comprises:
    响应计时器重置单元,用于在每生成一所述数据子列表后,重置导出响应计时器的数值;a response timer reset unit, configured to reset a value of the export response timer after each generating the data sublist;
    异常处理单元,用于若所述导出响应计时器的数值大于预设的最大响应时长,则执行导出异常操作。The exception processing unit is configured to perform an export exception operation if the value of the export response timer is greater than a preset maximum response duration.
  11. 一种终端设备,其特征在于,所述终端设备包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device, comprising: a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable The following steps are implemented when the instruction is executed:
    根据用户终端发送的数据查询请求,显示数据查询结果;Displaying a data query result according to a data query request sent by the user terminal;
    接收所述用户终端根据所述数据查询结果返回的数据导出指令,并从所述数据查询结果中确定所述数据导出指令对应的待导出数据;Receiving, by the user terminal, a data export instruction returned according to the data query result, and determining, from the data query result, the to-be-exported data corresponding to the data export instruction;
    依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表;And sequentially extracting data matching the maximum number of rows of the preset file from the data to be exported, and generating at least one data sub-list according to the data extracted each time;
    将所述数据子列表发送给所述用户终端。Sending the data sublist to the user terminal.
  12. 根据权利要求11所述的终端设备,其特征在于,其特征在于,所述从所述数据查询结果中确定所述数据导出指令对应的待导出数据包括:The terminal device according to claim 11, wherein the determining, by the data query result, the data to be exported corresponding to the data exporting instruction comprises:
    断开与所述用户终端的通信连接,并在通信连接断开后,从所述数据查询结果中确定所述数据导出指令对应的待导出数据;Disconnecting the communication connection with the user terminal, and determining, after the communication connection is disconnected, the data to be exported corresponding to the data exporting instruction from the data query result;
    所述将所述数据子列表发送给所述用户终端包括:The sending the data sub-list to the user terminal includes:
    若检测到所述待导出数据已提取完毕,则向所述用户终端发送通信连接请求,以建立与所述用户终端之间的通信连接;If it is detected that the data to be exported has been extracted, sending a communication connection request to the user terminal to establish a communication connection with the user terminal;
    根据多个所述数据子列表生成导出结果,将所述导出结果发送给所述用户终端。Generating an export result according to the plurality of data sub-lists, and transmitting the export result to the user terminal.
  13. 根据权利要求11所述的终端设备,其特征在于,所述根据用户终端发送的数据查询请求,显示数据查询结果包括:The terminal device according to claim 11, wherein the displaying the data query result according to the data query request sent by the user terminal comprises:
    确定数据库中与所述数据查询请求匹配的所述数据查询结果,以及所述数据查询结果对应的数据个数;Determining, in the database, the data query result that matches the data query request, and the number of data corresponding to the data query result;
    根据预设的最大显示个数,将所述数据查询结果划分为多个子数据查询结果,并对每个所述子数据查询结果分别关联显示编号;Dividing the data query result into a plurality of sub-data query results according to a preset maximum number of displays, and respectively correlating display numbers with each of the sub-data query results;
    根据所述用户终端选择的所述显示编号,从所述数据库中提取所述显示编号关联的所述子数据查询结果并显示。And extracting, according to the display number selected by the user terminal, the sub-data query result associated with the display number from the database and displaying the sub-data query result.
  14. 根据权利要求11-13任一项所述的终端设备,其特征在于,所述依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表包括:The terminal device according to any one of claims 11 to 13, wherein the data that is matched from the data to be exported is matched with the maximum number of rows of the preset file, and is extracted according to each time. The data generated by the at least one data sub-list includes:
    接收所述用户终端发起的导出控制指令;Receiving an export control instruction initiated by the user terminal;
    添加所述导出控制指令至提取操作控制数据流;其中,所述提取操作控制数据流为:数据列表的导出终端与所述数据库之间在进行提取操作时所产生的控制数据;Adding the export control instruction to the extraction operation control data flow; wherein the extraction operation control data flow is: control data generated between the export terminal of the data list and the database when performing an extraction operation;
    若所述提取操作控制数据流包含导出控制指令,则执行所述导出控制指令对应的导出控制操作。And if the extraction operation control data stream includes an export control instruction, performing an export control operation corresponding to the export control instruction.
  15. 根据权利要求11所述的终端设备,其特征在于,所述依次从所述待导出数据中提取与预设的文件最大行数匹配的数据,并根据每次提取的所述数据生成数据子列表包括:The terminal device according to claim 11, wherein the data that matches the maximum number of lines of the preset file is extracted from the data to be exported, and the data sublist is generated according to the data extracted each time. include:
    在每生成一所述数据子列表后,重置导出响应计时器的数值;Resetting the value of the export response timer after each generation of the data sublist;
    所述导出方法还包括:The export method further includes:
    若所述导出响应计时器的数值大于预设的最大响应时长,则执行导出异常操作。If the value of the export response timer is greater than a preset maximum response duration, an export exception operation is performed.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by a processor, implement the following steps:
    根据用户终端发送的数据查询请求,显示数据查询结果;Displaying a data query result according to a data query request sent by the user terminal;
    接收所述用户终端根据所述数据查询结果返回的数据导出指令,并从所述数据查询结果中确定所述数据导出指令对应的待导出数据;Receiving, by the user terminal, a data export instruction returned according to the data query result, and determining, from the data query result, the to-be-exported data corresponding to the data export instruction;
    依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表;And sequentially extracting data matching the maximum number of rows of the preset file from the data to be exported, and generating at least one data sub-list according to the data extracted each time;
    将所述数据子列表发送给所述用户终端。Sending the data sublist to the user terminal.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述从所述数据查询结果中确定所述数据导出指令对应的待导出数据包括:The computer readable storage medium according to claim 16, wherein the determining, from the data query result, the data to be exported corresponding to the data exporting instruction comprises:
    断开与所述用户终端的通信连接,并在通信连接断开后,从所述数据查询结果中确定所述数据导出指令对应的待导出数据;Disconnecting the communication connection with the user terminal, and determining, after the communication connection is disconnected, the data to be exported corresponding to the data exporting instruction from the data query result;
    所述将所述数据子列表发送给所述用户终端包括:The sending the data sub-list to the user terminal includes:
    若检测到所述待导出数据已提取完毕,则向所述用户终端发送通信连接请求,以建立与所述用户终端之间的通信连接;If it is detected that the data to be exported has been extracted, sending a communication connection request to the user terminal to establish a communication connection with the user terminal;
    根据多个所述数据子列表生成导出结果,将所述导出结果发送给所述用户终端。Generating an export result according to the plurality of data sub-lists, and transmitting the export result to the user terminal.
  18. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述根据用户终端发送的数据查询请求,显示数据查询结果包括:The computer readable storage medium according to claim 16, wherein the displaying the data query result according to the data query request sent by the user terminal comprises:
    确定数据库中与所述数据查询请求匹配的所述数据查询结果,以及所述数据查询结果对应的数据个数;Determining, in the database, the data query result that matches the data query request, and the number of data corresponding to the data query result;
    根据预设的最大显示个数,将所述数据查询结果划分为多个子数据查询结果,并对每个所述子数据查询结果分别关联显示编号;Dividing the data query result into a plurality of sub-data query results according to a preset maximum number of displays, and respectively correlating display numbers with each of the sub-data query results;
    根据所述用户终端选择的所述显示编号,从所述数据库中提取所述显示编号关联的所述子数据查询结果并显示。And extracting, according to the display number selected by the user terminal, the sub-data query result associated with the display number from the database and displaying the sub-data query result.
  19. 根据权利要求16-18任一项所述的计算机可读存储介质,其特征在于,所述依次从所述待导出数据中提取行数与预设的文件最大行数匹配的数据,并分别根据每次提取的所述数据生成至少一个数据子列表包括:The computer readable storage medium according to any one of claims 16 to 18, wherein the data extracted from the data to be exported is matched with the maximum number of rows of the preset file, and is respectively Generating at least one data sublist for each of the extracted data includes:
    接收所述用户终端发起的导出控制指令;Receiving an export control instruction initiated by the user terminal;
    添加所述导出控制指令至提取操作控制数据流;其中,所述提取操作控制数据流为:数据列表的导出终端与所述数据库之间在进行提取操作时所产生的控制数据;Adding the export control instruction to the extraction operation control data flow; wherein the extraction operation control data flow is: control data generated between the export terminal of the data list and the database when performing an extraction operation;
    若所述提取操作控制数据流包含导出控制指令,则执行所述导出控制指令对应的导出控制操作。And if the extraction operation control data stream includes an export control instruction, performing an export control operation corresponding to the export control instruction.
  20. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述依次从所述待导出数据中提取与预设的文件最大行数匹配的数据,并根据每次提取的所述数据生成数据子列表包括:The computer readable storage medium according to claim 16, wherein the data that matches the maximum number of lines of the preset file is extracted from the data to be exported in turn, and is generated according to the data extracted each time. The data sublist includes:
    在每生成一所述数据子列表后,重置导出响应计时器的数值;Resetting the value of the export response timer after each generation of the data sublist;
    所述导出方法还包括:The export method further includes:
    若所述导出响应计时器的数值大于预设的最大响应时长,则执行导出异常操作。If the value of the export response timer is greater than a preset maximum response duration, an export exception operation is performed.
PCT/CN2018/077662 2017-09-30 2018-02-28 Data list exporting method and terminal using same WO2019062019A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710919421.8A CN107784085B (en) 2017-09-30 2017-09-30 Data list exporting method and terminal thereof
CN201710919421.8 2017-09-30

Publications (1)

Publication Number Publication Date
WO2019062019A1 true WO2019062019A1 (en) 2019-04-04

Family

ID=61434159

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077662 WO2019062019A1 (en) 2017-09-30 2018-02-28 Data list exporting method and terminal using same

Country Status (2)

Country Link
CN (1) CN107784085B (en)
WO (1) WO2019062019A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807058B (en) * 2018-08-01 2024-04-12 北京京东尚科信息技术有限公司 Method and system for exporting data
CN110309217B (en) * 2019-05-30 2024-03-08 平安科技(深圳)有限公司 Data import and export method and device, terminal and computer readable storage medium
CN112383313B (en) * 2020-10-10 2023-08-04 中科驭数(北京)科技有限公司 Parallel data decoding device and method
CN112650805A (en) * 2020-12-30 2021-04-13 杭州贝嘟科技有限公司 Data export method and device, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858735A (en) * 2005-12-30 2006-11-08 华为技术有限公司 Method for processing mass data
CN101826085A (en) * 2009-12-30 2010-09-08 厦门市美亚柏科信息股份有限公司 AJAX-based method for importing/exporting large file into/from web page on line
CN102521296A (en) * 2011-11-30 2012-06-27 向进轮 Method for screening data items in separated pages of web page
CN103390007A (en) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 Method and device for data acquisition
CN103473234A (en) * 2012-06-07 2013-12-25 中兴通讯股份有限公司 Method, device and system for deriving report forms from web inquiring system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426019B (en) * 2007-10-30 2013-04-24 广州市威宝网络科技有限公司 Data file transmission method for mobile phone system
CN101231665A (en) * 2008-02-20 2008-07-30 中兴通讯股份有限公司 Apparatus and method for educing data into Excel files from database
CN101710402A (en) * 2009-12-14 2010-05-19 白雪松 Management information system for college staff and implementation thereof
CN102387120B (en) * 2010-08-31 2014-04-16 北大方正集团有限公司 File transmission method and network transmission system
CN103034735B (en) * 2012-12-26 2017-02-08 北京讯鸟软件有限公司 Big data distributed file export method
US9348834B2 (en) * 2013-07-03 2016-05-24 International Business Machines Corporation Effective method to compress tabular data export files for data movement
CN106776843A (en) * 2016-11-28 2017-05-31 浪潮软件集团有限公司 Method for importing excel file based on xml analysis
CN106776829A (en) * 2016-11-28 2017-05-31 成都广达新网科技股份有限公司 A kind of data guiding system and its method of work
CN106897431B (en) * 2017-02-27 2021-06-11 郑州云海信息技术有限公司 Log export method and system
CN107153717A (en) * 2017-06-14 2017-09-12 成都三零凯天通信实业有限公司 Million grades of method and system that recorded form are exported from database by browser

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858735A (en) * 2005-12-30 2006-11-08 华为技术有限公司 Method for processing mass data
CN101826085A (en) * 2009-12-30 2010-09-08 厦门市美亚柏科信息股份有限公司 AJAX-based method for importing/exporting large file into/from web page on line
CN102521296A (en) * 2011-11-30 2012-06-27 向进轮 Method for screening data items in separated pages of web page
CN103390007A (en) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 Method and device for data acquisition
CN103473234A (en) * 2012-06-07 2013-12-25 中兴通讯股份有限公司 Method, device and system for deriving report forms from web inquiring system

Also Published As

Publication number Publication date
CN107784085B (en) 2021-04-13
CN107784085A (en) 2018-03-09

Similar Documents

Publication Publication Date Title
WO2021164178A1 (en) Cloud technology-based file fragment uploading method and apparatus, and device and storage medium
WO2021129367A1 (en) Method and apparatus for monitoring distributed storage system
WO2019075980A1 (en) Thread adjustment method and terminal thereof
US10411953B2 (en) Virtual machine fault tolerance method, apparatus, and system
WO2019062019A1 (en) Data list exporting method and terminal using same
WO2020140614A1 (en) Offline message distribution method, server and storage medium
WO2017041398A1 (en) Data transmission method and device
US20160269479A1 (en) Cloud virtual server scheduling method and apparatus
WO2019104974A1 (en) Dubbo platform-based automatic server starting and stopping method , server, and storage medium
CN110489440B (en) Data query method and device
WO2021139224A1 (en) Method and apparatus for file backup in cloud scenario, and medium and electronic device
CN106648832B (en) Device and method for improving resource utilization rate of virtual machine
US11488082B2 (en) Monitoring and verification system for end-to-end distribution of messages
CN104199723A (en) Camera mapping method based on virtual equipment
WO2021121407A1 (en) Capacity changing method and apparatus for virtual machine
WO2023103419A1 (en) Message queue-based method and apparatus for sending 5g messages in batches, and electronic device
WO2023082716A1 (en) Method and apparatus for operating android application in linux system, and device
WO2022214012A1 (en) System and method for implementing multi-language translation of application program, device and medium
US11265807B2 (en) Method for network sharing on a terminal, apparatus, air conditioner and storage medium
CN111767126A (en) System and method for distributed batch processing
US20190324817A1 (en) Method, apparatus, and computer program product for optimization in distributed system
EP4142258A1 (en) Edge computing network, data transmission method and apparatus, device and storage medium
WO2018201993A1 (en) Image drawing method, terminal and storage medium
WO2023029485A1 (en) Data processing method and apparatus, computer device, and computer-readable storage medium
WO2022267646A1 (en) Pod deployment method and apparatus

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18860844

Country of ref document: EP

Kind code of ref document: A1