Business document automatic comparison method and device, equipment and storage medium

Through automatic comparison method, the amount and date relationship of invoices, contracts, IOUs and other documents in the financial supply chain is quickly selected, which solves the problem of low manual comparison efficiency in the existing technology, and achieves efficient and accurate document review.

CN119151471APending Publication Date: 2024-12-17BEIJING SHANGYIN MICRO CORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411390824.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In the prior art, the material review efficiency of the financial supply chain is low, and the manual comparison of the amount and date relationship between invoices, contracts, and IOUs is low and the accuracy rate is low, especially when the data volume is large.

Method used

Provide an automatic comparison method for business documents. By determining the combination of the object type and data type to be compared, using the corresponding comparison rules of the combination, quickly filter out the available data that meets the comparison rules, set corresponding identifiers, and improve comparison Efficiency and accuracy.

Benefits of technology

It improves the efficiency and accuracy of business document review, especially when processing large-scale data sets, significantly improves the speed and accuracy of data comparison, reduces unnecessary data comparison, and reduces errors caused by human negligence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119151471A_ABST
    Figure CN119151471A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic comparison method and device of business documents, equipment and a storage medium. The method comprises the steps of determining a combination of a to-be-compared object type and a to-be-compared data type, wherein the to-be-compared object type comprises a first object type and a second object type; performing the following comparison operation on each data in the first data set: utilizing a comparison rule corresponding to the combination to determine whether available data meeting the comparison rule exists in a second data set, and if the available data meeting the comparison rule exists in the second data set, setting identifiers of the data and the available data as first identifiers; the first data set comprises at least one data of the to-be-compared data type of the first object type, and the second data set comprises at least one data of the to-be-compared data type of the second object type. According to the method, by automatically comparing the business documents, the business document auditing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of financial technology, and in particular to a method, device, equipment and storage medium for automatically comparing business documents. Background Art

[0002] During the material review process of the financial supply chain, it is necessary to compare the amounts and dates of invoices, contracts, and IOUs separately to ensure the correctness of the materials for this financing.

[0003] In the prior art, manual comparison is often used to check the date relationship or amount relationship of invoices, contracts and IOUs one by one. However, when there are many items to be reviewed or the amount of data to be compared is large, the efficiency is low and the accuracy is low. Summary of the invention

[0004] Based on the above problems, the present application provides a method, device, equipment and storage medium for automatic comparison of business documents, the purpose of which is to improve the efficiency of business document review by proposing an automated business document comparison method.

[0005] The embodiments of the present application disclose the following technical solutions:

[0006] In a first aspect, the present application provides an automatic comparison method for business documents, using an electronic device, including:

[0007] Determine a combination of a to-be-compared object type and a to-be-compared data type, wherein the to-be-compared object type includes a first object type and a second object type;

[0008] The following comparison operation is performed on each data in the first data set:

[0009] Determine whether there is available data satisfying the comparison rule in the second data set by using the comparison rule corresponding to the combination, and if so, set the identifier of the data and the available data to the first identifier;

[0010] The first data set includes data of the data type to be compared of at least one first object type, and the second data set includes data of the data type to be compared of at least one second object type.

[0011] Optionally, in the method described above, the data type to be compared is a first type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; using the comparison rule corresponding to the combination, determining whether there is available data in the second data set that meets the comparison rule, and if so, setting the identifier of the data and the available data to the first identifier, including:

[0012] Determine whether there is available data in the second data set that satisfies the size relationship with the i-th data in the first data set, i=1, 2, ..., N, according to the size relationship between the first type of data of the first object type and the first type of data of the second object type indicated in the comparison rule corresponding to the combination;

[0013] If so, the identifiers of the i-th data and each available data corresponding to the i-th data are set as the first identifier.

[0014] Optionally, in the method described above, the first type is a date type, the first object type is a contract, and the second object type is an invoice; or the first object type is a contract, and the second object type is a promissory note; or the first object type is an invoice, and the second object type is a promissory note;

[0015] The size relationship between the first type of data of the first object type and the first type of data of the second object type is:

[0016] The first type of data of the first object type is less than or equal to the first type of data of the second object type.

[0017] Optionally, in the method described above, after setting the identifiers of the data and the available data as the first identifier, the method further includes:

[0018] Setting the identifiers of other data in the first data set except the data corresponding to the first identifier as the second identifier;

[0019] The identifiers of other data in the second data set except the available data corresponding to the first identifier are set as second identifiers.

[0020] Optionally, in the above method, the data type to be compared is the second type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; then using the comparison rule corresponding to the combination to determine whether there is available data in the second data set that meets the comparison rule, if so, setting the identifier of the data and the available data to the first identifier, including:

