File processing method, device, equipment and medium

By matching the target terms and electronic signatures of financial transaction confirmations, the problem of many manual processing links in the existing technology is solved, the processing efficiency is improved, and automated processing is achieved.

CN112417516BActive Publication Date: 2024-09-10CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011289172.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-17
Publication Date
2024-09-10
Estimated Expiration
2040-11-17

AI Technical Summary

Technical Problem

The existing way of processing financial transaction confirmations involves a large number of manual processing steps, resulting in low processing efficiency.

Method used

By obtaining the text content of financial transaction confirmations, matching target terms and electronic signatures, automated processing is achieved and manual intervention is reduced.

Benefits of technology

It improves the processing efficiency of financial transaction confirmations, realizes automatic extraction, intelligent comparison and automatic signature, and reduces manual processing links.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112417516B
    Figure CN112417516B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a file processing method, device, equipment and medium. The method comprises: obtaining a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation; matching the target clause in the financial transaction confirmation; if the target clause is successfully matched, calculating the position to be signed in the financial transaction confirmation, and electronically signing the financial transaction confirmation according to the position to be signed to obtain a processed file. The above technical solution realizes the intelligent processing of the financial transaction confirmation and improves the processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of information processing technology, and in particular to a file processing method, device, equipment and medium. Background Art

[0002] A financial transaction confirmation letter refers to a written certificate that is mailed to both parties of a financial transaction (usually financial institutions) after the transaction is concluded, stating the conclusion of the transaction. A financial transaction confirmation letter signed by both parties to the transaction is a legally valid document and is equally binding on both parties to the transaction.

[0003] Regarding the processing of financial transaction confirmation letters, it is usually achieved by manually checking emails to receive financial transaction confirmation letters, manually verifying them, and then electronically signing them after confirmation. However, this method involves a large number of manual processing links and has low processing efficiency. Summary of the invention

[0004] The embodiments of the present invention provide a file processing method, device, equipment and medium to realize intelligent processing of financial transaction confirmation documents and improve processing efficiency.

[0005] In a first aspect, an embodiment of the present invention provides a file processing method, comprising:

[0006] Obtaining a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation;

[0007] Matching the target terms in the financial transaction confirmation;

[0008] If the target clause is matched successfully, the position to be signed in the financial transaction confirmation is calculated, and the financial transaction confirmation is electronically signed according to the position to be signed to obtain a processed file.

[0009] In a second aspect, an embodiment of the present invention further provides a file processing device, including:

[0010] A module for obtaining a file to be processed, configured to obtain a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation;

[0011] A terms matching module, configured to match target terms in the financial transaction confirmation;

[0012] The electronic signature module is configured to calculate the position to be signed in the financial transaction confirmation if the target clause is matched successfully, and electronically sign the financial transaction confirmation according to the position to be signed to obtain a processed file.

[0013] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the file processing method as described in any embodiment of the present invention is implemented.

[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the file processing method as described in any embodiment of the present invention is implemented.

[0015] The technical solution provided by the embodiment of the present invention, after obtaining a to-be-processed file whose text content is a financial transaction confirmation, matches the target clauses in the financial transaction confirmation. If the target clauses are matched successfully, the position to be signed in the financial transaction confirmation is calculated, and the financial transaction confirmation is electronically signed according to the position to be signed to obtain a processed file, thereby realizing intelligent processing of the financial transaction confirmation and improving processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flow chart of a file processing method in Embodiment 1 of the present invention;

[0017] Figure 2 is a flow chart of a file processing method in Embodiment 2 of the present invention;

[0018] Figure 3 is a flow chart of a file processing method in Embodiment 3 of the present invention;

[0019] Figure 4 is a structural schematic diagram of a file processing device in Embodiment 4 of the present invention;

[0020] Figure 5 It is a schematic diagram of the hardware structure of a computer device in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0021] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0022] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations (or steps) as sequential processes, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0023] Embodiment 1

[0024] Figure 1 It is a flowchart of a file processing method provided in the first embodiment of the present invention, which can be applicable to the case of processing financial transaction confirmation documents. The method can be executed by the file processing device provided in the embodiment of the present invention. The device can be implemented in software and / or hardware and can generally be integrated in a computer device.

