Business document verification method and apparatus, medium, electronic device, and program product

By acquiring verification requirements, parsing variables, and generating equations to automatically perform verification, the problem of high verification costs for business documents in existing technologies has been solved, and a highly efficient automated verification process has been achieved.

WO2025260900A1PCT designated stage Publication Date: 2025-12-26BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/086872
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-17
Filing Date
2025-04-02
Publication Date
2025-12-26

AI Technical Summary

Technical Problem

In existing technologies, the verification process of business documents requires users to read the user manual and seek help from R&D personnel, resulting in excessively high learning, time, and human resource costs.

Method used

This paper provides a method for verifying business documents. By obtaining verification requirements, parsing variables, generating equations, and automatically performing verification, it reduces the time users spend understanding and breaking down business logic.

Benefits of technology

It has achieved automated verification of business documents, saving learning costs, time costs, and manpower costs, and improving verification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025086872_26122025_PF_FP_ABST
    Figure CN2025086872_26122025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a business document verification method and apparatus, a medium, an electronic device, and a program product. The business document verification method comprises: acquiring a verification requirement, the verification requirement being used for indicating required verification for a business document; parsing the verification requirement to obtain a variable required for verifying the business document; generating, on the basis of the verification requirement and the variable, an equation required for verifying the business document; and verifying the business document by means of the equation. The business document verification method can reduce learning costs, time costs, and labor costs of business verification.
Need to check novelty before this filing date? Find Prior Art

Description

Business document checking method and device, medium, electronic equipment and program product

[0001] The present application claims priority to Chinese Patent Application No. 202410781679.6, filed on June 17, 2024, the disclosure of which is incorporated herein in its entirety as part of the present application. TECHNICAL FIELD

[0002] The present disclosure relates to a business document checking method, device, medium, electronic equipment and program product. BACKGROUND

[0003] Code BUG, configuration error, upstream and downstream exception, infrastructure failure, etc., may cause abnormal data in the business system. If these abnormal data cannot be discovered and processed in time, it may cause serious consequences such as complaints and capital loss.

[0004] Checking is essentially verifying whether each business occurs as expected according to business rules from data output by business processes. Checking is a process of secondary confirmation of business behavior.

[0005] In related technologies, in order to check, the user needs to read the user manual provided by the checking system, fully understand the implementation principle of the checking system, and according to the ability provided by the checking system, the business process is disassembled to complete the configuration of the checking rule. If some relatively complex problems are encountered, the user also needs to ask the developers of the checking system for detailed disassembly of the business process to complete the configuration of the checking rule. This increases the learning cost, time cost and labor cost. SUMMARY

[0006] This summary is provided to introduce a selection of concepts, which are further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0007] In a first aspect, the present disclosure provides a business document checking method, comprising: obtaining a checking requirement, the checking requirement being used to indicate a required check for a business document; analyzing the checking requirement to obtain a variable required for checking the business document; generating an equation required for checking the business document based on the checking requirement and the variable; and checking the business document using the equation.

[0008] In a second aspect, the present disclosure provides a business document checking device, comprising: an obtaining module configured to obtain a checking requirement, the checking requirement being used to indicate a required check on a business document; an analyzing module configured to analyze the checking requirement to obtain a variable required for checking the business document; a generating module configured to generate an equation required for checking the business document based on the checking requirement and the variable; and a checking module configured to check the business document using the equation.

[0009] In a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program, which, when executed by a processing device, implements the steps of the method of any one of the first aspect.

[0010] In a fourth aspect, the present disclosure provides an electronic device, comprising:

[0011] a storage device having stored thereon a computer program;

[0012] a processing device configured to execute the computer program in the storage device to implement the steps of the method of any one of the first aspect.

[0013] In a fifth aspect, the present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any one of the first aspect.

[0014] Other features and advantages of the present disclosure will be further described in the following detailed description. BRIEF DESCRIPTION OF DRAWINGS

[0015] The above and other features and advantages of the embodiments of the present disclosure will become more apparent by describing in detail some embodiments thereof with reference to the attached drawings in which:

[0016] FIG. 1 is a flowchart of a business document checking method according to an embodiment of the present disclosure;

[0017] FIG. 2 shows a system architecture diagram of an equation checking engine according to an embodiment of the present disclosure;

[0018] FIG. 3 is a flowchart of another business document checking method according to an embodiment of the present disclosure;

[0019] FIG. 4 is a data flow diagram of a business document checking method according to an embodiment of the present disclosure;

[0020] FIG. 5 is a training flow diagram of a checking model according to an embodiment of the present disclosure;

[0021] Fig. 6 is a schematic block diagram of a check device of a business document according to an embodiment of the present disclosure; and

[0022] Fig. 7 shows a schematic diagram of the structure of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] Embodiments of the present disclosure will be described in more detail with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein, but rather the embodiments are provided so that the present disclosure can be more thoroughly and completely understood. It should be understood that the drawings and embodiments of the present disclosure are merely for illustrative purposes and are not intended to limit the scope of the present disclosure.

[0024] It should be understood that the various steps in the method embodiments of the present disclosure can be performed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0025] The term "comprising" and variations thereof as used in the present disclosure are open-ended, that is, "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Related definitions will be given in the description below.

[0026] It should be noted that the concepts of "first", "second", etc. mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules or units.

[0027] It should be noted that the adjectives "one", "multiple" mentioned in the present disclosure are illustrative and not limiting, and those skilled in the art should understand that, unless otherwise explicitly stated in the context, it should be understood as "one or more".

[0028] The names of the messages or information exchanged between the devices in the embodiments of the present disclosure are only for illustrative purposes and are not intended to limit the scope of the messages or information.

[0029] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, scope of use, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained in accordance with relevant laws and regulations.

[0030] For example, in response to receiving an active request of a user, prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using personal information of the user. Thus, the user can autonomously select whether to provide personal information to the software or hardware, such as an electronic device, an application program, a server or a storage medium, performing the operation of the technical solution of the present disclosure according to the prompt information.

[0031] As an optional but non-limiting implementation, in response to receiving an active request of a user, the prompt information can be sent to the user in the form of a pop-up window, for example, in which the prompt information can be presented in the form of text. In addition, the pop-up window can also carry selection controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0032] It can be understood that the above notification and obtaining of user authorization process is only illustrative and does not limit the implementation of the present disclosure, and other ways that meet the relevant laws and regulations can also be applied to the implementation of the present disclosure.

[0033] At the same time, it can be understood that the data involved in the technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the relevant laws and regulations and the relevant provisions.

[0034] FIG. 1 is a flowchart of a business document checking method according to an embodiment of the present disclosure. As shown in FIG. 1, the business document checking method can include the following steps S11 to S14.

[0035] In step S11, a checking requirement is obtained, which is used to indicate a required check for a business document.

[0036] For example, a user (for example, a business party) can send his / her checking requirement in the form of a message to a message queue, so that the checking requirement of the user can be obtained from the message queue. The message can be a message in various formats, such as a Binlog format message, a JSON format message, etc. In addition, the checking requirement can describe the business checking appeal of the user himself / herself and the document features of the business document to be checked, etc.

[0037] The required check can include, for example, consistency check, timeliness check, original document check, etc. The consistency check usually appears between upstream and downstream, and is used to ensure the consistency of order status and amount between the upstream and the downstream. The timeliness check is used to monitor the life cycle of an order and timely find abnormal behaviors such as card orders. The original document check is used to compare the amount and status of the original document and the sub-document, and timely find behaviors such as account sharing and super limit, etc.

[0038] In step S12, the reconciliation requirement is parsed to obtain variables required for reconciling the business document. The variable refers to a rule for screening the data to be reconciled.

[0039] In some embodiments, the reconciliation requirement can be parsed in the following manner. First, the reconciliation requirement is parsed to obtain reconciliation content corresponding to the reconciliation requirement. For example, the reconciliation requirement can be parsed by using a structured query language (SQL) to obtain the reconciliation content corresponding to the reconciliation requirement. Then, according to the reconciliation content, the variables required for reconciling the business document are obtained. For example, the reconciliation content can be processed by using a field to obtain the variables required for reconciling the business document.

[0040] The variables can include, for example, a variable ID (VarId), a message source (MsgSource), a variable value field name (ValueField), a group number field name (GroupNoField), and a filtering condition (FilterSQL). The message source, i.e., the data source, can be used to define where the message comes from, what the unique key of the message is, and the like. The message source can include, for example, a message source (MsgSource), a source type (SourceType), configuration information (SourceConf), and a source unique key (SourceUniq).

[0041] In step S13, based on the reconciliation requirement and the variables, an equation required for reconciling the business document is generated.

[0042] The equation is used to describe the relationship between the data to be reconciled. The generated equation can include an equation ID (EquationId) and an equation expression (Equation).

