Reconciliation method and device, equipment and storage medium

By receiving the reconciliation request and determining the business scenario based on the request identification, configuring the rule template and execution sequence, and processing the reconciliation data, it solves the problem that the existing reconciliation solution cannot meet the diverse business scenarios, and achieves flexible and accurate reconciliation. result.

CN118537152APending Publication Date: 2024-08-23CHINA MERCHANTS BANK
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410738797.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The fixed characteristics of existing reconciliation solutions cannot meet the needs of diverse business scenarios, resulting in the inability to flexibly adapt to the collection scenarios of different enterprises.

Method used

By receiving the reconciliation request, the data set is extracted, the target business scenario is determined based on the request identification, the corresponding rule template and rule execution sequence are configured, the data set is reconciled, and the reconciliation result is generated.

Benefits of technology

The flexibility of the reconciliation scheme is achieved, and appropriate rules can be selected to perform reconciliation tasks according to different business scenarios to meet diverse reconciliation needs and improve the flexibility and accuracy of reconciliation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537152A
    Figure CN118537152A
Patent Text Reader

Abstract

The invention discloses an account checking method and device, equipment and a storage medium, and relates to the technical field of data processing, and the account checking method comprises the steps: receiving an account checking request, and extracting a first data set and a second data set carried in the account checking request; identifying a request identifier of the account checking request, and determining a target service scene based on the request identifier; determining a target rule template based on the target business scene; wherein the target rule template comprises at least one target rule; and performing account checking on the first data set and the second data set through the at least one target rule to obtain an account checking result. The account checking task can be executed by selecting the corresponding rule in combination with the service scene, the problem that the account checking scheme is fixed is solved, and account checking requirements of different service scenes can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a reconciliation method, device, equipment and storage medium. Background Art

[0002] Corporate collection plays a vital role in business operations. Today, technology has emerged with a series of online reconciliation systems and tools that focus on corporate collection scenarios.

[0003] However, current reconciliation solutions are usually fixed and cannot meet the needs of diverse business scenarios. Summary of the invention

[0004] The main purpose of this application is to provide a reconciliation method, device, equipment and storage medium, aiming to solve the technical problem that the existing fixed reconciliation solutions cannot meet the needs of diversified business scenarios.

[0005] To achieve the above purpose, the present application provides a reconciliation method, which includes:

[0006] receiving a reconciliation request, and extracting a first data set and a second data set carried in the reconciliation request;

[0007] Identifying a request identifier of the reconciliation request, and determining a target business scenario based on the request identifier;

[0008] Determine a target rule template based on the target business scenario; wherein the target rule template includes at least one target rule;

[0009] The first data set and the second data set are reconciled according to the at least one target rule to obtain a reconciliation result.

[0010] In one embodiment, the target rule template further includes an execution order of the at least one target rule; and the step of reconciling the first data set and the second data set by using the at least one target rule to obtain a reconciliation result includes:

[0011] Based on the execution order, each of the target rules is called in sequence to reconcile the first data set and the second data set to obtain the reconciliation result.

[0012] In one embodiment, the step of calling each of the target rules in sequence to reconcile the first data set and the second data set based on the execution order to obtain the reconciliation result includes:

[0013] In accordance with the execution order, calling each of the target rules in turn;

[0014] When executing any of the target rules, at least one target field value contained in the data set to be processed is extracted based on the target field indicated by the target rule, and the data set to be processed is processed according to the at least one target field value and a preset processing algorithm corresponding to the target rule to obtain a calculation result; wherein the data set to be processed includes at least the first data set and / or the second data set;

[0015] When the calculation result of any of the target rules does not satisfy the preset first condition, outputting a reconciliation result including a reconciliation failure prompt message;

[0016] When the last target rule is executed and the calculation result output by the last target rule meets the preset first condition, a reconciliation result including a prompt message of successful reconciliation is output.

[0017] In one embodiment, the at least one target rule includes at least one of a filtering rule and a matching rule, and the step of extracting at least one target field value contained in the data set to be processed based on the target field indicated by the target rule, and processing the data set to be processed according to the at least one target field value and a preset processing algorithm corresponding to the target rule to obtain a calculation result includes:

[0018] If the target rule is a filtering rule and the data set to be processed indicated by the target rule is the first data set / the second data set, then extracting the target field value in the first data set / the second data set based on the target field defined by the filtering rule, and processing the first data set / the second data set according to a preset processing algorithm corresponding to the filtering rule to obtain the calculation result;

[0019] If the target rule is a matching rule and the data set to be processed indicated by the target rule includes the first data set and the second data set, extracting a first target field value in the first data set based on a first target field defined by the matching rule, and extracting a second target field value in the second data set based on a second target field defined by the matching rule;

[0020] The first target field value and the second target field value are matched according to a preset processing algorithm corresponding to the matching rule to obtain the calculation result.

[0021] In one embodiment, the step of processing the to-be-processed data set according to the preset processing algorithm corresponding to the at least one target field value and the target rule to obtain a calculation result includes:

[0022] Invoking a preset field processing strategy corresponding to the target field to process the at least one target field value to obtain at least one processed target field value;

[0023] The to-be-processed data set is processed according to the processed at least one target field value and a preset processing algorithm corresponding to the target rule to obtain a calculation result.

[0024] In one embodiment, the preset field processing strategy includes at least one of field truncation, character replacement, string mapping, and database query; the step of calling the preset field processing strategy corresponding to the target field to process the at least one target field value includes:

[0025] When the preset field processing strategy includes field truncation, truncation is performed on the characters in the target field value that meets the preset second condition based on the preset maximum character length;

[0026] When the preset field processing strategy includes character replacement, replacing specific characters in the at least one target field value with target characters;

[0027] When the preset field processing strategy includes string mapping, converting the target field value into a string corresponding to the target field value mapped in a preset character mapping table;

[0028] When the preset field processing strategy includes database query, it is identified whether any two target field values ​​among the at least one target field value have an association relationship in the preset database, and the two target field values ​​that have an association relationship are associated with each other.

[0029] In one embodiment, before the step of determining a target rule template based on the target business scenario, the step further includes:

[0030] Acquire rule configuration information for the target business scenario input by the target object through an interactive interface, and generate the target rule template based on the rule configuration information;

[0031] Construct and store an association relationship between the target rule template and the target business scenario.

[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a reconciliation device, the reconciliation device comprising:

[0033] A data set extraction module, configured to receive a reconciliation request and extract a first data set and a second data set carried in the reconciliation request;

[0034] A scenario identification module, used to identify a request identifier of the reconciliation request and determine a target business scenario based on the request identifier;

[0035] A rule determination module, configured to determine a target rule template based on the target business scenario; wherein the target rule template includes at least one target rule;

[0036] A reconciliation module is used to reconcile the first data set and the second data set according to the at least one target rule to obtain a reconciliation result.

[0037] In addition, to achieve the above-mentioned purpose, the present application also provides a reconciliation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the reconciliation method as described above.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a program for implementing the reconciliation method is stored on the computer-readable storage medium. The program for implementing the reconciliation method is executed by a processor to implement the steps of the reconciliation method as described above.

[0039] The reconciliation method, device, equipment and storage medium provided by the present application receive a reconciliation request, extract the first data set and the second data set carried in the reconciliation request; identify the request identifier of the reconciliation request, and determine the target business scenario based on the request identifier; determine the target rule template based on the target business scenario; wherein the target rule template includes at least one target rule; reconcile the first data set and the second data set through at least one target rule to obtain a reconciliation result. The present application can select corresponding rules in combination with business scenarios to perform reconciliation tasks, solve the problem of fixed reconciliation schemes, and meet the reconciliation needs of different business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 A flowchart of the first embodiment of the reconciliation method of the present application is provided;

[0043] Figure 2 A flowchart of the second embodiment of the reconciliation method of the present application is provided;

[0044] Figure 3 This is a schematic diagram of the rule configuration interface involved in the reconciliation method of this application;

[0045] Figure 4This is a schematic diagram of the module structure of the account reconciliation device according to an embodiment of the present application;

[0046] Figure 5 It is a structural diagram of the hardware environment involved in the reconciliation method in the embodiment of the present application.

[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0050] The main solution of the present application is: receiving a reconciliation request, extracting a first data set and a second data set carried in the reconciliation request; identifying a request identifier of the reconciliation request, and determining a target business scenario based on the request identifier; determining a target rule template based on the target business scenario; wherein the target rule template includes at least one target rule; reconciling the first data set and the second data set through at least one target rule to obtain a reconciliation result.

[0051] At present, fixed rules are usually used to perform reconciliation tasks, which are applicable to relatively single business scenarios and cannot meet the needs of diverse business scenarios.

[0052] This application configures rule templates corresponding to different business scenarios, so that the corresponding rules can be selected according to the business scenarios to perform reconciliation tasks, which solves the problem of fixed reconciliation schemes and can meet the reconciliation needs of different business scenarios.

[0053] It should be noted that the execution subject of this embodiment may be a reconciliation device, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a reconciliation device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the reconciliation device as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0054] Based on this, this application proposes a reconciliation method of the first embodiment, please refer to Figure 1 The reconciliation method of this embodiment includes steps S10 to S40:

[0055] Step S10: receiving a reconciliation request, and extracting a first data set and a second data set carried in the reconciliation request.

[0056] In this embodiment, the first data set and the second data set are two data sets to be reconciled. For example, the first data set may be multiple data associated with one or more transfers, including the transfer code, transfer amount, payer name, etc. corresponding to each transfer. The second data set may be multiple data associated with one or more orders, including the customer name, order number, order payment amount, etc. corresponding to each order.

[0057] Specifically, the reconciliation request may be triggered by the target object (i.e., the user who pre-requests reconciliation) clicking a pre-reconciliation control in the interactive interface, and the pre-reconciliation control may be a button or other control. Alternatively, the reconciliation request may also be generated after detecting that the automatic reconciliation of the first data set and the second data set fails.

[0058] In an exemplary scenario, the reconciliation device can perform automatic reconciliation upon receiving an automatic reconciliation request for the first data set and the second data set, and trigger a pre-reconciliation event after detecting that the automatic reconciliation fails, generating a reconciliation request. After detecting the reconciliation request, the reconciliation device executes the reconciliation method of this embodiment and enters the pre-reconciliation process. It is understandable that due to the uncertainty of the transfer behavior of the payee and the limitations of the traditional automatic reconciliation method and sequence, the existing fixed automatic reconciliation scheme will still have some matching data that requires financial personnel to manually confirm based on the transfer information and order information, and there will be a situation where the automatic reconciliation fails.

[0059] Step S20, identifying the request identifier of the reconciliation request, and determining the target business scenario based on the request identifier.

[0060] Specifically, the reconciliation device can extract the request identifier in the reconciliation request, and based on the request identifier, select the business scenario corresponding to the request identifier from multiple pre-configured business scenarios as the target business scenario. Among them, the reconciliation device can be pre-configured with multiple business scenarios, and the business scenarios can include supplier reconciliation, bank reconciliation, inventory reconciliation, cross-border settlement reconciliation and other types, and different users can personalize specific business scenarios for the same type. For example, for the business scenario type of inventory reconciliation, merchant A can be configured as inventory reconciliation 1, merchant B can be configured as inventory reconciliation 2, and the reconciliation processing rules involved in inventory reconciliation 1 and inventory reconciliation 2 can be different.

[0061] Step S30, determining a target rule template based on the target business scenario; wherein the target rule template includes at least one target rule.

[0062] In the present embodiment, the reconciliation device is pre-set with the correspondence between each business scenario and each rule template, for example, business scenario 1 corresponds to rule template 1, and business scenario 2 corresponds to rule template 2. The reconciliation device can read the correspondence between the business scenario identifier and the rule template identifier from the storage module based on the identifier of the target business scenario, and based on the correspondence, select the rule template identifier corresponding to the target business scenario identifier, obtain the target rule template identifier, and determine the target rule template through the target rule template identifier.

[0063] Specifically, the reconciliation device pre-stores configuration information of each rule template, and the configuration information may include each rule defined by the rule template, and the rule may be a filtering rule, a matching rule, or other data processing rule. In the case where the rule template contains multiple rules (greater than or equal to two rules), the rule template may also include the execution order of multiple rules. Among them, the configuration information of each rule template can be set according to actual needs, and each reconciliation requester can set and save the rule templates used in different business scenarios according to actual needs, so that the appropriate rule template can be selected based on the business scenario in actual application, so as to meet the needs of different users and the needs of each user for different types of business scenarios.

[0064] Step S40: reconcile the first data set and the second data set according to at least one target rule to obtain a reconciliation result.

[0065] Specifically, the target rule template may further include an execution order of at least one target rule, and the above step S40 may include: based on the execution order, calling each target rule in sequence to reconcile the first data set and the second data set to obtain an execution result.

[0066] In this embodiment, the target rule template may also include an execution order of at least one target rule, and the execution order of different target rules may be the same or different. For example, target rule 2 and target rule 3 may be set to be executed after target rule 1 is executed.

[0067] More specifically, the target rule may include a business logic condition and at least one operation associated with the business logic condition. The business logic condition may include a judgment object, a comparison operator, and a target value. For example, if x>3, x is the judgment object, > is the comparison operator, and 3 is the target value of x. The operation is the execution action corresponding to the judgment result of the condition node. For example, when the business logic condition is x>3, the next target rule is executed, otherwise the process is exited.

[0068] Through the above scheme, this embodiment receives a reconciliation request, extracts the first data set and the second data set carried in the reconciliation request; identifies the request identifier of the reconciliation request, and determines the target business scenario based on the request identifier; determines the target rule template based on the target business scenario; wherein the target rule template includes at least one target rule; reconciles the first data set and the second data set through at least one target rule to obtain a reconciliation result. This embodiment can select the corresponding rule to execute the reconciliation task in combination with the business scenario, solves the problem of fixed reconciliation schemes, and can meet the reconciliation needs of different business scenarios.

[0069] Based on the above implementation scheme, in a feasible implementation scheme, the above step S40 may include steps S401 to S404:

[0070] Step S401: Call each target rule in turn according to the execution order:.

[0071] Specifically, the execution order is the execution order of at least one target rule defined by the target rule template. After obtaining the target rule template, the reconciliation device can call each target rule in sequence to perform reconciliation processing on the first data set and the second data set based on the execution order of at least one target rule.

[0072] Step S402: When executing any target rule, extract at least one target field value in the to-be-processed data set based on the target field indicated by the target rule, and process the to-be-processed data set according to the preset processing algorithm corresponding to the at least one target field value and the target rule to obtain a calculation result. The to-be-processed data set includes at least the first data set and / or the second data set.