[0021] Sort the N data in descending order to obtain a first comparison sequence; and sort the M data in descending order to obtain a second comparison sequence;

[0022] Compare the i-th data in the first comparison sequence with the data in the second comparison sequence in sequence;

[0023] If the i-th data is less than the k-th data, the matching result of the i-th data is a match; the matching result of the k-th data is a partial match; and the remaining available balance of the k-th data is calculated; the k-th data is updated to the remaining available balance and matched with the i+1-th data; i=1, 2, ..., N, k=1, 2, ..., m;

[0024] If the i+1th data is greater than or equal to the kth data, the matching result of the kth data is updated to match;

[0025] or,

[0026] If the i-th data is greater than the k-th data, the matching result of the i-th data is a partial match; the matching result of the k-th data is a match; and the remaining available balance of the i-th data is calculated; the i-th data is updated to the remaining available balance and matched with the k+1-th data;

[0027] If the k+1th data is greater than or equal to the remaining available balance, the matching result of the i-th data is updated to match.

[0028] The identifiers of the i-th data and the k-th data whose matching results are matched are set as the first identifier.

[0029] Optionally, in the above method, if the second object type is a promissory note, the method further includes:

[0030] When it is determined that the matching results corresponding to the data in the second data set are all matches, the identifier of the data corresponding to the matching results of the first data set that are matches or partial matches is set as the first identifier.

[0031] Optionally, in the above method, if the data types to be compared are date and amount, the method further includes:

[0032] Determine whether there is available data in the second data set that meets the comparison rule according to the date size relationship indicated in the comparison rule corresponding to the combination, and if so, set the data and the identifier of the available data to the first identifier;

[0033] The data corresponding to the first identifier is updated to the data in the first data set; the available data corresponding to the first identifier is updated to the data in the second data set.

[0034] In a second aspect, the present application provides an automatic comparison device for business documents, comprising:

[0035] An acquisition module, used to determine a combination of a to-be-compared object type and a to-be-compared data type, wherein the to-be-compared object type includes a first object type and a second object type;

[0036] The following comparison operation is performed on each data in the first data set:

[0037] A processing module, used to determine whether there is available data satisfying the comparison rule in the second data set by using the comparison rule corresponding to the combination, and if so, set the identifier of the data and the available data as the first identifier;

[0038] The first data set includes data of the data type to be compared of at least one first object type, and the second data set includes data of the data type to be compared of at least one second object type.

[0039] In a third aspect, the present application provides an electronic device, the device comprising: a processor, and a memory communicatively connected to the processor;

[0040] Memory stores computer-executable instructions;

[0041] The processor executes the computer-executable instructions stored in the memory to implement the automatic comparison method of business documents described in any of the above embodiments.

[0042] In a fourth aspect, the present application provides a computer storage medium, in which computer-readable storage medium is stored computer execution instructions, and when the computer execution instructions are executed by a processor, they are used to implement the automatic comparison method of business documents described in any of the above embodiments.

[0043] In response to the need for comparison of multiple audit items, the present application determines a combination of the object type to be compared and the data type to be compared, wherein the object type to be compared includes a first object type and a second object type. The object type to be compared can be targeted and quickly determined according to the needs of the user, thereby reducing unnecessary data comparisons and improving comparison efficiency. According to the comparison rules corresponding to the determined combination, when there are many audit items or a large number of items to be compared, a comparison operation is performed on each data in the first data set corresponding to the data type to be compared of the first object type, and it is determined according to the comparison rules whether there is available data that meets the comparison rules in the second data set corresponding to the data type to be compared of the second object type. If so, the identifier of the data and the available data is set to the first identifier to quickly compare available business documents, thereby improving the audit efficiency and accuracy of business documents. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 A schematic diagram of an embodiment of a flow chart of an automatic comparison method of a business document provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of another embodiment of a method for automatically comparing business documents provided in an embodiment of the present application;

[0047] Figure 3 A flowchart of another embodiment of a method for automatically comparing business documents provided in an embodiment of the present application;

[0048] Figure 4 A flowchart of another embodiment of a method for automatically comparing business documents provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of the structure of an embodiment of an automatic comparison device for business documents provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0051] As described above, in the financial supply chain, material review is an important means of controlling risks and ensuring the safety of funds. By carefully reviewing transaction-related materials, financial institutions can confirm the authenticity and legality of the transaction and the borrower's repayment ability, thereby making more accurate credit decisions. Among them, invoices, contracts, IOUs and other documents are important vouchers for transactions, and their authenticity, completeness and accuracy directly affect the effect of material review.