[0043] The equation reconciliation engine is a flexible and non-invasive reconciliation engine for complex reconciliation scenarios. Its application scenarios can include upstream and downstream reconciliation, main and sub-single reconciliation, card single monitoring, volume constraint, uniqueness constraint, and other scenarios that can be expressed by using equation semantics.

[0044] At the system architecture level, the equation reconciliation engine can include two services, i.e., a main service and a resident service. The main service is responsible for consuming and processing stream messages and providing an operation management interface. The resident service is responsible for asynchronous task execution, including equation calculation, data archiving, and other processes that need to be continuously processed.

[0045] FIG. 2 shows a system architecture diagram of the equation checking engine according to an embodiment of the present disclosure. As shown in FIG. 2, the equation checking engine can include an access layer, a service layer, and a storage layer. The access layer can provide data access and external interface. The data access can be used to receive messages in Binlog, RMQ (i.e., RabbitMQ) format, etc. The service layer can provide main services and resident services. The storage layer can be used for data storage, for example, storing data in a Network Database (NDB), a distributed table storage system (e.g., ByteTable database), a Remote Dictionary Server (Redis) database, etc.

[0046] The following takes the application scenario of sending and receiving red packets as an example to illustrate the equation required for checking business documents based on checking requirements and variables.

[0047] Suppose the orders of sending and receiving red packets are stored in a table named envelope, and the user wants to check the orders of sending and receiving red packets for consistency. Then, based on the user's checking requirements, the orders of sending and receiving red packets can be found from the envelope table through the authentication scenario code (biz_code), and the following variables required for checking can be obtained by analyzing the checking requirements:

[0048] • Message source

[0049] o SourceType: Binlog

[0050] o SourceConf: xxx_cluster, xxx_topic, envelope table

[0051] o SourceUniq: biz_no (wherein, biz_no is the unique key of the envelope table)

[0052] • Variable definition - sending red packet

[0053] o ValueField: amount (wherein, amount is the amount field of the sending red packet order)

[0054] o GroupNoField: biz_no (wherein, the original order number of the receiving red packet order is the biz_no of the sending red packet order)

[0055] o FilterSQL: SELECT amount FROM envelope WHERE biz_code='sending red packet'

[0056] • Variable definition - receiving red packet

[0057] ○ValueField: amount (where amount is the amount field of the red envelope receiving order)

[0058] ○GroupNoFiled: origin_no (that is, the original order number field)

[0059] ○FilterSQL: SELECT amount FROM envelope WHERE biz_code ='red envelope receiving'

[0060] Therefore, according to the verification requirements and the parsed variables, the following equation can be generated:

[0061] ○Equation: Sum (sending red envelopes) >= Sum (receiving red envelopes)

[0062] In step S14, the business document is verified using the said equation.

[0063] By adopting the above technical solution, since the verification requirements can be obtained, the verification requirements are parsed to obtain the variables required for verifying the business document, an equation required for verifying the business document is generated based on the verification requirements and the variables, and the business document is verified using the equation, therefore, an equation verification rule matching the business verification requirement (that is, the verification requirement) can be automatically generated, and further, the verification of the business document can be automatically completed, saving the time for the user to understand the verification engine and disassemble the business logic, and greatly reducing the learning cost, time cost and labor cost.

[0064] In some embodiments, the method for verifying a business document according to an embodiment of the present disclosure may further include: during the period of obtaining the verification requirements in step S11, during the period of parsing the verification requirements to obtain the variables required for verifying the business document in step S12, and during the period of generating the equation required for verifying the business document based on the verification requirements and the variables in step S13, duplicate elimination can be performed based on the unique key.

[0065] The unique key may include at least one of, for example, EquationId, GroupNo, VarId, MsgUnique, etc. And, for example, VarValues, CheckFlag, BizTimestamp, etc. are usually not used as unique keys because they are not unique.

[0066] By deduplication based on unique keys, repeated checking of business documents can be avoided.

[0067] In some embodiments, the method for checking business documents according to the embodiments of the present disclosure can further include: storing the equation, the variable, and the variable value corresponding to the variable in a mapping form to obtain the data to be checked.

[0068] The mapping form for storage can be various.

[0069] The first mapping form for storage can include: determining a mapping between the equation, the variable, and the variable value corresponding to the variable, and storing each of the mappings in a row.

[0070] Table 1 shows an example of storing each of the mappings in a row.

[0071] Table 1

[0072] The second mapping form for storage can include: determining a mapping between the equation, the variable, and the variable value corresponding to the variable, and storing a group of the mappings in a row.

[0073] Table 2 shows an example of storing a group of the mappings in a row.

[0074] Table 2

[0075] The Hash prefix in Table 2 indicates that the storage location of the data to be checked is calculated by a hash algorithm when stored. In this way, the data to be checked can be scattered to avoid hotspots in the database storing the data to be checked.

[0076] In addition, the mapping storage forms in Table 1 and Table 2 can be converted to each other. For example, if the equation is generated in step S13 and then the data to be checked is stored in the mapping form of Table 1, the stored data to be checked can be directly read in step S14 to check the business document, and if the checking result shows that the business document meets the business expectation, the checked data can be converted to the mapping form shown in Table 2 for storage, thereby saving storage costs. For another example, if the equation is generated in step S13 and then the data to be checked is stored in the mapping form of Table 2, the stored data to be checked can be first read and converted to the mapping form shown in Table 1 in step S14 before the business document is checked.

[0077] By storing equations, variables, and their corresponding variable values ​​in a mapping format, asynchronous tasks can be used to trigger equation calculations in step S14, thereby improving the execution efficiency of steps S11 to S13 and avoiding the problem of slow execution of steps S11 to S13 leading to reduced consumption throughput and failure to meet timeliness requirements.

[0078] In some embodiments, the step S14 of verifying the business document using the equation may include: reading data from the data to be verified based on the equation identifier (EquationId) and the business document group number (GroupNo) in the variable; and performing calculations on the read data using the equation to verify the business document.

[0079] By adopting the above technical solution, it is possible to retrieve a group of documents involved in the equation calculation through "EquationId+GroupNo" for verification.

[0080] Figure 3 is a flowchart of another business document verification method according to an embodiment of the present disclosure. Figure 3 adds step S15 to Figure 1. As shown in Figure 3, step S15 includes: after verifying the business document using the equation, aggregating the differences obtained from the verification, and sending the aggregation result to the user.

[0081] This allows for alerting users when verification results indicate that business documents do not meet business expectations.

[0082] Figure 4 is a data flow diagram of a business document verification method according to an embodiment of the present disclosure. The data flow of the business document verification method may include three core data flows: a transformation data flow, an audit data flow, and an archiving data flow.

[0083] The transformed data stream is used to process messages in the message queue (i.e., the verification requirement mentioned earlier). It performs field processing and SQL parsing on the messages in the message queue and stores the results in the NDB database. The transformed data stream corresponds to the acquisition operation described in step S11, the parsing operation described in step S12, the generation operation described in step S13, and the operation of storing the data in a mapped form as described earlier.

[0084] The audit data stream is used to retrieve data from the NDB database and the distributed table storage system for equation calculations, and to determine whether the business documents meet business expectations based on the calculation results. If the business documents meet business expectations, the NDB tags are updated. The audit data stream corresponds to the verification operation described in step S14.

[0085] The archiving data flow is used to migrate the business document data meeting the business expectation from the NDB database to the distributed table storage system, so as to save the storage cost.

[0086] The auditing data flow and the archiving data flow can be triggered by using an asynchronous task, so that the execution efficiency of the converting data flow can be improved, and the problem that the consumption throughput is reduced due to the slow execution of the converting data flow and the timeliness requirement cannot be met is avoided. In addition, in FIG. 4, the NDB database and the distributed table storage system are only examples, and other types of databases can also be used.

[0087] In some embodiments, the parsing operation in step S12 and the generating operation in step S13 can be completed by using the checking model.

[0088] FIG. 5 is a schematic diagram of a training flow of the checking model according to an embodiment of the present disclosure.

[0089] As shown in FIG. 5, when training for the first time, the historical checking data and the manual of the equation checking engine can be segmented into segments that can be understood by the checking model, for example, the segmentation can be performed according to sentences, paragraphs, etc., and the semantic segmentation technology can also be used for segmentation. In this way, the domain knowledge of the equation checking engine is vectorized in the checking model.

[0090] Then, the segments are input into the checking model, and the checking model is trained through the question and answer process with the checking model. For example, both the ordinary user and the technical support personnel of the equation checking engine can ask questions to the checking model, and the ordinary user can feed back the question and answer results to the technical support personnel of the equation checking engine. In this way, the initial training of the checking engine is completed.

[0091] Further, if the answer given by the checking model in the question and answer process is inaccurate, the correction result of the answer is obtained from the user and provided to the checking model as incremental checking data to retrain the checking model. In this way, the generation result of the checking model can be corrected, and the generation result of the checking model is more accurate. The user can be the technical support personnel of the equation checking engine, the personnel applying the checking engine, or other related personnel.

[0092] By using the above technical solution, the training of the checking model can be completed. In addition, after the training of the checking model is completed, in the technical support aspect, for a simple scenario, by providing a basic prompt (for example, checking requirement) to the checking model, the checking model can automatically generate a corresponding checking task configuration (for example, equation); for a complex scenario, after the technical support personnel of the equation checking engine give a solution, the checking model can complete the explanation of some proper nouns and basic problems.

[0093] The following illustrates a reconciliation scenario that can be implemented by the reconciliation method of the business document according to an embodiment of the present disclosure.

[0094] Scenario 1: One upstream and three downstreams (new and old architecture cut volume)

[0095] Suppose system A has three downstreams B, C, and D. For one transaction, A will fall one single, and only one of B, C, and D will fall one single. At this time, system A hopes to do consistency reconciliation with the downstream, and then four variables and one equation can be configured to cover this scenario:

[0096] • Variable 1: Order in A

[0097] • Variable 2: Order in B

[0098] • Variable 3: Order in C

[0099] • Variable 4: Order in D

[0100] • Equation: (Sum (variable 1) == Sum (variable 2) + Sum (variable 3) + Sum (variable 4)) && IsOne (variable 1) && (Count (variable 1) == Count (variable 2) + Count (variable 3) + Count (variable 4))

[0101] In the above equation, the sub-expression "Sum (variable 1) == Sum (variable 2) + Sum (variable 3) + Sum (variable 4)" ensures that the order amount in A is equal to the order amount in B, C, and D. The sub-expression "IsOne (variable 1)" and the sub-expression "Count (variable 1) == Count (variable 2) + Count (variable 3) + Count (variable 4)" together ensure that there is only one single in A and only one of B, C, and D falls one single.

[0102] Scenario 2: Collecting + subsidies >= refund + split:

[0103] In the payment scenario, "collecting amount + subsidy amount >= refund amount + split amount" is a very classic anti-fraud constraint. Then, four variables and one equation can be configured to cover this scenario:

[0104] • Variable 1: Collecting Order

[0105] • Variable 2: Subsidy Order

[0106] • Variable 3: Refund Order

[0107] • Variable 4: Split Order

[0108] • Equation: Sum(variable 1) + Sum(variable 2) >= Sum(variable 3) + Sum(variable 4)

[0109] Scenario 3: The orders of scenario A and scenario B are mutually exclusive, i.e., A has and B has not, A has not and B has. Then 2 variables and 1 equation can be configured to cover this scenario:

[0110] • Variable 1: Scenario A order

[0111] • Variable 2: Scenario B order

[0112] • Equation: "(IsZero(variable 1) && IsOne(variable 2)) || (IsOne(variable 1) && IsZero(variable 2))" or "!(IsOne(variable 1) && IsOne(variable 2))".

[0113] Figure 6 is a schematic block diagram of a business document checking device according to an embodiment of the present disclosure. As shown in Figure 6, the checking device comprises: an acquisition module 61 configured to acquire a checking requirement, the checking requirement being used to indicate a required check for a business document; an analysis module 62 configured to analyze the checking requirement to obtain a variable required for checking the business document; a generation module 63 configured to generate an equation required for checking the business document based on the checking requirement and the variable; and a checking module 64 configured to check the business document by using the equation.

[0114] By using the above technical solution, since the checking requirement can be acquired, the checking requirement can be analyzed to obtain a variable required for checking the business document, an equation required for checking the business document can be generated based on the checking requirement and the variable, and the business document can be checked by using the equation, therefore, the equation checking rule matched with the business checking appeal (i.e., the checking requirement) can be automatically generated, and the checking of the business document can be automatically completed, which saves the time of the user to understand the checking engine and to disassemble the business logic, and greatly reduces the learning cost, time cost and labor cost.

[0115] Optionally, the analysis module 62 analyzes the checking requirement to obtain a variable required for checking the business document, and the analysis comprises:

[0116] analyzing the checking requirement to obtain a checking content corresponding to the checking requirement;

[0117] obtaining a variable required for checking the business document according to the checking content.

[0118] Optionally, the checking device further comprises a deduplication module configured to perform deduplication based on a unique key during the obtaining of the checking requirement, the parsing of the checking requirement to obtain the variables required for checking the business document, and the generating of the equation required for checking the business document based on the checking requirement and the variables.

