CN109871354A - A kind of method and device of file process - Google Patents
A kind of method and device of file process Download PDFInfo
- Publication number
- CN109871354A CN109871354A CN201910039246.2A CN201910039246A CN109871354A CN 109871354 A CN109871354 A CN 109871354A CN 201910039246 A CN201910039246 A CN 201910039246A CN 109871354 A CN109871354 A CN 109871354A
- Authority
- CN
- China
- Prior art keywords
- file
- sent
- algorithm
- terminal
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to data processing fields, provide a kind of method and device of file process.A kind of method of file process includes: to generate file identification to be sent, wherein the file identification to be sent is used to indicate file type to be sent and file format to be sent when determining the type of file process to send file;It is inquired in the algorithms library of file consolidation interface and generates file algorithm with the file type to be sent of the file identification instruction to be sent and the file format to be sent corresponding first, wherein, there is N kind to generate file algorithm in the algorithms library of the file consolidation interface, N is positive integer;The first generation file algorithm is called to be handled customer data to obtain file to be sent, wherein the customer data is obtained from database by terminal;The file to be sent is uploaded into the corresponding first server of the terminal;The file to be sent is issued into the corresponding second server in bank end by the corresponding first server of the terminal.The technical solution of the embodiment of the present invention, so that file handling procedure is simple and economizes on resources.
Description
Technical field
The present invention relates to data processing field, especially a kind of method and device of file process.
Background technique
Currently, file process is also at critically important as the cooperation dealing between finance company and bank is more and more closer
A link, in the case where combining the mode of making loans, finance company offers a loan to personal or enterprise together with bank, finance company with
There are many types for the file of interaction between bank, for example have application documents when customer lending, and client has refund file when refunding.
When finance company sends file to bank, need to call generation file interface, and according to different file types
It needs to call different generation file interfaces with format, finance company needs to call downloading when receiving the file that bank sends
File interface, and needed to call different downloading file interfaces according to different file type and format, in this way, finance company
During file process, need to call different interfaces according to sending file or receiving file, and according to inhomogeneity
The file of type or different-format is also required to call a variety of different interfaces, in this way, file handling procedure is cumbersome and waste of resource.
Summary of the invention
The embodiment of the present invention provides the method and device of file process, to make file handling procedure simple and save
Resource.
First aspect present invention provides a kind of method of file process, comprising:
When determining the type of file process to send file, file identification to be sent is generated, wherein the text to be sent
Part mark is used to indicate file type to be sent and file format to be sent;
The file to be sent with the file identification instruction to be sent is inquired in the algorithms library of file consolidation interface
Type and the file format to be sent corresponding first generate file algorithm, wherein the algorithms library of the file consolidation interface
In have N kind generate file algorithm, N is positive integer;
The first generation file algorithm is called to be handled customer data to obtain file to be sent, wherein described
Customer data is obtained from database by terminal;
The file to be sent is uploaded into the corresponding first server of the terminal;
The file to be sent is issued into the corresponding second service in bank end by the corresponding first server of the terminal
Device.
Second aspect of the present invention provides a kind of terminal of file process, comprising:
Generation module, for generating file identification to be sent when determining the type of file process to send file,
In, the file identification to be sent is used to indicate file type to be sent and file format to be sent;
Enquiry module, for inquiring the institute with the file identification instruction to be sent in the algorithms library of file consolidation interface
It states file type to be sent and the file format to be sent corresponding first generates file algorithm, wherein the file consolidation
There is N kind to generate file algorithm in the algorithms library of interface, N is positive integer;
Processing module, for calling the first generation file algorithm to be handled customer data to obtain text to be sent
Part, wherein the customer data is obtained from database by the terminal;
Uploading module, for the file to be sent to be uploaded to the corresponding first server of the terminal;
Sending module, for the file to be sent to be issued bank end pair by the corresponding first server of the terminal
The second server answered.
Third aspect present invention provides a kind of terminal of file process, and the terminal includes processor, memory, communication
Interface and one or more programs, wherein one or more of programs are stored in the memory, and are configured
It is executed by the processor, described program includes the instruction for executing any of the above-described embodiment.
Fourth aspect present invention provides a kind of computer readable storage medium, and the computer readable storage medium is used for
Computer program is stored, the computer program is executed by the processor, to realize any of the above-described embodiment.
It can be seen that the present invention provides a kind of method and devices of file process, through the above technical solutions, needing
When sending file, the algorithms library of file consolidation interface is accessed, a variety of generation files in the algorithms library of file consolidation interface are calculated
Inquiry first generates file algorithm in method, calls the first generation file algorithm to handle customer data to be sent to obtain
File also accesses the algorithms library of this document unified interface, in the algorithms library of file consolidation interface when needing to receive file
The first downloading of inquiry file algorithm in a variety of downloading file algorithms, calls the first downloading file algorithm from the corresponding service of terminal
File to be received is downloaded in device.All only need to access the algorithms library of this document unified interface when sending file and receiving file,
And for the file of different type and format, there is the file with different type and format in the algorithms library of this document unified interface
Corresponding algorithm, so that file handling procedure is simple and has saved resource.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, below by embodiment it is required use it is attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram for document handling method that first embodiment of the invention provides;
Inquiry first generates the step of file algorithm in the document handling method that Fig. 2 provides for second embodiment of the invention
Refine schematic diagram;
The step of the first generation file algorithm is obtained in the document handling method that Fig. 3 provides for third embodiment of the invention
Refine schematic diagram;
Fig. 4 is a kind of schematic diagram for document handling method that fourth embodiment of the invention provides;
Fig. 5 is a kind of schematic diagram for document handling method that fifth embodiment of the invention provides;
Fig. 6 is a kind of schematic diagram for document handling method that sixth embodiment of the invention provides;
In the document handling method that Fig. 7 provides for seventh embodiment of the invention the step of the first downloading of inquiry file algorithm
Refine schematic diagram;
Fig. 8 is a kind of schematic diagram of file process terminal provided in an embodiment of the present invention;
Fig. 9 be the present embodiments relate to hardware running environment terminal structure schematic diagram.
Specific embodiment
The embodiment of the present invention provides the method and device of file process, to make file interaction process simple and save
Resource.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It is described in detail separately below.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it
Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be
System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list
Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referring first to Fig. 1, Fig. 1 is a kind of schematic diagram for document handling method that first embodiment of the invention provides.Wherein,
As shown in Figure 1, the document handling method that the first embodiment of the present invention provides may include:
10, when determining the type of file process to send file, terminal generates file identification to be sent, wherein described
File identification to be sent is used to indicate file type to be sent and file format to be sent.
Wherein, above-mentioned terminal for example can be mobile phone, tablet computer, laptop, palm PC, mobile Internet and set
Standby, wearable device or other kinds of terminal.
Wherein, the type of file process includes sending file or reception file.
For example, terminal is according to file type to be sent and file to be sent when the type of file process is to send file
Format generates file identification to be sent.Wherein, file type to be sent can be client file, application documents, repayment schedule text
Part and confirmation file etc. of refunding, wherein client file includes customer name, gender, contact method, ID card No., job note
The information such as position and work address, application documents include that client applies for the information submitted when loan, and repayment schedule file includes refunding
Time limit and the information such as the amount of money, confirmation file of refunding include the confirmation message after client refunds, file format to be sent can be
Only file body is also possible to have file header and file body, is also possible to have end-of-file and file body, can also be file
Head, end-of-file and file body.
20, the terminal inquired in the algorithms library of file consolidation interface with described in the file identification to be sent instruction
File type to be sent and the file format to be sent corresponding first generate file algorithm, wherein the file consolidation connects
There is N kind to generate file algorithm in the algorithms library of mouth, N is positive integer.
For example, terminal inquired in the algorithms library of file consolidation interface with file identification to be sent instruction it is described to be sent
File type and the file format to be sent it is corresponding first generate file algorithm, it is described first generate file algorithm for pair
Customer data is handled to obtain meeting the file of file type to be sent and file format to be sent.Wherein, described first
It generates file algorithm and belongs to the N kind generation file algorithm, different generation file algorithms can correspond to different texts to be sent
Part type and file format to be sent can also have part to generate file algorithm and correspond to identical file type to be sent and pending
File format is sent, but is different the time complexity for generating file algorithm or space complexity difference.
30, the terminal calls the first generation file algorithm to be handled customer data to obtain text to be sent
Part, wherein the customer data is obtained from database by the terminal.
For example, terminal obtains customer data from database when terminal will send client file, customer data includes client
Name, gender, contact method, ID card No., work unit and work address etc., terminal are called and file identification pair to be sent
The the first generation file algorithm answered handles customer data, obtains client file to be sent.
40, the file to be sent is uploaded to the corresponding first server of the terminal by the terminal.
50, the file to be sent is issued bank end by the corresponding first server of the terminal and corresponded to by the terminal
Second server.
Further, referring to fig. 2, the second embodiment of the present invention is proposed based on the first embodiment of the present invention.
In the present embodiment, the step 20 includes:
21, the N kind in the algorithms library of file consolidation interface described in the terminal access generates file algorithm.
There is N kind to generate file algorithm in the algorithms library of file consolidation interface, wherein different generation file algorithms can be right
Different file type to be sent and file format to be sent are answered, there can also be part generation file algorithm to correspond to identical pending
File type and file format to be sent are sent, but is different the time complexity for generating file algorithm or space complexity not
Together.
22, the terminal extracts the key that the file type to be sent is used to indicate in the file identification to be sent
Word.
Wherein, file type to be sent can be client file, application documents, repayment schedule file and confirmation file of refunding
Deng, wherein client file includes the letter such as customer name, gender, contact method, ID card No., work unit and work address
Breath, application documents include that client applies for the information submitted when loan, and repayment schedule file includes the letter such as the time limit refunded and amount of money
Breath, confirmation file of refunding include the confirmation message after client refunds.
23, the terminal generates to obtain in file algorithm in the N kind is used to indicate the files classes to be sent with described
The M kind of the keyword match of type generates file algorithm, wherein M is the positive integer less than N.
Wherein, the corresponding file type to be sent of the M kind generation file algorithm meets file identification instruction to be sent
File type to be sent, M kind generate the corresponding file format to be sent of file algorithm and can be different from, and M kind generates file and calculates
There can also be the corresponding file format to be sent of some algorithm identical in method, but the different time complexities for generating file algorithm
Or space complexity is different.
24, the terminal extracts the key that the file format to be sent is used to indicate in the file identification to be sent
Word.
Wherein, file format to be sent can be only file body, is also possible to have file header and file body, is also possible to
There are end-of-file and file body, can also be file header, end-of-file and file body.
25, the terminal generates to obtain in file algorithm in the M kind is used to indicate the tray to be sent with described
Described the first of the keyword match of formula generates file algorithm.
Wherein, it is described first generation the corresponding file type to be sent of file algorithm and file format to be sent all meet to
Send the file type to be sent and file format to be sent of file identification instruction.
Further, referring to Fig. 3, the third embodiment of the present invention is proposed based on the second embodiment of the present invention.
In the present embodiment, the step 25 includes:
251, the terminal generates to obtain in file algorithm in the M kind is used to indicate the tray to be sent with described
The I kind of the keyword match of formula generates file algorithm, wherein I is the positive integer less than M.
Wherein, the I kind generate the corresponding file type to be sent of file algorithm and file format to be sent all meet to
The file type to be sent and file format to be sent of file identification instruction are sent, but the time that I kind generates file algorithm is multiple
Miscellaneous degree or space complexity are different.
252, I kind described in the terminal inquiry generates the corresponding time complexity of file algorithm or spatial complex
Degree.
Wherein, the evaluation of algorithm mainly considers that time complexity refers to execution from time complexity and space complexity
Amount of calculation required for algorithm, space complexity refer to the memory headroom that algorithm needs to consume.
253, the terminal selects the I kind to generate time complexity minimum or space complexity in file algorithm minimum
Algorithm as it is described first generate file algorithm.
Further, referring to Fig. 4, the fourth embodiment of the present invention is proposed based on the third embodiment of the present invention.
In the present embodiment, include: after the step 20
201, the terminal will be used to indicate the keyword of the file type to be sent in the file identification to be sent
The caching of the terminal is stored in the keyword for being used to indicate the file format to be sent in the file identification to be sent
In queue.
Wherein, file type to be sent can be client file, application documents, repayment schedule file and confirmation file of refunding
Deng, wherein client file includes the letter such as customer name, gender, contact method, ID card No., work unit and work address
Breath, application documents include that client applies for the information submitted when loan, and repayment schedule file includes the letter such as the time limit refunded and amount of money
Breath, confirmation file of refunding include the confirmation message after client refunds, and file format to be sent can be only file body, can also be with
It is to have file header and file body, is also possible to have end-of-file and file body, has can also be file header, end-of-file and file body.
202, the first generation file algorithm is stored in the buffer queue of the terminal by the terminal.
Wherein, it is described first generation the corresponding file type to be sent of file algorithm and file format to be sent all meet to
Send the file type to be sent and file format to be sent of file identification instruction.
203, the terminal by the keyword for being used to indicate the file type to be sent and described is used to indicate institute
The keyword for stating file format to be sent is set as the described first index condition for generating file algorithm.
For example, extracting after terminal generates file identification to be sent and being used to indicate file to be sent in file identification to be sent
The keyword of type and the keyword for being used to indicate file format to be sent, terminal search whether to exist in buffer queue with
In the data of the keyword for indicating file type to be sent and the keyword match for being used to indicate file format to be sent, if
Have, terminal can obtain the first generation file algorithm according to index relative from buffer queue.
Optionally, time parameter T is arranged in terminal, and terminal record the first generation file algorithm stores in buffer queue
Duration ta, as ta > T, stored in terminal deletion buffer queue it is described first generate file algorithm, the file to be sent
Be used to indicate in mark in the keyword and the file identification to be sent of the file type to be sent be used to indicate it is described to
Send the keyword of file format.
Further, referring to Fig. 5, propose that of the invention the 5th implements based on first to fourth any embodiment of the invention
Example.
In the present embodiment, include: after the step 30
31, the terminal inquires the text for encrypting the file to be sent in the algorithms library of the file consolidation interface
Part Encryption Algorithm, wherein the file encryption algorithm include symmetric encipherment algorithm, rivest, shamir, adelman, Message Digest 5,
Any one of hashing algorithm.
32, the terminal calls the file encryption algorithm to encrypt the file to be sent.
When determining the type of file process to receive file, provided referring to Fig. 6, Fig. 6 for the sixth embodiment of the present invention
A kind of document handling method schematic diagram.
Wherein, as shown in fig. 6, the document handling method that the sixth embodiment of the present invention provides may include:
60, when determining the type of file process to receive file, the terminal recognition file identification to be received, wherein
The file identification to be received is used to indicate file type to be received and file format to be received.
Wherein, above-mentioned terminal for example can be mobile phone, tablet computer, laptop, palm PC, mobile Internet and set
Standby, wearable device or other kinds of terminal.
Wherein, file type to be sent can be client file, application documents, repayment schedule file and confirmation file of refunding
Deng, wherein client file includes the letter such as customer name, gender, contact method, ID card No., work unit and work address
Breath, application documents include that client applies for the information submitted when loan, and repayment schedule file includes the letter such as the time limit refunded and amount of money
Breath, confirmation file of refunding include the confirmation message after client refunds, and file format to be sent can be only file body, can also be with
It is to have file header and file body, is also possible to have end-of-file and file body, has can also be file header, end-of-file and file body.
70, the terminal is inquired and the file identification instruction to be received in the algorithms library of the file consolidation interface
The file type to be sent and the corresponding first downloading file algorithm of the file format to be sent, wherein the file system
There is X kind to download file algorithm in the algorithms library of one interface, X is positive integer.
For example, terminal inquired in the algorithms library of file consolidation interface with file identification to be received instruction it is described to be sent
File type and the file format to be sent it is corresponding first downloading file algorithm, it is described first downloading file algorithm be used for from
File to be received is downloaded in the first server.Wherein, the first downloading file algorithm belongs to the X kind downloading file and calculates
Method, different downloading file algorithms can correspond to different file type to be received and file format to be received, can also there is portion
Divide downloading file algorithm to correspond to identical file type to be received and file format to be received, but is different downloading file algorithm
Time complexity or space complexity it is different.
80, the terminal call the first downloading file algorithm downloaded from the corresponding first server of the terminal to
Receive file.
Further, referring to Fig. 7, the seventh embodiment of the present invention is proposed based on the sixth embodiment of the present invention.
In the present embodiment, the step 70 includes:
71, the X kind in the algorithms library of file consolidation interface described in the terminal access downloads file algorithm.
There is X kind to download file algorithm in the algorithms library of file consolidation interface, wherein different downloading file algorithms can be right
Different file type to be received and file format to be received are answered, there can also be part downloading file algorithm to correspond to identical waiting
File type and file format to be received are received, but the time complexity or space complexity that are different downloading file algorithm are not
Together.
72, the terminal extracts the key that the file type to be received is used to indicate in the file identification to be received
Word.
Wherein, file type to be sent can be client file, application documents, repayment schedule file and confirmation file of refunding
Deng, wherein client file includes the letter such as customer name, gender, contact method, ID card No., work unit and work address
Breath, application documents include that client applies for the information submitted when loan, and repayment schedule file includes the letter such as the time limit refunded and amount of money
Breath, confirmation file of refunding include the confirmation message after client refunds.
73, the terminal obtains in X kind downloading file algorithm and is used to indicate the files classes to be received with described
The Y kind of the keyword match of type downloads file algorithm, wherein Y is the positive integer less than X.
Wherein, the corresponding file type to be received of the Y kind downloading file algorithm meets file identification instruction to be received
File type to be received, the corresponding file format to be received of Y kind downloading file algorithm can be different from, and Y kind is downloaded file and calculated
There can also be the corresponding file format to be received of some algorithm identical in method, but the time complexity of different downloading file algorithms
Or space complexity is different.
74, the terminal extracts the key that the file format to be received is used to indicate in the file identification to be received
Word.
Wherein, file format to be sent can be only file body, is also possible to have file header and file body, is also possible to
There are end-of-file and file body, can also be file header, end-of-file and file body.
75, the terminal obtains in Y kind downloading file algorithm and is used to indicate the tray to be received with described
The first downloading file algorithm of the keyword match of formula.
Wherein, it is described first downloading the corresponding file type to be received of file algorithm and file format to be received all meet to
Receive the file type to be received and file format to be received of file identification instruction.
Optionally, terminal by be used to indicate in the file identification to be received the file type to be received keyword and
The keyword that the file format to be received is used to indicate in the file identification to be received is stored in the buffer queue of terminal,
The first downloading file algorithm is stored in buffer queue by terminal, and terminal is used to indicate the files classes to be received for described
The keyword of type and the keyword for being used to indicate the file format to be received are set as the rope of the first downloading file algorithm
Draw condition.
For example, extracting after terminal recognition file identification to be received and being used to indicate file to be received in file identification to be received
The keyword of type and the keyword for being used to indicate file format to be received, terminal search whether to exist in buffer queue with
In the data of the keyword for indicating file type to be received and the keyword match for being used to indicate file format to be received, if
Have, terminal can obtain the first downloading file algorithm according to index relative from buffer queue.
Further optional, time parameter T is arranged in terminal, and the first downloading file algorithm of terminal record is in caching team
The duration tb stored in column, as tb > T, stored in terminal deletion buffer queue it is described first downloading file algorithm, it is described to
It receives and is used to indicate in file identification in the keyword and the file identification to be received of the file type to be received for referring to
Show the keyword of the file format to be received.
Referring to Fig. 8, Fig. 8 is a kind of schematic diagram of file process terminal provided in an embodiment of the present invention.Wherein, such as Fig. 8 institute
Show, file process terminal provided in an embodiment of the present invention may include:
Generation module 801, for generating file identification to be sent when determining the type of file process to send file,
Wherein, the file identification to be sent is used to indicate file type to be sent and file format to be sent.
Enquiry module 802, for the inquiry in the algorithms library of file consolidation interface and the file identification instruction to be sent
The file type to be sent and the file format to be sent it is corresponding first generate file algorithm, wherein the file
There is N kind to generate file algorithm in the algorithms library of unified interface, N is positive integer.
Wherein, enquiry module is specifically used for:
The N kind accessed in the algorithms library of the file consolidation interface generates file algorithm.
Extract the keyword that the file type to be sent is used to indicate in the file identification to be sent.
It generates in file algorithm and obtains and the keyword for being used to indicate the file type to be sent in the N kind
The M kind matched generates file algorithm, wherein M is the positive integer less than N.
Extract the keyword that the file format to be sent is used to indicate in the file identification to be sent.
It generates in file algorithm and obtains and the keyword for being used to indicate the file format to be sent in the M kind
Described first matched generates file algorithm.
Wherein, enquiry module generates to obtain in file algorithm in the M kind is used to indicate the file to be sent with described
The first generation file algorithm of the keyword match of format specifically includes:
It generates in file algorithm and obtains and the keyword for being used to indicate the file format to be sent in the M kind
The I kind matched generates file algorithm, wherein I is the positive integer less than M.
It inquires the I kind and generates the corresponding time complexity of file algorithm or space complexity.
Selecting the I kind to generate, time complexity is minimum in file algorithm or the smallest algorithm of space complexity is as institute
State the first generation file algorithm.
Processing module 803, it is pending to obtain for calling the first generation file algorithm to handle customer data
Send file, wherein the customer data is obtained from database by the terminal.
Wherein, processing module is also used to:
The file encryption algorithm for encrypting the file to be sent is inquired in the algorithms library of the file consolidation interface,
Wherein, the file encryption algorithm includes symmetric encipherment algorithm, rivest, shamir, adelman, Message Digest 5, hashing algorithm
Any one.
The file encryption algorithm is called to encrypt the file to be sent.
Uploading module 804, for the file to be sent to be uploaded to the corresponding first server of the terminal.
Sending module 805, for the file to be sent to be issued bank by the corresponding first server of the terminal
Hold corresponding second server.
The specific embodiment of file process terminal of the present invention and each embodiment of above-mentioned document handling method are essentially identical,
This is not repeated.
Referring to Fig. 9, Fig. 9 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of file process of the embodiment of the present invention can be mobile phone, tablet computer, laptop, palm PC, shifting
Dynamic internet device, wearable device or other kinds of terminal.
Wherein, as shown in figure 9, the terminal for the hardware running environment that the embodiment of the present invention is related to may include:
Processor 901, such as CPU.
Memory 902, optionally, memory can be high speed RAM memory, be also possible to stable memory, such as
Magnetic disk storage.
Communication interface 903, for realizing the connection communication between processor 501 and memory 502.
Optionally, the terminal of file process of the embodiment of the present invention can also include user interface, network interface, camera,
Sensor, WiFi module etc..User interface may include display screen, input unit such as keyboard, and optional user interface may be used also
To include the wireline interface and wireless interface of standard.Network interface optionally may include the wireline interface and wireless interface of standard
(such as WiFi interface).
It will be understood by those skilled in the art that the structure of file process terminal shown in Fig. 9 is not constituted at file
The restriction for managing terminal may include perhaps combining certain components or different component cloth than illustrating more or fewer components
It sets.
As shown in figure 9, may include the program of operating system, network communication module and file process in memory 902.
Operating system is to manage and control the program of the terminal hardware and software resource of file process, support file process program and
The operation of other software or program.Network communication module is for realizing the communication between the 902 each component in inside of memory, Yi Jiyu
It is communicated between other hardware and softwares in the terminal of file process.
In the terminal of file process shown in Fig. 9, processor 901 is for executing at the file stored in memory 902
The program of reason, performs the steps of
When determining the type of file process to send file, file identification to be sent is generated, wherein the text to be sent
Part mark is used to indicate file type to be sent and file format to be sent.
The file to be sent with the file identification instruction to be sent is inquired in the algorithms library of file consolidation interface
Type and the file format to be sent corresponding first generate file algorithm, wherein the algorithms library of the file consolidation interface
In have N kind generate file algorithm, N is positive integer.
The first generation file algorithm is called to be handled customer data to obtain file to be sent, wherein described
Customer data is obtained from database by the terminal.
The file to be sent is uploaded into the corresponding first server of the terminal.
The file to be sent is issued into the corresponding second service in bank end by the corresponding first server of the terminal
Device.
Further, in the algorithms library of file consolidation interface inquiry with described in the file identification to be sent instruction to
Send file type and the file format to be sent it is corresponding first generation file algorithm the step of include:
The N kind accessed in the algorithms library of the file consolidation interface generates file algorithm.
Extract the keyword that the file type to be sent is used to indicate in the file identification to be sent.
It generates in file algorithm and obtains and the keyword for being used to indicate the file type to be sent in the N kind
The M kind matched generates file algorithm, wherein M is the positive integer less than N.
Extract the keyword that the file format to be sent is used to indicate in the file identification to be sent.
It generates in file algorithm and obtains and the keyword for being used to indicate the file format to be sent in the M kind
Described first matched generates file algorithm.
Further, it generates to obtain in file algorithm in the M kind and is used to indicate the file format to be sent with described
Keyword match it is described first generation file algorithm the step of include:
It generates in file algorithm and obtains and the keyword for being used to indicate the file format to be sent in the M kind
The I kind matched generates file algorithm, wherein I is the positive integer less than M.
It inquires the I kind and generates the corresponding time complexity of file algorithm or space complexity.
Selecting the I kind to generate, time complexity is minimum in file algorithm or the smallest algorithm of space complexity is as institute
State the first generation file algorithm.
Further, in the algorithms library of file consolidation interface inquiry with described in the file identification to be sent instruction to
After the step of transmission file type and the file format to be sent corresponding first generate file algorithm, processor 901 is used
In the program for executing the file process stored in memory 902, perform the steps of
The keyword of the file type to be sent and described to be sent will be used to indicate in the file identification to be sent
The keyword that the file format to be sent is used to indicate in file identification is stored in the buffer queue of the terminal.
The first generation file algorithm is stored in the buffer queue of the terminal.
By the keyword for being used to indicate the file type to be sent and described it is used to indicate the file to be sent
The keyword of format is set as the described first index condition for generating file algorithm.
Further, the first generation file algorithm is being called to be handled customer data to obtain file to be sent
Later, processor 901 is used to execute the program of the file process stored in memory 902, performs the steps of
The file encryption algorithm for encrypting the file to be sent is inquired in the algorithms library of the file consolidation interface,
Wherein, the file encryption algorithm includes symmetric encipherment algorithm, rivest, shamir, adelman, Message Digest 5, hashing algorithm
Any one.
The file encryption algorithm is called to encrypt the file to be sent.
Optionally, when receiving file, processor 901 is used to execute the program of the file process stored in memory 902, real
Existing following steps:
When determining the type of file process to receive file, file identification to be received is identified, wherein the message in-coming waiting
Part mark is used to indicate file type to be received and file format to be received.
It is inquired in the algorithms library of the file consolidation interface described to be sent with the file identification instruction to be received
File type and the corresponding first downloading file algorithm of the file format to be sent, wherein the calculation of the file consolidation interface
There is X kind to download file algorithm in Faku County, X is positive integer.
The first downloading file algorithm is called to download file to be received from the corresponding first server of the terminal.
Further, the institute with the file identification instruction to be received is inquired in the algorithms library of the file consolidation interface
State file type to be sent and the file format to be sent it is corresponding first downloading file algorithm the step of include:
Access the X kind downloading file algorithm in the algorithms library of the file consolidation interface.
Extract the keyword that the file type to be received is used to indicate in the file identification to be received.
It is obtained and the keyword for being used to indicate the file type to be received in X kind downloading file algorithm
The Y kind downloading file algorithm matched, wherein Y is the positive integer less than X.
Extract the keyword that the file format to be received is used to indicate in the file identification to be received.
It is obtained and the keyword for being used to indicate the file format to be received in Y kind downloading file algorithm
The the first downloading file algorithm matched.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
The technical solution for stating each embodiment record is modified or equivalent replacement of some of the technical features;And these are repaired
Change or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method of file process characterized by comprising
When determining the type of file process to send file, file identification to be sent is generated, wherein the files-designated to be sent
Knowledge is used to indicate file type to be sent and file format to be sent;
The file type to be sent with the file identification instruction to be sent is inquired in the algorithms library of file consolidation interface
File algorithm is generated with the file format corresponding first to be sent, wherein has N in the algorithms library of the file consolidation interface
Kind generates file algorithm, and N is positive integer;
The first generation file algorithm is called to be handled customer data to obtain file to be sent, wherein the client
Data are obtained from database by terminal;
The file to be sent is uploaded into the corresponding first server of the terminal;
The file to be sent is issued into the corresponding second server in bank end by the corresponding first server of the terminal.
2. the method according to claim 1, wherein in the algorithms library of file consolidation interface inquiry with it is described to
The file type to be sent and the file format to be sent corresponding first for sending file identification instruction generate file and calculate
Method includes:
The N kind accessed in the algorithms library of the file consolidation interface generates file algorithm;
Extract the keyword that the file type to be sent is used to indicate in the file identification to be sent;
It generates and is obtained in file algorithm and the keyword match for being used to indicate the file type to be sent in the N kind
M kind generates file algorithm, wherein M is the positive integer less than N;
Extract the keyword that the file format to be sent is used to indicate in the file identification to be sent;
It generates and is obtained in file algorithm and the keyword match for being used to indicate the file format to be sent in the M kind
Described first generates file algorithm.
3. according to the method described in claim 2, being obtained and the use it is characterized in that, being generated in file algorithm in the M kind
Include: in the first generation file algorithm for the keyword match for indicating the file format to be sent
It generates and is obtained in file algorithm and the keyword match for being used to indicate the file format to be sent in the M kind
I kind generates file algorithm, wherein I is the positive integer less than M;
It inquires the I kind and generates the corresponding time complexity of file algorithm or space complexity;
Select that the I kind generates that time complexity in file algorithm is minimum or the smallest algorithm of space complexity is as described the
All one's life is at file algorithm.
4. according to the method described in claim 3, it is characterized in that, in the algorithms library of file consolidation interface inquiry with it is described to
The file type to be sent and the file format to be sent corresponding first for sending file identification instruction generate file and calculate
After method, comprising:
The keyword and the file to be sent of the file type to be sent will be used to indicate in the file identification to be sent
The keyword that the file format to be sent is used to indicate in mark is stored in the buffer queue of the terminal;
The first generation file algorithm is stored in the buffer queue of the terminal;
By the keyword for being used to indicate the file type to be sent and described it is used to indicate the file format to be sent
Keyword be set as it is described first generate file algorithm index condition.
5. method according to any one of claims 1 to 4, which is characterized in that call described first to generate file algorithm pair
Customer data is handled includes: after file to be sent to obtain
The file encryption algorithm for encrypting the file to be sent is inquired in the algorithms library of the file consolidation interface,
In, the file encryption algorithm includes times of symmetric encipherment algorithm, rivest, shamir, adelman, Message Digest 5, hashing algorithm
It anticipates one kind;
The file encryption algorithm is called to encrypt the file to be sent.
6. according to the method described in claim 5, it is characterized by further comprising:
When determining the type of file process to receive file, file identification to be received is identified, wherein the files-designated to be received
Knowledge is used to indicate file type to be received and file format to be received;
The file to be sent with the file identification instruction to be received is inquired in the algorithms library of the file consolidation interface
Type and the corresponding first downloading file algorithm of the file format to be sent, wherein the algorithms library of the file consolidation interface
In have X kind download file algorithm, X is positive integer;
The first downloading file algorithm is called to download file to be received from the corresponding first server of the terminal.
7. according to the method described in claim 6, it is characterized in that, in the algorithms library of the file consolidation interface inquiry and institute
State the file type to be sent and the corresponding first lower published article of the file format to be sent of file identification instruction to be received
Part algorithm includes:
Access the X kind downloading file algorithm in the algorithms library of the file consolidation interface;
Extract the keyword that the file type to be received is used to indicate in the file identification to be received;
It is obtained and the keyword match for being used to indicate the file type to be received in X kind downloading file algorithm
Y kind downloads file algorithm, wherein Y is the positive integer less than X;
Extract the keyword that the file format to be received is used to indicate in the file identification to be received;
It is obtained and the keyword match for being used to indicate the file format to be received in Y kind downloading file algorithm
The first downloading file algorithm.
8. a kind of terminal of file process, which is characterized in that the terminal includes:
Generation module, for generating file identification to be sent, wherein institute when determining the type of file process to send file
It states file identification to be sent and is used to indicate file type to be sent and file format to be sent;
Enquiry module, in the algorithms library of file consolidation interface inquiry with described in the file identification to be sent instruction to
It sends file type and the file format to be sent corresponding first generates file algorithm, wherein the file consolidation interface
Algorithms library in have N kind generate file algorithm, N is positive integer;
Processing module, for calling the first generation file algorithm to be handled customer data to obtain file to be sent,
Wherein, the customer data is obtained from database by the terminal;
Uploading module, for the file to be sent to be uploaded to the corresponding first server of the terminal;
Sending module, it is corresponding for the file to be sent to be issued bank end by the corresponding first server of the terminal
Second server.
9. a kind of terminal of file process, which is characterized in that the terminal includes processor, memory, communication interface and one
A or multiple programs, wherein one or more of programs are stored in the memory, and are configured by the processing
Device executes, and described program includes the steps that requiring the instruction in any one of 1 to 7 method for perform claim.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing computer
Program, the computer program are executed by the processor, to realize the described in any item methods of claim 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910039246.2A CN109871354B (en) | 2019-01-16 | 2019-01-16 | File processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910039246.2A CN109871354B (en) | 2019-01-16 | 2019-01-16 | File processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109871354A true CN109871354A (en) | 2019-06-11 |
CN109871354B CN109871354B (en) | 2023-08-22 |
Family
ID=66917699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910039246.2A Active CN109871354B (en) | 2019-01-16 | 2019-01-16 | File processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109871354B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110753106A (en) * | 2019-10-17 | 2020-02-04 | 杭州涂鸦信息技术有限公司 | File uploading method and device and electronic equipment |
CN111858467A (en) * | 2020-07-22 | 2020-10-30 | 平安证券股份有限公司 | File data processing method, device, equipment and medium based on artificial intelligence |
CN112818195A (en) * | 2019-11-15 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Data acquisition method, device and system and computer storage medium |
CN115150388A (en) * | 2022-06-24 | 2022-10-04 | 中国建设银行股份有限公司 | File uploading and file uploading state query method, equipment and storage medium thereof |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082812A (en) * | 2009-12-01 | 2011-06-01 | 华为技术有限公司 | Method, device and system for supporting file transfer between domain systems |
US20110178821A1 (en) * | 2010-08-09 | 2011-07-21 | Douglas Smith | Medical data and image sharing |
CN107943969A (en) * | 2017-11-28 | 2018-04-20 | 平安养老保险股份有限公司 | Annuity data file sending method, device, computer equipment and storage medium |
CN108062714A (en) * | 2017-11-28 | 2018-05-22 | 平安养老保险股份有限公司 | Annuity data transmission method for uplink, device, computer equipment and storage medium |
CA2992195A1 (en) * | 2017-01-17 | 2018-07-17 | Ingenico Group | Data transmission process and corresponding device and program |
CN108809960A (en) * | 2018-05-23 | 2018-11-13 | 北京五八信息技术有限公司 | A kind of file uploads and method for down loading, device, equipment, system and storage medium |
CN109086433A (en) * | 2018-08-13 | 2018-12-25 | 深圳壹账通智能科技有限公司 | A kind of file management method and server based on big data analysis |
-
2019
- 2019-01-16 CN CN201910039246.2A patent/CN109871354B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082812A (en) * | 2009-12-01 | 2011-06-01 | 华为技术有限公司 | Method, device and system for supporting file transfer between domain systems |
US20110178821A1 (en) * | 2010-08-09 | 2011-07-21 | Douglas Smith | Medical data and image sharing |
CA2992195A1 (en) * | 2017-01-17 | 2018-07-17 | Ingenico Group | Data transmission process and corresponding device and program |
CN107943969A (en) * | 2017-11-28 | 2018-04-20 | 平安养老保险股份有限公司 | Annuity data file sending method, device, computer equipment and storage medium |
CN108062714A (en) * | 2017-11-28 | 2018-05-22 | 平安养老保险股份有限公司 | Annuity data transmission method for uplink, device, computer equipment and storage medium |
CN108809960A (en) * | 2018-05-23 | 2018-11-13 | 北京五八信息技术有限公司 | A kind of file uploads and method for down loading, device, equipment, system and storage medium |
CN109086433A (en) * | 2018-08-13 | 2018-12-25 | 深圳壹账通智能科技有限公司 | A kind of file management method and server based on big data analysis |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110753106A (en) * | 2019-10-17 | 2020-02-04 | 杭州涂鸦信息技术有限公司 | File uploading method and device and electronic equipment |
CN112818195A (en) * | 2019-11-15 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Data acquisition method, device and system and computer storage medium |
CN112818195B (en) * | 2019-11-15 | 2023-12-26 | 腾讯科技(深圳)有限公司 | Data acquisition method, device and system and computer storage medium |
CN111858467A (en) * | 2020-07-22 | 2020-10-30 | 平安证券股份有限公司 | File data processing method, device, equipment and medium based on artificial intelligence |
CN111858467B (en) * | 2020-07-22 | 2024-05-03 | 平安证券股份有限公司 | File data processing method, device, equipment and medium based on artificial intelligence |
CN115150388A (en) * | 2022-06-24 | 2022-10-04 | 中国建设银行股份有限公司 | File uploading and file uploading state query method, equipment and storage medium thereof |
CN115150388B (en) * | 2022-06-24 | 2024-04-26 | 中国建设银行股份有限公司 | File uploading and file uploading state query method and equipment and storage medium thereof |
Also Published As
Publication number | Publication date |
---|---|
CN109871354B (en) | 2023-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11863644B2 (en) | Push notification delivery system with feedback analysis | |
CN109871354A (en) | A kind of method and device of file process | |
CA3017121C (en) | Systems and methods for dynamic prediction of workflows | |
US10901573B2 (en) | Generating predictive action buttons within a graphical user interface | |
CN105573966A (en) | Adaptive Modification of Content Presented in Electronic Forms | |
CN110168537A (en) | Fast activity personnel's card of context and sociodistance's perception | |
CN111061956A (en) | Method and apparatus for generating information | |
CN111026853B (en) | Target problem determining method and device, server and customer service robot | |
CN113157947A (en) | Knowledge graph construction method, tool, device and server | |
CN110706093A (en) | Accounting processing method and device | |
CN109829164A (en) | Method and apparatus for generating text | |
Sidorova et al. | The role of information technology in business process management | |
US20190188623A1 (en) | Cognitive and dynamic business process generation | |
CN110059172B (en) | Method and device for recommending answers based on natural language understanding | |
US11042505B2 (en) | Identification, extraction and transformation of contextually relevant content | |
CN107291923B (en) | Information processing method and device | |
CN104462175B (en) | Creation uses the method and system of the integrated user interface of associated data | |
US8452841B2 (en) | Text chat for at-risk customers | |
CN107437164A (en) | E-mail sending method and device based on workflow | |
CN109299354A (en) | The searching method and device of online document | |
EP3455805A1 (en) | Enhancing contact card based on knowledge graph | |
CN111343265B (en) | Information pushing method, device, equipment and readable storage medium | |
CN105701187B (en) | Process integrated service device and the method for realizing system combination using it | |
WO2011028177A1 (en) | A context aware content management and delivery system for mobile devices | |
CN109561146A (en) | Document down loading method, device, terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |