Financial business document verification method and device, equipment and medium

By obtaining and processing verification requests for financial business documents, using the preset verification rule template library to determine the target rule verification template, and performing field extraction and comparison verification of text documents and business tables, it solves the paperless problem in the existing technology. Solve the problem of insufficient form verification accuracy and achieve higher verification accuracy.

CN119360403APending Publication Date: 2025-01-24CHONGQING RURAL COMMERCIAL BANK CO LTD +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411549914.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The prior art has insufficient accuracy when verifying paperless form content, OCR technology has high requirements for document quality and simple verification rules. There are errors and incompleteness in coordinate extraction of third-party plug-ins based on PDF documents.

Method used

By obtaining verification requests for the current business document, read the text content in the document, and determine the target rules of the target rules in accordance with the preset verification rules template library. Based on this template The comparison verification, improve the accuracy of the verification.

Benefits of technology

It improves the accuracy of the content verification between financial business documents and business tables, ensure the accuracy of data extraction, and thus enhances the accuracy of data verification in the business table to be verified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119360403A_ABST
    Figure CN119360403A_ABST
Patent Text Reader

Abstract

The invention discloses a financial business document verification method and device, equipment and a medium, and relates to the technical field of computers, and the method comprises the steps: obtaining a verification request of a current business document, and reading the text content in the current business document to obtain a formattless text document; the current business document is a document obtained by filling an initial data table stored by a business system based on business data; determining a target rule verification template from a template library according to the verification request; performing field extraction operation on the text document and the to-be-verified business table based on the target rule verification template to obtain a corresponding filling value and an actual business value; the to-be-verified business table is a latest data table stored by the business system based on the business data corresponding to the approved data; and performing comparison verification on the filling value and the actual business value to obtain a business verification result. Therefore, the accuracy of data extraction can be improved, and the accuracy of checking the data in the to-be-checked business table and the data in the business document stored in the business system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a financial business document verification method, device, equipment and medium. Background Art

[0002] As the financial sector gradually transforms to a digital model, traditional paper approval forms have been gradually replaced by system automation and paperless systems, resulting in the use of paperless online contract functions becoming more frequent and in more and more scenarios. Currently, there are two methods used to verify the content of paperless forms:

[0003] The first method is to extract text content from business documents through optical character recognition (OCR) technology, and compare and verify the extracted text content with the text content in the business table to be verified. However, OCR technology has high requirements on the quality of business documents, the preset verification rules used are too simple and rigid, and the field value rules are also relatively simple.

[0004] The second method is to use a third-party plug-in and extract the corresponding text content in the business document based on the corresponding coordinates in the PDF file. Since the document coordinates cannot be given in advance with sufficient accuracy, there are certain errors in the process of extracting the document text; in addition, the coordinates of different business data filled into the business document cannot be obtained in advance, resulting in incomplete extracted content and failure to achieve the expected effect.

[0005] As can be seen from the above, how to improve the accuracy of data verification in business tables and business documents is a problem that needs to be solved urgently. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide a financial business document verification method, device, equipment and medium, which can improve the accuracy of content verification between business documents and business tables during the financial business document verification process. The specific scheme is as follows:

[0007] In a first aspect, the present application provides a financial business document verification method, comprising:

[0008] Obtaining a verification request for a current business document, and reading text content in the current business document to obtain an unformatted text document; the current business document is a document filled in using an initial data table saved by a business system based on business data;

[0009] Determining a target rule verification template corresponding to the current business document from a preset verification rule template library according to the verification request;

[0010] Based on the target rule verification template, field extraction operations are performed on the text document and the business table to be verified respectively to obtain corresponding fill values ​​and actual business values; the business table to be verified is the latest data table saved by the business system based on the business data corresponding to the approved data;

[0011] The filling value and the actual business value are compared and verified to obtain a corresponding business verification result.

[0012] Optionally, reading the text content in the current business document to obtain an unformatted text document includes:

[0013] Downloading the current business document according to the download path in the verification request;

[0014] The preset plug-in is used to read all text contents in the current business document, and remove the format in the relevant text contents to obtain a corresponding unformatted text document.

[0015] Optionally, performing field extraction operations on the text document and the to-be-verified business table based on the target rule verification template to obtain corresponding fill values ​​and actual business values ​​includes:

[0016] Dividing the text document into a plurality of domains according to different field names in the target rule verification template; the plurality of domains correspond one-to-one to a plurality of tables generated by the business system based on the current business document;

[0017] Based on the target rule verification template and the plurality of fields, field extraction operations are performed on the text document and the business table to be verified respectively to obtain fill values ​​and actual business values ​​corresponding to the corresponding fields.

[0018] Optionally, performing field extraction operations on the text document and the to-be-verified business table based on the target rule verification template to obtain corresponding fill values ​​and actual business values ​​includes:

[0019] A target regular expression is constructed using the prefix characters and suffix characters in the target rule verification template, and a field extraction operation is performed on the text document using the target regular expression to obtain a corresponding fill value;

[0020] Extracting the corresponding initial business value from the to-be-checked business table using the value description in the target rule check template;

[0021] The corresponding actual service value is determined from the initial service value according to the value mapping in the target rule verification template.

[0022] Optionally, comparing and verifying the filled value and the actual business value to obtain a corresponding business verification result includes:

[0023] If the field comparison type for different field names in the target rule verification template is text type, a congruent comparison is performed on the fill value and the relevant fields in the actual business value to obtain a first verification result.

[0024] If the field comparison type for different field names in the target rule verification template is a numeric type, a numerical comparison is performed on the fill value and the relevant fields in the actual business value to obtain a second verification result.

[0025] Optionally, before comparing and verifying the filling value and the actual service value, the method further includes:

[0026] Determine whether the formats of the signature fields corresponding to the text document and the business table to be verified are legal, and obtain a first signature verification result for the signature field;

[0027] If the signature verification result indicates legality, the text document and the signature information of the business table to be verified are compared and verified to obtain a corresponding second signature verification result;

[0028] Accordingly, the filling value and the actual service value are compared and verified to obtain a corresponding service verification result, including:

[0029] The filled value and the actual business value are compared and verified, and the business verification result for the current business document is obtained by combining the first signature verification result and the second signature verification result.

[0030] Optionally, after comparing and verifying the filling value and the actual service value to obtain a corresponding service verification result, the method further includes:

[0031] The service verification result is sent to a preset terminal through a preset communication method so that relevant personnel can view the service verification result.

[0032] In a second aspect, the present application provides a financial business document verification device, including:

[0033] A document reading module, used to obtain a verification request for a current business document, and read the text content in the current business document to obtain an unformatted text document; the current business document is a document filled in using an initial data table saved by a business system based on business data;

[0034] A rule verification template determination module, used to determine a target rule verification template corresponding to the current business document from a preset verification rule template library according to the verification request;

[0035] A field extraction module is used to perform field extraction operations on the text document and the business table to be verified based on the target rule verification template to obtain corresponding fill values ​​and actual business values; the business table to be verified is the latest data table saved by the business system based on the business data corresponding to the approved data; the target rule verification template contains prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the business table to be verified based on a preset query tool;

[0036] The verification module is used to compare and verify the filled value and the actual business value to obtain a corresponding business verification result.

[0037] In a third aspect, the present application provides an electronic device, including:

[0038] Memory, used to store computer programs;

[0039] A processor is used to execute the computer program to implement the aforementioned financial business document verification method.

[0040] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned financial business document verification method when executed by a processor.

[0041] As can be seen from the above, when performing financial business document verification, the present application first obtains a verification request for the current business document, and reads the text content in the current business document to obtain an unformatted text document; the current business document is a document filled in using the initial data table saved by the business system based on business data; according to the verification request, a target rule verification template corresponding to the current business document is determined from a preset verification rule template library; then, based on the target rule verification template, field extraction operations are performed on the text document and the business table to be verified respectively to obtain corresponding filled values ​​and actual business values; the business table to be verified is the latest data table saved by the business system based on the business data corresponding to the approved data; the target rule verification template contains prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the business table to be verified based on a preset query tool; then the filled values ​​and the actual business values ​​are compared and verified to obtain corresponding business verification results. It can be seen that in the process of verifying financial business, this application needs to determine the target rule verification template corresponding to the current business document, and then perform field extraction operations on the text document and the business table to be verified based on the prefix characters, suffix characters and value descriptions in the target rule verification template, so as to obtain the fill-in value and the actual business value, and then verify the fill-in value and the actual business value to obtain the verification result. In this way, this scheme can accurately extract the fill-in value in the text document and the actual business value of the business table to be verified based on the prefix characters, suffix characters and value descriptions for the text document and the business table to be verified in the target rule verification template, and perform comparison verification, which can improve the accuracy of data extraction, thereby improving the accuracy of the verification of the data in the business table to be verified stored in the business system and the data in the business document. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 A flowchart of a financial business document verification method disclosed in this application;

[0044] Figure 2 A schematic diagram of configuration information of a verification rule template disclosed in this application;

[0045] Figure 3 A schematic diagram of a console management template library page disclosed in this application;

[0046] Figure 4 A schematic diagram of a signature information verification process disclosed in this application;

[0047] Figure 5 A schematic diagram of information verification disclosed in this application;

[0048] Figure 6 A schematic diagram showing a business verification result disclosed in this application;

[0049] Figure 7 A schematic diagram of a financial business document verification process disclosed in this application;

[0050] Figure 8 This is a structural flow chart of a financial business document verification device disclosed in this application;

[0051] Fig. 9 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] At present, there are two methods used to verify the content of paperless forms: the first method is to extract the text content in business documents through OCR technology, but the quality requirements for business documents are high, and the preset verification rules used are too simple and rigid, and the field value rules are also relatively simple; the second method is to use a third-party plug-in and extract the text content in the business document based on the corresponding coordinates in the PDF document, but there are certain errors in the process of extracting the document text, and the coordinates of the business data filled into the business document cannot be obtained in advance, resulting in incomplete extracted content. To this end, the present application provides a financial business document verification method, which can accurately extract the fill-in values ​​and actual business values ​​of the text document and the business table to be verified based on the prefix characters, suffix characters and value descriptions of the text document and the business table to be verified in the target rule verification template, and perform comparison verification, which can improve the accuracy of data extraction, thereby improving the accuracy of content verification in the business table to be verified generated by the business system.

[0054] See also Figure 1 As shown, the embodiment of the present invention discloses a financial business document verification method, which is applied to a verification system, including:

[0055] Step S11, obtaining a verification request for the current business document, and reading the text content in the current business document to obtain an unformatted text document; the current business document is a document filled in by using an initial data table saved by a business system based on business data.

[0056] In this embodiment, the verification system needs to obtain the verification instruction issued by the user, wherein the verification instruction includes a verification request corresponding to the current business document. The above verification request may include the business document name, the business document download path, the corresponding verification template number, the business flow and other related parameter information. The business document is a document obtained by extracting data from the initial data table corresponding to the initial business data stored in the business system. The initial business data is the business data generated by the user input information, and the initial business data that has not been approved in the business system. In a specific embodiment, the reading of the text content in the current business document to obtain an unformatted text document may include: downloading the current business document according to the download path in the verification request; using a preset plug-in to read all the text content in the current business document, and removing the format in the relevant text content to obtain a corresponding unformatted text document. Specifically, a pre-set third-party plug-in can be used to read all the text content in the current business document, and remove spaces and special symbols from all the text content in the current business document, that is, to deconstruct the current business document into unformatted text. It is understandable that the above-mentioned preset third-party plug-ins can be selected according to actual needs. For example, PDFbox (a pure Java class library prepared for developers to read and create PDF documents), itext (a Java component for generating PDF reports), etc. can be used. Any plug-in that can read all the contents in a business document is applicable to this embodiment and is not specifically limited here.

[0057] Step S12: Determine a target rule verification template corresponding to the current business document from a preset verification rule template library according to the verification request.

[0058] In this embodiment, the parameters used to characterize the rule verification template in the verification request include but are not limited to the channel number, template number, template name, etc.; the verification system can determine the target rule verification template corresponding to the current business document from a preset verification rule template library storing several rule verification templates based on the template number and / or template name contained in the above verification request. Among them, the target rule verification template can include the template name, template number, signatory identity, signatory stage, field sequence number, prefix character and suffix character, value mapping, field comparison type, number type, value description, and verification type corresponding to the above target rule verification template.

[0059] Among them, the specific explanation of the relevant configuration information of the rule verification template can be as follows: the template name and template number in the rule verification template are the Chinese name and unique number corresponding to the verification template agreed in advance by the verification system, for example: the template name can be Du Xiaoman Personal Loan Contract Verification Template, and the template number can be the unique number agreed within the verification system, for example: DOC202405311040000001. The signatory identity and signing stage in the rule verification template represent the stage at which the current business document is signed by which identity role associated person; for example: the borrower can sign the corresponding business document at the credit application stage (credit stage), and the guarantor can sign the relevant business document at the disbursement stage; it is understandable that the signing form used by the above-mentioned borrower and guarantor when signing the contract can be the same template, but due to the different identities of the signatories and the signing stages, different verification rule templates need to be configured so that the verification system can distinguish the field extraction rules by verifying the signatory identity and the signing stage. In a specific embodiment, the verification system can determine the unique target rule verification template corresponding to the current business document from a preset verification rule template library storing several rule verification templates based on the three attributes of the verification template number, signatory identity and signing stage contained in the above verification request.

[0060] Furthermore, the field names in the rule verification template are used to identify the Chinese interpretations corresponding to the relevant fields extracted from the current business document, so as to understand the field extraction rules and facilitate the subsequent page display of the verification results. The prefix characters and suffix characters in the rule verification template are mainly used to accurately extract the specified text content in the text document. For example, there is a paragraph of text: After approval by the lender, a RMB loan amount of 20,000 yuan is provided to the borrower. The loan amount cannot be recycled. For this paragraph, the business system needs to extract the data related to the amount in the text, that is, to extract 2. In order to achieve the above function, the prefix character needs to be configured as the loan amount, and the suffix character needs to be configured as 10,000 yuan. When performing field extraction, the business system will process it into a regular expression based on the configured prefix and suffix characters, and extract the specified content in the text based on the regular expression.

[0061] The field comparison type in the above rule verification template is used to distinguish the method used when verifying the filled value and the actual business value. Different field comparison types correspond to different verification rules. The above field comparison types include: text type and numeric type; among them, the verification method used for the content corresponding to the text type is to directly use the filled value extracted from the document to compare with the actual business value for equality. The values ​​involved in the comparison must be all the same to indicate a successful match; the verification method used for the content corresponding to the numeric type is to compare the numeric results of the filled value extracted from the document with the actual business value; because there are numeric fields in the document, such as the amount, interest rate and other fields, the problem of retaining precision will cause the field comparison to fail due to the problem of inconsistent precision when using the verification method corresponding to the text type. For example: when the filled value extracted from the text document is 3.450, but the actual business value extracted from the business table to be verified is 3.4500, for this situation where the numerical results are the same, the verification method can be configured as the numeric verification method. When comparing the filled value with the actual business value, it is only necessary to compare whether the numerical values ​​are consistent.

[0062] The data extraction type and value description in the above rule verification template are used to extract the specified fields in the current business document. The above data extraction type includes but is not limited to SQL (Structured Query Language) type and JAVA (a computer programming language) type. The above value description is the code obtained by writing code based on the data extraction type, so as to extract the field of the current business table based on the value description to obtain the initial business value. The above two methods can meet most field extraction scenarios. If there are special circumstances, the verification system can also be extended to customize other data extraction methods. That is, the above data extraction type and value description can be determined according to actual needs, and are not specifically limited here.

[0063] In a specific implementation, when the data access type is an SQL type, the verification system supports flexible writing of SQL type value descriptions, and can use the same SQL type value description to query multiple fields simultaneously, and can distinguish the above multiple fields by specifying different field aliases. For example, the value description can be the following SQL statement: SELECT C.ACCT_NOAS "REPAYMENTNO", C.ACCT_NM AS "REPAYMENTNM", FROM P_CTR_A_ACCOUNT C WHEREC.APPLYFOR_SERL_NO = '@{APPLY_FOR_SERL_NO}' AND C.ACCOUNT_TYPE_CD = '02'; wherein REPAYMENTNO and REPAYMENTNM are field aliases, and @{APPLY_FOR_SERL_NO} is a query condition variable.

[0064] In another specific implementation, when the data retrieval type is a JAVA type, the corresponding definition method of the JAVA type is: class name.method name (@{parameter name}), the method return value is a MAP data structure object (i.e., a data structure object in the Java language), which may contain multiple field value rules, and each field is distinguished and obtained by a key (i.e., a key value). The value description may be the following JAVA code: ContractParamBuild.getRelaParam(@{CTR_APPLY_FOR_SERL_NO}), wherein ContractParamBuild indicates the class name, getRelaParam indicates the method name, and CTR_APPLY_FOR_SERL_NO indicates the value flow.

[0065] The above value mapping is used to uniquely locate the unique business key value of the field from the relevant fields extracted using the field extraction rule; that is, to determine the corresponding actual business value from the several initial business values ​​extracted using the field extraction rule.

[0066] The above-mentioned verification type is used to distinguish the field types involved in the verification, including common fields, natural person signature name, natural person signature certificate number, institution signature name and institution signature certificate number; among which, common fields are all fields except the signature field in the text document and the business table to be verified; the natural person signature name and the natural person signature certificate number are the signature information that uniquely identifies the individual in the signature information (that is, the signature information in the signature information except the institution signature information); the institution signature name and the institution signature certificate number are the signature information that uniquely identifies the institution in the signature information.

[0067] In a specific implementation manner, the schematic diagram of the relevant configuration information of the rule verification template is as follows: Figure 2 As shown: the template name corresponding to the rule verification template is xxxxx contract verification rule, and the template number is DOC202405311040000001. The borrower signs the current business document corresponding to the above rule verification template at the contract stage. Among them, the above field serial number shows that there are 14 fields in total, among which the verification type of the fields corresponding to the first 10 field serial numbers is a common field, and the fields corresponding to these 10 field serial numbers have different prefix characters, suffix characters, value mappings, field comparison types, number access types, value descriptions, and verification types. The verification system can extract fields from text documents based on prefix characters and suffix characters to obtain corresponding fill values; for the extraction of the business table to be verified, the verification system can extract fields from the business table to be verified based on value mapping, number access type, and value description to obtain actual business values. The verification types of the fields corresponding to the last four field numbers are the natural person signature name, natural person signature certificate number, institution signature name and institution signature certificate number corresponding to the signature field. Before extracting the text content of the ordinary field with the verification type, the verification system first extracts and verifies the information of the above signature field; it is worth mentioning that the information corresponding to the signature field in the current business document is the signature information obtained when the text content in the current business document is read using a preset third-party plug-in; for the information corresponding to the signature field in the business table to be verified, the value corresponding to the signature field in the business table to be verified can be extracted based on the above value mapping, number type and value description to obtain the signature information of the business table to be verified.

[0068] In a specific embodiment, the verification system provides a console management page for the preset verification rule template library, such as Figure 3 As shown, the functions of the above console management page are as follows: query, template upload, version import, delete, edit, download, and version export; among them, the query function is to query the target rule verification template matching the above template name in the preset verification rule template library when the user enters the template name; the template upload function is that the administrator of the verification system can use the above function to upload the rule verification template; the version import function is to import the configuration information corresponding to the rule verification template into the verification system; the version export function is to export the configuration information corresponding to the rule verification template to the configuration file and encrypt it. When it goes online on the console management page, you only need to import the configuration information, so that it can be flexibly online and automatically deployed without restarting the service. It is worth mentioning that the template ID (Identity document) in the figure is the ID automatically assigned to each rule verification template by the console management page. The stage type can include contract stage, credit stage, and expenditure stage.

[0069] Step S13: Based on the target rule verification template, field extraction operations are performed on the text document and the business table to be verified respectively to obtain corresponding fill-in values ​​and actual business values; the business table to be verified is the latest data table saved by the business system based on the approved data corresponding to the business data; the target rule verification template contains prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the business table to be verified based on a preset query tool.

[0070] In this embodiment, it is necessary to perform field extraction operations on the text document and the business table to be verified based on the configuration information corresponding to the target rule verification template corresponding to the current business document, so as to obtain the corresponding fill value and actual business value. In a specific embodiment, before extracting the text document and the business table to be verified, the current business document can be divided into several domains, and the actual business value of the business table to be verified corresponding to the field content in a single domain can be obtained by querying the same query statement, that is, in the process of performing field extraction on the business table to be verified and the business document corresponding to each domain, different prefix characters and suffix characters, as well as the same value description, can be adopted. Specifically, the field extraction operations on the text document and the business table to be verified based on the target rule verification template to obtain the corresponding fill value and actual business value can include: dividing the text document into several domains according to different field names in the target rule verification template; the several domains correspond one to one with the several tables generated by the business system based on the current business document; based on the target rule verification template and the several domains, the field extraction operations on the text document and the business table to be verified are performed to obtain the fill value and actual business value corresponding to the corresponding domain. It can be understood that this application proposes the concepts of document, domain, and field based on the current business documents. The document refers to the complete PDF text after synthesis; a domain represents a type of value-taking rules, that is, the fields in a domain share the same value-taking description; among them, the field represents the independent business data that needs to be filled in the document, and all alias data returned in a domain are collectively referred to as different fields in the same domain.

[0071] In a specific embodiment, when the configuration information corresponding to the target rule verification template is used to perform field extraction operations on the text document and the business table to be verified, the configuration information used is different. Specifically, the field extraction operations are performed on the text document and the business table to be verified based on the target rule verification template to obtain corresponding fill values ​​and actual business values, which may include: constructing a target regular expression using the prefix characters and suffix characters in the target rule verification template, and performing field extraction operations on the text document using the target regular expression to obtain fill content of the corresponding field; extracting the corresponding initial business value from the business table to be verified using the value description in the target rule verification template; and determining the corresponding actual business value from the initial business value according to the value mapping in the target rule verification template.

[0072] Step S14: compare and verify the filled value and the actual business value to obtain a corresponding business verification result.

[0073] In this embodiment, before extracting fields from common fields corresponding to the text document and the business table to be verified using the configuration information corresponding to the rule verification template, it is necessary to determine whether it is necessary to verify the signature information of the current business document based on the configuration information; if it is necessary to verify the signature information of the current business document, the signature information corresponding to the text document is obtained when the text content in the current business document is read using the preset third-party plug-in; accordingly, the corresponding signature information can be extracted from the business table to be verified using the value description corresponding to the rule verification template. Specifically, before comparing and verifying the fill value and the actual business value, it can also include: determining whether the format of the signature field corresponding to the text document and the business table to be verified is legal, and obtaining a first signature verification result for the signature field; if the signature verification result indicates legality, comparing and verifying the signature information of the text document and the business table to be verified, and obtaining a corresponding second signature verification result; accordingly, comparing and verifying the fill value and the actual business value to obtain a corresponding business verification result includes: comparing and verifying the fill value and the actual business value, and combining the first signature verification result and the second signature verification result to obtain a business verification result for the current business document.

[0074] In a specific implementation, if the signature information needs to be verified, it can be done as follows: Figure 4The process shown verifies the signature information, that is, first verify whether the format of all signature information in the document is valid. If the format of all signature information is valid, then further verify whether the natural person signature name and natural person signature certificate number in the personal signature information and the institution signature name and institution signature certificate number in the institution signature information can match the signature-related information in the actual business value, and output the signature verification result. If the signature verification result indicates a successful match, the signature information is considered legal; if the signature verification result indicates a failed match, the signature information is considered illegal and the verification fails. It is understandable that if there is an invalid situation in the format of all signature information, the verification system can choose to terminate the verification of the content of the text document and the business table to be verified. In a specific embodiment, the signature verification process can be as follows: Figure 4 As shown, in the upper part, the rectangular boxes in the first signer respectively contain the institution signature name and institution signature certificate number corresponding to the institution signature information; the valid signature in the lower part indicates that the format of the above institution signature information is valid, and the signature time and signature position respectively indicate the signature time corresponding to the current institution signature information and the area where the signature is located; the second signer corresponds to the natural person signature name and natural person signature certificate number in the personal signature information, and the role of the information below is the same as that described in the above institution signature information, which will not be repeated here.

[0075] In this embodiment, after obtaining the fill value and the actual business value, it is necessary to select a verification method based on the field comparison type corresponding to the fill value and the actual business value; that is, different field comparison types correspond to different verification methods. Specifically, the comparison and verification of the fill value and the actual business value to obtain the corresponding business verification result may include: if the field comparison type for different field names in the target rule verification template is text type, then the fill value and the relevant fields in the actual business value are compared for equality to obtain a first verification result. If the field comparison type for different field names in the target rule verification template is numeric type, then the fill value and the relevant fields in the actual business value are compared for numerical size to obtain a second verification result.

[0076] In a specific implementation, the filling value and the actual business value are compared one by one according to the field comparison type in a corresponding verification method. For example, Figure 5As shown; specifically, the verification system splits the text document into three domains, namely domain one, domain two and domain three. Several fields corresponding to each domain can obtain corresponding field contents from the same business table to be verified; among them, field 11, field 12, and field 13 belong to domain one, field 21, field 22, and field 23 belong to domain two, and field 31, field 32, and field 33 belong to domain three. Each domain shares the same value description. For the fields located in domain one in the business table to be verified, if the data retrieval type is SQL type, the corresponding data retrieval logic can be configured as: select s11 as field 11, s12 as field 12, s13 as field 13 from table_name, without repeated configuration. It can be understood that the value retrieval methods of other fields are similar to the value retrieval methods of the fields in domain one mentioned above, and will not be repeated here. The value extracted from the document in the figure is the above-mentioned fill value, which is the value extracted from the current business document using a regular expression consisting of prefix and suffix characters. Here, the above-mentioned current business document may be a PDF document; the real data is the above-mentioned actual business value, which is the value obtained from the business table to be verified automatically generated by the business system based on the above-mentioned PDF document based on the value description.

[0077] In this embodiment, after comparing and verifying the fill value and the actual business value to obtain the corresponding business verification result, the business verification result needs to be further determined. Specifically, after comparing and verifying the fill value and the actual business value to obtain the corresponding business verification result, it may also include: sending the business verification result to a preset terminal through a preset communication method so that relevant personnel can view the business verification result. Among them, the business verification result includes information such as fill value, actual business value, field name, verification results of each field, signature verification results, document verification results, summary results, the number of verification results of each field that passed and failed, etc. In a specific implementation, the business verification result may be as follows: Figure 6As shown; in the basic information, the field verification results corresponding to the field names of the loan purpose and the guarantee method are displayed as failed, the personal signature-customer name in the signature information, that is, the field verification results corresponding to the natural person signature field are displayed as failed, and the verification results of the remaining fields are displayed as passed. It can be understood that because there are situations in which the verification results of each field are characterized as failed, the document verification result is characterized as failed. Only when the verification results of each field are characterized as passed, the document verification result can be characterized as passed. It can be understood that after obtaining the business verification result, the verification system can output the corresponding business verification result to the front-end management page for the convenience of management personnel to view. At the same time, the verification system can send the business verification result to the preset terminal according to the preset communication method so that relevant personnel can view the business verification result. It can be understood that the above-mentioned preset communication method can be determined according to actual needs, and any method that can transmit information can be applied to this embodiment, such as SMS, email, etc., which are not specifically limited here. It is worth mentioning that if the document verification result characterization fails, the verification system can send the business verification result to relevant business personnel and technical personnel through a preset communication method, and can trigger corresponding alarm information so that relevant business personnel and technical personnel can make corresponding adjustments to the business system.

[0078] In the present application, when verifying a financial business document, a verification request for the current business document is first obtained, and the text content in the current business document is read to obtain an unformatted text document; a target rule verification template corresponding to the current business document is determined from a preset verification rule template library according to the verification request; then, based on the target rule verification template, field extraction operations are performed on the text document and the business table to be verified respectively to obtain corresponding fill-in values ​​and actual business values; the business table to be verified is a number of tables generated by the business system based on the current business document; the target rule verification template contains prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the business table to be verified based on a preset query tool; then the fill-in value and the actual business value are compared and verified to obtain a corresponding business verification result. In addition, the field types in the text document include common fields and signature fields; the field extraction rules are configured by configuring the prefix characters and suffix characters of the text to be extracted in the business document, and then automatically processed into regular expressions by the verification system to accurately extract the fill-in values ​​in the text document. The field data acquisition logic is used to obtain the corresponding actual business value in the form to be verified. In addition, the verification system can support SQL and java class data acquisition methods, and has reserved an extensible system data acquisition method; the verification rule template also supports the configuration of field comparison types, currently there are text types, numeric types, etc. For the forms to be verified that need to verify digital signatures, it supports the configuration of signature information value descriptions. At the same time, a front-end management page is provided so that relevant personnel can download the verification rule template, and incrementally deploy it to the system after modifying the relevant rules, and hot start is supported, which solves the problem of rapid configuration and adjustment of relevant verification rules in the business system.

[0079] To further describe the verification process of financial business forms, see Figure 7 As shown, the embodiment of the present invention discloses a financial business document verification method, including:

[0080] In this embodiment, Figure 7 This is a flowchart of the financial business document verification process. First, the verification system needs to receive the PDF document of the content to be extracted and the related request parameters. It is worth mentioning that the PDF document of the content to be extracted is the current business document. The related request parameters are the verification request, and include the document name, document download path, template number and other related request parameters. Secondly, the verification system needs to download the document according to the download path corresponding to the PDF document in the request parameters, and read all the text content in the document based on the preset third-party plug-in, and deconstruct it into unformatted text, that is, remove spaces, special symbols, etc. in the text. It is worth mentioning that the unformatted text is an unformatted text document. Figure 7 In the above mentioned preset third-party plug-in, PDFBOX is used.

[0081] Furthermore, based on the configuration information corresponding to the above text document, it is determined whether the signature information needs to be verified. If the signature information needs to be verified, the signature information needs to be extracted in the process of obtaining the text document in order to judge the validity of the signature information, that is, first verify whether the document signature is valid. If valid, further verify whether the personal signature information and the institutional signature information match the signature information corresponding to the actual business value in the business table to be verified. If the match is successful, the signature information is considered legal, otherwise the signature information is considered illegal. Then, according to the three attributes of the verification template number, the identity of the signatory and the signing stage in the request parameters, a unique target rule verification template corresponding to the current business document is determined from a preset verification rule template library storing several rule verification templates, and the above target rule verification template includes field extraction rules, that is, prefix characters and suffix characters, field comparison type, number acquisition type, value description, verification type and other configuration information, and based on the field extraction rules, that is, prefix characters and suffix characters, all the filled fields in the text document are obtained, and all the above filled fields are filled values, and based on the value description in the target verification template, the actual business values ​​in the business table to be verified are obtained, and then the several filled values ​​are verified with the corresponding actual business values ​​according to the field comparison type to obtain the business verification result, wherein the above business verification result includes all field comparison results and signature verification results, if there are results that indicate failure in the above all field comparison results and signature verification results, the above business verification result also indicates failure, and the business verification result is output to the front-end management page through a preset communication method for easy operation viewing, and an alarm can be triggered through SMS, email, etc. to prompt relevant personnel.

[0082] This application can flexibly customize the fields that need to be checked in different business forms to be checked and the extraction rules, field data acquisition logic, and field comparison rules of the corresponding fields in the business documents by standardizing and customizing the verification rule template; it can be understood that the above-mentioned rule verification template can be an Excel-type verification rule template, and any type of verification rule template that can create storage configuration information can be applicable to this embodiment, and it is not specifically limited here. In this way, this solution can accurately extract the fill-in values ​​and actual business values ​​of the text document and the business table to be checked based on the prefix characters, suffix characters, and value descriptions of the text document and the business table to be checked in the target rule verification template, and perform comparison verification, which can improve the accuracy of data extraction, thereby improving the accuracy of the verification of the data in the business table to be checked and the data in the business document stored in the business system.

[0083] Accordingly, see Figure 8 As shown, the present application also provides a financial business document verification device, including:

[0084] The document reading module 11 is used to obtain a verification request for a current business document and read the text content in the current business document to obtain an unformatted text document; the current business document is a document filled in using an initial data table saved by a business system based on business data;

[0085] A rule verification template determination module 12, configured to determine a target rule verification template corresponding to the current business document from a preset verification rule template library according to the verification request;

[0086] The field extraction module 13 is used to perform field extraction operations on the text document and the business table to be verified based on the target rule verification template to obtain corresponding fill values ​​and actual business values; the business table to be verified is the latest data table saved by the business system based on the business data corresponding to the approved data; the target rule verification template contains prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the business table to be verified based on a preset query tool;

[0087] The verification module 14 is used to compare and verify the filling value and the actual business value to obtain a corresponding business verification result.

[0088] As can be seen from the above, before performing financial business document verification, the embodiment of the present application needs to obtain a verification request for the current business document and read the text content in the current business document to obtain an unformatted text document; determine the target rule verification template corresponding to the current business document from the preset verification rule template library according to the verification request; based on the target rule verification template, perform field extraction operations on the text document and the business table to be verified respectively to obtain corresponding fill-in values ​​and actual business values; the business table to be verified is a number of tables generated by the business system based on the current business document; the target rule verification template contains prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the business table to be verified based on a preset query tool; compare and verify the fill-in values ​​and the actual business values ​​to obtain corresponding business verification results. In this way, this solution can extract the fill-in values ​​and actual business values ​​in the text document and the business table to be verified based on the prefix characters, suffix characters and value descriptions of the text document in the target rule verification template, and perform comparison and verification, thereby improving the accuracy of data extraction and the accuracy of content verification in the business table to be verified generated by the business system.

[0089] In some specific implementations, the document reading module 11 may specifically be:

[0090] A business document downloading unit, configured to download the current business document according to the download path in the verification request;

[0091] The text document acquisition unit is used to read all text contents in the current business document using a preset plug-in, and remove the format in the relevant text contents to obtain a corresponding unformatted text document.

[0092] In some specific implementations, the field extraction module 13 may specifically be:

[0093] A domain division unit, configured to divide the text document into a plurality of domains according to different field names in the target rule verification template; the plurality of domains correspond one-to-one to a plurality of tables generated by the business system based on the current business document;

[0094] The field extraction unit is used to perform field extraction operations on the text document and the business table to be verified based on the target rule verification template and the multiple fields, so as to obtain the filling value and the actual business value corresponding to the corresponding field.

[0095] In some specific implementations, the field extraction module 13 may specifically be:

[0096] A filling value acquisition unit, used to construct a target regular expression using the prefix characters and suffix characters in the target rule verification template, and perform a field extraction operation on the text document using the target regular expression to obtain a corresponding filling value;

[0097] A first service value acquisition unit, configured to extract a corresponding initial service value from a service table to be checked by using a value description in the target rule check template;

[0098] The second service value acquisition unit is used to determine the corresponding actual service value from the initial service value according to the value mapping in the target rule verification template.

[0099] In some specific implementations, the field extraction module 13 may specifically be:

[0100] The first verification result acquisition unit is used to perform an equality comparison on the relevant fields in the filled value and the actual business value if the field comparison type for different field names in the target rule verification template is text type, so as to obtain a first verification result.

[0101] The second verification result acquisition unit is used to compare the numerical values ​​of the relevant fields in the fill value and the actual business value to obtain a second verification result if the field comparison type for different field names in the target rule verification template is a numerical type.

[0102] In some specific implementations, the verification module 14 may specifically be:

[0103] A first signature verification result obtaining unit, used to determine whether the formats of the signature fields corresponding to the text document and the business table to be verified are legal, and obtain a first signature verification result for the signature field;

[0104] A second signature verification result obtaining unit is configured to compare and verify the text document with the signature information of the business table to be verified to obtain a corresponding second signature verification result if the signature verification result indicates that the signature verification result is legal;