[0119] Optionally, the checking device further comprises a storage module configured to store the equation, the variables, and the variable values corresponding to the variables in a mapping form to obtain the data to be checked.

[0120] Optionally, the storage module stores the equation, the variables, and the variable values corresponding to the variables in a mapping form, including at least one of the following:

[0121] determining a mapping between the equation, the variables, and the variable values corresponding to the variables, and storing each of the mappings in a row; or

[0122] determining a mapping between the equation, the variables, and the variable values corresponding to the variables, and storing a group of the mappings in a row.

[0123] Optionally, the checking device further comprises a calculation module configured to calculate a storage location of the data to be checked by a hash algorithm when storing.

[0124] Optionally, the checking module 64 checks the business document by using the equation, including:

[0125] reading data from the data to be checked based on an identification of the equation and a business document group number in the variables;

[0126] checking the business document by calculating the read data by using the equation.

[0127] Optionally, the parsing module 62 parses the checking requirement to obtain the variables required for checking the business document, including parsing the checking requirement by using a checking model to obtain the variables required for checking the business document.

[0128] The generating module 63 generates the equation required for checking the business document based on the checking requirement and the variables, including generating the equation required for checking the business document by using the checking model based on the checking requirement and the variables.

[0129] The checking device further comprises a training module configured to obtain the checking model by:

[0130] cutting historical check data and a user manual of the equation check engine into segments that the check model can understand;

[0131] inputting the segments into the check model;

[0132] training the check model through a question and answer process with the check model;

[0133] wherein if the answer given by the check model is inaccurate, a correction result for the answer is obtained from a user and provided to the check model as incremental check data to retrain the check model.

[0134] Optionally, the check device further comprises an aggregation module configured to aggregate the differences obtained through the check of the business document using the equation and send the aggregation result to a user.

[0135] The specific implementation manners of the operations performed by the various modules in the check device according to the embodiments of the present disclosure have been described in detail in the related method, and thus will not be described here.

[0136] The present disclosure further provides a computer readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method according to any one of the embodiments of the present disclosure.

[0137] The present disclosure further provides an electronic device comprising:

[0138] a storage device having a computer program stored thereon;

[0139] a processing device configured to execute the computer program in the storage device to implement the steps of the method according to any one of the embodiments of the present disclosure.

[0140] The present disclosure further provides a computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of the embodiments of the present disclosure.

[0141] Reference is made to FIG. 7, which shows a structural schematic diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle terminal (e.g., vehicle navigation terminal), and the like, as well as fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 7 is merely an example, and should not impose any limitation on the functions and use range of the embodiments of the present disclosure.

[0142] As shown in FIG. 7, the electronic device 600 can include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601 that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 602 or loaded into a random access memory (RAM) 603 from a storage device 608. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0143] In general, the following devices can be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 608 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 609. The communication devices 609 can allow the electronic device 600 to communicate wirelessly or wired with other devices to exchange data. Although FIG. 7 shows the electronic device 600 with various devices, it should be understood that all of the shown devices are not required to be implemented or possessed. More or less devices can be alternatively implemented or possessed.

[0144] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 609, or installed from the storage devices 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-described functions defined in the methods of embodiments of the present disclosure are performed.

[0145] It should be noted that the computer-readable medium described above can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program used by or in connection with an instruction execution system, apparatus or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave in a propagated data signal, in which the computer-readable program code is contained. Such a propagated data signal can take many forms, including but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium that can send, propagate or transfer the program for use by or in connection with the instruction execution system, apparatus or device. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to, wire, cable, RF (radio frequency), etc., or any suitable combination of the above.

[0146] In some embodiments, the client, server, or both can communicate using any current known or future developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet, and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any current known or future developed networks.

[0147] The computer-readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device, and not be assembled into the electronic device.

[0148] The computer readable medium described above carries one or more programs, when the one or more programs are executed by the electronic device, cause the electronic device to: acquire a checking requirement, the checking requirement being used to indicate a required check for a business document; parse the checking requirement to obtain a variable required for checking the business document; generate an equation required for checking the business document based on the checking requirement and the variable; and check the business document by using the equation.

[0149] Computer program code for carrying out operations of the present disclosure can be written in any one or more of a variety of programming languages or combinations of languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0150] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a procedure, or a part of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in a different order than that noted in the figures. For example, two blocks noted in succession can in fact be executed substantially concurrently or in the opposite order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flow diagrams, and combinations of blocks in the block diagrams and / or flow diagrams, can be implemented by dedicated hardware-based systems that perform the specified functions or operations, or can be implemented by a combination of dedicated hardware-based systems and computer instructions.