[0073] Specifically, at least one target rule may include any one of a filtering rule and a matching rule, and the above step S402 may include: if the target rule is a filtering rule and the data set to be processed indicated by the target rule is the first data set / the second data set, then based on the target field defined by the filtering rule, the target field value in the first data set / the second data set is extracted, and the first data set / the second data set is processed according to the preset processing algorithm corresponding to the filtering rule to obtain a calculation result; if the target rule is a matching rule and the data set to be processed indicated by the target rule includes the first data set and the second data set, then based on the first target field defined by the matching rule, the first target field value in the first data set is extracted, and based on the second target field defined by the matching rule, the second target field value in the second data set is extracted; and the first target field value and the second target field value are matched according to the preset processing algorithm corresponding to the matching rule to obtain a calculation result.

[0074] It should be noted that filtering rules refer to rules or conditions used to filter or exclude data. Filtering rules can be based on various factors, such as the data's numerical range, text content, timestamp and other fields to process the data set to be processed. Common filtering rules include: (1) Numeric filtering rules: conditions based on numerical fields, such as data greater than, less than, equal to a specific value or within a certain range; (2) Text filtering rules: conditions based on text fields, such as data containing specific keywords, matching specific patterns or conforming to certain grammatical rules; (3) Time filtering rules: conditions based on timestamp or date fields, such as data within a certain time range, or data after or before a specific date; (4) Logical filtering rules: combining multiple conditions based on logical operators (such as AND, OR, NOT) to filter data that meets all or any conditions. By using filtering rules to process the first data set / the second data set in the target business scenario, the required data can be quickly located, improving the efficiency and accuracy of data processing. Matching rules are rules or conditions used to determine whether two or more data sets match each other. The matching relationship between the two data sets is determined based on key fields in the two data sets (such as order number, customer ID, etc.).

[0075] More specifically, the preset processing algorithm corresponding to the target rule may include a business logic condition and an operation corresponding to the business logic. For example, the business logic condition is that the amount of the product exceeds 100, and the corresponding operation when the amount of the product exceeds 100 is: determine a match; and when the amount of the product does not exceed 100, the corresponding operation is: determine a mismatch.

[0076] Furthermore, the first target rule executed in the target rule template can be set as a filtering rule. Then, when matching the first data set and the second data set, the first data set / the second data set is filtered first, which can retain important information of the first data set / the second data set while reducing the waste of system resources.

[0077] In an example scenario, when at least one target rule includes a matching rule, the matching rule may include a sub-rule for matching a transfer to an order with an exact amount, a sub-rule for matching a transfer to an order with a fuzzy amount, a sub-rule for matching a transfer to multiple orders with an exact amount, and a sub-rule for matching multiple transfers to multiple orders with an exact amount, and the sub-rule for matching a transfer to an order with an exact amount, the sub-rule for matching a transfer to an order with a fuzzy amount, the sub-rule for matching a transfer to multiple orders with an exact amount, and the sub-rule for matching multiple transfers to multiple orders with an exact amount are executed in sequence. Specifically, when executing the matching rule, firstly, the sub-rule for matching a transfer to an order with an exact amount is used to determine whether a transfer matches an order with an exact amount. If it is determined that a transfer matches an order with an exact amount, then according to the target field indicated by the matching rule, for example, the amount field, the amount field value in the first data set is extracted and compared with the amount field value in the second data set to determine whether they are consistent. If the comparison is consistent, a reconciliation result containing a successful reconciliation prompt message is generated. If the comparison is inconsistent, a reconciliation result containing a reconciliation failure prompt message is generated. If it is determined that there is no exact match between a transfer and an order, the sub-rule of fuzzy amount matching between a transfer and an order is executed. When the sub-rule of fuzzy amount matching between a transfer and an order is executed, it is determined whether there is a fuzzy match between a transfer and an order. If it is determined that there is a fuzzy match between a transfer and an order, the amount field of the first data set and the second data set are extracted, and the first amount field value corresponding to the first data set and the second amount field value corresponding to the second data set are obtained respectively, and it is determined whether the first amount field value and the second amount field value meet the preset difference condition. If the preset difference condition is met, a reconciliation result containing a successful reconciliation prompt message is generated. If the preset difference condition is not met, a reconciliation result containing a failed reconciliation prompt message is generated. Among them, the preset difference condition can be: the difference between the first amount field value and the second amount field value does not exceed the preset excess amount, or the excess percentage of the first amount field value exceeding the second amount field value is less than or equal to the preset percentage, or the first amount field value is less than or equal to the preset maximum amount. If it is determined that there is no fuzzy match between a transfer and an order, the sub-rule of precise amount matching between a transfer and multiple orders is executed. When the sub-rule of one transfer matching multiple orders with exact amounts is executed, it is determined whether one transfer matches multiple orders with exact amounts. If it is determined that one transfer matches multiple orders with exact amounts, the first amount field value is obtained by extracting the first target field in the first data set, and multiple second amount field values ​​are obtained by extracting the second target field in the second data set, and it is determined whether the sum of the multiple second amount field values ​​is equal to the first amount field value. If so, a reconciliation result including a prompt message of successful reconciliation is generated, otherwise a reconciliation result including a prompt message of failed reconciliation is generated.If it is determined that the precise amount of one transfer to multiple orders is not matched, the sub-rule of precise amount matching of multiple transfers to multiple orders is executed. When the sub-rule of precise amount matching of multiple transfers to multiple orders is executed, firstly, multiple first amount field values ​​contained in the second data set are extracted based on the first target field, and multiple second amount field values ​​contained in the second data set are extracted based on the second target field, and it is determined whether the sum of the multiple second amount field values ​​is equal to the sum of the multiple first amount field values. If so, a reconciliation result including a prompt message of successful reconciliation is generated, otherwise a reconciliation result including a prompt message of failed reconciliation is generated.

[0078] It is understandable that the current reconciliation system usually has strict matching restrictions on amounts. However, in actual use, there are situations where the transfer amount is greater than the order amount, which may lead to a decrease in the success rate of reconciliation. The implementation scheme provided in the above exemplary scenario allows a matching method where the transfer amount is greater than the order amount, which can provide a more flexible amount matching method.

[0079] Step S403: when the calculation result of any target rule does not satisfy the preset first condition, outputting a reconciliation result including a reconciliation failure prompt message.

[0080] Specifically, when the calculation result of any matching rule is mismatched, it is determined that the calculation result of the matching rule does not meet the preset first condition. At this time, it can be determined that the first data set and the second data set cannot be reconciled and failed, and a reconciliation result including a reconciliation failure prompt message is output.

[0081] Step S404: when the last target rule is executed and the calculation result output by the last target rule meets the preset first condition, a reconciliation result including a prompt message of successful reconciliation is output.

[0082] Specifically, when the last target rule is executed and the calculation result of the last target rule is a match, it is determined that the calculation result of the matching rule meets the preset first condition, and a reconciliation result including a reconciliation success prompt message is output.

[0083] In a feasible implementation manner, the above step S402 may include steps S4021 to S4023:

[0084] Step S4021: calling a preset field processing strategy corresponding to the target field to process at least one target field value to obtain at least one related field after processing.

[0085] Specifically, in the scheme of this embodiment, corresponding preset field processing strategies are pre-configured for different target fields, and the preset field processing strategies are used to process the target field values ​​extracted from the data set to be processed. It should be noted that the formats of the target field values ​​extracted corresponding to different target fields are different. For example, when the target field is "gender", the target field values ​​extracted from the first data set and the second data set are "male" and "female" respectively, and the extracted target field values ​​are of text type. When the target field is "mobile phone number", the target field values ​​extracted from the first data set and the second data set are "13025416842" and "13265412552" respectively, and the extracted target field values ​​are of number type.

[0086] Specifically, the preset field processing strategy may include at least one of field truncation, character replacement, string mapping, and database query; when the preset field processing strategy corresponding to the target field is called to process at least one target field value, steps A1 to A4 may be included:

[0087] Step A1: When the preset field processing strategy includes field truncation, characters in the target field value that meets the preset second condition are truncated based on the preset maximum character length.

[0088] Specifically, when the length of the character string corresponding to the target field value is greater than the preset maximum character length, it is determined that the target field value meets the preset second condition, and the character string of the preset maximum character length in the target field value is truncated. For example, when the target field value is 109034086700 and the preset maximum character length is 10, the target field value is truncated to obtain 1090340867.

[0089] Step A2: When the preset field processing strategy includes character replacement, a specific character in at least one target field value is replaced with a target character.

[0090] Specifically, the specific character and the target character may be predefined. For example, the "-" character may be defined as the specific character and the target character may be defined as a space.

[0091] Step A3: when the preset field processing strategy includes string mapping, convert the string corresponding to the target field value into a string to which the string corresponding to the target field value is mapped in the preset character mapping table.

[0092] Specifically, when the preset field processing strategy includes string mapping, the target field value is mapped to a preset format according to the predefined mapping relationship, that is, converted into another standardized form to ensure that the data meets the format requirements or is convenient for subsequent processing. For example, when the extracted target field values ​​are "male" and "female", "male" and "female" need to be mapped to "1" and "0" respectively, so as to store gender information in the database.

[0093] Step A4, when the preset field processing strategy includes database query, it is identified whether any two target field values ​​among the at least one target field value have an association relationship in the preset database, and the two target field values ​​that have an association relationship are associated.

