File download methods, devices, systems, computer equipment, readable storage media, and program products

By generating and encrypting metadata, the problem of low accuracy during the download of massive invoice files is solved, achieving more efficient and accurate file downloads and improving the accuracy of data analysis for financial enterprises.

CN119402484BActive Publication Date: 2025-11-14CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411491230.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-11-14
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

Traditional methods for downloading massive amounts of bills and documents are cumbersome and prone to errors, resulting in low download accuracy and failing to meet the efficient operational needs of financial institutions.

Method used

By receiving query information from the terminal, the system obtains the attribute information and storage path information of the invoice file, generates metadata information, encrypts it, and sends it to the terminal for download to ensure accuracy.

Benefits of technology

It improves the accuracy of downloading massive amounts of bill documents, ensuring the accuracy and efficiency of data analysis for financial enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402484B_ABST
    Figure CN119402484B_ABST
Patent Text Reader

Abstract

This application relates to the fields of computer technology or financial technology, specifically to a file download method, apparatus, system, computer equipment, computer-readable storage medium, and computer program product. The method includes: receiving query information sent by a terminal associated with a set of documents to be downloaded; obtaining first attribute information for each document to be downloaded in the set of documents to be downloaded; determining first storage path information for each document to be downloaded in the terminal based on the query information and the first attribute information; determining metadata information for each document to be downloaded based on the first storage path information and second attribute information of the document to be downloaded; sending the metadata information of each document to be downloaded to the terminal; and the terminal sequentially downloading each document to be downloaded from the server based on the metadata information of each document to be downloaded. Using this method can improve the accuracy of downloading massive amounts of document files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and in particular to a method, apparatus, system, computer device, computer-readable storage medium, and computer program product for downloading files. Background Technology

[0002] In the financial sector, as financial institutions expand and refine their operations, the demand for processing various documents is increasing. In this context, downloading massive amounts of invoices (such as expense reimbursement documents) provides a robust data foundation for budget planning and cost control. Therefore, accurately downloading these massive amounts of invoices is crucial for ensuring the efficient operation of financial institutions.

[0003] In traditional technology, when downloading massive amounts of invoice files, the files are typically compressed first, then the compressed package is sliced, and the slice positions are recorded to enable breakpoint transmission. However, this method involves cumbersome processing steps and is prone to errors during the processing of massive amounts of invoice files, resulting in low accuracy in downloading them. Summary of the Invention

[0004] Therefore, it is necessary to provide a file download method, apparatus, system, computer equipment, computer-readable storage medium, and computer program product that can improve the accuracy of downloading massive amounts of invoice files, addressing the aforementioned technical problems.

[0005] Firstly, this application provides a method for downloading files, including:

[0006] The receiving terminal sends query information associated with the set of invoice files to be downloaded;

[0007] Obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal according to the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0008] The second attribute information of each ticket file to be downloaded is obtained, and the metadata information of each ticket file to be downloaded is determined based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server.

[0009] The metadata information of each ticket file to be downloaded is sent to the terminal, so that the terminal can download each ticket file to be downloaded sequentially from the server according to the metadata information of each ticket file to be downloaded.

[0010] In one embodiment, determining the first storage path information of each ticket file to be downloaded in the terminal based on the query information and the first attribute information includes:

[0011] Based on the query information, the root directory information of each ticket file to be downloaded in the terminal is determined, and based on the first attribute information of each ticket file to be downloaded, the subdirectory information of each ticket file to be downloaded in the terminal is determined.

[0012] Based on the root directory information and subdirectory information of each ticket file to be downloaded, the first storage path information of each ticket file to be downloaded in the terminal is determined.

[0013] In one embodiment, obtaining the second attribute information of each ticket file to be downloaded includes:

[0014] Each of the ticket files to be downloaded is input into a preset summary information processing model for summary extraction processing to obtain the summary information of each ticket file to be downloaded;

[0015] Obtain the file number and file data volume of each ticket file to be downloaded, as well as the second storage path information of each ticket file to be downloaded on the server, and use the summary information, file number, file data volume, and second storage path information of each ticket file to be downloaded as the second attribute information of each ticket file to be downloaded.

[0016] In one embodiment, determining the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information includes:

[0017] Determine the combination method among the summary information, the file number, the file data volume, the first storage path information, and the second storage path information;

[0018] According to the combination method, the summary information, file number, file data volume, first storage path information and second storage path information of each ticket file to be downloaded are combined and processed to obtain the metadata information of each ticket file to be downloaded.

[0019] In one embodiment, obtaining the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded includes:

[0020] Obtain the filename information of each ticket file to be downloaded;

[0021] Based on the file name information of each document to be downloaded, the correspondence between the file name information and the file format information is queried to obtain the file format information of each document to be downloaded;

[0022] Each of the ticket files to be downloaded is parsed to obtain the file content information of each ticket file to be downloaded.

[0023] The file format information and file content information of each document to be downloaded are both used as the first attribute information of each document to be downloaded.

[0024] In one embodiment, before sending the metadata information of each ticket file to be downloaded to the terminal, and enabling the terminal to sequentially download each ticket file from the server based on the metadata information of each ticket file to be downloaded, the method further includes:

[0025] The metadata information of each ticket file to be downloaded is encrypted to obtain the encrypted metadata information of each ticket file to be downloaded.

[0026] The step of sending the metadata information of each ticket file to be downloaded to the terminal, so that the terminal sequentially downloads each ticket file from the server according to the metadata information of each ticket file to be downloaded, includes:

[0027] Send the encrypted metadata information of each ticket file to be downloaded to the terminal;

[0028] The terminal is used to decrypt the encrypted metadata information of each ticket file to be downloaded, to obtain the metadata information of each ticket file to be downloaded, and according to the metadata information of each ticket file to be downloaded, sequentially download each ticket file to be downloaded from the storage location corresponding to the second storage path information of each ticket file to be downloaded in the server to the storage location corresponding to the first storage path information of each ticket file to be downloaded in the terminal.

[0029] Secondly, this application also provides a file downloading device, comprising:

[0030] The query information sending module is used to receive query information sent by the terminal that is associated with the set of invoice files to be downloaded;

[0031] The path information determination module is used to obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal according to the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0032] The metadata information determination module is used to obtain the second attribute information of each ticket file to be downloaded, and determine the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server.

[0033] The invoice file download module is used to send the metadata information of each invoice file to be downloaded to the terminal, so that the terminal can download each invoice file to be downloaded sequentially from the server according to the metadata information of each invoice file to be downloaded.

[0034] Thirdly, this application also provides a file download system. The system includes: a server and a terminal;

[0035] The terminal is used to send query information associated with the set of invoice files to be downloaded to the server.

[0036] The server is configured to: acquire first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded; determine first storage path information of each ticket file to be downloaded in the terminal based on the query information and the first attribute information; acquire second attribute information of each ticket file to be downloaded; determine metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information; and send the metadata information of each ticket file to the terminal. The first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded. The second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server.

[0037] The terminal is also configured to download each ticket file to be downloaded sequentially from the server based on the metadata information of each ticket file to be downloaded.

[0038] Fourthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0039] The receiving terminal sends query information associated with the set of invoice files to be downloaded;

[0040] Obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal according to the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0041] The second attribute information of each ticket file to be downloaded is obtained, and the metadata information of each ticket file to be downloaded is determined based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server.

[0042] The metadata information of each ticket file to be downloaded is sent to the terminal, so that the terminal can download each ticket file to be downloaded sequentially from the server according to the metadata information of each ticket file to be downloaded.

[0043] Fifthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0044] The receiving terminal sends query information associated with the set of invoice files to be downloaded;

[0045] Obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal according to the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0046] The second attribute information of each ticket file to be downloaded is obtained, and the metadata information of each ticket file to be downloaded is determined based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server.

[0047] The metadata information of each ticket file to be downloaded is sent to the terminal, so that the terminal can download each ticket file to be downloaded sequentially from the server according to the metadata information of each ticket file to be downloaded.

[0048] Sixthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0049] The receiving terminal sends query information associated with the set of invoice files to be downloaded;

[0050] Obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal according to the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0051] The second attribute information of each ticket file to be downloaded is obtained, and the metadata information of each ticket file to be downloaded is determined based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server.

[0052] The metadata information of each ticket file to be downloaded is sent to the terminal, so that the terminal can download each ticket file to be downloaded sequentially from the server according to the metadata information of each ticket file to be downloaded.

[0053] The aforementioned file download method, apparatus, system, computer equipment, computer-readable storage medium, and computer program product first receive query information sent by a terminal associated with a set of invoice files to be downloaded. Then, they acquire the file format and content information of each invoice file in the set as the first attribute information of each invoice file. Next, based on the query information and the first attribute information, they determine the first storage path information of each invoice file in the terminal. Then, they acquire the second storage path information of the invoice files in the server as the second attribute information of each invoice file. Based on the first storage path information and the second attribute information, they determine the metadata information of each invoice file. Finally, they send the metadata information of each invoice file to the terminal, enabling the terminal to sequentially download each invoice file from the server based on its metadata information.

[0054] The beneficial effects of this application are as follows: For each document in the set of documents to be downloaded, the first storage path information is determined based on query information and first attribute information, and the second attribute information of the document to be downloaded is determined based on the second storage path information on the server. This provides more accurate metadata information, enabling the terminal to accurately download the documents and further improving the accuracy of downloading massive amounts of documents. Specifically, by comprehensively considering query information, first attribute information, and second attribute information, the accuracy of downloading massive amounts of documents is improved. Furthermore, in data analysis in the financial field, accurate downloading of documents ensures the accuracy of the downloaded documents, thereby improving the accuracy of data analysis results obtained based on the documents, and ultimately contributing to improved data analysis accuracy for financial enterprises. Attached Figure Description

[0055] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0056] Figure 1 This is a diagram illustrating the application environment of a file download method in one embodiment.

[0057] Figure 2 This is a flowchart illustrating a file download method in one embodiment;

[0058] Figure 3 This is a flowchart illustrating the steps of determining the first storage path information of each ticket file to be downloaded in the terminal in one embodiment.

[0059] Figure 4 This is a flowchart illustrating the steps for obtaining the second attribute information of each ticket file to be downloaded in one embodiment;

[0060] Figure 5 This is a flowchart illustrating the steps for determining the metadata information of each ticket file to be downloaded in one embodiment;

[0061] Figure 6 This is a flowchart illustrating the steps of obtaining the first attribute information of each document in the set of documents to be downloaded in one embodiment.

[0062] Figure 7 This is a flowchart illustrating a file download method in another embodiment;

[0063] Figure 8This is a flowchart illustrating a method for downloading massive amounts of files in one embodiment;

[0064] Figure 9 This is a structural block diagram of a file download device in one embodiment;

[0065] Figure 10 This is an internal structural diagram of a computer device in one embodiment;

[0066] Figure 11 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0068] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations. The acquisition, transmission, storage, use and processing of data in the technical solution of this application all comply with the relevant provisions of national laws and regulations.

[0069] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0070] The file download method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. Terminal 102 sends query information associated with the set of invoice files to be downloaded to server 104; server 104 obtains the first attribute information of each invoice file to be downloaded in the set of invoice files, and determines the first storage path information of each invoice file in terminal 102 based on the query information and the first attribute information; obtains the second attribute information of each invoice file to be downloaded, and determines the metadata information of each invoice file to be downloaded based on the first storage path information and the second attribute information; sends the metadata information of each invoice file to terminal 102; terminal 102 downloads each invoice file to be downloaded sequentially from server 104 based on the metadata information of each invoice file to be downloaded. Terminal 102 refers to the terminal corresponding to downloading the invoice files, which can be, but is not limited to, various personal computers, laptops, smartphones, and tablets. Server 104 refers to the server used to store the invoice files to be downloaded, which can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0071] In one exemplary embodiment, such as Figure 2 As shown, a file download method is provided, which can be applied to... Figure 1 Taking the server-side as an example, the explanation includes the following steps:

[0072] Step S201: Receive query information sent by the terminal that is associated with the set of ticket files to be downloaded.

[0073] The set of invoice files to be downloaded refers to the collection of invoice files to be downloaded.

[0074] Among them, the invoice file to be downloaded refers to the invoice file that needs to be downloaded.

[0075] The query information refers to descriptive information used to filter a specific set of invoice files to be downloaded, such as "the set of invoice files with project number 123".

[0076] For example, the server receives a connection request sent by the terminal and verifies the identity information (such as username, password, and token) carried in the connection request according to a pre-set authentication mechanism to obtain the verification result. If the verification result meets the preset check result, the server establishes a network path with the terminal. Then, the server receives query information sent by the terminal associated with the set of tickets to be downloaded through the network path.

[0077] Step S202: Obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal based on the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0078] The first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0079] Among them, file format information is used to represent the specific encoding and storage structure of different types of files, such as txt, pdf, jpg, etc.

[0080] The file content information is used to describe the content contained in the ticket file to be downloaded.

[0081] The first storage path information refers to the storage path information of each ticket file to be downloaded in the terminal.

[0082] For example, the server obtains the file format information and file content information of each document to be downloaded from the set of document files to be downloaded, as the first attribute information of each document to be downloaded; then, the server obtains the pre-constructed correspondence between query information, first attribute information and storage path information, and queries the correspondence based on the query information and first attribute information to obtain the storage path information corresponding to the query information and first attribute information, as the first storage path information of each document to be downloaded in the terminal.

[0083] Step S203: Obtain the second attribute information of each ticket file to be downloaded, and determine the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded on the server.

[0084] The second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded on the server.

[0085] The metadata information for each ticket file to be downloaded describes the attributes and characteristics of each ticket file, including the first storage path information of each ticket file in the terminal and the second storage path information of each ticket file in the server.

[0086] The second storage path information refers to the storage path information of the ticket file to be downloaded on the server.

[0087] For example, the server obtains the second storage path information of the ticket file to be downloaded on the server, as the second attribute information of each ticket file to be downloaded; then, the server combines the first storage path information and the second attribute information to obtain the metadata information of each ticket file to be downloaded.

[0088] Step S204: Send the metadata information of each ticket file to be downloaded to the terminal, so that the terminal can download each ticket file from the server in sequence according to the metadata information of each ticket file to be downloaded.

[0089] For example, the server sends the metadata information of each ticket file to be downloaded to the terminal through the network path between the server and the terminal; the terminal receives the metadata information of each ticket file to be downloaded sent by the server, and downloads each ticket file to be downloaded from the server in sequence according to the metadata information of each ticket file to be downloaded.

[0090] In the above file download method, the system first receives query information sent by the terminal that is associated with the set of invoice files to be downloaded. Then, it obtains the file format information and file content information of each invoice file to be downloaded in the set of invoice files to be downloaded, which serve as the first attribute information of each invoice file to be downloaded. Next, based on the query information and the first attribute information, it determines the first storage path information of each invoice file to be downloaded on the terminal. Then, it obtains the second storage path information of the invoice files to be downloaded on the server, which serves as the second attribute information of each invoice file to be downloaded. Based on the first storage path information and the second attribute information, it determines the metadata information of each invoice file to be downloaded. Finally, it sends the metadata information of each invoice file to be downloaded to the terminal, so that the terminal can download each invoice file to be downloaded sequentially from the server based on the metadata information of each invoice file to be downloaded. The above method has the following beneficial effects: For each document file in the set of documents to be downloaded, the first storage path information is determined based on the query information and the first attribute information, and the second attribute information of the document file to be downloaded is determined based on the second storage path information on the server. This provides more accurate metadata information, enabling the terminal to accurately download the document files and further improving the accuracy of downloading massive amounts of document files. In other words, by comprehensively considering the query information, the first attribute information, and the second attribute information, the accuracy of downloading massive amounts of document files is improved. Furthermore, in data analysis in the financial field, accurate downloading of document files ensures the accuracy of the downloaded documents, thereby improving the accuracy of the data analysis results obtained based on the document files, which in turn helps improve the accuracy of data analysis in financial enterprises.

[0091] In one exemplary embodiment, such as Figure 3As shown, step S202 above, based on the query information and the first attribute information, determines the first storage path information of each ticket file to be downloaded in the terminal, specifically including the following steps:

[0092] Step S301: Based on the query information, determine the root directory information of each ticket file to be downloaded in the terminal, and based on the first attribute information of each ticket file to be downloaded, determine the subdirectory information of each ticket file to be downloaded in the terminal.

[0093] Step S302: Based on the root directory information and subdirectory information of each ticket file to be downloaded, determine the first storage path information of each ticket file to be downloaded in the terminal.

[0094] The root directory information is used to represent the top-level directory of each ticket file to be downloaded in the terminal.

[0095] The subdirectory information is used to indicate the directory under the root directory information of each ticket file to be downloaded in the terminal.

[0096] For example, the server obtains the parameter information carried in the query information and determines the root directory information of each document file to be downloaded in the terminal based on the parameter information. Then, the server determines the subdirectory information of each document file to be downloaded in the terminal based on the file format information and file content information of each document file to be downloaded. Then, the server combines the root directory information and subdirectory information of each document file to be downloaded according to a preset combination method to obtain combined directory information, which serves as the first storage path information of each document file to be downloaded in the terminal.

[0097] For example, the server retrieves the parameter information "purchase invoice" from the query information and determines the root directory information "F:\Purchase Invoice" for each invoice file to be downloaded in the terminal based on this parameter information. Next, the server determines the subdirectory information "pdf\Product Development Project" for each invoice file to be downloaded in the terminal based on the file format information "pdf" and the file content information "Product Development Project". Then, the server combines the root directory information and subdirectory information of each invoice file to be downloaded according to a preset combination method, and obtains the combined directory information "F:\Purchase Invoice\pdf\Product Development Project", which serves as the first storage path information for each invoice file to be downloaded in the terminal.

[0098] In this embodiment, the root directory information is determined by querying information, and the subdirectory information is determined by the first attribute information, so that each ticket file to be downloaded has a specific and accurate storage location, which makes it easier to find the file more accurately when downloading the file later and reduces the possibility of downloading other files by mistake.

[0099] In one exemplary embodiment, such as Figure 4 As shown, step S203 above, obtaining the second attribute information of each ticket file to be downloaded, specifically includes the following steps:

[0100] Step S401: Input each document file to be downloaded into a preset summary information processing model for summary extraction processing to obtain summary information for each document file to be downloaded.

[0101] Step S402: Obtain the file number and file data volume of each ticket file to be downloaded, as well as the second storage path information of each ticket file to be downloaded on the server, and use the summary information, file number, file data volume and second storage path information of each ticket file to be downloaded as the second attribute information of each ticket file to be downloaded.

[0102] Among them, the summary information processing model refers to the network model that can obtain the summary information of each ticket file to be downloaded using each ticket file to be downloaded, such as the MD5 (Message Digest Algorithm 5) model.

[0103] The abstract extraction process refers to the process of obtaining the abstract information of each document to be downloaded based on each document to be downloaded.

[0104] The summary information refers to the MD5 value.

[0105] The file number is a unique identifier that distinguishes the document to be downloaded.

[0106] The file data size is used to indicate the size of the ticket file to be downloaded.

[0107] For example, the server preprocesses each ticket file to be downloaded to obtain a preprocessed file corresponding to each ticket file; then, the server inputs the preprocessed file corresponding to each ticket file to be downloaded into a preset summary information processing model for summary extraction processing to obtain the summary information of the preprocessed file corresponding to each ticket file to be downloaded, which serves as the summary information of each ticket file to be downloaded; then, the server obtains the file number and file data volume of each ticket file to be downloaded, as well as the second storage path information of each ticket file to be downloaded on the server; then, the server uses the summary information, file number, file data volume, and second storage path information of each ticket file to be downloaded as the second attribute information of each ticket file to be downloaded.

[0108] In this embodiment, the summary information, file number, file data volume, and second storage path information of each ticket file to be downloaded are all used as the second attribute information of each ticket file to be downloaded. The entire process is combined with the download process, so that the downloaded files can be better recorded and tracked, which facilitates the subsequent processing.

[0109] In one exemplary embodiment, such as Figure 5 As shown, step S203 above, which determines the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information, specifically includes the following steps:

[0110] Step S501: Determine the combination method between the summary information, file number, file data volume, first storage path information and second storage path information.

[0111] Step S502: According to the combination method, the summary information, file number, file data volume, first storage path information and second storage path information of each ticket file to be downloaded are combined to obtain the metadata information of each ticket file to be downloaded.

[0112] Among them, the combination method is used to represent the combination form between summary information, file number, file data volume, first storage path information and second storage path information, such as table combination method and text combination method.

[0113] For example, the server queries the correspondence between data types and combination methods based on the data types of the summary information, file number, file data volume, first storage path information, and second storage path information to obtain the combination method between the summary information, file number, file data volume, first storage path information, and second storage path information. Then, the server performs combination processing on the summary information, file number, file data volume, first storage path information, and second storage path information of each ticket file to be downloaded according to the combination method to obtain the metadata information of each ticket file to be downloaded.

[0114] In this embodiment, by combining the summary information, file number, file data volume, first storage path information and second storage path information of each document to be downloaded in a suitable way, more accurate metadata information can be obtained, which is beneficial to improving the accuracy of determining the metadata information of each document to be downloaded.

[0115] In one exemplary embodiment, such as Figure 6 As shown, step S202 above, obtaining the first attribute information of each document to be downloaded in the set of document documents to be downloaded, specifically includes the following steps:

[0116] Step S601: Obtain the file name information for each ticket file to be downloaded.

[0117] Step S602: Based on the file name information of each document to be downloaded, query the correspondence between the file name information and the file format information to obtain the file format information of each document to be downloaded.

[0118] Step S603: Parse each document file to be downloaded to obtain the file content information of each document file.

[0119] Step S604: The file format information and file content information of each document to be downloaded are both used as the first attribute information of each document to be downloaded.

[0120] The file name information is used to describe the name of each ticket file to be downloaded.

[0121] The correspondence between file name information and file format information is used to represent the association between the two. For example, the file name "a.txt" corresponds to the file format "txt".

[0122] Among them, parsing processing refers to the process of obtaining the file content information corresponding to each ticket file to be downloaded based on each ticket file to be downloaded.

[0123] For example, the server obtains the filename information of each invoice file to be downloaded; then, based on the filename information of each invoice file to be downloaded, the server queries the correspondence between the filename information and the file format information to obtain the file format information corresponding to the filename information of each invoice file to be downloaded, which is used as the file format information of each invoice file to be downloaded; then, based on the file format information of each invoice file to be downloaded, the server determines the parsing method of each invoice file to be downloaded, and performs parsing processing on each invoice file to be downloaded according to the parsing method, to obtain the file content information of each invoice file to be downloaded; finally, the server uses both the file format information and the file content information of each invoice file to be downloaded as the first attribute information of each invoice file to be downloaded.

[0124] In this embodiment, by performing a series of processes on each document file to be downloaded, accurate file format information and file content information can be obtained, which in turn can obtain more accurate first attribute information, thus improving the accuracy of determining the first attribute information of each document file to be downloaded.

[0125] In an exemplary embodiment, before sending the metadata information of each ticket file to be downloaded to the terminal, so that the terminal can download each ticket file from the server in sequence according to the metadata information of each ticket file to be downloaded, step S204 specifically includes the following: encrypting the metadata information of each ticket file to be downloaded to obtain encrypted metadata information of each ticket file to be downloaded.

[0126] The process involves sending the metadata information of each ticket file to be downloaded to the terminal, enabling the terminal to sequentially download each ticket file from the server based on its metadata information. Specifically, this includes: sending encrypted metadata information of each ticket file to the terminal; the terminal decrypting the encrypted metadata information of each ticket file to obtain its metadata information, and then sequentially downloading each ticket file from the storage location corresponding to the second storage path information of each ticket file on the server to the storage location corresponding to the first storage path information of each ticket file on the terminal based on its metadata information.

[0127] Encryption processing refers to the process of obtaining the encrypted metadata information corresponding to each document to be downloaded based on its metadata information.

[0128] Encrypted metadata information refers to metadata information that has undergone encryption processing.

[0129] Decryption processing refers to the process of obtaining the metadata information corresponding to each document to be downloaded based on the encrypted metadata information of each document to be downloaded.

[0130] For example, the server determines the encryption algorithm corresponding to the metadata information of each ticket file to be downloaded, and encrypts the metadata information of each ticket file to be downloaded according to the encryption algorithm to obtain the encrypted metadata information of each ticket file to be downloaded; then, the server sends the encrypted metadata information of each ticket file to be downloaded to the terminal; the terminal receives the encrypted metadata information of each ticket file to be downloaded sent by the server, and decrypts the encrypted metadata information of each ticket file to be downloaded to obtain the metadata information of each ticket file to be downloaded; then, the terminal extracts the first storage path and second storage path information of each ticket file to be downloaded according to the metadata information of each ticket file to be downloaded, and downloads each ticket file to be downloaded sequentially from the storage location corresponding to the second storage path information of each ticket file to be downloaded in the server to the storage location corresponding to the first storage path information of each ticket file to be downloaded in the terminal according to the first storage path information of each ticket file to be downloaded.

[0131] In this embodiment, by encrypting the metadata information of each ticket file to be downloaded, it can be ensured that the metadata information of each ticket file to be downloaded is not tampered with, which helps to improve the security and integrity of the metadata information of each ticket file to be downloaded and ensures the stability of the download process of each ticket file to be downloaded.

[0132] In one embodiment, such as Figure 7 As shown, another file download method is provided, which can be applied to... Figure 1 Taking the server-side as an example, the explanation includes the following steps:

[0133] Step S701: Receive query information sent by the terminal that is associated with the set of ticket files to be downloaded.

[0134] Step S702: Obtain the file name information of each invoice file to be downloaded; based on the file name information of each invoice file to be downloaded, query the correspondence between the file name information and the file format information to obtain the file format information of each invoice file to be downloaded.

[0135] Step S703: Parse each document file to be downloaded to obtain the file content information of each document file.

[0136] Step S704: The file format information and file content information of each document to be downloaded are both used as the first attribute information of each document to be downloaded.

[0137] Step S705: Based on the query information, determine the root directory information of each ticket file to be downloaded in the terminal, and based on the first attribute information of each ticket file to be downloaded, determine the subdirectory information of each ticket file to be downloaded in the terminal.

[0138] Step S706: Based on the root directory information and subdirectory information of each ticket file to be downloaded, determine the first storage path information of each ticket file to be downloaded in the terminal.

[0139] Step S707: Input each document file to be downloaded into a preset summary information processing model for summary extraction processing to obtain summary information for each document file to be downloaded.

[0140] Step S708: Obtain the file number and file data volume of each ticket file to be downloaded, as well as the second storage path information of each ticket file to be downloaded on the server.

[0141] Step S709: The summary information, file number, file data volume, and second storage path information of each ticket file to be downloaded are all used as the second attribute information of each ticket file to be downloaded.

[0142] Step S710: Determine the combination method between the summary information, file number, file data volume, first storage path information and second storage path information.

[0143] Step S711: According to the combination method, the summary information, file number, file data volume, first storage path information and second storage path information of each ticket file to be downloaded are combined to obtain the metadata information of each ticket file to be downloaded.

[0144] Step S712: Send the metadata information of each ticket file to be downloaded to the terminal, so that the terminal can download each ticket file from the server in sequence according to the metadata information of each ticket file to be downloaded.

[0145] The above-described file download method achieves the following beneficial effects: For each document file in the set to be downloaded, the first storage path information is determined based on query information and first attribute information, and the second attribute information of the document file to be downloaded is determined based on the second storage path information on the server. This provides more accurate metadata information, enabling the terminal to accurately download the document files and further improving the accuracy of downloading massive amounts of document files. In other words, by comprehensively considering query information, first attribute information, and second attribute information, the accuracy of downloading massive amounts of document files is improved. Furthermore, in data analysis in the financial field, accurate downloading of document files ensures the accuracy of the downloaded documents, thereby improving the accuracy of data analysis results obtained based on document files, and ultimately contributing to improved data analysis accuracy for financial enterprises.

[0146] To more clearly illustrate the file download method provided in this disclosure, a specific embodiment is given below for detailed description. In one embodiment, as follows... Figure 8 As shown, this application also provides a method for downloading massive amounts of files, which can be applied to... Figure 1 The server-side component specifically includes the following:

[0147] 1. The server generates full file metadata information for each individual file and returns it to the client.

[0148] 2. The client retrieves individual files from the server one by one, treating each file as an atom.

[0149] 3. To avoid impacting normal business operations, the client only retrieves one atomic file at a time.

[0150] 4. Even if not all files have been completely written to the client, the already written data can still be viewed and used in advance.

[0151] 5. If a file fails to load on the client, incrementally retrieve the files that failed.

[0152] The full file metadata information includes information such as the file path on the client and server sides, the file's unique identifier, file name, file size, and MD5 hash, which is generated based on the basic information of a single file stored on the server side.

[0153] The root directory for client-side file storage is a parameter provided when the client initiates a query, while the storage path for each file is a subdirectory generated by the server based on information such as file format and file content.

[0154] In this context, a single file is considered an atom, specifically meaning that the transmission of a single file is considered a transaction. Only when the transmission of a single file is successful is the transaction considered successful.

[0155] "Deepening" here refers to the complete transfer and saving of the file.

[0156] The files are transferred one by one. Once a file has been transferred, it can be opened without waiting for other files.

[0157] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0158] In this embodiment, the following beneficial effects can be achieved: For each document file to be downloaded in the set of document files to be downloaded, the first storage path information is determined based on the query information and the first attribute information, and the second attribute information of the document file to be downloaded is determined based on the second storage path information on the server. This provides more accurate metadata information, enabling the terminal to accurately download the document files to be downloaded, further improving the accuracy of downloading massive amounts of document files. That is, by comprehensively considering the query information, the first attribute information, and the second attribute information, the accuracy of downloading massive amounts of document files is improved. In addition, in data analysis in the financial field, accurate downloading of document files can ensure the accuracy of the downloaded document files, thereby improving the accuracy of the data analysis results obtained based on the document files, which in turn helps to improve the accuracy of data analysis for financial enterprises. At the same time, even if the client files are not all downloaded, the downloaded data can still be seen and viewed in advance; if a file fails to download successfully, the unsuccessful file can be retrieved incrementally; it does not affect the normal business of the branch; and this method has a higher success rate when the download volume exceeds 100,000 and the download size reaches the terabyte level.

[0159] Based on the same inventive concept, this application also provides a file download apparatus for implementing the file download method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more file download apparatus embodiments provided below can be found in the limitations of the file download method described above, and will not be repeated here.

[0160] In one exemplary embodiment, such as Figure 9As shown, a file download device is provided, including: a query information sending module 901, a path information determination module 902, a metadata information determination module 903, and a ticket file download module 904, wherein:

[0161] The query information sending module 901 is used to receive query information sent by the terminal that is associated with the set of ticket files to be downloaded.

[0162] The path information determination module 902 is used to obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal based on the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded.

[0163] The metadata information determination module 903 is used to obtain the second attribute information of each ticket file to be downloaded, and determine the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded on the server.

[0164] The invoice file download module 904 is used to send the metadata information of each invoice file to be downloaded to the terminal, so that the terminal can download each invoice file to be downloaded sequentially from the server according to the metadata information of each invoice file to be downloaded.

[0165] In an exemplary embodiment, the path information determination module 902 is further configured to determine the root directory information of each ticket file to be downloaded in the terminal based on the query information, and to determine the subdirectory information of each ticket file to be downloaded in the terminal based on the first attribute information of each ticket file to be downloaded; and to determine the first storage path information of each ticket file to be downloaded in the terminal based on the root directory information and subdirectory information of each ticket file to be downloaded.