[0151] The modules involved in the embodiments of the present disclosure can be implemented in the manner of software or in the manner of hardware. Among them, the name of the module does not constitute a limitation to the module itself in some cases, for example, the acquisition module can also be described as "a module for acquiring a checking requirement".

[0152] The functionality described herein above can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Application-specific Integrated Circuits (ASICs), Application-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0153] In the context of the present disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0154] According to one or more embodiments of the present disclosure, example 1 provides a method for checking a business document, comprising: obtaining a checking requirement, the checking requirement being used to indicate a required check for a business document; parsing the checking requirement to obtain a variable required for checking the business document; generating an equation required for checking the business document based on the checking requirement and the variable; and checking the business document using the equation.

[0155] According to one or more embodiments of the present disclosure, example 2 provides the method of example 1, wherein the parsing the checking requirement to obtain a variable required for checking the business document comprises:

[0156] parsing the checking requirement to obtain a checking content corresponding to the checking requirement;

[0157] obtaining a variable required for checking the business document according to the checking content.

[0158] According to one or more embodiments of the present disclosure, example 3 provides the method of example 1, wherein the checking method further comprises:

[0159] During the acquiring the checking demand, the analyzing the checking demand to obtain the variables required for checking the business document, and the generating the equation required for checking the business document based on the checking demand and the variables, the de-duplication is performed based on the unique key.

[0160] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 1, wherein the checking method further comprises:

[0161] The equation, the variable, and the variable value corresponding to the variable are stored in a mapping form to obtain the data to be checked.

[0162] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, wherein the storing the equation, the variable, and the variable value corresponding to the variable in a mapping form comprises at least one of:

[0163] determining the mapping between the equation, the variable, and the variable value corresponding to the variable, and storing each of the mappings in a row; or

[0164] determining the mapping between the equation, the variable, and the variable value corresponding to the variable, and storing a group of the mappings in a row.

[0165] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 4, wherein the checking method further comprises:

[0166] When storing, the storage location of the data to be checked is calculated by a hash algorithm.

[0167] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 4, wherein the checking the business document by using the equation comprises:

[0168] reading data from the data to be checked based on the identification of the equation and the business document grouping number in the variable;

[0169] calculating the read data by using the equation to check the business document.

[0170] According to one or more embodiments of the present disclosure, Example 8 provides the method of any one of Examples 1 to 7, wherein,

[0171] The analyzing the checking demand to obtain the variables required for checking the business document comprises analyzing the checking demand by using a checking model to obtain the variables required for checking the business document.

[0172] The generating the equation required for the checking of the business document based on the checking requirement and the variable comprises: generating the equation required for the checking of the business document based on the checking requirement and the variable by using the checking model.

[0173] The checking model is obtained by:

[0174] segmenting historical checking data and a user manual of an equation checking engine into segments that can be understood by the checking model;

[0175] inputting the segments into the checking model;

[0176] training the checking model through a question and answer process with the checking model;

[0177] If the answer given by the checking model is inaccurate, a correction result of the answer is obtained from a user and provided to the checking model as incremental checking data to retrain the checking model.

[0178] According to one or more embodiments of the present disclosure, example 9 provides the method of any one of examples 1 to 7, wherein the checking method further comprises:

[0179] After the checking of the business document by using the equation, differences obtained by the checking are aggregated, and the aggregation result is sent to a user.

[0180] According to one or more embodiments of the present disclosure, example 10 provides a checking device for a business document, comprising: an obtaining module configured to obtain a checking requirement, the checking requirement being used to indicate a required checking for a business document; an analyzing module configured to analyze the checking requirement to obtain a variable required for the checking of the business document; a generating module configured to generate an equation required for the checking of the business document based on the checking requirement and the variable; and a checking module configured to check the business document by using the equation.

[0181] According to one or more embodiments of the present disclosure, example 11 provides a computer readable medium having a computer program stored thereon, the computer program being executed by a processing device to implement the steps of the method of any one of examples 1 to 9.

[0182] According to one or more embodiments of the present disclosure, example 12 provides an electronic device, comprising:

[0183] a storage device having a computer program stored thereon;

[0184] processing means for executing the computer program in the storage means to implement the steps of the method of any one of examples 1-9.

[0185] According to one or more embodiments of the present disclosure, example 13 provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any one of examples 1-9.