[0052] In the current financial supply chain material review process, it is necessary to manually compare the amount and date of invoices, contracts, and IOUs one by one to ensure the correctness of the financing materials. However, the review efficiency is reduced by manually comparing business documents.

[0053] After research, the inventors have proposed a method, device, equipment and storage medium for automatically comparing business documents to solve the technical problem of low efficiency in manual comparison and review of business documents in the prior art.

[0054] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] See also Figure 1 , which is a flow chart of an embodiment of an automatic comparison method of a business document provided by an embodiment of the present application. Figure 1 As shown, the method is applied to an electronic device. The method comprises:

[0056] S101: Determine a combination of a to-be-compared object type and a to-be-compared data type, where the to-be-compared object type includes a first object type and a second object type.

[0057] In this embodiment, a combination of the type of object to be compared and the type of data to be compared that needs to be compared is determined; for example, the type of object to be compared may include contract invoice, invoice IOU, and contract IOU; wherein, for the type of object to be compared being a contract invoice, the first object type is a contract and the second object type is an invoice; for the type of object to be compared being an invoice IOU, the first object type is an invoice and the second object type is an IOU; for the type of object to be compared being a contract IOU, the first object type is a contract and the second object type is an IOU. The type of data to be compared may include a date and an amount. For example, if the material review of Company A includes a review of the amount of the contract invoice and a review of the date of the invoice IOU, the determined combination is the contract invoice amount and the invoice IOU date.

[0058] S102: For each data in the first data set, using the matching rule corresponding to the combination, determine whether there is available data in the second data set that meets the matching rule; if so, set the identifier of the data and the available data to the first identifier.

[0059] The first data set includes data of the data type to be compared of at least one first object type, and the second data set includes data of the data type to be compared of at least one second object type.

[0060] In this embodiment, taking the contract invoice date as an example, the first data set includes at least one contract date data, and the second data set includes at least one invoice date data. For each contract date data in the first data set, the invoice date data that meets the comparison rule is determined to be available data from the second data set using the comparison rule corresponding to the contract invoice date, and the identifiers of the contract date data and the available invoice date data are set as available identifiers. If there is no invoice date data that meets the comparison rule in the second data set, the identifiers of the contract date data and the invoice date data are set as unavailable identifiers.

[0061] In this embodiment, in response to the need for comparison of multiple audit items, by determining a combination of the object type to be compared and the data type to be compared, the object type to be compared includes a first object type and a second object type, the object type and the data type to be compared can be selected and quickly determined according to the needs of the user, thereby reducing unnecessary data comparisons and improving comparison efficiency. According to the comparison rules corresponding to the determined combination, when the number of audit items is large or the number to be compared is large, a comparison operation is performed on each data in the first data set corresponding to the data type to be compared of the first object type, and according to the comparison rules, it is determined whether there is available data that meets the comparison rules in the second data set corresponding to the data type to be compared of the second object type. If so, the identifier of the data and the available data is set to the first identifier to quickly compare the available business documents, thereby improving the audit efficiency and accuracy of the business documents.

[0062] See also Figure 2 , which is a flow chart of another embodiment of an automatic comparison method for business documents provided in an embodiment of the present application. Figure 2 As shown, if the data type to be compared is the first type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; then in S102, "using the combination of corresponding comparison rules to determine whether there is available data in the second data set that meets the comparison rules, and if so, setting the identifier of the data and the available data to the first identifier" is a specific implementation method, including:

[0063] S1021: Determine whether there is available data in the second data set that satisfies the size relationship with the i-th data in the first data set based on the size relationship between the first type of data of the first object type and the first type of data of the second object type indicated in the comparison rule corresponding to the combination.

[0064] In this embodiment, if the data type to be compared is the first type, taking the contract invoice date comparison as an example, the first data set includes N contract date data, N is a positive integer; the second data set includes M invoice date data, M is a positive integer, then according to the size relationship between the contract date data and the invoice date data indicated in the comparison rule corresponding to the contract invoice date, the i-th contract date data is compared, where i=1, 2, ..., N; it is determined whether there is available data in the second data set corresponding to the invoice date data that satisfies the size relationship indicated in the comparison rule with the i-th contract date data.

[0065] S1022: If so, set the identifier of each available data corresponding to the ith data to the first identifier.

[0066] In this embodiment, if there is a kth invoice date data and an i-th contract date data among the M invoice date data in the second data set that satisfy the size relationship indicated in the comparison rule, where k=1, 2, ..., M; then the identifiers of the i-th contract date data in the first data set and the k-th invoice date data in the second data set are set to the available first identifier.