[0025] like Figure 1 As shown, the file processing method provided in this embodiment specifically includes:

[0026] S110, obtaining a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation.

[0027] The pending file refers to an electronic document whose text content is a pending financial transaction confirmation, which is sent by one party to the financial transaction (the transaction party) to the other party to the financial transaction. For the pending file, the processing operations that the recipient of the pending file (i.e. the other party to the financial transaction) needs to perform include content verification and confirmation and electronic signature.

[0028] The method for obtaining the to-be-processed file may be obtained in the form of email or other file transmission forms, which is not specifically limited in this embodiment.

[0029] Optionally, after obtaining the file to be processed, it also includes:

[0030] If the file to be processed is not in text format, text recognition is performed on the file to be processed to obtain the financial transaction confirmation in text format.

[0031] When the received file to be processed is not in a text format (such as a word format), that is, not a file format that can be directly edited, for example, when the file type of the received file to be processed is a PDF (Portable Document Format) or a picture format, text recognition can be performed on the file to be processed, for example, text recognition can be performed through OCR (Optical Character Recognition). After the text recognition of the financial transaction confirmation is performed, it is convenient for the file processing device to obtain the text content in the financial transaction confirmation and check and confirm it.

[0032] S120. Match the target terms in the financial transaction confirmation.

[0033] The transaction object corresponding to the financial transaction confirmation is matched, so as to extract the elements to be confirmed in the financial transaction confirmation according to the template corresponding to the transaction object, and achieve matching of relevant terms.

[0034] There are usually some clauses in the financial transaction confirmation that require the recipient of the financial transaction confirmation to check and confirm. In view of the variety of types and contents of financial transactions, the corresponding target clauses in the financial transaction confirmation are also diverse. This embodiment does not specifically limit the form and content of the target clause.

[0035] In an optional implementation, the target terms in the financial transaction confirmation include target economic terms and target legal terms.

[0036] Optionally, the target economic terms involve financial transaction details, including but not limited to: transaction type, transaction number, transaction amount, transaction currency, transaction date, etc.

[0037] Optionally, the target legal clause involves a valid legal document, which depends on the actual application scenario and is not specifically limited in this embodiment.

[0038] Furthermore, in an optional implementation, matching the target terms in the financial transaction confirmation may be specifically performed as follows:

[0039] According to the pre-stored transaction attribute information mapping relationship, the transaction attribute information involved in the target economic terms in the financial transaction confirmation is converted; if the converted target economic terms match the pre-stored transaction information, the target legal terms in the financial transaction confirmation are matched.

[0040] In this embodiment, the target economic terms in the financial transaction confirmation are first matched with the locally pre-stored transaction information. If the target economic terms are successfully matched, the target legal terms in the financial transaction confirmation are matched with the locally pre-stored legal terms. If the target economic terms are not matched, the manual review function of the economic terms can be triggered, and the target economic terms are manually reviewed. If the manual review is passed, the target legal terms in the financial transaction confirmation are continued to be matched with the locally pre-stored legal terms. If the manual review is not passed, the processing flow of the pending file is terminated.

[0041] When the target legal terms are matched automatically, if the target legal terms are matched successfully, the process of checking and confirming the text content in the financial transaction confirmation letter is completed; if the target legal terms are matched unsuccessfully, the target legal terms are manually reviewed. If the manual review is passed, the process of checking and confirming the text content in the financial transaction confirmation letter is completed. If the manual review is not passed, the processing flow of the documents to be processed is terminated.

[0042] Given that some attribute information involved in economic terms may not be expressed in the same form in different financial institutions, for example, attribute information A involved in economic terms may be expressed in the form of A1 in financial institution X1 and in the form of A2 in financial institution X2. Before matching the target economic terms, the transaction attribute information involved in the target economic terms in the financial transaction confirmation may be converted according to the pre-stored transaction attribute information mapping relationship, that is, converted into transaction attribute information applicable to the recipient of the financial transaction confirmation, and then the economic terms are matched.

[0043] Assuming that the sender of the financial transaction confirmation is financial institution X1 and the receiver is financial institution X2, the attribute information A involved in the economic terms in the financial transaction confirmation is converted from expression form A1 to expression form A2 according to the pre-stored transaction attribute information mapping relationship "from A1 to A2".

[0044] It is worth noting that before converting the transaction attribute information involved in the target economic terms in the financial transaction confirmation according to the pre-stored transaction attribute information mapping relationship, the transaction attribute information involved in the target economic terms in the financial transaction confirmation can be scanned and analyzed to determine whether there is transaction attribute information that is not applicable to the recipient of the financial transaction confirmation. If so, the transaction attribute information involved in the target economic terms in the financial transaction confirmation is converted according to the pre-stored transaction attribute information mapping relationship. If not, it can be directly determined whether the target economic terms match the pre-stored transaction information.

[0045] S130. If the target clause is matched successfully, the position to be signed in the financial transaction confirmation is calculated, and the financial transaction confirmation is electronically signed according to the position to be signed to obtain a processed file.

[0046] The location to be signed in the financial transaction confirmation refers to the location where the electronic signature is required, which can be expressed in the form of coordinates. The processed file is the signed financial transaction confirmation.

[0047] Acquire signature information, such as the electronic signature of the default signer, and perform electronic signature at the calculated position to be signed. Complete the electronic signature on the basis of the file to be processed, and the processing of the file to be processed can be completed to obtain the processed file.

[0048] In an optional implementation, the position to be signed in the financial transaction confirmation may be calculated by: obtaining a signature keyword and a corresponding offset of the financial transaction confirmation; and calculating the position to be signed in the financial transaction confirmation based on the signature keyword and the corresponding offset.

[0049] The financial transaction confirmation is scanned according to each signature keyword stored in the signature keyword set, the signature keyword existing in the financial transaction confirmation is determined, and the offset corresponding to the signature keyword is obtained. The coordinate area range of the signature keyword in the financial transaction confirmation is identified, for example, the coordinate area range in the financial transaction confirmation in PDF format, and the corresponding offset is accumulated on the basis of the coordinate area range, and the obtained area is used as the position to be signed in the financial transaction confirmation.

[0050] Among them, the signature keywords stored in the signature keyword set and the corresponding offsets can be maintained by parameters.

[0051] In an optional implementation, the position to be signed in the financial transaction confirmation is calculated based on the signature keyword and the corresponding offset, which can be specifically as follows: identifying the coordinates of the right boundary center point of the signature keyword in the financial transaction confirmation; and using the target coordinates obtained by adding the right boundary center point coordinates and the offset as the position to be signed in the financial transaction confirmation.

[0052] For example, if the signature keyword in the confirmed financial transaction confirmation is "Signature of Party A's authorized signatory:", the coordinates of the center point on the right border where the character ":" is located can be identified, wherein the center point is the intersection of the center line of the upper border and the lower border of the signature keyword and the right border of the signature keyword. Based on the coordinates of the center point on the right border, the corresponding offset is accumulated, and the obtained coordinates are used as the position to be signed in the financial transaction confirmation, for example, the obtained coordinates can be used as the center point coordinates or the starting point coordinates of the position to be signed in the financial transaction confirmation.

[0053] In the above implementation, the position to be signed in the financial transaction confirmation is more accurate, so as to avoid the overlap between the electronic signature and the text content in the financial transaction confirmation as much as possible.

[0054] The technical solution provided by the embodiment of the present invention, after obtaining a to-be-processed file whose text content is a financial transaction confirmation, matches the target clauses in the financial transaction confirmation. If the target clauses are matched successfully, the position to be signed in the financial transaction confirmation is calculated, and the financial transaction confirmation is electronically signed according to the position to be signed to obtain a processed file, thereby realizing intelligent processing of the financial transaction confirmation and improving processing efficiency.

[0055] Based on the above technical solution, in an optional implementation, obtaining the to-be-processed file may specifically include: scanning the mailbox regularly to obtain newly received emails; parsing the content of the newly received emails, and filtering out the to-be-processed file according to the first target configuration rule. Correspondingly, after obtaining the processed file, it also includes: sending the processed file in the form of an email based on the second target configuration rule.

[0056] Among them, the first target configuration rule refers to the configuration rule for filtering and capturing financial transaction confirmation letters, such as email title matching configuration rule, email content matching configuration rule, email attachment matching configuration rule, etc.; the second target configuration rule refers to the configuration rule for sending a reply email after processing the financial transaction confirmation letter, such as email title configuration rule, email content configuration rule, email signature information configuration rule, etc. Optionally, the first target configuration rule and the second target configuration rule support custom maintenance and dynamic setting.

[0057] Scan the mailbox regularly to obtain newly received emails, where the mailbox can be a dedicated business mailbox for receiving financial transaction confirmations. For each newly received email, parse the email content, and filter out emails that meet the capture conditions according to the first target configuration rule, and capture the text content in the email attachment as the to-be-processed file in the financial transaction confirmation, and match the transaction object corresponding to the to-be-processed file. If the email attachment is a compressed file, the compressed file may first need to be decompressed. After the to-be-processed file is processed and the processed file is generated, the processed file is sent to the mailbox of the transaction object in the form of an email according to the second target configuration rule.

[0058] Compared with the existing technology of "staff logs into the mailbox from time to time to check emails, downloads and manually checks after receiving the financial transaction confirmation, and manually signs and edits the email to send to the transaction object after processing is completed", the above technical solution achieves the technical effects of automatic extraction, intelligent comparison, automatic signing and editing of emails to send transaction objects of financial transaction confirmation letters, without the need for a large number of manual processing links, thereby improving processing efficiency.

[0059] Furthermore, after the to-be-processed file is screened out according to the first target configuration rule, the method further includes: if it is determined that the to-be-processed file is a repeatedly received file, ending the file processing flow.

[0060] In view of the possibility that the transaction object may send emails repeatedly, after filtering out the files to be processed according to the first target configuration rule, it is possible to first determine whether the files to be processed are files received repeatedly. If so, the file processing flow for the files to be processed is terminated; if not, the file processing flow is continued.

[0061] Optionally, whether the corresponding to-be-processed file is a duplicated file can be determined based on whether the received email is a duplicated email. For example, if the received new email is a duplicated email, the to-be-processed file in the attachment of the received new email is confirmed to be a duplicated file.

[0062] In an optional implementation, after the to-be-processed file is screened out according to the first target configuration rule, the method further includes: calculating the cryptographic hash function value of the to-be-processed file and storing it in a cryptographic hash function value set. Accordingly, determining that the to-be-processed file is a repeatedly received file may specifically be: if the cryptographic hash function value of the to-be-processed file belongs to the cryptographic hash function value set, determining that the to-be-processed file is a repeatedly received file.

[0063] For each screened file to be processed, its cryptographic hash function value is calculated and stored in the cryptographic hash function value set. Furthermore, when determining whether the file to be processed is a repeatedly received file, the cryptographic hash function value of the file to be processed can be calculated. If the cryptographic hash function value belongs to the cryptographic hash function value set, it can be known that the file to be processed has been screened out before, that is, the file to be processed is a repeatedly received file.

[0064] Optionally, the cryptographic hash function value is a Message-Digest Algorithm (MD5) value.

[0065] In the above technical solution, after the files to be processed are screened out, the uniqueness of the captured files to be processed is tested to avoid repeated processing of the same financial transaction confirmation and waste of system resources.

[0066] Embodiment 2

[0067] Figure 2 : is a flowchart of a file processing method provided by Embodiment 2 of the present invention. This embodiment is specific based on the above embodiment, wherein, before obtaining the processed file, it also includes:

[0068] If it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted, the actual signature position is adjusted.

[0069] like Figure 2 As shown, the file processing method provided in this embodiment specifically includes:

[0070] S210, obtaining a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation.

[0071] S220. Match the target terms in the financial transaction confirmation.

[0072] S230: If the target clause is matched successfully, the position to be signed in the financial transaction confirmation is calculated, and the financial transaction confirmation is electronically signed according to the position to be signed to obtain a processed file.

[0073] S240: If it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted, adjust the actual signature position.

[0074] In an optional implementation, determining that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted may specifically be:

[0075] If a signature position fine-tuning instruction is received, it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted.

[0076] Optionally, when the staff member previews the electronically signed financial transaction confirmation, if he / she believes that the actual signature position of the electronic signature needs to be adjusted, he / she can manually instruct to fine-tune the electronic signature position. Accordingly, if an electronic signature position fine-tuning instruction is received, it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted, and then the operation of adjusting the actual signature position is performed.

[0077] In an optional example, in response to a manual electronic signature position fine-tuning operation, the actual signature position is adjusted, wherein the electronic signature position fine-tuning operation can be triggered by a mouse movement operation.

[0078] In an optional example, in response to the offset adjustment instruction, the actual signature position is adjusted, that is, the actual signature position of the electronic signature is adjusted based on the position coordinates of the signature keyword of the financial transaction confirmation and the adjusted offset.

[0079] The offset adjustment instruction can trigger batch adjustment of the actual signature position of the electronic signature. When the offset corresponding to the target signature keyword is adjusted, the actual signature position in the financial transaction confirmation electronically signed based on the target signature keyword can be adaptively adjusted.

[0080] Optionally, after the financial transaction confirmation is electronically signed, it can also be automatically determined whether the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted. If so, the actual signature position is adjusted.

[0081] In an optional implementation, determining that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted may specifically be:

[0082] If it is identified that there is an overlapping area between the electronic signature and the target text in the financial transaction confirmation, it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted.

[0083] The electronically signed financial transaction confirmation is identified to determine whether there is an overlapping area between the electronic signature and the target text, wherein the target text may be, for example, a signature keyword. If so, it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted.

[0084] Optionally, when judging whether there is an overlapping area between the electronic signature and the signature keyword, it can be determined by judging whether there is an overlap between the coordinate area range of the electronic signature and the coordinate area range of the signature keyword, or by judging whether the left border of the electronic signature is to the left of the right border of the signature keyword (for the case where the electronic signature is located on the right side of the signature keyword).

[0085] Furthermore, when it is determined that there is an overlapping area between the electronic signature and the signature keyword, the actual signature position of the electronic signature is adjusted according to the width of the overlapping area. For example, if the electronic signature is located on the right side of the signature keyword, the electronic signature can be moved rightward by a distance greater than or equal to the width of the overlapping area.

[0086] For details not explained in this embodiment, please refer to the aforementioned embodiments and will not be repeated here.

[0087] The above technical solution achieves the technical effect of fine-tuning the electronic signature in the financial transaction confirmation letter, thereby avoiding the overlap between the electronic signature and the text content of the financial transaction confirmation letter and affecting the signature effect.

[0088] Embodiment 3

[0089] Figure 3 This is a flowchart of a file processing method provided by Embodiment 3 of the present invention. This embodiment provides a specific implementation method based on the above embodiments.

[0090] like Figure 3 As shown, the file processing method provided in this embodiment specifically includes:

[0091] S310, regularly scanning the mailbox to obtain newly received emails, parsing the content of the newly received emails, and filtering out files to be processed according to the first target configuration rule; wherein the text content of the files to be processed is a financial transaction confirmation.

[0092] If the email attachment is a compressed file, the file will be decompressed first, and then the files to be processed will be filtered out.

[0093] S320. Determine whether the file to be processed is a repeatedly received file according to the file MD5 value. If not, execute S330. If yes, execute S3150.

[0094] S330, determine whether the file to be processed is in text format, if not, execute S340, if yes, execute S350.

[0095] S340 , perform text recognition on the file to be processed based on OCR technology, and execute S350 .

[0096] S350: parse the content of the financial transaction confirmation, and convert the transaction attribute information involved in the target economic terms in the financial transaction confirmation according to the pre-stored transaction attribute information mapping relationship.

[0097] S360, determine whether the converted target economic terms match the pre-stored transaction information, if not, execute S370, if yes, execute 390.

[0098] S370. Trigger manual review of target economic terms and receive manual review results.

[0099] S380: Determine whether the manual review result is passed. If so, execute S390; if not, execute S3150.

[0100] S390. Determine whether the target legal terms in the financial transaction confirmation match the pre-stored legal terms. If not, execute S3100. If yes, execute S3120.

[0101] S3100. Trigger manual review of target legal terms and receive manual review results.

[0102] S3110. Determine whether the manual review result is passed. If so, execute S3120; if not, execute S3150.

[0103] S3120, obtaining signature information, calculating the position to be signed in the financial transaction confirmation letter according to the signature keyword of the financial transaction confirmation letter and the corresponding offset, and performing electronic signature on the position to be signed to obtain a processed file.

[0104] S3130. If it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted, the actual signature position is adjusted.

[0105] S3140. Based on the second target configuration rule, the processed file is sent in the form of an email.

[0106] S3150, end the file processing flow.

[0107] For details not explained in this embodiment, please refer to the aforementioned embodiments and will not be repeated here.

[0108] The above technical solution realizes the intelligent processing of financial transaction confirmations. By automatically identifying and capturing the financial transaction confirmations of the transaction objects in the business mailbox, automatically matching the transaction objects, extracting the transaction confirmation elements according to the template corresponding to the transaction objects, realizing the automatic matching of economic terms and legal terms, and automatically locating and sending the transaction object mailbox after electronic signature, the degree of automatic processing is effectively improved, the manual processing links are reduced or even eliminated, the automation level of financial transaction confirmation processing is enhanced, and work efficiency is improved.

[0109] Embodiment 4

[0110] Figure 4 It is a structural diagram of a file processing device provided in Embodiment 4 of the present invention, which can be applicable to the case of processing financial transaction confirmation documents. The device can be implemented in software and / or hardware and can generally be integrated in a computer device.

[0111] like Figure 4 As shown, the file processing device specifically includes: a to-be-processed file acquisition module 410, a clause matching module 420 and an electronic signature module 430.

[0112] The to-be-processed file acquisition module 410 is configured to acquire a to-be-processed file; wherein the text content of the to-be-processed file is a financial transaction confirmation;

[0113] A clause matching module 420, configured to match the target clause in the financial transaction confirmation;

[0114] The electronic signature module 430 is configured to calculate the position to be signed in the financial transaction confirmation if the target clause is matched successfully, and electronically sign the financial transaction confirmation according to the position to be signed to obtain a processed file.

[0115] The technical solution provided by the embodiment of the present invention, after obtaining a to-be-processed file whose text content is a financial transaction confirmation, matches the target clauses in the financial transaction confirmation. If the target clauses are matched successfully, the position to be signed in the financial transaction confirmation is calculated, and the financial transaction confirmation is electronically signed according to the position to be signed to obtain a processed file, thereby realizing intelligent processing of the financial transaction confirmation and improving processing efficiency.

[0116] Furthermore, the above-mentioned device also includes: a signature position adjustment module, which is configured to adjust the actual signature position if it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted before obtaining the processed file.

[0117] Optionally, the signature position adjustment module is specifically configured to determine that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted if a signature position fine-tuning instruction is received or an overlapping area between the electronic signature and the target text in the financial transaction confirmation is identified.

[0118] In an optional embodiment, the module for obtaining files to be processed 410 is specifically configured to periodically scan the mailbox to obtain newly received emails; parse the content of the newly received emails, and filter out the files to be processed according to the first target configuration rule; accordingly, the above-mentioned device also includes: an email reply module, which is configured to send the processed files in the form of emails after obtaining the processed files based on the second target configuration rule.

[0119] Furthermore, the to-be-processed file acquisition module 410 is also specifically configured to terminate the file processing flow if it is determined that the to-be-processed file is a repeatedly received file after the to-be-processed file is screened out according to the first target configuration rule.