[0186] The above description merely provides preferred embodiments of the present disclosure and a description of the technical principles of the present disclosure. It should be understood by those skilled in the art that the disclosed scope of the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and also covers other technical solutions formed by the combinations of the above technical features or equivalent features without departing from the above disclosed concept. For example, the technical solutions formed by the mutual replacement of the above features and the technical features with similar functions disclosed in the present disclosure (but not limited to) can be used.

[0187] In addition, although each operation is depicted in a particular order, this should not be understood as requiring the operations to be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing can be advantageous. Similarly, although several implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be combined in a single embodiment. Conversely, various features described in the context of a single embodiment can also be implemented separately or in any suitable subcombination.

[0188] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. With respect to the devices in the above-described embodiments, in which various modules perform operations, the specific manner in which the various modules perform the operations has been described in detail in the embodiments related to the method, and will not be described here in detail.

Claims

1. A method for verifying business documents, comprising: Obtain verification requirements, which indicate the required verifications for business documents; The verification requirements are analyzed to obtain the variables needed to verify the business documents. Based on the verification requirements and the variables, generate the equations required to verify the business documents; The business documents are verified using the aforementioned equation.

2. The method according to claim 1, wherein, The process of parsing the verification requirements yields the variables needed to verify the business documents, including: The verification requirements are parsed to obtain the verification content corresponding to the verification requirements; Based on the verification content, the variables required to verify the business documents are obtained.

3. The method according to claim 1 or 2, further comprising: During the processes of obtaining the verification requirements, parsing the verification requirements to obtain the variables required for verifying the business documents, and generating the equations required for verifying the business documents based on the verification requirements and the variables, deduplication is performed based on the unique key.

4. The method according to any one of claims 1-3, further comprising: The equation, the variable, and the variable value corresponding to the variable are stored in a mapping form to obtain the data to be verified.

5. The method according to claim 4, wherein, The storage of the equation, the variable, and the variable value corresponding to the variable in a mapping form includes at least one of the following: Determine the mapping between the equation, the variable, and the corresponding variable value, and store each mapping in a separate row; or Determine the mapping between the equation, the variable, and the variable value corresponding to the variable, and store a set of the mappings in a row.

6. The method according to claim 4 or 5, further comprising: During storage, the storage location of the data to be verified is calculated using a hash algorithm.

7. The method according to claim 4, wherein, The process of verifying the business documents using the equation includes: Based on the identifier of the equation and the business document group number in the variables, data is read from the data to be verified; The equation is used to calculate the read data in order to verify the business documents.

8. The method according to any one of claims 1-7, wherein, The step of parsing the verification requirements to obtain the variables required for verifying the business documents includes: using a verification model to parse the verification requirements to obtain the variables required for verifying the business documents; The step of generating the equations required for verifying the business documents based on the verification requirements and the variables includes: generating the equations required for verifying the business documents using the verification model based on the verification requirements and the variables; The verification model is obtained in the following way: The historical verification data and the user manual of the equation verification engine are divided into segments that the verification model can understand; The segment is input into the verification model; The verification model is trained through a question-and-answer process with the verification model. If the verification model provides an inaccurate answer, the user obtains a correction result for the answer and provides the correction result as incremental verification data to the verification model for retraining.

9. The method according to any one of claims 1-8, further comprising: After verifying the business documents using the equation, the differences obtained from the verification are aggregated, and the aggregated result is sent to the user.

10. A verification device for business documents, comprising: The acquisition module is configured to acquire verification requirements, which are used to indicate the required verification for business documents; The parsing module is configured to parse the verification requirements to obtain the variables needed to verify the business documents; The generation module is configured to generate equations required to verify the business documents based on the verification requirements and the variables. The verification module is configured to verify the business documents using the equation.

11. A computer-readable medium storing a computer program, wherein, When the computer program is executed by the processing device, it implements the verification method for business documents as described in any one of claims 1-9.

12. An electronic device, comprising: Storage device containing computer programs; as well as A processing device is configured to execute the computer program in the storage device to implement the verification method for business documents according to any one of claims 1-9.

13. A computer program product comprising a computer program, wherein, When the computer program is executed by the processor, it implements the verification method for business documents as described in any one of claims 1-9.

Citation Information

Patent Citations

  • A structured data checking method

    CN109542869A

  • Data checking method and device, computer equipment and storage medium

    CN114416805A

  • Automatic account checking method and device, electronic equipment and computer readable storage medium

    CN117649306A

  • Business document checking method and device, medium, electronic equipment and program product

    CN118608088A

  • Method and system for real-time invoice validation and reconciliation

    US20080270273A1