[0067] In this embodiment, according to the size relationship between the first type of data of the first object type and the first type of data of the second object type indicated in the matching rule corresponding to the combination, it is possible to quickly screen whether there is available data in the second data set that satisfies the size relationship with the i-th data in the first data set, thereby avoiding irrelevant data traversal and comparison, and significantly improving the speed and efficiency of data matching, especially when processing large-scale data sets. If there is, the identifier of each available data corresponding to the i-th data and the i-th data is set as the first identifier, so as to realize the identification and classification of the screened data and the available data, and ensure the accuracy of using the screened data for subsequent operations.

[0068] Further, based on the above embodiment, the first type is a date type, the first object type is a contract, and the second object type is an invoice; or the first object type is a contract, and the second object type is a promissory note; or the first object type is an invoice, and the second object type is a promissory note;

[0069] The size relationship between the first type of data of the first object type and the first type of data of the second object type is:

[0070] The first type of data of the first object type is less than or equal to the first type of data of the second object type.

[0071] In this embodiment, if the first type is a date type, the date data of the contract must be less than or equal to the date data of the invoice; the date data of the invoice must be less than or equal to the date data of the IOU.

[0072] On the basis of the above-mentioned comparison of the first type as the date type, the date data of the first object type in the first data set can also be sorted from large to small, and the date data of the first object type in the second data set can be sorted from small to large. In the process of comparing the date data of the first object type with the date data of the first object type in the second data set in turn, when a date data in the second data set is greater than or equal to the date data of the first object type, the remaining date data of the second object type does not need to be compared again, and the corresponding identifier can be directly set to the first identifier.

[0073] In this embodiment, the size relationship between the first type of data of the first object type and the first type of data of the second object type ensures that the time sequence from contract signing to invoice issuance and then to IOU issuance is reasonable and coherent. This helps maintain the logic and consistency of the timeline of the entire transaction or business process. By automatically comparing date type data, the date confusion caused by human negligence is reduced, and the data accuracy of the entire transaction or business process is improved by ensuring the accuracy of the date relationship.

[0074] See also Figure 3 , which is a flow chart of another embodiment of an automatic comparison method of a business document provided in an embodiment of the present application. Figure 3 As shown, after setting the identifiers of the data and the available data as the first identifier in S102, the method may further include:

[0075] S103: Setting the identifiers of other data in the first data set except the data corresponding to the first identifier as the second identifier.

[0076] S104: Setting the identifier of other data in the second data set except the available data corresponding to the first identifier as the second identifier.

[0077] In this embodiment, taking the example that the first data set includes N data and the second data set includes M data, if the number of data in the first data set whose identifier is set to the first identifier is n, the identifiers of the remaining Nn data in the first data set are set to the second identifier, which means that the data is unavailable. Similarly, if the number of data in the second data set whose identifier is set to the first identifier is m, the identifiers of the remaining Mm data in the first data set are set to the second identifier.

[0078] It is understandable that the execution order between S103 and S104 is not limited, and they can be executed sequentially or simultaneously.

[0079] For example, taking the first object type as a contract and the second object type as an invoice, the contract date data included in the first data set are 10.4 and 10.2. The invoice date data included in the second data set are 9.29 and 10.3. The contract date data 10.4 is compared with the invoice date data 9.29 and 10.3 in the second data set according to the size relationship in the comparison rule. There is no invoice date data that satisfies the size relationship that the contract date data is less than or equal to the invoice date data. Therefore, the identifier of the contract date data 10.4 is set to the second identifier, that is, unavailable; the contract date data 10.2 is then compared with the invoice date data 9.29 and 10.3 in the second data set according to the size relationship in the comparison rule. There is an invoice date data 10.3 that satisfies the size relationship that the contract date data is less than or equal to the invoice date data. Then the identifiers of the contract date data 10.2 and the invoice date data 10.3 are set to the first identifier, that is, available; and the identifier of the invoice date data 9.29 is set to the second identifier, that is, unavailable.

[0080] In this embodiment, by setting the identifiers of other data in the first data set and the second data set except the data corresponding to the first identifier and the available data as the second identifier, a unified data management specification is established to clearly distinguish the successfully matched data corresponding to the first identifier and the unavailable data corresponding to the second identifier. In the subsequent data comparison process, the system can more quickly identify and skip these unavailable data, thereby improving the overall processing efficiency.

[0081] See also Figure 4 , which is a flow chart of another embodiment of a method for automatically comparing business documents provided in an embodiment of the present application. Figure 4 As shown, the data type to be compared is the second type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; then S102 "using the combination of corresponding comparison rules to determine whether there is available data in the second data set that meets the comparison rules, and if so, setting the identifier of the data and the available data to the first identifier" includes:

[0082] S1023: sort the N data in descending order to obtain a first comparison sequence; and sort the M data in descending order to obtain a second comparison sequence.

[0083] In this embodiment, taking the first object type as a contract and the second object type as an invoice as an example, the N contract amount data in the first data set are sorted in order from large to small, so as to obtain a first comparison sequence corresponding to the contract amount data; the M invoice amount data in the second data set are sorted in order from large to small, so as to obtain a second comparison sequence corresponding to the invoice amount data.

[0084] S1024: Compare the i-th data in the first comparison sequence with the data in the second comparison sequence in sequence.

[0085] In this embodiment, for example, the first comparison sequence includes contract amount data 20, 15; the second comparison sequence includes invoice amount data 25. According to the order of data in the first comparison sequence, the i-th data in the first comparison sequence is sequentially compared with the data in the second comparison sequence. For example, firstly, the first data "20" in the first comparison sequence is compared with the data "25" in the second comparison sequence.

[0086] S1025: If the i-th data is smaller than the k-th data, the matching result of the i-th data is a match; the matching result of the k-th data is a partial match; and the remaining available balance of the k-th data is calculated; the k-th data is updated to the remaining available balance and matched with the i+1-th data.

[0087] Among them, i=1, 2,…, N, k=1, 2,…, m.

[0088] In this embodiment, first, the contract amount data 20 is compared with the invoice amount data 25. Since 20 is less than 25, the matching result of the contract amount data 20 is a match, and the matching result of the invoice amount data 25 is a partial match. The remaining available amount of the invoice amount data 25 is calculated as 25-min(25,20)=5, and the remaining available amount 5 is compared with the second contract amount data 15 in the first comparison sequence.

[0089] S1026: If the (i+1)th data is greater than or equal to the kth data, the matching result of the kth data is updated to match.

[0090] In this embodiment, since the second contract amount data 15 in the first comparison sequence is greater than the kth data, that is, the remaining available amount is 5, the matching result of the invoice amount data 25 is updated to match.

[0091] or,

[0092] S1027: If the i-th data is greater than the k-th data, the matching result of the i-th data is a partial match; the matching result of the k-th data is a match; and the remaining available balance of the i-th data is calculated; the i-th data is updated to the remaining available balance and matched with the k+1-th data.

[0093] In this embodiment, for example, the first comparison sequence includes contract amount data 30; the second comparison sequence includes invoice amount data 20, 15. First, the contract amount data 30 is compared with the invoice amount data 20. Since 30 is greater than 20, the matching result of the contract amount data 30 is a partial match, and the matching result of the invoice amount data 20 is a match. The remaining available amount of the contract amount data 30 is calculated as 30-min(30,20)=10, and the remaining available amount 10 is compared with the second contract amount data 15 in the second comparison sequence.

[0094] S1028: If the k+1th data is greater than or equal to the ith data, the matching result of the ith data is updated to match.

[0095] In this embodiment, since the second contract amount data 15 in the second comparison sequence is greater than the remaining available amount 10, the matching result of the contract amount data 25 is updated to match.

[0096] S1029: Set the identifiers of the i-th data and the k-th data whose matching results are matched as the first identifier.

[0097] In this embodiment, the identifiers of the data with matching results in the first data set and the data with matching results in the second data set are both set as the first identifier, that is, they are available.

[0098] It can be understood that if the first object type of the document is a contract and there is no amount data in the contract, the amount of the contract is regarded as infinite and the identifier is set to the first identifier; at this time, the comparison rules corresponding to the combination are used to determine that the contract data is available, and all data in the second data set are set to be identified as the first identifier.

[0099] In another embodiment, if there are multiple contract amount data in the first data set and multiple invoice amount data in the second data set, taking the first comparison sequence obtained containing the contract amount data "20, 15" and the second comparison sequence obtained containing the invoice amount data "25, 12" as an example, the specific process of performing comparison according to the comparison rules corresponding to the combination is as follows:

[0100] In the first round of comparison, the contract amount data 20 is compared with the invoice amount data 25. The matching result of the contract amount data 20 is a match, and the matching result of the invoice amount data 25 is a partial match. The remaining available amount of the invoice amount data 25 is calculated as = invoice amount data 25-min(contract amount data 20, invoice amount data 25) = 25-20 = 5, and the current invoice amount data 25 is updated to the remaining available amount 5 and the invoice amount data 5 is matched with the next contract amount data 15.

[0101] In the second round of comparison, the contract amount data is 15, and the invoice amount data is the updated remaining available invoice amount of the previous round, 5. Since 15 is greater than 5, the matching result of the contract amount data 15 is a partial match, and the matching result of the invoice amount data is updated to a match. The remaining available amount of the contract amount data 15 is calculated as = contract amount data 15-min(contract amount data 15, invoice amount data 5) = 15-5 = 10. The current contract amount data is updated to the remaining available amount of the contract amount data 15, 10, and matched with the next invoice amount data 12.

[0102] In the third round of comparison, the contract amount data 10 is compared with the invoice amount data 12. The matching result of the contract amount data is updated to match, and the matching result of the invoice amount 12 is partial match.

[0103] In this embodiment, the data in the first data set and the data in the second data set are sorted in descending order to obtain the first comparison sequence and the second comparison sequence, and the comparison is performed in sequence order, thereby improving the comparison efficiency. Then, the i-th data in the first comparison sequence is sequentially compared with the data in the second comparison sequence to determine the matching result of each data, and the identification of the data whose matching result is matched in the combination of the first data set and the second data is set as the first identification, so as to realize the automatic comparison of the documents, improve the accuracy of the comparison of the business documents, and avoid the economic loss caused by the error in the amount during the review process.

[0104] Further, based on the above embodiment, if the second object type is a promissory note, the method may further include:

[0105] When it is determined that the matching results corresponding to the data in the second data set are all matches, the identifier of the data corresponding to the matching results of the first data set that are matches or partial matches is set as the first identifier.

[0106] In this embodiment, taking the first object type as a contract and the second object type as a promissory note as an example, if the matching results corresponding to each data in the data set of the promissory note amount are all matched, it means that the contract promissory note amount comparison is solvable, and the matching results corresponding to the data in the data set of the contract amount are further determined, and the identification of the data corresponding to the matching results of the contract amount data set as a match or a partial match is set as an available identification. At the same time, the identification of the data corresponding to the matching result of not matching is set as unavailable. If the matching results corresponding to each data in the data set of the promissory note amount are not all matched, it means that the promissory note amount comparison is unsolvable, and the invoices or contracts are all set to be available for further manual judgment or re-comparison.

[0107] In this embodiment, when the second object type is a promissory note, if it is determined that the matching results corresponding to the data in the second data set are all matches, the identifier of the data corresponding to the matching results of the first data set that are matches or partial matches is set as the first identifier. If there are promissory notes that are unavailable, it may mean that there are problems with the credit status of the user or other risks. At this time, performing an amount comparison may produce misleading results, thereby increasing business risks. Therefore, by determining that all promissory notes must be available before further determining the matching results of the data in the first data set, business risks can be reduced and the accuracy of the comparison process can be improved.

[0108] Further, based on the above embodiment, if the data types to be compared are date and amount, and the date and amount need to be compared in sequence, the method further includes:

[0109] By using the date size relationship indicated in the comparison rule corresponding to the combination, it is determined whether there is available data in the second data set that meets the comparison rule. If so, the identifier of the data and the available data is set to the first identifier.

[0110] In this embodiment, taking the first object type as a contract and the second object type as an invoice as an example, the date and amount of the contract invoice are compared. Through the date size relationship in the comparison rule corresponding to the contract invoice date combination, it is determined whether each data in the contract date data set has available data that meets the comparison rule in the invoice date data set. If available data exists, the identifier of the contract date data and the available data is set as an available identifier.

[0111] The data corresponding to the first identifier is updated to the data in the first data set; the available data corresponding to the first identifier is updated to the data in the second data set.

[0112] In this embodiment, the contract date data set as available flag is updated to the data in the contract date data set; and the invoice date data set as available flag is updated to the data in the invoice date data set. Then, the updated contract date data set is used as the first data set for comparison of contract invoice amount, and the updated invoice date data set is used as the second data set for comparison of contract invoice amount.

[0113] In this embodiment, by combining the date size relationship indicated in the corresponding comparison rules, the data in the first data set with the first identifier that meets the date size relationship is accurately determined in the second data set; the identifier is set to the data corresponding to the first identifier and the available data is updated to the data in the first data set and the data in the second data set, respectively, so as to perform the next round of amount comparison on the business documents that have been screened after the date comparison, so as to support complex business logic and improve the accuracy of business document comparison.

[0114] See also Figure 5 , which is a schematic diagram of an embodiment of a business document automatic comparison device provided in an embodiment of the present application. The device 50 includes: an acquisition module 51 and a processing module 52.

[0115] The acquisition module 51 is used to determine a combination of a to-be-compared object type and a to-be-compared data type, and the to-be-compared object type includes a first object type and a second object type.

[0116] The processing module 52 is used to perform the following comparison operation on each data in the first data set: using the combination of corresponding comparison rules, determine whether there is available data in the second data set that meets the comparison rules; if so, set the identifier of the data and the available data to the first identifier; the first data set includes at least one data of the data type to be compared of a first object type, and the second data set includes at least one data of the data type to be compared of a second object type.

[0117] An automatic comparison device for business documents provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0118] Further, on the basis of the above embodiment, the data type to be compared is the first type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; the processing module 52 is specifically used to determine whether there is available data in the second data set that satisfies the size relationship with the i-th data in the first data set according to the size relationship between the first type of data of the first object type and the first type of data of the second object type indicated in the comparison rule corresponding to the combination, i=1, 2,..., N; if so, the identifiers of the i-th data and each available data corresponding to the i-th data are set to the first identifier.

[0119] An automatic comparison device for business documents provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0120] Further, based on the above embodiments, the first type is a date type, the first object type is a contract, and the second object type is an invoice; or the first object type is a contract and the second object type is a promissory note; or the first object type is an invoice and the second object type is a promissory note; the size relationship between the first type of data of the first object type and the first type of data of the second object type is: the first type of data of the first object type is less than or equal to the first type of data of the second object type.

[0121] An automatic comparison device for business documents provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0122] Further, based on the above embodiment, after setting the identifiers of the data and the available data as the first identifier, the processing module 52 can also be used to set the identifiers of other data in the first data set except the data corresponding to the first identifier as the second identifier; and set the identifiers of other data in the second data set except the available data corresponding to the first identifier as the second identifier.

[0123] An automatic comparison device for business documents provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0124] Further, on the basis of the above embodiment, the data type to be compared is the second type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; then the processing module 52 is specifically used to sort the N data in descending order to obtain a first comparison sequence; and sort the M data in descending order to obtain a second comparison sequence; the i-th data in the first comparison sequence is sequentially compared with the data in the second comparison sequence; if the i-th data is smaller than the k-th data, the matching result of the i-th data is a match; the matching result of the k-th data is a partial match; and the residual value of the k-th data is calculated. remaining available balance; update the kth data to the remaining available balance and match it with the i+1th data; i=1, 2, ..., N, k=1, 2, ..., m; if the i+1th data is greater than or equal to the remaining available balance, the matching result of the kth data is updated to match; or, if the i-th data is greater than the k-th data, the matching result of the i-th data is a partial match; the matching result of the k-th data is a match; and the remaining available balance of the i-th data is calculated; update the i-th data to the remaining available balance and match it with the k+1th data; if the k+1th data is greater than or equal to the remaining available balance, the matching result of the i-th data is updated to match. Set the identifiers of the i-th data and the k-th data whose matching results are matched to the first identifier.

[0125] An automatic comparison device for business documents provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0126] Further, based on the above embodiment, if the second object type is a promissory note, the processing module 52 can also be used to determine that the matching results corresponding to the data in the second data set are all matches, and set the identifier of the data corresponding to the matching results in the first data set that are matches or partial matches as the first identifier.

[0127] An automatic comparison device for business documents provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0128] Further, based on the above embodiment, if the data to be compared is date and amount, the processing module 52 can also be used to determine whether there is available data in the second data set that meets the comparison rules based on the date size relationship indicated in the comparison rules corresponding to the combination. If so, the identifiers of the data and the available data are set to the first identifier; the data corresponding to the identifier set to the first identifier is updated to the data in the first data set; and the available data corresponding to the identifier set to the first identifier is updated to the data in the second data set.

[0129] An automatic comparison device for business documents provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0130] See also Figure 6 , which is a schematic diagram of an electronic device according to an embodiment of the present application. The electronic device 60 may include: a processor 61 and a memory 62.

[0131] The processor 61 is in communication connection with the memory 62 , and the memory 62 is used to store computer-executable instructions; the processor 61 is configured to execute the technical solution in any of the aforementioned method embodiments by executing the computer-executable instructions stored in the memory 62 .

[0132] Optionally, the memory 62 may be independent or integrated with the processor 61. Optionally, when the memory 62 is a device independent of the processor 61, the electronic device 60 may further include: a bus for connecting the above devices.

[0133] The electronic device is used to execute the technical solution in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0134] An embodiment of the present application also provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement the method described above. The implementation principles and technical effects are similar and will not be repeated here.

[0135] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same and similar parts between the various embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for automatically comparing business documents, characterized in that: Application electronic equipment, including: Determine a combination of a to-be-compared object type and a to-be-compared data type, wherein the to-be-compared object type includes a first object type and a second object type; The following comparison operation is performed on each data in the first data set: Using the comparison rule corresponding to the combination, determine whether there is available data in the second data set that satisfies the comparison rule, and if so, set the identifiers of the data and the available data to the first identifier; The first data set includes at least one data of the data type to be compared of the first object type, and the second data set includes at least one data of the data type to be compared of the second object type.

2. The method according to claim 1, characterized in that: The data type to be compared is a first type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; using the comparison rule corresponding to the combination to determine whether there is available data in the second data set that meets the comparison rule, and if so, setting the identifier of the data and the available data to the first identifier includes: According to the size relationship between the first type of data of the first object type and the first type of data of the second object type indicated in the comparison rule corresponding to the combination, determining whether there is available data in the second data set that satisfies the size relationship with the i-th data in the first data set, i=1, 2, ..., N; If so, the identifiers of the i-th data and each available data corresponding to the i-th data are set to the first identifier.

3. The method according to claim 2, characterized in that The first type is a date type, the first object type is a contract, and the second object type is an invoice; or the first object type is a contract, and the second object type is a promissory note; or the first object type is an invoice, and the second object type is a promissory note; The size relationship between the first type of data of the first object type and the first type of data of the second object type is: The first type of data of the first object type is less than or equal to the first type of data of the second object type.

4. The method according to claim 3, characterized in that After setting the identifiers of the data and the available data to the first identifier, the method further includes: Setting the identifiers of other data in the first data set except the data corresponding to the first identifier as second identifiers; The identifiers of other data in the second data set except the available data corresponding to the first identifier are set as second identifiers.

5. The method according to claim 1, characterized in that The data type to be compared is the second type, the first data set includes N data, N is a positive integer; the second data set includes M data, M is a positive integer; then using the comparison rule corresponding to the combination to determine whether there is available data in the second data set that meets the comparison rule, if so, setting the identifier of the data and the available data to the first identifier includes: Sorting the N data in descending order to obtain a first comparison sequence; and sorting the M data in descending order to obtain a second comparison sequence; Compare the i-th data in the first comparison sequence with the data in the second comparison sequence in sequence; If the i-th data is smaller than the k-th data, the matching result of the i-th data is a match; the matching result of the k-th data is a partial match; and the remaining available balance of the k-th data is calculated; the k-th data is updated to the remaining available balance and matched with the i+1-th data; i=1, 2, ..., N, k=1, 2, ..., m; If the i+1th data is greater than or equal to the kth data, the matching result of the kth data is updated to match; or, If the i-th data is greater than the k-th data, the matching result of the i-th data is a partial match; the matching result of the k-th data is a match; and the remaining available balance of the i-th data is calculated; the i-th data is updated to the remaining available balance and matched with the k+1-th data; If the k+1th data is greater than or equal to the ith data, the matching result of the ith data is updated to match. The identifiers of the i-th data and the k-th data whose matching results are matched are set as the first identifier.

6. The method according to claim 5, characterized in that If the second object type is a promissory note, the method further includes: When it is determined that the matching results corresponding to the data in the second data set are all matches, the identifier of the data corresponding to the matching results as matches or partial matches in the first data set is set as a first identifier.

7. The method according to any one of claims 1 to 6, characterized in that: If the data types to be compared are date and amount, the method further includes: Determine whether there is available data in the second data set that satisfies the comparison rule according to the date size relationship indicated in the comparison rule corresponding to the combination, and if so, set the data and the identifier of the available data to the first identifier; The identifier is set to the data corresponding to the first identifier and updated to the data in the first data set; the identifier is set to the available data corresponding to the first identifier and updated to the data in the second data set.

8. An automatic comparison device for business documents, characterized in that: include: An acquisition module, used to determine a combination of a to-be-compared object type and a to-be-compared data type, wherein the to-be-compared object type includes a first object type and a second object type; The following comparison operation is performed on each data in the first data set: a processing module, configured to determine, by using a comparison rule corresponding to the combination, whether there is available data in the second data set that satisfies the comparison rule, and if so, set the identifiers of the data and the available data to be the first identifier; The first data set includes at least one data of the data type to be compared of the first object type, and the second data set includes at least one data of the data type to be compared of the second object type.

9. An electronic device, characterized in that: The device comprises: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.