[0105] The verification result acquisition unit is used to compare and verify the filled value and the actual business value, and obtain the business verification result for the current business document in combination with the first signature verification result and the second signature verification result.

[0106] In some specific implementations, the verification module 14 may specifically be:

[0107] The verification result sending unit is used to send the service verification result to a preset terminal through a preset communication method so that relevant personnel can view the service verification result.

[0108] Furthermore, the present application also discloses an electronic device. Fig. 9 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the figure cannot be regarded as any limitation on the scope of use of this application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the financial business document verification method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0109] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0110] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0111] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, and may be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the financial business document verification method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 may further include a computer program that can be used to complete other specific tasks.

[0112] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the aforementioned disclosed financial business document verification method. The specific steps of the method can refer to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0113] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0114] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0115] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0116] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0117] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A financial business document verification method, characterized in that: Applied to calibration systems, including: Obtaining a verification request for a current business document, and reading text content in the current business document to obtain an unformatted text document; the current business document is a document filled in using an initial data table saved by a business system based on business data; Determining a target rule verification template corresponding to the current business document from a preset verification rule template library according to the verification request; Based on the target rule verification template, field extraction operations are performed on the text document and the business table to be verified respectively to obtain corresponding fill values ​​and actual business values; the business table to be verified is the latest data table saved by the business system based on the business data corresponding to the approved data; the target rule verification template contains prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the business table to be verified based on a preset query tool; The filling value and the actual business value are compared and verified to obtain a corresponding business verification result.

2. The financial business document verification method according to claim 1, characterized in that: The reading of the text content in the current business document to obtain an unformatted text document includes: Downloading the current business document according to the download path in the verification request; The preset plug-in is used to read all text contents in the current business document, and remove the format in the relevant text contents to obtain a corresponding unformatted text document.

3. The financial business document verification method according to claim 1, characterized in that: The step of performing field extraction operations on the text document and the business table to be verified based on the target rule verification template to obtain corresponding fill values ​​and actual business values ​​includes: Dividing the text document into a plurality of domains according to different field names in the target rule verification template; the plurality of domains correspond one-to-one to a plurality of tables generated by the business system based on the current business document; Based on the target rule verification template and the plurality of fields, field extraction operations are performed on the text document and the business table to be verified respectively to obtain fill values ​​and actual business values ​​corresponding to the corresponding fields.

4. The financial business document verification method according to claim 1, characterized in that: The step of performing field extraction operations on the text document and the business table to be verified based on the target rule verification template to obtain corresponding fill values ​​and actual business values ​​includes: Constructing a target regular expression using the prefix characters and suffix characters in the target rule verification template, and performing a field extraction operation on the text document using the target regular expression to obtain a corresponding fill value; Extracting the corresponding initial business value from the to-be-checked business table using the value description in the target rule check template; The corresponding actual service value is determined from the initial service value according to the value mapping in the target rule verification template.

5. The financial business document verification method according to claim 1, characterized in that: The comparing and verifying the filling value and the actual service value to obtain a corresponding service verification result includes: If the field comparison type for different field names in the target rule verification template is text type, then a congruent comparison is performed on the fill value and the relevant fields in the actual business value to obtain a first verification result; If the field comparison type for different field names in the target rule verification template is a numeric type, a numerical comparison is performed on the fill value and the relevant fields in the actual business value to obtain a second verification result.

6. The financial business document verification method according to claim 1, characterized in that: Before comparing and verifying the filling value and the actual service value, the method further includes: Determine whether the formats of the signature fields corresponding to the text document and the business table to be verified are legal, and obtain a first signature verification result for the signature field; If the signature verification result indicates legality, the text document and the signature information of the business table to be verified are compared and verified to obtain a corresponding second signature verification result; Accordingly, the filling value and the actual service value are compared and verified to obtain a corresponding service verification result, including: The filled value and the actual business value are compared and verified, and the business verification result for the current business document is obtained by combining the first signature verification result and the second signature verification result.

7. The financial business document verification method according to any one of claims 1 to 6, characterized in that: After comparing and verifying the filling value and the actual service value to obtain a corresponding service verification result, the method further includes: The service verification result is sent to a preset terminal through a preset communication method so that relevant personnel can view the service verification result.

8. A financial business document verification device, characterized in that: include: A document reading module, used to obtain a verification request for a current business document, and read the text content in the current business document to obtain an unformatted text document; The current business document is a document filled in by using an initial data table saved by the business system based on business data; A rule verification template determination module, used to determine a target rule verification template corresponding to the current business document from a preset verification rule template library according to the verification request; A field extraction module is used to perform field extraction operations on the text document and the business table to be verified based on the target rule verification template to obtain corresponding fill values ​​and actual business values; the business table to be verified is the latest data table saved by the business system based on the business data corresponding to the approved data; The target rule verification template includes prefix characters and suffix characters for the fields in the text document and a value description for querying the fields in the to-be-verified business table based on a preset query tool; The verification module is used to compare and verify the filled value and the actual business value to obtain a corresponding business verification result.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the financial business document verification method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the steps of the financial business document verification method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Form checking method and device, computing equipment, storage medium and program product

    CN120670413A

  • Form checking method and device, computing device, storage medium and program product

    CN120670413B