[0120] In an optional implementation, the to-be-processed file acquisition module 410 is specifically configured to calculate the cryptographic hash function value of the to-be-processed file and store it in a cryptographic hash function value set after the to-be-processed file is screened out according to the first target configuration rule; correspondingly, the to-be-processed file acquisition module 410 is also specifically configured to determine that the to-be-processed file is a repeatedly received file if the cryptographic hash function value of the to-be-processed file belongs to the cryptographic hash function value set.

[0121] Optionally, the cryptographic hash function value is an MD5 value.

[0122] In an optional implementation, the electronic signature module 430 is specifically configured to obtain the signature keyword and the corresponding offset of the financial transaction confirmation if the target clause is matched successfully; and calculate the position to be signed in the financial transaction confirmation based on the signature keyword and the corresponding offset.

[0123] In an optional embodiment, the electronic signature module 430 is specifically configured to obtain the signature keyword and the corresponding offset of the financial transaction confirmation if the target clause is matched successfully; identify the right boundary center point coordinates of the signature keyword in the financial transaction confirmation; and use the target coordinates obtained by adding the right boundary center point coordinates and the offset as the position to be signed in the financial transaction confirmation.

[0124] Optionally, the target clauses include target economic clauses and target legal clauses.

[0125] Furthermore, the terms matching module 420 is specifically configured to convert the transaction attribute information involved in the target economic terms in the financial transaction confirmation book according to the pre-stored transaction attribute information mapping relationship; if the converted target economic terms match the pre-stored transaction information, the target legal terms in the financial transaction confirmation book are matched.

[0126] In an optional embodiment, the above-mentioned device also includes: a text recognition module, which is configured to, after obtaining the file to be processed, if the file to be processed is not in text format, perform text recognition on the file to be processed to obtain the financial transaction confirmation in text format.

[0127] The above-mentioned file processing device can execute the file processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the file processing method.

[0128] Since the file processing device introduced above is a device that can execute the file processing method in the embodiment of the present invention, based on the file processing method introduced in the embodiment of the present invention, the technical personnel in the field can understand the specific implementation of the file processing device of the present embodiment and its various variations, so how the file processing device implements the file processing method in the embodiment of the present invention is not described in detail here. As long as the technical personnel in the field implement the device used by the file processing method in the embodiment of the present invention, it belongs to the scope of protection of this application.

[0129] Embodiment 5

[0130] Figure 5 A schematic diagram of the hardware structure of a computer device provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0131] like Figure 5 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0132] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0133] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0134] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0135] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0136] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0137] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing a file processing method provided by an embodiment of the present invention.

[0138] That is, when the processing unit executes the program, it achieves: obtaining a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation; matching the target clauses in the financial transaction confirmation; if the target clauses are matched successfully, calculating the position to be signed in the financial transaction confirmation, and electronically signing the financial transaction confirmation according to the position to be signed, to obtain a processed file.

[0139] Embodiment 6

[0140] Embodiment 6 of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a file processing method as provided in all the embodiments of the invention of this application: that is, when the program is executed by a processor, implements: obtaining a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation; matching target clauses in the financial transaction confirmation; if the target clauses are matched successfully, calculating the position to be signed in the financial transaction confirmation, and electronically signing the financial transaction confirmation according to the position to be signed, to obtain a processed file.

[0141] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0142] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0143] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0144] The computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​(such as Java, Smalltalk, C++), and also conventional procedural programming languages ​​(such as "C" language or similar programming languages). The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network (including a local area network LAN or a wide area network WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0145] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A file processing method, characterized in that: include: Obtaining a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation; Matching the target terms in the financial transaction confirmation; wherein the target terms include target economic terms and target legal terms; If the target clause is matched successfully, the position to be signed in the financial transaction confirmation is calculated, and the financial transaction confirmation is electronically signed according to the position to be signed to obtain a processed file; The matching of the target terms in the financial transaction confirmation includes: According to the pre-stored transaction attribute information mapping relationship, the transaction attribute information involved in the target economic terms in the financial transaction confirmation is converted; If the converted target economic terms match the pre-stored transaction information, matching the target legal terms in the financial transaction confirmation; Before converting the transaction attribute information involved in the target economic terms in the financial transaction confirmation book according to the pre-stored transaction attribute information mapping relationship, it includes: Scan and analyze the transaction attribute information involved in the target economic terms in the financial transaction confirmation to determine whether there is transaction attribute information that is not applicable to the recipient of the financial transaction confirmation; If it exists, the operation of converting the transaction attribute information involved in the target economic terms in the financial transaction confirmation is performed according to the pre-stored transaction attribute information mapping relationship; If not, it is directly determined whether the target economic terms match the pre-stored transaction information.

2. The method according to claim 1, characterized in that Before getting the processed file, it also includes: If it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted, the actual signature position is adjusted.

3. The method according to claim 2, characterized in that Determining that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted includes: If a signature position fine-tuning instruction is received or it is identified that the electronic signature in the financial transaction confirmation has an overlapping area with the target text, it is determined that the actual signature position of the electronic signature in the financial transaction confirmation needs to be adjusted.

4. The method according to claim 1, characterized in that: Get files to be processed, including: Scan the mailbox regularly to obtain newly received emails; Parsing the newly received email content, and filtering out the to-be-processed files according to the first target configuration rule; After getting the processed file, it also includes: Based on the second target configuration rule, the processed file is sent in the form of an email.

5. The method according to claim 4, characterized in that After filtering out the to-be-processed files according to the first target configuration rule, the method further includes: If it is determined that the file to be processed is a repeatedly received file, the file processing flow is terminated.

6. The method according to claim 5, characterized in that After filtering out the to-be-processed files according to the first target configuration rule, the method further includes: Calculating the cryptographic hash function value of the file to be processed and storing it in a cryptographic hash function value set; Determining that the to-be-processed file is a repeatedly received file includes: If the cryptographic hash function value of the to-be-processed file belongs to the cryptographic hash function value set, it is determined that the to-be-processed file is a repeatedly received file.

7. The method according to claim 6, characterized in that The cryptographic hash function value is an MD5 value.

8. The method according to claim 1, characterized in that Calculating the location to be signed in the financial transaction confirmation includes: Obtaining the signature keyword of the financial transaction confirmation and the corresponding offset; The position to be signed in the financial transaction confirmation is calculated according to the signature keyword and the corresponding offset.

9. The method according to claim 8, characterized in that Calculating the position to be signed in the financial transaction confirmation according to the signature keyword and the corresponding offset includes: Identify the coordinates of the center point of the right border of the signature keyword in the financial transaction confirmation; The target coordinates obtained by adding the coordinates of the center point of the right border and the offset are used as the position to be signed in the financial transaction confirmation.

10. The method according to claim 1, characterized in that After getting the files to be processed, it also includes: If the file to be processed is not in text format, text recognition is performed on the file to be processed to obtain the financial transaction confirmation in text format.

11. A file processing device, characterized in that: include: A module for obtaining a file to be processed, configured to obtain a file to be processed; wherein the text content of the file to be processed is a financial transaction confirmation; A clause matching module, configured to match target clauses in the financial transaction confirmation; wherein the target clauses include target economic clauses and target legal clauses; an electronic signature module, configured to calculate the position to be signed in the financial transaction confirmation if the target clause is successfully matched, and electronically sign the financial transaction confirmation according to the position to be signed to obtain a processed file; The clause matching module is specifically configured to convert the transaction attribute information involved in the target economic clause in the financial transaction confirmation according to the pre-stored transaction attribute information mapping relationship; if the converted target economic clause matches the pre-stored transaction information, the target legal clause in the financial transaction confirmation is matched; Wherein, the device further comprises: The transaction attribute analysis module is configured to scan and analyze the transaction attribute information involved in the target economic terms in the financial transaction confirmation before converting the transaction attribute information involved in the target economic terms in the financial transaction confirmation according to the pre-stored transaction attribute information mapping relationship, to determine whether there is transaction attribute information that is not applicable to the recipient of the financial transaction confirmation; if so, execute the operation of converting the transaction attribute information involved in the target economic terms in the financial transaction confirmation according to the pre-stored transaction attribute information mapping relationship; if not, directly determine whether the target economic terms match the pre-stored transaction information.

12. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 10 is implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.