[0166] In an exemplary embodiment, the metadata information determination module 903 is further configured to input each to-be-downloaded ticket file into a preset summary information processing model for summary extraction processing to obtain summary information of each to-be-downloaded ticket file; obtain the file number and file data volume of each to-be-downloaded ticket file, as well as the second storage path information of each to-be-downloaded ticket file on the server, and use the summary information, file number, file data volume, and second storage path information of each to-be-downloaded ticket file as the second attribute information of each to-be-downloaded ticket file.

[0167] In an exemplary embodiment, the metadata information determination module 903 is further configured to determine the combination method between the summary information, file number, file data volume, first storage path information and second storage path information; and to perform combination processing on the summary information, file number, file data volume, first storage path information and second storage path information of each document to be downloaded according to the combination method to obtain the metadata information of each document to be downloaded.

[0168] In an exemplary embodiment, the path information determination module 902 is further configured to obtain the file name information of each ticket file to be downloaded; query the correspondence between the file name information and the file format information based on the file name information of each ticket file to be downloaded, and obtain the file format information of each ticket file to be downloaded; parse each ticket file to be downloaded to obtain the file content information of each ticket file to be downloaded; and use both the file format information and the file content information of each ticket file to be downloaded as the first attribute information of each ticket file to be downloaded.

[0169] In an exemplary embodiment, the file download device further includes a metadata information encryption module for encrypting the metadata information of each document to be downloaded, thereby obtaining encrypted metadata information for each document to be downloaded; the file download device further includes a metadata information sending module for sending the encrypted metadata information of each document to be downloaded to a terminal; wherein, the terminal is used to decrypt the encrypted metadata information of each document to be downloaded, thereby obtaining the metadata information of each document to be downloaded, and, based on the metadata information of each document to be downloaded, sequentially download each document to be downloaded from the storage location corresponding to the second storage path information of each document to be downloaded in the server to the storage location corresponding to the first storage path information of each document to be downloaded in the terminal.

[0170] Each module in the aforementioned file download device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0171] In one exemplary embodiment, reference is made to Figure 1 A file download system is provided, which includes a server 104 and a terminal 102;

[0172] Terminal 102 is used to send query information associated with the set of invoice files to be downloaded to server 104;

[0173] Server 104 is used to obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in terminal 102 based on the query information and the first attribute information; obtain the second attribute information of each ticket file to be downloaded, and determine the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information; and send the metadata information of each ticket file to be downloaded to terminal 102; wherein, the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in server 104;

[0174] Terminal 102 is also used to download each ticket file to be downloaded sequentially from server 104 based on the metadata information of each ticket file to be downloaded.

[0175] The aforementioned file download system achieves the following beneficial effects: For each document file in the set to be downloaded, it determines the first storage path information based on query information and first attribute information, and determines the second attribute information of the document file based on the second storage path information on the server. This provides more accurate metadata information, enabling the terminal to accurately download the document files and further improving the accuracy of downloading massive amounts of document files. In other words, it improves the accuracy of downloading massive amounts of document files by comprehensively considering query information, first attribute information, and second attribute information. Furthermore, in data analysis in the financial field, accurate downloading of document files ensures the accuracy of the downloaded documents, thereby improving the accuracy of data analysis results obtained based on document files, and ultimately contributing to improved data analysis accuracy for financial enterprises.

[0176] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data such as first attribute information and second attribute information. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a file download method.

[0177] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a file download method.

[0178] Those skilled in the art will understand that Figure 10 and Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0179] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0180] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0181] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0182] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0183] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0184] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A file download method, characterized in that, Applied to the server side, the method includes: The receiving terminal sends query information associated with the set of invoice files to be downloaded; Obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal according to the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded. The second attribute information of each ticket file to be downloaded is obtained, and the metadata information of each ticket file to be downloaded is determined based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server. The metadata information of each ticket file to be downloaded is sent to the terminal, so that the terminal can download each ticket file to be downloaded sequentially from the server according to the metadata information of each ticket file to be downloaded.

2. The method according to claim 1, characterized in that, The step of determining the first storage path information of each ticket file to be downloaded in the terminal based on the query information and the first attribute information includes: Based on the query information, the root directory information of each ticket file to be downloaded in the terminal is determined, and based on the first attribute information of each ticket file to be downloaded, the subdirectory information of each ticket file to be downloaded in the terminal is determined. Based on the root directory information and subdirectory information of each ticket file to be downloaded, the first storage path information of each ticket file to be downloaded in the terminal is determined.

3. The method according to claim 1, characterized in that, The step of obtaining the second attribute information of each ticket file to be downloaded includes: Each of the ticket files to be downloaded is input into a preset summary information processing model for summary extraction processing to obtain the summary information of each ticket file to be downloaded; Obtain the file number and file data volume of each ticket file to be downloaded, as well as the second storage path information of each ticket file to be downloaded on the server, and use the summary information, file number, file data volume, and second storage path information of each ticket file to be downloaded as the second attribute information of each ticket file to be downloaded.

4. The method according to claim 3, characterized in that, The step of determining the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information includes: Determine the combination method among the summary information, the file number, the file data volume, the first storage path information, and the second storage path information; According to the combination method, the summary information, file number, file data volume, first storage path information and second storage path information of each ticket file to be downloaded are combined and processed to obtain the metadata information of each ticket file to be downloaded.

5. The method according to claim 1, characterized in that, The step of obtaining the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded includes: Obtain the filename information of each ticket file to be downloaded; Based on the file name information of each document to be downloaded, the correspondence between the file name information and the file format information is queried to obtain the file format information of each document to be downloaded; Each of the ticket files to be downloaded is parsed to obtain the file content information of each ticket file to be downloaded. The file format information and file content information of each document to be downloaded are both used as the first attribute information of each document to be downloaded.

6. The method according to any one of claims 1 to 5, characterized in that, Before sending the metadata information of each ticket file to be downloaded to the terminal, and enabling the terminal to download each ticket file sequentially from the server based on the metadata information of each ticket file, the process further includes: The metadata information of each ticket file to be downloaded is encrypted to obtain the encrypted metadata information of each ticket file to be downloaded. The step of sending the metadata information of each ticket file to be downloaded to the terminal, so that the terminal sequentially downloads each ticket file from the server according to the metadata information of each ticket file to be downloaded, includes: Send the encrypted metadata information of each ticket file to be downloaded to the terminal; The terminal is used to decrypt the encrypted metadata information of each ticket file to be downloaded, to obtain the metadata information of each ticket file to be downloaded, and according to the metadata information of each ticket file to be downloaded, sequentially download each ticket file to be downloaded from the storage location corresponding to the second storage path information of each ticket file to be downloaded in the server to the storage location corresponding to the first storage path information of each ticket file to be downloaded in the terminal.

7. A file download device, characterized in that, Applied to the server side, the device includes: The query information sending module is used to receive query information sent by the terminal that is associated with the set of invoice files to be downloaded; The path information determination module is used to obtain the first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded, and determine the first storage path information of each ticket file to be downloaded in the terminal according to the query information and the first attribute information; the first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded. The metadata information determination module is used to obtain the second attribute information of each ticket file to be downloaded, and determine the metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information; the second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server. The invoice file download module is used to send the metadata information of each invoice file to be downloaded to the terminal, so that the terminal can download each invoice file to be downloaded sequentially from the server according to the metadata information of each invoice file to be downloaded.

8. The apparatus according to claim 7, characterized in that, The path information determination module is further configured to determine the root directory information of each ticket file to be downloaded in the terminal based on the query information, and to determine the subdirectory information of each ticket file to be downloaded in the terminal based on the first attribute information of each ticket file to be downloaded; Based on the root directory information and subdirectory information of each ticket file to be downloaded, the first storage path information of each ticket file to be downloaded in the terminal is determined.

9. The apparatus according to claim 7, characterized in that, The metadata information determination module is further configured to input each of the ticket files to be downloaded into a preset summary information processing model for summary extraction processing to obtain summary information of each ticket file to be downloaded; obtain the file number and file data volume of each ticket file to be downloaded, as well as the second storage path information of each ticket file to be downloaded on the server, and use the summary information, file number, file data volume and second storage path information of each ticket file to be downloaded as the second attribute information of each ticket file to be downloaded.

10. The apparatus according to claim 9, characterized in that, The metadata information determination module is further configured to determine the combination method between the summary information, the file number, the file data volume, the first storage path information, and the second storage path information; and to perform combination processing on the summary information, the file number, the file data volume, the first storage path information, and the second storage path information of each document to be downloaded according to the combination method to obtain the metadata information of each document to be downloaded.

11. The apparatus according to claim 7, characterized in that, The path information determination module is further configured to: obtain the file name information of each document to be downloaded; query the correspondence between the file name information and the file format information based on the file name information of each document to be downloaded to obtain the file format information of each document to be downloaded; parse each document to be downloaded to obtain the file content information of each document to be downloaded; and use both the file format information and the file content information of each document to be downloaded as the first attribute information of each document to be downloaded.

12. The apparatus according to any one of claims 7 to 11, characterized in that, The file download device further includes a metadata information encryption module, which is used to encrypt the metadata information of each ticket file to be downloaded, so as to obtain the encrypted metadata information of each ticket file to be downloaded; The file download device further includes a metadata information sending module, used to send encrypted metadata information of each ticket file to be downloaded to the terminal; wherein, the terminal is used to decrypt the encrypted metadata information of each ticket file to be downloaded to obtain the metadata information of each ticket file to be downloaded, and according to the metadata information of each ticket file to be downloaded, sequentially download each ticket file to be downloaded from the storage location corresponding to the second storage path information of each ticket file to be downloaded in the server to the storage location corresponding to the first storage path information of each ticket file to be downloaded in the terminal.

13. A file download system, characterized in that, The system includes: a server and a terminal; The terminal is used to send query information associated with the set of invoice files to be downloaded to the server. The server is configured to: acquire first attribute information of each ticket file to be downloaded in the set of ticket files to be downloaded; determine first storage path information of each ticket file to be downloaded in the terminal based on the query information and the first attribute information; acquire second attribute information of each ticket file to be downloaded; determine metadata information of each ticket file to be downloaded based on the first storage path information and the second attribute information; and send the metadata information of each ticket file to the terminal. The first attribute information of each ticket file to be downloaded is used to represent the file format information and file content information of the ticket file to be downloaded. The second attribute information of each ticket file to be downloaded includes at least the second storage path information of the ticket file to be downloaded in the server. The terminal is also configured to download each ticket file to be downloaded sequentially from the server based on the metadata information of each ticket file to be downloaded.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

16. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • File storage and downloading method and device and storage medium

    CN109634916A

  • File downloading method, server, client and storage medium

    CN112231603A