[0094] Specifically, when the target rule is a matching rule, the target field corresponding to the first data set and the target field corresponding to the second data set may be different. At this time, the target field value extracted from the first data set may not be directly associated with the target field value extracted from the second data set. At this time, it is necessary to determine whether the target field value extracted from the first data set has an associated relationship with the target field value extracted from the second data set through the preset database. If so, the two associated target field values ​​are marked to facilitate subsequent matching processing. For example, if there is a payer account number in the first data set and a customer number in the second data set, these two data cannot be directly associated, then it is necessary to determine whether there is an associated relationship between the two data through the preset database. Specifically, the preset database stores the association relationship between multiple target fields.

[0095] Step S4022: Process the data set to be processed according to the preset processing algorithm corresponding to the at least one processed target field value and the target rule to obtain a calculation result.

[0096] Specifically, when the target rule is a filtering rule and the preset processing algorithm is a filtering algorithm, the first data set and / or the second data set can be screened by at least one target field value to obtain the filtered first data set and / or the second data set, and the calculation result is generated by the filtered first data set and / or the second data set. When the target rule is a matching rule, it is necessary to match the target field value extracted from the first data set with the target field value extracted from the second data set to obtain a matching result, and the matching result is used to generate a calculation result.

[0097] Through the above solution, after extracting the target field value, the target field value is processed based on the preset field processing strategy corresponding to the target field, which helps to ensure the consistency and quality of the data and provide a reliable basis for subsequent data processing and analysis. At the same time, it also helps to ensure that the data processing results are consistent with business requirements and improve the credibility and interpretability of the data.

[0098] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can refer to the above introduction, and will not be repeated in the following. Figure 2 In the above step S30, before determining the target rule template based on the target business scenario, the reconciliation method further includes steps S22 to S23:

[0099] Step S22: acquiring rule configuration information for a target business scenario input by the target object through an interactive interface, and generating a target rule template based on the rule configuration information.

[0100] Specifically, the target object may be a reconciliation requester (user), who may input rule configuration information for the target business scenario through a visual interactive interface to define reconciliation rules for the target business scenario. The reconciliation device may obtain and parse the rule configuration information to generate a target template.

[0101] Specifically, the above step S22 may include steps S221 to S225:

[0102] Step S221, receiving a rule customization instruction for a target business scenario input by a target object in an interactive interface, and providing a rule configuration interface; the rule configuration interface includes a plurality of rule components.

[0103] Specifically, the target object can input rule customization instructions for the target business scenario through the interactive interface. After receiving the rule customization instructions, the reconciliation device displays a rule configuration interface, which includes multiple rule components, each of which is pre-configured with corresponding business logic.

[0104] Step S222: determining at least one target rule component selected by the target object from among the multiple rule components.

[0105] Specifically, see Figure 3 , Figure 3 The rule configuration interface involved in the present application is provided. The rule configuration interface A includes multiple rule components, for example, a filtering component A1 and a matching component A2. The target object can select one or more target rule components from multiple rule components. For example, a new control button for filtering rules can be included in the rule configuration interface. When the user clicks the new control button, the target rule component is determined to be a filtering rule component.

[0106] Step S223: receiving rule configuration information edited by the target object for any target rule component.

[0107] Specifically, the target object can input rule configuration information for the selected target rule component in the rule configuration interface, and the rule configuration information can include setting information for the target field and setting information for the filtering rule.

[0108] Step S224, generating each target rule according to the rule configuration information corresponding to each target rule component and the preset business logic corresponding to each target rule component.

[0109] Specifically, the preset business logic corresponding to each target rule component is the common business logic of the target rule component. For example, for the matching rule component, the corresponding common business logic is: extract the first target field of the first data set and the second target field of the second data set and compare whether they are consistent. The rule configuration information input by the target object for the matching rule component includes: the first target field of the first data set is gender, and the second target field of the second data set is gender. The generated target rule is: extract the gender field of the first data set and the gender field of the second data set and compare whether they are consistent.

[0110] Step S225: Generate a target rule template based on each target rule.

[0111] Specifically, the account reconciliation device may also obtain configuration information of the execution order of each target rule for the target object, and generate a target rule template based on each target rule and the configured execution order.

[0112] Step S23: construct and store the association relationship between the target rule template and the target business scenario.

[0113] Specifically, an association relationship between the identifier of the target rule template and the identifier of the target business scenario may be established and saved in the storage module.

[0114] Through the above implementation plan, users can realize customized configuration for different business scenarios to meet their personalized needs.

[0115] The present application also provides a reconciliation device, please refer to Figure 4 , the reconciliation device comprises:

[0116] The data set extraction module 10 is used to receive a reconciliation request and extract a first data set and a second data set carried in the reconciliation request;

[0117] A scenario identification module 20, used to identify a request identifier of a reconciliation request and determine a target business scenario based on the request identifier;

[0118] A rule determination module 30, configured to determine a target rule template based on a target business scenario; wherein the target rule template includes at least one target rule;

[0119] The reconciliation module 40 is used to reconcile the first data set and the second data set according to at least one target rule to obtain a reconciliation result.

[0120] Optionally, the target rule template further includes at least one execution order of the target rule; the reconciliation module 40 is further used for:

[0121] Based on the execution order, each target rule is called in sequence to reconcile the first data set and the second data set to obtain a reconciliation result.

[0122] Optionally, the reconciliation module 40 is further used for:

[0123] In the order of execution, call each target rule in turn;

[0124] When executing any target rule, at least one target field value contained in the data set to be processed is extracted based on the target field indicated by the target rule, and the data set to be processed is processed according to the preset processing algorithm corresponding to the at least one target field value and the target rule to obtain a calculation result; wherein the data set to be processed includes at least the first data set and / or the second data set;

[0125] When the calculation result of any target rule does not meet the preset first condition, a reconciliation result including a reconciliation failure prompt message is output;

[0126] When the last target rule is executed and the calculation result output by the last target rule meets the preset first condition, the reconciliation result including the prompt information of successful reconciliation is output.

[0127] Optionally, the at least one target rule includes a filtering rule and a matching rule, and the reconciliation module 40 is further configured to:

[0128] If the target rule is a filtering rule and the data set to be processed indicated by the target rule is the first data set / the second data set, then based on the target field defined by the filtering rule, the target field value in the first data set / the second data set is extracted, and the first data set / the second data set is processed according to the preset processing algorithm corresponding to the filtering rule to obtain a calculation result;

[0129] If the target rule is a matching rule and the data set to be processed indicated by the target rule includes a first data set and a second data set, extracting a first target field value in the first data set based on a first target field defined by the matching rule, and extracting a second target field value in the second data set based on a second target field defined by the matching rule;

[0130] The first target field value and the second target field value are matched according to a preset processing algorithm corresponding to the matching rule to obtain a calculation result.

[0131] Optionally, the reconciliation module 40 is further used for:

[0132] Calling a preset field processing strategy corresponding to the target field to process at least one target field value to obtain at least one processed target field value;

[0133] The data set to be processed is processed according to the preset processing algorithm corresponding to the at least one processed target field value and the target rule to obtain a calculation result.

[0134] Optionally, the preset field processing strategy includes at least one of field truncation, character replacement, string mapping and database query; the reconciliation module 40 is further used for:

[0135] When the preset field processing strategy includes field truncation, characters in the target field value that meets the preset second condition are truncated based on the preset maximum character length;

[0136] When the preset field processing strategy includes character replacement, replacing specific characters in at least one target field value with target characters;

[0137] When the preset field processing strategy includes string mapping, converting the string corresponding to the target field value into the string to which the corresponding string is mapped in the preset character mapping table;

[0138] When the preset field processing strategy includes database query, it is identified whether any two target field values ​​among the at least one target field value have an association relationship in the preset database, and the two target field values ​​that have an association relationship are associated.

[0139] Optionally, the above-mentioned reconciliation device further includes:

[0140] Obtaining rule configuration information for a target business scenario input by a target object through an interactive interface, and generating a target rule template based on the rule configuration information;

[0141] Build and store the association between the target rule template and the target business scenario.

[0142] The reconciliation device provided in the embodiment of the present application adopts the reconciliation method in the above embodiment, which can solve the technical problem of not being able to meet the needs of diversified business scenarios. Compared with the prior art, the beneficial effects of the reconciliation device provided in the embodiment of the present application are the same as the beneficial effects of the reconciliation method provided in the above embodiment, and the other technical features in the reconciliation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0143] The present application provides a reconciliation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the reconciliation method in the above-mentioned embodiment one.

[0144] Reference below Figure 5 , which shows a schematic diagram of the structure of a reconciliation device suitable for implementing the embodiment of the present application. The reconciliation device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The reconciliation device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0145] like Figure 5 As shown, the reconciliation device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the reconciliation device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the reconciliation device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a reconciliation device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0146] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0147] The reconciliation device provided by the present application adopts the reconciliation method in the above embodiment, which can solve the technical problem of not being able to meet the needs of diversified business scenarios. Compared with the prior art, the beneficial effects of the reconciliation device provided by the present application are the same as the beneficial effects of the reconciliation method provided by the above embodiment, and the other technical features in the reconciliation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0148] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0149] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0150] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the reconciliation method in the above-mentioned embodiment.

[0151] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0152] The computer-readable storage medium may be included in the account reconciliation device; or may exist independently without being assembled into the account reconciliation device.

[0153] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the reconciliation device, the reconciliation device: receives a reconciliation request, extracts the first data set and the second data set carried in the reconciliation request; identifies the request identifier of the reconciliation request, and determines the target business scenario based on the request identifier; determines the target rule template based on the target business scenario; wherein the target rule template includes at least one target rule; and reconciles the first data set and the second data set through the at least one target rule to obtain a reconciliation result.

[0154] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0155] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0156] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0157] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned reconciliation method, and can solve the technical problem of not being able to meet the needs of diversified business scenarios. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the reconciliation method provided in the above-mentioned embodiment, and will not be repeated here.

[0158] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A reconciliation method, It is characterized in that The method comprises: receiving a reconciliation request, and extracting a first data set and a second data set carried in the reconciliation request; Identifying a request identifier of the reconciliation request, and determining a target business scenario based on the request identifier; Determine a target rule template based on the target business scenario; wherein the target rule template includes at least one target rule; The first data set and the second data set are reconciled according to the at least one target rule to obtain a reconciliation result.

2. The method according to claim 1, It is characterized in that The target rule template also includes an execution order of the at least one target rule; and the step of reconciling the first data set and the second data set by using the at least one target rule to obtain a reconciliation result includes: Based on the execution order, each of the target rules is called in sequence to reconcile the first data set and the second data set to obtain the reconciliation result.

3. The method according to claim 2, It is characterized in that The step of calling each of the target rules in sequence to reconcile the first data set and the second data set based on the execution order to obtain the reconciliation result comprises: In accordance with the execution order, calling each of the target rules in turn; When executing any of the target rules, at least one target field value contained in the data set to be processed is extracted based on the target field indicated by the target rule, and the data set to be processed is processed according to the at least one target field value and a preset processing algorithm corresponding to the target rule to obtain a calculation result; wherein the data set to be processed includes at least the first data set and / or the second data set; When the calculation result of any of the target rules does not satisfy the preset first condition, outputting a reconciliation result including a reconciliation failure prompt message; When the last target rule is executed and the calculation result output by the last target rule meets the preset first condition, a reconciliation result including a prompt message of successful reconciliation is output.

4. The method according to claim 3, It is characterized in that The at least one target rule includes at least one of a filtering rule and a matching rule, and the step of extracting at least one target field value contained in the to-be-processed data set based on the target field indicated by the target rule, and processing the to-be-processed data set according to the at least one target field value and a preset processing algorithm corresponding to the target rule to obtain a calculation result includes: If the target rule is a filtering rule and the data set to be processed indicated by the target rule is the first data set / the second data set, extracting the target field value in the first data set / the second data set based on the target field defined by the filtering rule, and processing the first data set / the second data set according to a preset processing algorithm corresponding to the filtering rule to obtain the calculation result; If the target rule is a matching rule and the data set to be processed indicated by the target rule includes the first data set and the second data set, extracting a first target field value in the first data set based on a first target field defined by the matching rule, and extracting a second target field value in the second data set based on a second target field defined by the matching rule; The first target field value and the second target field value are matched according to a preset processing algorithm corresponding to the matching rule to obtain the calculation result.

5. The method according to claim 3, It is characterized in that The step of processing the to-be-processed data set according to the preset processing algorithm corresponding to the at least one target field value and the target rule to obtain a calculation result comprises: Invoking a preset field processing strategy corresponding to the target field to process the at least one target field value to obtain at least one processed target field value; The to-be-processed data set is processed according to the processed at least one target field value and a preset processing algorithm corresponding to the target rule to obtain a calculation result.

6. The method according to claim 5, It is characterized in that The preset field processing strategy includes at least one of field truncation, character replacement, string mapping and database query; the step of calling the preset field processing strategy corresponding to the target field to process the at least one target field value includes: When the preset field processing strategy includes field truncation, truncation is performed on the characters in the target field value that meets the preset second condition based on the preset maximum character length; When the preset field processing strategy includes character replacement, replacing specific characters in the at least one target field value with target characters; When the preset field processing strategy includes string mapping, converting the target field value into a string corresponding to the target field value mapped in a preset character mapping table; When the preset field processing strategy includes database query, it is identified whether any two target field values ​​among the at least one target field value have an association relationship in the preset database, and the two target field values ​​that have an association relationship are associated with each other.

7. The method according to claim 1, It is characterized in that Before the step of determining a target rule template based on the target business scenario, the step further includes: Acquire rule configuration information for the target business scenario input by the target object through an interactive interface, and generate the target rule template based on the rule configuration information; Construct and store an association relationship between the target rule template and the target business scenario.

8. A reconciliation device, It is characterized in that The reconciliation device comprises: A data set extraction module, configured to receive a reconciliation request and extract a first data set and a second data set carried in the reconciliation request; A scenario identification module, used to identify a request identifier of the reconciliation request and determine a target business scenario based on the request identifier; A rule determination module, configured to determine a target rule template based on the target business scenario; wherein the target rule template includes at least one target rule; A reconciliation module is used to reconcile the first data set and the second data set according to the at least one target rule to obtain a reconciliation result.

9. A reconciliation device, It is characterized in that The reconciliation device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the reconciliation method according to any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the reconciliation method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Reconciliation method and device, computer readable storage medium and electronic equipment

    CN119762256A

  • Reconciliation method and device, computer equipment, readable storage medium and program product

    CN119991318A

  • Accounting method and device, computer device, readable storage medium and program product

    CN119991318B

  • Rule-based service identification method and device, equipment and storage medium

    CN121009124A