CN116266328A - Account data checking method and device and electronic equipment - Google Patents
Account data checking method and device and electronic equipment Download PDFInfo
- Publication number
- CN116266328A CN116266328A CN202111521787.2A CN202111521787A CN116266328A CN 116266328 A CN116266328 A CN 116266328A CN 202111521787 A CN202111521787 A CN 202111521787A CN 116266328 A CN116266328 A CN 116266328A
- Authority
- CN
- China
- Prior art keywords
- accounting
- billing
- result
- target
- actual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
- G06Q40/125—Finance or payroll
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请公开了一种账务数据核对方法和装置、电子设备,该方法由核对服务器执行,该方法包括:获取业务方的记账请求流水和对应的待核对的实际记账结果;根据记账请求流水确定对应的目标核对策略;根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果;根据所述待核对的实际记账结果和所述目标记账结果,确定所述待核对的实际记账结果的核对结果。本申请的账务数据核对方法通过事先设定好的目标核对策略可以快速且准确的判断出核算系统的记账结果是否符合预期,提高了对核算系统的质量测试效率,并且可以支持日常所有记账结果的验证,不需要人工一一校验,从而节省了大量的人力成本,提高了测试人员的吞吐率。
This application discloses a method and device for checking account data, and electronic equipment. The method is executed by a checking server. request the flow to determine the corresponding target checking strategy; generate the target accounting result according to the accounting request flow of the business party and the target checking strategy; according to the actual accounting result to be checked and the target accounting result, Determine the verification result of the actual accounting result to be verified. The accounting data checking method of this application can quickly and accurately judge whether the accounting results of the accounting system meet expectations through the pre-set target checking strategy, improve the quality testing efficiency of the accounting system, and support all daily records. The verification of account results does not require manual verification one by one, which saves a lot of labor costs and improves the throughput of testers.
Description
技术领域technical field
本申请涉及金融技术领域,尤其涉及账务数据核对方法和装置、电子设备。The present application relates to the field of financial technology, in particular to a method and device for checking account data, and electronic equipment.
背景技术Background technique
在金融技术领域,业务资金核算是整个交易链路的最后一环,在清算出金前,起到了余额控制的作用,且进行了完备的基于业务、机构维度的复式记账,该记账结果也是生成各类会计报表的基础数据,因此记账结果的准确性至关重要。In the field of financial technology, business fund accounting is the last link of the entire transaction chain. Before liquidation and withdrawal, it plays the role of balance control, and a complete double-entry bookkeeping based on business and institutional dimensions has been carried out. The bookkeeping results It is also the basic data for generating various accounting statements, so the accuracy of accounting results is very important.
当前在业务方记账后,对于记账结果的准确性校验,需要人工在核算系统以及数据库中查询相关记账信息,进行记账结果的核对。At present, after the business party keeps accounts, for the accuracy verification of the accounting results, it is necessary to manually query the relevant accounting information in the accounting system and the database to check the accounting results.
然而由于核算系统对接的业务及机构的多样性,日常测试场景下,每天都会产生大量的记账数据,上述这种核对方式需要人工一一对记账结果进行核对,因此成本较高,且核对效率低下。However, due to the diversity of businesses and organizations connected to the accounting system, a large amount of accounting data will be generated every day in daily test scenarios. The above-mentioned verification method needs to manually check the accounting results one by one, so the cost is high low efficiency.
发明内容Contents of the invention
本申请实施例提供了一种账务数据核对方法和装置、电子设备,以降低记账结果的核对成本,提高核对效率。Embodiments of the present application provide a method and device for checking account data, and electronic equipment, so as to reduce checking costs of accounting results and improve checking efficiency.
本申请实施例采用下述技术方案:The embodiment of the application adopts the following technical solutions:
第一方面,本申请实施例提供一种账务数据核对方法,由核对服务器执行,其中,所述方法包括:In the first aspect, the embodiment of the present application provides a method for checking account data, which is executed by a checking server, wherein the method includes:
获取业务方的记账请求流水和对应的待核对的实际记账结果;Obtain the accounting request flow of the business party and the corresponding actual accounting results to be checked;
根据所述记账请求流水确定对应的目标核对策略;Determine the corresponding target verification strategy according to the accounting request flow;
根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果;Generate a target accounting result according to the accounting request flow of the business party and the target checking strategy;
根据所述待核对的实际记账结果和所述目标记账结果,确定所述待核对的实际记账结果的核对结果。According to the actual accounting result to be checked and the target accounting result, a checking result of the actual accounting result to be checked is determined.
可选地,所述根据所述记账请求流水确定对应的目标核对策略包括:Optionally, the determining the corresponding target verification strategy according to the accounting request flow includes:
对所述记账请求流水进行参数解析,得到参数解析结果,其中所述参数解析结果包括多个记账请求参数,所述记账请求参数至少包括业务类型;Analyzing the parameters of the billing request stream to obtain a parameter parsing result, wherein the parameter parsing result includes a plurality of billing request parameters, and the billing request parameters include at least a business type;
根据所述业务类型确定所述记账请求流水对应的目标核对策略。Determine the target checking policy corresponding to the accounting request flow according to the business type.
可选地,所述目标核对策略中包括多个核对维度,所述根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果包括:Optionally, the target checking strategy includes a plurality of checking dimensions, and generating the target accounting result according to the business party's billing request flow and the target checking strategy includes:
将多个记账请求参数分别转换到所述目标核对策略的对应核对维度上,得到各个核对维度的记账信息;Converting a plurality of bookkeeping request parameters to corresponding verification dimensions of the target verification strategy respectively, to obtain accounting information of each verification dimension;
将各个核对维度的记账信息作为所述目标记账结果。The accounting information of each checking dimension is used as the target accounting result.
可选地,所述目标核对策略包括业务核对策略和会计属性核对策略,所述业务核对策略中包括业务属性、分录规则、账户特征以及金额类型中的一个或多个核对维度,所述会计属性核对策略包括记账方式、余额更新方式、账户借贷方向中的一个或多个核对维度。Optionally, the target verification strategy includes a business verification strategy and an accounting attribute verification strategy, and the business verification strategy includes one or more verification dimensions in business attributes, entry rules, account characteristics, and amount types. The attribute verification strategy includes one or more verification dimensions in the bookkeeping method, balance update method, and account debit and credit direction.
可选地,所述实际记账结果和所述目标记账结果中均包括记账状态、记账凭证、记账账户、账户收支明细、账户余额变动、账户余额控制校验结果中的一个或多个核对维度的记账信息,且所述目标记账结果的核对维度集合是所述实际记账结果的核对维度集合的真子集。Optionally, both the actual accounting results and the target accounting results include one of accounting status, accounting vouchers, accounting accounts, account revenue and expenditure details, account balance changes, and account balance control verification results or accounting information of multiple verification dimensions, and the verification dimension set of the target accounting result is a proper subset of the verification dimension set of the actual accounting result.
可选地,所述根据所述实际记账结果和所述目标记账结果,确定所述实际记账结果的核对结果包括:Optionally, the determining the verification result of the actual accounting result according to the actual accounting result and the target accounting result includes:
将所述实际记账结果中的各个核对维度的记账信息分别与所述目标记账结果中各个核对维度的记账信息进行比较;Comparing the accounting information of each verification dimension in the actual accounting result with the accounting information of each verification dimension in the target accounting result;
若所述实际记账结果中的各个核对维度的记账信息与所述目标记账结果中各个核对维度的记账信息均一致,则确定所述实际记账结果的核对结果为核对通过;If the accounting information of each verification dimension in the actual accounting result is consistent with the accounting information of each verification dimension in the target accounting result, then it is determined that the verification result of the actual accounting result is verified;
若所述实际记账结果中的至少一个核对维度的记账信息与所述目标记账结果中对应核对维度的记账信息不一致,则确定所述实际记账结果的核对结果为核对未通过。If the accounting information of at least one verification dimension in the actual accounting result is inconsistent with the accounting information of the corresponding verification dimension in the target accounting result, it is determined that the verification result of the actual accounting result is verification failure.
可选地,所述核对结果包括核对通过的结果和核对未通过的结果,所述根据所述实际记账结果和所述目标记账结果,确定所述实际记账结果的核对结果包括:Optionally, the verification result includes a result of passing the verification and a result of failing the verification, and according to the actual accounting result and the target accounting result, determining the verification result of the actual accounting result includes:
若核对结果为核对通过的结果,则直接将核对通过的结果记录到预设核对数据库中;If the verification result is a result of passing the verification, the result of passing the verification is directly recorded in the preset verification database;
若核对结果为核对未通过的结果,则生成告警信息并将核对未通过的结果记录到所述预设核对数据库中。If the checking result is a failed checking result, an alarm message is generated and the failed checking result is recorded in the preset checking database.
可选地,所述获取业务方的记账请求流水和实际记账结果包括:Optionally, said acquiring the business party's billing request flow and actual billing results includes:
按照预设时间频率,获取所述业务方在预设时间段内的记账请求流水和对应的待核对的实际记账结果。According to the preset time frequency, the billing request flow and the corresponding actual billing results to be checked are obtained from the business party within the preset time period.
可选地,所述获取业务方的记账请求流水和待核对的实际记账结果包括:Optionally, said obtaining the business party's billing request flow and the actual billing result to be checked includes:
基于记账结果核对组件监听业务方的记账请求,所述记账结果核对组件封装在用于接收所述记账请求的记账接口中;Based on the accounting result checking component to monitor the accounting request of the business party, the accounting result checking component is encapsulated in the accounting interface for receiving the accounting request;
根据所述业务方的记账请求获取对应的记账请求流水和待核对的实际记账结果。Obtain the corresponding accounting request flow and the actual accounting results to be checked according to the accounting request of the business party.
可选地,所述方法还包括:Optionally, the method also includes:
提供前端页面;Provide front-end pages;
将所述待核对的实际记账结果的核对结果在所述前端页面上进行展示。The verification result of the actual accounting result to be verified is displayed on the front-end page.
第二方面,本申请实施例还提供一种账务数据核对装置,应用于核对服务器,其中,所述装置用于实现前述之任一所述方法。In a second aspect, the embodiment of the present application further provides an accounting data checking device, which is applied to a checking server, wherein the device is used to implement any one of the aforementioned methods.
第三方面,本申请实施例还提供一种电子设备,包括:In a third aspect, the embodiment of the present application further provides an electronic device, including:
处理器;以及processor; and
被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行前述之任一所述方法。A memory arranged to store computer-executable instructions which, when executed, cause the processor to perform any one of the preceding methods.
第四方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行前述之任一所述方法。In a fourth aspect, the embodiment of the present application further provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including multiple application programs , causing the electronic device to execute any one of the aforementioned methods.
本申请实施例采用的上述至少一个技术方案能够达到以下有益效果:本申请实施例的账务数据核对方法可以由核对服务器来执行,在进行账务数据核对时,可以先获取业务方的记账请求流水和对应的待核对的实际记账结果;然后根据记账请求流水确定对应的目标核对策略;之后再根据业务方的记账请求流水和目标核对策略,生成目标记账结果;最后根据待核对的实际记账结果和目标记账结果,确定待核对的实际记账结果的核对结果。本申请实施例的账务数据核对方法,通过事先设定好的目标核对策略可以快速且准确的判断出核算系统的记账结果是否符合预期,提高了对核算系统的质量测试效率,并且可以支持日常所有记账结果的验证,不需要人工查询相关信息进行确认,从而节省了大量的人力成本,提高了测试人员的吞吐率。The above-mentioned at least one technical solution adopted in the embodiment of the present application can achieve the following beneficial effects: the account data verification method in the embodiment of the present application can be executed by the verification server, and the account data of the business party can be obtained first when performing account data verification Request flow and the corresponding actual accounting results to be checked; then determine the corresponding target checking strategy according to the accounting request flow; then generate the target accounting results according to the accounting request flow and target checking strategy of the business party; finally, according to the pending The checked actual bookkeeping result and the target bookkeeping result determine the checking result of the actual bookkeeping result to be checked. The accounting data checking method of the embodiment of the present application can quickly and accurately judge whether the accounting results of the accounting system meet expectations through the target checking strategy set in advance, which improves the quality testing efficiency of the accounting system and can support The verification of all daily accounting results does not require manual query of relevant information for confirmation, thus saving a lot of labor costs and improving the throughput of testers.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:
图1为本申请实施例中一种账务数据核对方法的流程示意图;FIG. 1 is a schematic flow diagram of a method for checking account data in an embodiment of the present application;
图2为本申请实施例中一种账务数据核对流程示意图;FIG. 2 is a schematic diagram of an accounting data checking process in an embodiment of the present application;
图3为本申请实施例中一种账务数据核对系统的系统架构图;FIG. 3 is a system architecture diagram of an accounting data checking system in an embodiment of the present application;
图4为本申请实施例中一种账务数据核对装置的结构示意图;FIG. 4 is a schematic structural diagram of an accounting data checking device in an embodiment of the present application;
图5为本申请实施例中一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及对应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by various embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.
为了便于对本申请各实施例的理解,提供了本申请的账务数据核对方法的一种实际应用场景,在现有的记账模式下,主要是采用基于业务核对维度和机构核对维度的复式记账,记账功能主要由核算系统来提供。具体地,当业务方存在记账需求时,会调用核算系统的记账接口,核算系统在通过记账接口接收到业务方的记账请求后会根据实际的记账策略生成记账结果,以此作为后续各类会计报表的基础数据。In order to facilitate the understanding of the various embodiments of the present application, a practical application scenario of the accounting data verification method of the present application is provided. In the existing bookkeeping mode, the double-entry bookkeeping based on the business verification dimension and the organization verification dimension is mainly adopted. The accounting function is mainly provided by the accounting system. Specifically, when the business party has an accounting requirement, it will call the accounting interface of the accounting system. After receiving the accounting request from the business party through the accounting interface, the accounting system will generate an accounting result according to the actual accounting strategy. This serves as the basic data for subsequent various accounting statements.
实际业务场景下,核算系统作为一个独立的系统,经常会随着业务方或者机构方的记账需求的变更等而不断迭代更新,因此对核算系统得到的记账结果的准确性校验就尤为重要。In actual business scenarios, the accounting system, as an independent system, is often iteratively updated with changes in the accounting needs of business parties or institutions, so it is particularly important to verify the accuracy of the accounting results obtained by the accounting system. important.
现有方式主要是人工对记账结果一一进行校验,然而该方式需要花费大量的人工成本,且效率低下。The existing method is mainly to manually verify the accounting results one by one. However, this method requires a lot of labor costs and is inefficient.
基于此,本申请实施例提供了一种账务数据核对方法,本申请实施例的账务数据核对方法可以由单独部署的核对服务器来执行,如前所述,本申请实施例的一种应用场景是对核算系统得到的记账结果进行准确性校验,因此该核对服务器可以看作是对核算系统进行质量测试的测试服务器,采用独立部署的核对服务器可以在最大程度上降低对核算系统的入侵性。Based on this, the embodiment of the present application provides a method for verifying account data. The method for verifying account data in the embodiment of the present application can be executed by a separately deployed verification server. As mentioned above, an application of the embodiment of the present application The scenario is to verify the accuracy of the accounting results obtained by the accounting system. Therefore, the verification server can be regarded as a test server for quality testing of the accounting system. Using an independently deployed verification server can minimize the impact on the accounting system. invasive.
当然除了可以独立部署该核对服务器,也可以将本申请实施例的账务数据核对程序直接部署在核算系统所在的服务器上,具体如何设置,本领域技术人员可根据实际需求灵活选择,在此不作具体限定。Of course, in addition to independently deploying the verification server, the accounting data verification program of the embodiment of the present application can also be directly deployed on the server where the accounting system is located. Specifically, those skilled in the art can choose flexibly according to actual needs, and no further details are given here. Specific limits.
如图1所示,提供了本申请实施例中一种账务数据核对方法的流程示意图,所述方法至少包括如下步骤S110至步骤S140:As shown in FIG. 1 , a schematic flowchart of a method for checking account data in the embodiment of the present application is provided, and the method includes at least the following steps S110 to S140:
步骤S110,获取业务方的记账请求流水和对应的待核对的实际记账结果。Step S110, obtaining the billing request flow of the business party and the corresponding actual billing results to be checked.
在进行账务数据核对时,可以先从核算系统中获取业务方的记账请求流水和该记账请求流水对应的实际记账结果,这里的记账请求流水可以看作是一条记账请求记录,业务方每发起一次记账请求,核算系统中就会对应生成一条记账请求流水,这里的业务方可以包含业务平台和机构方,记账请求流水中可以包含不同核对维度的原始记账信息,如业务信息、机构信息、记账金额等信息,这些信息可以看作是实际记账结果的信息来源。When checking the accounting data, you can first obtain the accounting request flow of the business party and the actual accounting results corresponding to the accounting request flow from the accounting system. The accounting request flow here can be regarded as an accounting request record , each time the business party initiates an accounting request, a corresponding accounting request stream will be generated in the accounting system. The business party here can include business platforms and institutional parties, and the accounting request stream can contain original accounting information of different verification dimensions , such as business information, organization information, accounting amount and other information, these information can be regarded as the information source of the actual accounting results.
上述获取到的记账请求流水可以是一条也可以是多条,在获取到记账请求流水后,也会对应的获取该记账请求流水所对应的实际记账结果,该实际记账结果就可以理解为是核算系统输出的记账结果,作为后续待核对的记账结果。The accounting request stream obtained above can be one or more. After the accounting request stream is obtained, the actual accounting result corresponding to the accounting request stream will also be obtained correspondingly. The actual accounting result is It can be understood as the accounting result output by the accounting system as the subsequent accounting result to be checked.
步骤S120,根据所述记账请求流水确定对应的目标核对策略。Step S120, determining a corresponding target verification strategy according to the billing request flow.
由于不同业务方的业务规则、记账规则等往往存在差异,因此对应的核对策略也会不同,因此本申请实施例在获取到业务方的记账请求流水后,需要根据记账请求流水进一步确定上述待核对的实际记账结果对应的目标核对策略。Since there are often differences in the business rules and accounting rules of different business parties, the corresponding verification strategies will also be different. Therefore, in the embodiment of this application, after obtaining the accounting request flow from the business party, it needs to be further determined according to the accounting request flow. The target verification strategy corresponding to the above actual accounting results to be verified.
步骤S130,根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果。Step S130, generating a target billing result according to the business party's billing request flow and the target verification strategy.
在确定出待核对的实际记账结果对应的目标核对策略后,需要根据业务方的记账请求流水和该目标核对策略,生成目标记账结果。这里需要说明的是,本申请实施例的目标核对策略所发挥的作用可以理解为是根据业务方的记账请求流水中所携带的各种原始记账信息,按照预先设定好的记账策略重新生成的一个新的记账结果,即目标记账结果,该目标记账结果将作为后续判断实际记账结果是否准确的依据。After determining the target verification strategy corresponding to the actual accounting result to be verified, it is necessary to generate the target accounting result according to the accounting request flow of the business party and the target verification strategy. What needs to be explained here is that the role of the target verification strategy in the embodiment of the present application can be understood as being based on the various original accounting information carried in the accounting request flow of the business party, according to the preset accounting strategy A new accounting result is regenerated, that is, the target accounting result, and the target accounting result will be used as a basis for subsequently judging whether the actual accounting result is accurate.
上述预先设定好的记账策略可以是事先根据不同业务方、不同机构方的实际记账原则和记账需求等抽取出的记账策略,该记账策略的本质虽然仍是生成记账结果,但不同于核算系统本身所采用的记账策略,因为核算系统本身所采用的记账策略目的是为了能够得到可以作为各类会计报表的基础数据的记账结果,对于数据的广度和细度要求显然更高。而本申请实施例的目标核对策略得到的记账结果最终目的并不是作为后续各类会计报表的基础数据,其主要是为了对核算系统得到的记账结果进行核对,测试核算系统的记账质量等,因此其生成记账结果的过程是相对简化的过程,只需要关注到重点核对的数据核对维度或者提取出简要的关键信息即可。The above pre-set bookkeeping strategy can be a bookkeeping strategy extracted in advance according to the actual bookkeeping principles and bookkeeping requirements of different business parties and different institutions. Although the essence of the bookkeeping strategy is still to generate bookkeeping results , but it is different from the bookkeeping strategy adopted by the accounting system itself, because the purpose of the bookkeeping strategy adopted by the accounting system itself is to obtain the bookkeeping results that can be used as the basic data of various accounting statements. The requirements are obviously higher. However, the final purpose of the bookkeeping results obtained by the target checking strategy in the embodiment of the present application is not to be used as the basic data of various subsequent accounting statements, but mainly to check the bookkeeping results obtained by the accounting system and test the bookkeeping quality of the accounting system etc., so the process of generating accounting results is a relatively simplified process, and only needs to pay attention to the key data verification dimensions or extract brief key information.
由于本申请实施例的目标核对策略可以涵盖不同业务类型的记账规则,对于后续的业务扩充,可以进一步进行对应的业务规则的快速补充,进而可以在测试过程中覆盖更全面的业务场景,提高测试阶段的覆盖率及精准性。Since the target verification strategy in the embodiment of the present application can cover accounting rules of different business types, for subsequent business expansion, the corresponding business rules can be further quickly supplemented, and more comprehensive business scenarios can be covered during the test process, improving Coverage and accuracy in the testing phase.
步骤S140,根据所述待核对的实际记账结果和所述目标记账结果,确定所述待核对的实际记账结果的核对结果。Step S140, according to the actual billing result to be verified and the target billing result, determine a verification result of the actual billing result to be verified.
目标记账结果可以理解为是在对原始的记账信息进行记账处理后,原本应该得到的准确的记账结果,因此目标记账结果可以作为判断实际记账结果是否准确的依据。基于此,本申请实施例在得到目标记账结果后,需要结合目标记账结果对待核对的实际记账结果进行核对,进而得到实际记账结果的核对结果。The target accounting result can be understood as the accurate accounting result that should have been obtained after the original accounting information is processed. Therefore, the target accounting result can be used as a basis for judging whether the actual accounting result is accurate. Based on this, in the embodiment of the present application, after the target accounting result is obtained, it is necessary to check the actual accounting result to be checked in combination with the target accounting result, and then obtain the checking result of the actual accounting result.
本申请实施例的账务数据核对方法,通过事先设定好的目标核对策略可以快速且准确的判断出核算系统的记账结果是否符合预期,提高了对核算系统的质量测试效率,并且可以支持日常所有记账结果的验证,不需要人工查询相关信息进行确认,从而节省了大量的人力成本,提高了测试人员的吞吐率。The accounting data checking method of the embodiment of the present application can quickly and accurately judge whether the accounting results of the accounting system meet expectations through the target checking strategy set in advance, which improves the quality testing efficiency of the accounting system and can support The verification of all daily accounting results does not require manual query of relevant information for confirmation, thus saving a lot of labor costs and improving the throughput of testers.
在本申请的一个实施例中,所述根据所述记账请求流水确定对应的目标核对策略包括:对所述记账请求流水进行参数解析,得到参数解析结果,其中所述参数解析结果包括多个记账请求参数,所述记账请求参数至少包括业务类型;根据所述业务类型确定所述记账请求流水对应的目标核对策略。In an embodiment of the present application, the determining the corresponding target verification strategy according to the accounting request flow includes: performing parameter analysis on the accounting request flow to obtain a parameter analysis result, wherein the parameter analysis result includes multiple Accounting request parameters, the accounting request parameters at least include a business type; according to the business type, determine the target verification strategy corresponding to the accounting request flow.
在根据记账请求流水确定对应的目标核对策略时,可以先对记账请求流水进行参数解析,这里的“参数解析”可以理解为是对记账请求流水中所包含的记账参数进行提取的过程,例如,通过对一条记账请求流水进行参数解析可以得到业务系统标识、机构信息、金额信息、流水号、日期等记账参数,其中业务系统标识即业务类型,表征了该条流水数据的业务来源,不同业务方的核对规则不同,因此这里可以先根据解析得到的业务类型确定对应的目标核对策略。When determining the corresponding target verification strategy based on the accounting request flow, you can first analyze the parameters of the accounting request flow. The "parameter analysis" here can be understood as extracting the accounting parameters contained in the accounting request flow. Process, for example, by parsing the parameters of an accounting request flow, you can get accounting parameters such as business system identification, organization information, amount information, serial number, date, etc., where the business system identification is the business type, which represents the nature of the flow data Business sources, different business parties have different verification rules, so here you can first determine the corresponding target verification strategy based on the analyzed business type.
在本申请的一个实施例中,所述目标核对策略中包括多个核对维度,所述根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果包括:将多个记账请求参数分别转换到所述目标核对策略的对应核对维度上,得到各个核对维度的记账信息;将各个核对维度的记账信息作为所述目标记账结果。In one embodiment of the present application, the target checking strategy includes a plurality of checking dimensions, and generating the target accounting result according to the accounting request flow of the business party and the target checking strategy includes: Accounting request parameters are respectively converted to the corresponding verification dimensions of the target verification strategy to obtain accounting information of each verification dimension; and the accounting information of each verification dimension is used as the target accounting result.
如前所述,参数解析结果是对记账请求流水中所携带的参数进行识别的结果,也即接收记账请求的接口中封装的具体参数,比如接口封装了要传递的参数A、B、C,那么这里得到参数解析结果就是参数A、B、C的具体值。As mentioned above, the parameter parsing result is the result of identifying the parameters carried in the accounting request flow water, that is, the specific parameters encapsulated in the interface that receives the accounting request. For example, the interface encapsulates the parameters A, B, C, then the parameter analysis result obtained here is the specific value of parameters A, B, and C.
因为该接口面向多个不同的业务方,不同业务方对应的核对规则不同,虽然传递的都是参数A、B、C,但往往解析得到的参数并不能直接用于核对,要根据业务规则进行转换适配,因此本申请实施例可以根据业务类型对应的目标核对策略,将这些参数转化到该目标核对策略下对应的核对维度上,比如业务01预设的核对维度为a、b,那么需要根据业务规则将参数A、B、C的值对应到核对维度a、b上,得到核对维度a、b的具体值,作为后续用于核对的记账信息。Because this interface is oriented to multiple different business parties, different business parties have different verification rules. Although parameters A, B, and C are passed, the parameters obtained through analysis cannot be directly used for verification. Transformation and adaptation, so the embodiment of this application can convert these parameters to the corresponding verification dimensions under the target verification strategy according to the target verification strategy corresponding to the business type. According to the business rules, the values of the parameters A, B, and C are mapped to the verification dimensions a and b, and the specific values of the verification dimensions a and b are obtained as accounting information for subsequent verification.
在本申请的一个实施例中,所述目标核对策略包括业务核对策略和会计属性核对策略,所述业务核对策略中包括业务属性、分录规则、账户特征以及金额类型中的一个或多个核对维度,所述会计属性核对策略包括记账方式、余额更新方式、账户借贷方向中的一个或多个核对维度。In one embodiment of the present application, the target verification strategy includes a business verification strategy and an accounting attribute verification strategy, and the business verification strategy includes one or more verifications of business attributes, entry rules, account characteristics, and amount types Dimensions, the accounting attribute verification strategy includes one or more verification dimensions in the bookkeeping method, balance update method, and account debit and credit direction.
实际应用场景下,业务方的记账信息主要涉及两大核对维度,一个是业务核对维度,一个是机构核对维度,也即不同业务类型的记账策略不同,而同一业务类型下的不同机构方的记账策略也可能不同。因此本申请实施例的目标核对策略就可以基于上述两大核对维度进一步划分为业务核对策略和会计属性核对策略。In the actual application scenario, the accounting information of the business party mainly involves two verification dimensions, one is the business verification dimension, and the other is the organization verification dimension, that is, different business types have different accounting strategies, and different institutional parties under the same business type Accounting policies may also be different. Therefore, the target verification strategy in the embodiment of the present application can be further divided into a business verification strategy and an accounting attribute verification strategy based on the above two verification dimensions.
在业务核对策略方面,具体可以划分为业务属性、分录规则、账户特征以及金额类型等子核对维度,而在会计属性核对策略方面,又具体可以划分为记账方式、余额更新方式、账户借贷方向等子核对维度。In terms of business verification strategies, it can be divided into sub-check dimensions such as business attributes, entry rules, account characteristics, and amount types. In terms of accounting attribute verification strategies, it can be divided into bookkeeping methods, balance update methods, and account lending. Direction and other sub-check dimensions.
举例说明,假设一条记账请求流水包含的记账参数如下表1所示:For example, assume that the accounting parameters contained in an accounting request flow are as shown in Table 1 below:
表1Table 1
在对上述记账请求流水进行解析后,可以得到上述各个记账参数的具体参数值,然后将这些各个记账参数的具体参数值分别对应到上述业务核对策略和会计属性核对策略所包含的具体子核对维度上,例如可以得到业务属性为01、账户特征为b1、分录规则为a1、账户借贷方向为借以及金额类型为借100等等。After parsing the above accounting request flow, the specific parameter values of the above accounting parameters can be obtained, and then the specific parameter values of these accounting parameters are respectively corresponding to the specific parameters contained in the above business verification strategy and accounting attribute verification strategy. In the sub-check dimension, for example, it can be obtained that the business attribute is 01, the account feature is b1, the entry rule is a1, the account debit and credit direction is debit, and the amount type is debit 100, etc.
在本申请的一个实施例中,所述实际记账结果和所述目标记账结果中均包括记账状态、记账凭证、记账账户、账户收支明细、账户余额变动、账户余额控制校验结果中的一个或多个核对维度的记账信息,且所述目标记账结果的核对维度集合是所述实际记账结果的核对维度集合的真子集。In one embodiment of the present application, both the actual bookkeeping result and the target bookkeeping result include bookkeeping status, bookkeeping vouchers, bookkeeping accounts, account revenue and expenditure details, account balance changes, and account balance control checks. accounting information of one or more verification dimensions in the verification result, and the verification dimension set of the target accounting result is a proper subset of the verification dimension set of the actual accounting result.
本申请实施例的实际记账结果和目标记账结果中可以包括记账状态、记账凭证、记账账户、账户收支明细、账户余额变动、账户余额控制校验结果中的一个或多个核对维度的记账信息,当然记账结果中具体包含哪些核对维度的信息是本领域技术人员可以根据实际需求灵活设置的,在此不一一列举。The actual accounting results and target accounting results in the embodiment of the present application may include one or more of accounting status, accounting vouchers, accounting accounts, account revenue and expenditure details, account balance changes, and account balance control verification results The accounting information of the verification dimension, of course, which information of the verification dimension is included in the accounting result can be flexibly set by those skilled in the art according to actual needs, and will not be listed here.
这些记账结果信息是基于上述业务核对策略和会计属性核对策略两个核对维度的记账信息进行组合得到的,例如可以将业务核对策略中的账户特征直接作为记账结果中的记账账户信息,将业务核对策略中的金额类型和会计属性核对策略中的账户借贷方向进行组合来确定记账结果中的账户收支明细和账户余额变动等信息。These bookkeeping result information is obtained based on the combination of the bookkeeping information in the two verification dimensions of the above-mentioned business verification strategy and accounting attribute verification strategy. For example, the account characteristics in the business verification strategy can be directly used as the bookkeeping account information in the bookkeeping results Combining the amount type in the business verification strategy and the account debit and credit direction in the accounting attribute verification strategy to determine the account revenue and expenditure details and account balance changes in the accounting results.
也就是说,记账结果中的信息可以仅基于业务核对策略中的具体记账信息来得到,也可以仅基于会计属性核对策略中的具体记账信息来得到,当然也可以将业务核对策略和会计属性核对策略的记账信息进行组合得到。That is to say, the information in the accounting result can be obtained only based on the specific accounting information in the business verification strategy, or can be obtained only based on the specific accounting information in the accounting attribute verification strategy. Of course, the business verification strategy and It is obtained by combining the accounting information of the accounting attribute checking strategy.
在本申请的一个实施例中,所述根据所述实际记账结果和所述目标记账结果,确定所述实际记账结果的核对结果包括:将所述实际记账结果中的各个核对维度的记账信息分别与所述目标记账结果中各个核对维度的记账信息进行比较;若所述实际记账结果中的各个核对维度的记账信息与所述目标记账结果中各个核对维度的记账信息均一致,则确定所述实际记账结果的核对结果为核对通过;若所述实际记账结果中的至少一个核对维度的记账信息与所述目标记账结果中对应核对维度的记账信息不一致,则确定所述实际记账结果的核对结果为核对未通过。In an embodiment of the present application, the determining the verification result of the actual billing result according to the actual billing result and the target billing result includes: combining each verification dimension in the actual billing result The accounting information of each verification dimension in the target accounting result is compared with the accounting information of each verification dimension in the target accounting result; if the accounting information of each verification dimension in the actual accounting result If the accounting information of the actual accounting results are consistent, it is determined that the verification result of the actual accounting results is verified; if the accounting information of at least one verification dimension in the actual accounting results is consistent with the corresponding verification dimension in the target accounting results If the accounting information is inconsistent, it is determined that the verification result of the actual accounting result is that the verification fails.
本申请实施例得到的核对结果有两种情况,即核对通过和核对未通过,这里可以采用key=value的形式来确定,具体比较的核对维度包括两个方面,一个是记账信息的核对维度(key),一个记账信息的值(value)。如果某一记账请求流水对应的实际记账结果中所包含的记账信息的核对维度key与目标记账结果中所包含的记账信息的核对维度key完全一致,并且各个核对维度的记账信息的值value也完全一致,那么可以确定该实际记账结果的核对结果为核对通过。如果记账请求流水对应的实际记账结果中所包含的记账信息的核对维度key与目标记账结果中所包含的记账信息的核对维度key不完全一致,或者记账信息的值value不完全一致,那么可以确定该实际记账结果的核对结果为核对未通过。The verification result obtained in the embodiment of the present application has two situations, that is, the verification is passed and the verification is not passed, which can be determined in the form of key=value. The specific comparison of the verification dimension includes two aspects, one is the verification dimension of the accounting information (key), a value (value) of accounting information. If the verification dimension key of the accounting information contained in the actual accounting result corresponding to a certain accounting request flow is exactly the same as the verification dimension key of the accounting information contained in the target accounting result, and the accounting information of each verification dimension The value value of the information is also completely consistent, so it can be determined that the verification result of the actual accounting result is verified. If the verification dimension key of the accounting information contained in the actual accounting result corresponding to the accounting request flow is not completely consistent with the verification dimension key of the accounting information contained in the target accounting result, or the value of the accounting information is not If they are completely consistent, then it can be determined that the verification result of the actual bookkeeping result is verification failure.
为了便于对核对结果的查看和管理,在得到核对结果后,可以将核对通过或者不通过的结果记录到数据库中,具体可以记录如下表2所示的信息:In order to facilitate the viewing and management of the verification results, after the verification results are obtained, the results of whether the verification is passed or failed can be recorded in the database. Specifically, the information shown in Table 2 below can be recorded:
表2Table 2
为了使相关人员及时了解并解决异常的记账情况,对于核对未通过的结果,还可以向相关人员发送告警信息如发送告警邮件或者告警短信等等。In order to make the relevant personnel understand and solve the abnormal accounting situation in a timely manner, for the result of the failed check, it can also send alarm information to the relevant personnel, such as sending alarm emails or alarm text messages, etc.
在本申请的一个实施例中,所述获取业务方的记账请求流水和实际记账结果包括:按照预设时间频率,获取所述业务方在预设时间段内的记账请求流水和对应的待核对的实际记账结果。In one embodiment of the present application, the acquiring the business party's billing request flow and actual billing results includes: obtaining the business party's billing request flow and corresponding The actual bookkeeping results to be verified.
由于本申请实施例的主要应用场景在于对核算系统的记账质量进行测试,对于核对的实时性要求相对不高,因此可以设置每隔一段时间进行一次记账结果的批量核对,例如可以每隔5分钟获取核算系统在前1小时内所产生的所有记账请求流水以及对应的实际记账结果。当然,具体如何设置上述获取频率,以及获取多长时间内的数据,本领域技术人员可以根据实际情况灵活设置,在此不作具体限定。Since the main application scenario of the embodiment of this application is to test the bookkeeping quality of the accounting system, the real-time requirements for checking are relatively low, so it can be set to perform batch checking of accounting results at regular intervals, for example, every It takes 5 minutes to obtain all accounting request records generated by the accounting system within the previous hour and the corresponding actual accounting results. Of course, those skilled in the art can flexibly set how to set the acquisition frequency and how long to acquire the data according to the actual situation, and there is no specific limitation here.
在本申请的一个实施例中,所述获取业务方的记账请求流水和待核对的实际记账结果包括:基于记账结果核对组件监听业务方的记账请求,所述记账结果核对组件封装在用于接收所述记账请求的记账接口中;根据所述业务方的记账请求获取对应的记账请求流水和待核对的实际记账结果。In one embodiment of the present application, the acquiring the business party's billing request flow and the actual billing result to be checked includes: monitoring the business party's billing request based on the billing result checking component, and the billing result checking component Encapsulated in the accounting interface for receiving the accounting request; obtain the corresponding accounting request flow and the actual accounting result to be checked according to the accounting request of the business party.
如果实际应用场景中存在对记账结果进行实时核对的需求,本申请实施例也可以满足这一需求。具体地,当业务方需要记账时,会调用核算系统的记账接口发起记账请求,因此本申请实施例可以在核算系统的记账接口的基础上,封装一层记账结果核对组件,然后通过记账结果核对组件对业务方的记账请求进行实时监听,一旦监听到业务方的记账请求后,就可以进一步地从核算系统中拉取该记账请求对应的记账请求流水和实际记账结果,从而实现实时核对的目的。If there is a requirement for real-time verification of accounting results in an actual application scenario, this embodiment of the present application can also meet this requirement. Specifically, when the business party needs to keep accounts, it will call the accounting interface of the accounting system to initiate an accounting request. Therefore, this embodiment of the application can encapsulate a layer of accounting result checking components on the basis of the accounting interface of the accounting system. Then, the billing request of the business party is monitored in real time through the billing result checking component. Once the billing request of the business party is monitored, the billing request flow and the billing request corresponding to the billing request can be further pulled from the accounting system Actual accounting results, so as to achieve the purpose of real-time verification.
在本申请的一个实施例中,所述方法还包括:提供前端页面;将所述待核对的实际记账结果的核对结果在所述前端页面上进行展示。In an embodiment of the present application, the method further includes: providing a front-end page; and displaying the checking result of the actual accounting result to be checked on the front-end page.
为了提供数据的可视化功能,本申请实施例还提供了前端页面,在该前端页面上,可以将对实际记账结果的核对情况进行展示,以便于用户及时了解到核对进展和核对结果,提高用户体验。In order to provide the visualization function of the data, the embodiment of the present application also provides a front-end page, on which the verification status of the actual accounting results can be displayed, so that the user can know the verification progress and verification results in time, and improve user experience.
当然,上述前端页面还可以用于实现用户的操作,例如用户可以在前端页面上发起记账结果的核对请求,具体地,可以选择或输入某一时间或某一段时间内的记账请求流水对应的实际记账结果,然后再触发后续的自动核对流程。Of course, the above-mentioned front-end page can also be used to implement user operations. For example, the user can initiate a verification request for accounting results on the front-end page. The actual accounting results, and then trigger the subsequent automatic verification process.
如图2所示,提供了本申请实施例中一种账务数据核对流程示意图,针对业务方发起的记账请求,核算系统中会记录对应的记账请求流水,并生成实际记账结果。As shown in Figure 2, a schematic diagram of an accounting data verification process in the embodiment of this application is provided. For the accounting request initiated by the business party, the accounting system will record the corresponding accounting request flow and generate the actual accounting result.
基于此,本申请实施例在进行账务数据核对时,先从核算系统中定时拉取一段时间内的记账请求流水及对应的实际记账结果,然后遍历每一条记账请求流水,判断每条记账请求流水对应的业务类型,然后根据业务类型分别确定对应的目标核对策略,包括业务核对策略和会计属性核对策略,根据该目标核对策略结合记账请求流水中的记账信息,可以生成目标记账结果,将该目标记账结果与实际记账结果进行比对,进而可以得到实际记账结果的核对结果,最后可以将核对结果存储到数据库中,并针对其中核对未通过的结果向相关人员发送告警信息,由此完成账务数据的自动化核对流程。Based on this, when checking the accounting data in the embodiment of the present application, the accounting request flow and the corresponding actual accounting results are regularly pulled from the accounting system for a period of time, and then each accounting request flow is traversed to determine the number of each accounting request. Enter the business type corresponding to the bookkeeping request flow, and then determine the corresponding target verification strategy according to the business type, including the business verification strategy and the accounting attribute verification strategy. According to the target verification strategy combined with the accounting information in the bookkeeping request flow, you can generate The target bookkeeping result, compare the target bookkeeping result with the actual bookkeeping result, and then get the check result of the actual bookkeeping result, and finally store the check result in the database, and report the failed result to the Relevant personnel send alarm information, thereby completing the automatic verification process of accounting data.
如图3所示,提供了本申请实施例中一种账务数据核对系统的系统架构图,主要包括四大模块:数据拉取模块、参数解析模块、目标记账结果生成模块和核对模块。其中数据拉取模块主要用于拉取记账请求流水和实际记账结果等账务数据,记账请求流水中包含两类流水,一类是针对记账请求的流水,一类是针对冲正请求的流水,实际记账结果中主要包括记账状态、记账凭证、记账账户、账户收支明细、账户余额变动等记账信息。As shown in FIG. 3 , a system architecture diagram of an accounting data verification system in the embodiment of the present application is provided, which mainly includes four modules: a data pulling module, a parameter analysis module, a target accounting result generation module and a verification module. Among them, the data pull module is mainly used to pull accounting data such as accounting request flow and actual accounting results. There are two types of flow in the accounting request flow, one is for the flow of accounting requests, and the other is for reversal The requested flow, the actual bookkeeping results mainly include bookkeeping status, bookkeeping vouchers, bookkeeping accounts, account revenue and expenditure details, account balance changes and other bookkeeping information.
参数解析模块主要用于对记账请求流水中的各个核对维度的参数进行提取,并分别归类到业务核对策略和会计属性核对策略的核对维度下,其中业务核对策略中主要包括业务属性、分录规则、账户特征以及金额类型中的一个或多个核对维度,会计属性核对策略中主要包括记账方式、余额更新方式、账户借贷方向中的一个或多个核对维度。The parameter parsing module is mainly used to extract the parameters of each check dimension in the bookkeeping request flow, and classify them into the check dimensions of the business check strategy and the accounting attribute check strategy. The business check strategy mainly includes business attributes, Accounting rules, account characteristics, and one or more check dimensions in the type of amount. The accounting attribute check strategy mainly includes one or more check dimensions in the bookkeeping method, balance update method, and account debit and credit direction.
目标记账结果生成模块主要用于将上述参数解析模块解析得到的记账参数转换为业务核对策略核对维度和会计属性核对策略核对维度的记账信息,并以此生成目标记账结果,其中目标记账结果主要包括记账状态、记账凭证、记账账户、账户收支明细、账户余额变动等记账信息。The target accounting result generation module is mainly used to convert the accounting parameters analyzed by the above parameter analysis module into the accounting information of the business verification strategy verification dimension and the accounting attribute verification strategy verification dimension, and thereby generate the target accounting results, where the target The bookkeeping results mainly include bookkeeping status, bookkeeping vouchers, bookkeeping accounts, account revenue and expenditure details, account balance changes and other bookkeeping information.
核对模块主要用于将上述得到的目标记账结果与实际记账结果进行比较,确定实际记账结果的准确性,将核对结果存储到数据库中,并针对核对未通过的结果发出告警信息。The verification module is mainly used to compare the target accounting results obtained above with the actual accounting results, determine the accuracy of the actual accounting results, store the verification results in the database, and issue alarm information for the results that fail the verification.
本申请实施例还提供了一种账务数据核对装置400,应用于核对服务器,如图4所示,提供了本申请实施例中一种账务数据核对装置的结构示意图,所述装置400包括:获取单元410、确定单元420、生成单元430和核对单元440,其中:The embodiment of the present application also provides an accounting
获取单元410,用于获取业务方的记账请求流水和对应的待核对的实际记账结果;An
确定单元420,用于根据所述记账请求流水确定对应的目标核对策略;A
生成单元430,用于根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果;A generating
核对单元440,用于根据所述待核对的实际记账结果和所述目标记账结果,确定所述待核对的实际记账结果的核对结果。The
在本申请的一个实施例中,所述生成单元430具体用于:对所述记账请求流水进行参数解析,得到参数解析结果,其中所述参数解析结果包括多个记账请求参数,所述记账请求参数至少包括业务类型;根据所述业务类型确定所述记账请求流水对应的目标核对策略。In an embodiment of the present application, the generating
在本申请的一个实施例中,所述目标核对策略中包括多个核对维度,所述生成单元430具体用于:将多个记账请求参数分别转换到所述目标核对策略的对应核对维度上,得到各个核对维度的记账信息;将各个核对维度的记账信息作为所述目标记账结果。In an embodiment of the present application, the target verification strategy includes multiple verification dimensions, and the
在本申请的一个实施例中,所述目标核对策略包括业务核对策略和会计属性核对策略,所述业务核对策略中包括业务属性、分录规则、账户特征以及金额类型中的一个或多个核对维度,所述会计属性核对策略包括记账方式、余额更新方式、账户借贷方向中的一个或多个核对维度。In one embodiment of the present application, the target verification strategy includes a business verification strategy and an accounting attribute verification strategy, and the business verification strategy includes one or more verifications of business attributes, entry rules, account characteristics, and amount types Dimensions, the accounting attribute verification strategy includes one or more verification dimensions in the bookkeeping method, balance update method, and account debit and credit direction.
在本申请的一个实施例中,所述实际记账结果和所述目标记账结果中均包括记账状态、记账凭证、记账账户、账户收支明细、账户余额变动、账户余额控制校验结果中的一个或多个核对维度的记账信息,且所述目标记账结果的核对维度集合是所述实际记账结果的核对维度集合的真子集。In one embodiment of the present application, both the actual bookkeeping result and the target bookkeeping result include bookkeeping status, bookkeeping vouchers, bookkeeping accounts, account revenue and expenditure details, account balance changes, and account balance control checks. accounting information of one or more verification dimensions in the verification result, and the verification dimension set of the target accounting result is a proper subset of the verification dimension set of the actual accounting result.
在本申请的一个实施例中,所述核对单元440具体用于:将所述实际记账结果中的各个核对维度的记账信息分别与所述目标记账结果中各个核对维度的记账信息进行比较;若所述实际记账结果中的各个核对维度的记账信息与所述目标记账结果中各个核对维度的记账信息均一致,则确定所述实际记账结果的核对结果为核对通过;若所述实际记账结果中的至少一个核对维度的记账信息与所述目标记账结果中对应核对维度的记账信息不一致,则确定所述实际记账结果的核对结果为核对未通过。In one embodiment of the present application, the
在本申请的一个实施例中,所述获取单元410具体用于:按照预设时间频率,获取所述业务方在预设时间段内的记账请求流水和对应的待核对的实际记账结果。In one embodiment of the present application, the acquiring
在本申请的一个实施例中,所述获取单元410具体用于:基于记账结果核对组件监听业务方的记账请求,所述记账结果核对组件封装在用于接收所述记账请求的记账接口中;根据所述业务方的记账请求获取对应的记账请求流水和待核对的实际记账结果。In one embodiment of the present application, the
在本申请的一个实施例中,所述装置还包括:展示单元,用于将所述待核对的实际记账结果的核对结果在所述前端页面上进行展示。In an embodiment of the present application, the device further includes: a display unit, configured to display the verification result of the actual billing result to be verified on the front-end page.
能够理解,上述账务数据核对装置,能够实现前述实施例中提供的由核对服务器执行的账务数据核对方法的各个步骤,关于账务数据核对方法的相关阐释均适用于账务数据核对装置,此处不再赘述。It can be understood that the above-mentioned accounting data checking device can realize each step of the accounting data checking method performed by the checking server provided in the foregoing embodiments, and relevant explanations about the accounting data checking method are applicable to the accounting data checking device. I won't repeat them here.
图5是本申请的一个实施例电子设备的结构示意图。请参考图5,在硬件层面,该电子设备包括处理器,可选地还包括内部总线、网络接口、存储器。其中,存储器可能包含内存,例如高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器等。当然,该电子设备还可能包括其他业务所需要的硬件。Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Please refer to FIG. 5 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Wherein, the memory may include a memory, such as a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic device may also include hardware required by other services.
处理器、网络接口和存储器可以通过内部总线相互连接,该内部总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(PeripheralComponent Interconnect,外设部件互连标准)总线或EISA(Extended Industry StandardArchitecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The processor, the network interface and the memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus or an EISA (Extended Industry StandardArchitecture, extended industry standard architecture) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one double-headed arrow is used in FIG. 5 , but it does not mean that there is only one bus or one type of bus.
存储器,用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括内存和非易失性存储器,并向处理器提供指令和数据。Memory for storing programs. Specifically, the program may include program code, and the program code includes computer operation instructions. Storage, which can include internal memory and nonvolatile storage, provides instructions and data to the processor.
处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成账务数据核对装置。处理器,执行存储器所存放的程序,并具体用于执行以下操作:The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an accounting data checking device on a logical level. The processor executes the program stored in the memory, and is specifically used to perform the following operations:
获取业务方的记账请求流水和对应的待核对的实际记账结果;Obtain the accounting request flow of the business party and the corresponding actual accounting results to be checked;
根据所述记账请求流水确定对应的目标核对策略;Determine the corresponding target verification strategy according to the accounting request flow;
根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果;Generate a target accounting result according to the accounting request flow of the business party and the target checking strategy;
根据所述待核对的实际记账结果和所述目标记账结果,确定所述待核对的实际记账结果的核对结果。According to the actual accounting result to be checked and the target accounting result, a checking result of the actual accounting result to be checked is determined.
上述如本申请图1所示实施例揭示的账务数据核对装置执行的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The method performed by the accounting data verification device disclosed in the above embodiment shown in FIG. 1 of the present application may be applied to or implemented by a processor. A processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. Above-mentioned processor can be general-purpose processor, comprises central processing unit (Central Processing Unit, CPU), network processor (Network Processor, NP) etc.; It can also be digital signal processor (Digital Signal Processor, DSP), ASIC (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
该电子设备还可执行图1中账务数据核对装置执行的方法,并实现账务数据核对装置在图1所示实施例的功能,本申请实施例在此不再赘述。The electronic device can also execute the method performed by the accounting data checking device in FIG. 1 , and realize the functions of the accounting data checking device in the embodiment shown in FIG. 1 , which will not be repeated in this embodiment of the present application.
本申请实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的电子设备执行时,能够使该电子设备执行图1所示实施例中账务数据核对装置执行的方法,并具体用于执行:The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and the one or more programs include instructions, and when the instructions are executed by an electronic device including a plurality of application programs , the electronic device can be made to execute the method performed by the account data checking device in the embodiment shown in Figure 1, and specifically used to execute:
获取业务方的记账请求流水和对应的待核对的实际记账结果;Obtain the accounting request flow of the business party and the corresponding actual accounting results to be checked;
根据所述记账请求流水确定对应的目标核对策略;Determine the corresponding target verification strategy according to the accounting request flow;
根据所述业务方的记账请求流水和所述目标核对策略,生成目标记账结果;Generate a target accounting result according to the accounting request flow of the business party and the target checking strategy;
根据所述待核对的实际记账结果和所述目标记账结果,确定所述待核对的实际记账结果的核对结果。According to the actual accounting result to be checked and the target accounting result, a checking result of the actual accounting result to be checked is determined.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may occur in this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111521787.2A CN116266328A (en) | 2021-12-13 | 2021-12-13 | Account data checking method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111521787.2A CN116266328A (en) | 2021-12-13 | 2021-12-13 | Account data checking method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116266328A true CN116266328A (en) | 2023-06-20 |
Family
ID=86742741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111521787.2A Pending CN116266328A (en) | 2021-12-13 | 2021-12-13 | Account data checking method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116266328A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117745459A (en) * | 2024-02-20 | 2024-03-22 | 联动优势电子商务有限公司 | Flexible accounting method based on entry configuration |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112258306A (en) * | 2020-09-28 | 2021-01-22 | 建信金融科技有限责任公司 | Accounting information checking method and device, electronic equipment and storage medium |
CN112561672A (en) * | 2020-12-04 | 2021-03-26 | 京东数字科技控股股份有限公司 | Accounting data processing system, method, device, equipment and computer readable medium |
CN113032147A (en) * | 2021-03-24 | 2021-06-25 | 中国建设银行股份有限公司 | Accounting processing method, system, device and storage medium for accounting data |
-
2021
- 2021-12-13 CN CN202111521787.2A patent/CN116266328A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112258306A (en) * | 2020-09-28 | 2021-01-22 | 建信金融科技有限责任公司 | Accounting information checking method and device, electronic equipment and storage medium |
CN112561672A (en) * | 2020-12-04 | 2021-03-26 | 京东数字科技控股股份有限公司 | Accounting data processing system, method, device, equipment and computer readable medium |
CN113032147A (en) * | 2021-03-24 | 2021-06-25 | 中国建设银行股份有限公司 | Accounting processing method, system, device and storage medium for accounting data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117745459A (en) * | 2024-02-20 | 2024-03-22 | 联动优势电子商务有限公司 | Flexible accounting method based on entry configuration |
CN117745459B (en) * | 2024-02-20 | 2024-05-07 | 联动优势电子商务有限公司 | Flexible accounting method based on entry configuration |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614324B (en) | A test case generation method and device | |
US10698795B2 (en) | Virtual payments environment | |
CN110457294B (en) | Data processing method and device | |
CN110399303B (en) | Method for preparing test data, data preparation device and electronic equipment | |
WO2020088098A1 (en) | Block chain-based quality data processing method and apparatus | |
CN112488652A (en) | Work order auditing method, system, terminal and storage medium | |
CN110309022B (en) | Method, simulator, device and storage medium for simulating transaction test | |
WO2019052221A1 (en) | Insurance data checking method and apparatus, computer device, and readable storage medium | |
CN111915316A (en) | A method, device, computer equipment and storage medium for monitoring suspicious transactions | |
US12200017B2 (en) | Techniques for automated capture and reporting of user-verification metric data | |
WO2019192092A1 (en) | Data processing method and apparatus, terminal device, and storage medium | |
WO2017092599A1 (en) | Method and apparatus for detecting abnormal inventory data, and electronic device | |
US12079182B2 (en) | Systems and methods for data verification | |
CN116266328A (en) | Account data checking method and device and electronic equipment | |
CN111932255B (en) | Method and device for realizing transaction reconciliation based on encrypted currency | |
CN116029843A (en) | A financial reimbursement method, device and electronic equipment | |
CN116909844A (en) | Resource interaction information early warning method and device, computer equipment and storage medium | |
CN113568838B (en) | Test data generation method, device, equipment, storage medium and program product | |
CN112767166B (en) | Risk control method and device for transaction behaviors, computer equipment and storage medium | |
CN115983995A (en) | Transaction service supervision method, device, equipment and storage medium | |
CN114048123A (en) | Method and device for auditing terminal authentication report | |
CN114416559A (en) | Test methods, apparatus, equipment, media and program products | |
CN114240593A (en) | Data reconciliation method, apparatus, device, medium, and program product | |
CN117827644B (en) | Automated testing method and automated testing device | |
WO2022199387A1 (en) | File processing method and system, and computer device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |