Data processing method and device

By dynamically matching business data and rule sets in the intelligent audit system, the problem that existing systems cannot adjust audit rules based on business data is solved, and more efficient and flexible data audits are achieved, improving user experience.

CN120162092APending Publication Date: 2025-06-17BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311723319.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

The existing intelligent audit system cannot dynamically adjust audit rules based on business data during data processing, resulting in poor flexibility and audit results and poor user experience.

Method used

By obtaining the audit request sent by the business system, obtaining the corresponding business data, and matching the business data with the pre-configured rule set based on the business data, dynamically determine the rules to be executed, and accurately match the business data and rules.

Benefits of technology

It improves the review efficiency and audit effect of business data, improves user experience, and enhances the flexibility of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120162092A_ABST
    Figure CN120162092A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: in response to a received auditing request sent by a service system, obtaining service data corresponding to the auditing request; determining each rule to be executed corresponding to the business data; executing the to-be-executed rule according to the service data, and determining an execution result of the to-be-executed rule; and determining an auditing result corresponding to the auditing request according to the execution result of each to-be-executed rule. According to the embodiment, the rules can be dynamically configured according to the service data, accurate matching of the service data and the rules is achieved, the flexibility is high, the auditing efficiency and the auditing effect of the service data are improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a method and apparatus for data processing. Background Art

[0002] In the field of data processing, an intelligent auditing system can be used to audit data such as documents and meeting minutes. The intelligent auditing system can perform audits in the following two ways. One is to execute an intelligent auditing task according to a set auditing logic and notify the auditor of the result after the task ends; the other is to use a pre-trained model for auditing and classify the results. However, the above auditing methods cannot dynamically adjust the corresponding auditing rules according to business data, resulting in poor flexibility and auditing effects, and thus poor user experience. Summary of the Invention

[0003] In view of this, embodiments of the present invention provide a method and apparatus for data processing, which can dynamically configure rules according to business data, achieve precise matching between business data and rules, have strong flexibility, improve the auditing efficiency and auditing effects of business data, and enhance the user experience.

[0004] To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for data processing, including:

[0005] Responding to receiving an auditing request sent by a business system, and obtaining business data corresponding to the auditing request;

[0006] Determining each to-be-executed rule corresponding to the business data;

[0007] Executing the to-be-executed rule according to the business data, and determining an execution result of the to-be-executed rule;

[0008] Determining an auditing result corresponding to the auditing request according to the execution results of each to-be-executed rule.

[0009] Optionally, determining each to-be-executed rule corresponding to the business data includes:

[0010] Obtaining the application scope of each rule set; the rule set includes one or more rules;

[0011] Matching the business data with the rule set according to the application scope to determine a candidate rule set with successful matching;

[0012] Determining each to-be-executed rule according to each rule in the candidate rule set.

[0013] Optionally, the application scope includes a first application scope including a policy and a second application scope excluding the policy. The first application scope including the policy indicates the included fields and field values, and the second application scope excluding the policy indicates the excluded fields and field values; determining a candidate rule set with a successful match includes:

[0014] Determine whether the included fields and field values exist in the service data and the excluded fields and field values do not exist. If so, determine the rule set corresponding to this application scope as the candidate rule set. If not, determine that the rule set corresponding to this application scope is not the candidate rule set.

[0015] Optionally, there are multiple candidate rule sets. Determining each rule to be executed according to each rule in the candidate rule sets includes:

[0016] Obtain the priority and hit policy of each candidate rule set;

[0017] Determine the target rule set according to the priority and hit policy of each candidate rule set;

[0018] Take each rule in the target rule set as each rule to be executed.

[0019] Optionally, determining the target rule set according to the priority and hit policy of each candidate rule set includes:

[0020] Sort each candidate rule set according to the priority;

[0021] According to the hit policy of each candidate rule set, determine whether there is a target candidate rule set with the hit policy being the first policy in each candidate rule set;

[0022] If so, take the target candidate rule set with the highest priority and the candidate rule sets with priorities higher than this target candidate rule set as the target rule set;

[0023] If not, take each candidate rule set as the target rule set.

[0024] Optionally, before executing the rule to be executed according to the service data, it further includes: obtaining the priority of each rule to be executed, determining the execution order of each rule to be executed according to the priority, so as to execute each rule to be executed according to the execution order;

[0025] Executing the rule to be executed according to the service data and determining the execution result of the rule to be executed includes: obtaining the execution element of the rule to be executed; obtaining the parameter value corresponding to the execution element from the service data; determining the execution result of the rule to be executed according to the parameter value.

[0026] Optionally, before obtaining the application scope of each rule set, it further includes:

[0027] Configuring the application scope of the rule set and each rule included in the rule set.

[0028] According to another aspect of the embodiments of the present invention, there is provided an apparatus for data processing, including:

[0029] An obtaining module, which, in response to receiving an audit request sent by a service system, obtains service data corresponding to the audit request;

[0030] A first determination module, which determines each to-be-executed rule corresponding to the service data;

[0031] An execution module, which executes the to-be-executed rule according to the service data and determines the execution result of the to-be-executed rule;

[0032] A second determination module, which determines the audit result corresponding to the audit request according to the execution results of each to-be-executed rule.

[0033] According to another aspect of the embodiments of the present invention, there is provided an electronic device, including:

[0034] One or more processors;

[0035] A storage device, which is used to store one or more programs,

[0036] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the present invention.

[0037] According to still another aspect of the embodiments of the present invention, there is provided a computer-readable medium, on which a computer program is stored, and when the program is executed by a processor, it implements the data processing method provided by the present invention.

[0038] One of the above embodiments of the invention has the following advantages or beneficial effects: The data processing method in the embodiments of the present invention, after receiving an audit request sent by a service system, obtains service data corresponding to the audit request; then determines each to-be-executed rule corresponding to the service data, executes each to-be-executed rule according to the service data, determines the execution result of each to-be-executed rule, and further determines the audit result. This data processing method pre-configures a rule set, determines each to-be-executed rule through the matching of service data and the rule set, and the matching logic is more flexible, and can dynamically adjust the rules according to service data; after determining each to-be-executed rule, it automatically enters the execution of the to-be-executed rule, and generates an audit result according to the execution result, improving the audit efficiency and audit effect of service data and enhancing the user experience.

[0039] The further effects of the above non-conventional alternative manners will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The drawings are used to better understand the present invention and do not constitute an improper limitation to the present invention. Among them:

[0041] Figure 1 is a schematic diagram of the main process of a data processing method according to an embodiment of the present invention;

[0042] Figure 2 is a schematic diagram of the main process of another data processing method according to an embodiment of the present invention;

[0043] Figure 3 is a schematic diagram of the process of a data processing method according to an embodiment of the present invention;

[0044] Figure 4 is a schematic diagram of the main modules of a data processing apparatus according to an embodiment of the present invention;

[0045] Figure 5 is an exemplary system architecture diagram to which an embodiment of the present invention can be applied;

[0046] Figure 6 is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0047] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted below.

[0048] Figure 1 is a schematic diagram of the main process of a data processing method according to an embodiment of the present invention, as Figure 1 shown, the data processing method includes:

[0049] Step S101: In response to receiving an audit request sent by a service system, obtain service data corresponding to the audit request;

[0050] Step S102: Determine each rule to be executed corresponding to the service data;

[0051] Step S103: Execute the rule to be executed according to the service data, and determine the execution result of the rule to be executed;

[0052] Step S104: Determine the audit result corresponding to the audit request according to the execution results of each rule to be executed.

[0053] In the embodiment of the present invention, the data processing method can be implemented by an intelligent audit system. The intelligent audit system is docked with the business system. After receiving the audit request sent by the business system, it parses the audit request to obtain the business data corresponding to the audit request. Among them, the business system can be a financial system, and the audit request can be an audit request for financial documents. The business data is in the json (JavaScript Object Notation, a lightweight data exchange format) data format. The json data hierarchy supports a three-level data structure and has strong scalability. When the business system is connected, it only needs to convert the business data into the json data format and call the interface to connect to the intelligent audit system. The business data can include invoice pictures, payment records, itinerary receipts, attachments, file contents, etc. converted into the json data format. The intelligent audit system can process the text therein through technologies such as ocr (optical character recognition) and nlp (Natural Language Processing).

[0054] In the embodiment of the present invention, determining each rule to be executed corresponding to the business data includes:

[0055] Obtain the application scope of each rule set; a rule set includes one or more rules;

[0056] Match the business data with the rule sets according to the application scope to determine the candidate rule sets that match successfully;

[0057] Determine each rule to be executed according to each rule in the candidate rule sets.

[0058] In the embodiment of the present invention, after obtaining the business data corresponding to the audit request, the business data is matched with each rule set in the intelligent audit system to determine the candidate rule sets that match successfully. Each rule set is assembled by one or more rules. Each rule can indicate the field type, field length, etc. of the field. Each rule set has a corresponding application scope. The business data is matched with each rule set according to the application scope. If the business data meets the application scope of the rule set, then the rule set is the candidate rule set that matches successfully, and then each rule to be executed is determined according to each rule in the candidate rule sets.

[0059] In an embodiment of the present invention, the application scope includes a first application scope including a policy and a second application scope excluding the policy. The first application scope including the policy indicates the included fields and field values, and the second application scope excluding the policy indicates the excluded fields and field values; determining a candidate rule set for successful matching includes:

[0060] Determine whether there are included fields and field values in the service data and there are no excluded fields and field values. If so, determine that the rule set corresponding to this application scope is the candidate rule set. If not, determine that the rule set corresponding to this application scope is not the candidate rule set.

[0061] In an embodiment of the present invention, the applicable scope of the rule set includes a first application scope including a policy and a second application scope excluding the policy, or may be the first application scope including the policy or the second application scope excluding the policy. The first application scope including the policy indicates the included fields and field values, and the second application scope excluding the policy indicates the excluded fields and field values. For example, the fields included in the first application scope of the inclusion policy of the rule set are expense type, and the field value is electricity bill. The fields excluded in the second application scope of the exclusion policy of the rule set are employee, and the field value is Zhang San. The inclusion policy may include one or more first application scopes, and the exclusion policy may include one or more second application scopes. The multiple first application scopes may be in an AND relationship, and the multiple second application scopes are in an OR relationship. The first application scope may include one or more fields, and the second application scope may exclude one or more fields.

[0062] In an embodiment of the present invention, if the application scope of a certain rule set includes a first application scope including a policy and a second application scope excluding the policy, determine whether there are fields and field values included in the first application scope and there are no fields and field values excluded in the second application scope in the service data. If so, the service data matches successfully with this rule set, and this rule set is the candidate rule set. For example, if the first application scope of a certain rule set is that the included fields and field values are expense type and electricity bill, and document type and refund form, and the second application scope is that the excluded fields and field values are employee and Zhang San. If the document type in the service data is refund form, the expense type is electricity bill, and the employee is not Zhang San, it means that the service data matches successfully with this rule set, and this rule set is the candidate rule set.

[0063] In an embodiment of the present invention, when matching the service data with the rule set, it is possible to first determine whether there are no fields and field values excluded in the second application scope in the service data, and determine whether the service data matches successfully with the rule set according to the judgment result to determine the candidate rule set.

[0064] In an embodiment of the present invention, if the application scope of a certain rule set is the first application scope including a policy, it is determined whether there are fields and field values included in the first application scope in the service data. If so, it indicates that the service data matches the rule set successfully, and the rule set is a candidate rule set. If the application scope of a certain rule set is the second application scope excluding a policy, it is determined whether there are no excluded fields and field values in the second application scope in the service data. If so, it indicates that the service data matches the rule set successfully, and the rule set is a candidate rule set.

[0065] In an embodiment of the present invention, before obtaining the application scope of each rule set, it further includes: configuring the application scope of the rule set and each rule included in the rule set. That is, each rule is created in advance. Each rule is created according to an execution element, and the execution element can be used as an input parameter for rule execution. For example, an execution element can be created as a document number; then a rule corresponding to the document number is created for auditing the document number. Then, a rule set is assembled according to each rule to achieve plug-and-play of the rules, and then the application scope of the rule set is configured, including the first application scope including a policy and the second application scope excluding a policy, and the fields and field values included in the first application scope and the fields and field values excluded in the second application scope are configured to match the service data according to the application scope. After successful matching, each to-be-executed rule is determined according to the candidate rule set that matches successfully, so as to use each to-be-executed rule to execute the audit of the service data.

[0066] In an embodiment of the present invention, as Figure 2 shown, there are multiple candidate rule sets. Determining each to-be-executed rule according to each rule in the candidate rule set includes:

[0067] Step S201: Obtain the priority and hit policy of each candidate rule set;

[0068] Step S202: Determine the target rule set according to the priority and hit policy of each candidate rule set;

[0069] Step S203: Use each rule in the target rule set as each to-be-executed rule.

[0070] In an embodiment of the present invention, when business data is matched with each rule set, there may be multiple candidate rule sets that match successfully. Each candidate rule set has a corresponding priority and hit policy, that is, the priority and hit policy of each rule set are preconfigured. According to the priority, the execution order of each rule set can be determined. The hit policy includes a first policy and a second policy. The first policy is the policy of returning immediately upon hitting, that is, no subsequent rule sets will be executed. The second policy is the policy of sequentially executing the next rule set. Therefore, according to the priority and hit policy of each candidate rule set, the target rule set can be determined, and then each rule corresponding to the target rule set is used as each rule to be executed.

[0071] In an embodiment of the present invention, determining the target rule set according to the priority and hit policy of each candidate rule set includes:

[0072] Sorting each candidate rule set according to the priority;

[0073] According to the hit policy of each candidate rule set, determining whether there is a target candidate rule set with a hit policy of the first policy in each candidate rule set;

[0074] If so, using the target candidate rule set with the highest priority and the candidate rule sets with priorities higher than that target candidate rule set as the target rule set;

[0075] If not, using each candidate rule set as the target rule set.

[0076] In an embodiment of the present invention, when determining a target rule set according to the priority and hit policy of each candidate rule set, first, sort the candidate rule sets in descending order of priority, and then determine whether there is a target candidate rule set with a hit policy of the first policy in each candidate rule set. If so, it means that there is one or more target candidate rule sets. If there is one target candidate rule set, directly use this target candidate rule set and the candidate rule sets with priorities higher than this target candidate rule set as the target rule set; if there are multiple target candidate rule sets, determine the target candidate rule set with the highest priority from them, and use this target candidate rule set with the highest priority and the candidate rule sets with priorities higher than this target candidate rule set as the target rule set; that is, judge whether the hit policy of each candidate rule set is the first policy that indicates returning upon hitting in descending order of priority. If so, this candidate rule set is the target candidate rule set, and use this target candidate rule set and the candidate rule sets with priorities higher than this target candidate rule set as the target rule set. If there is no target candidate rule set with a hit policy of the first policy in each candidate rule set, it means that the hit policy of each candidate rule set is the second policy, and the second policy is to sequentially execute the next rule set, then each candidate rule set is the target rule set. Then, use each rule in the target rule set as each rule to be executed to perform the review of business data.

[0077] In an embodiment of the present invention, before executing the rules to be executed according to business data, it further includes: obtaining the priority of each rule to be executed, determining the execution order of each rule to be executed according to the priority, so as to execute each rule to be executed according to the execution order;

[0078] Executing the rules to be executed according to business data and determining the execution result of the rules to be executed includes: obtaining the execution elements of the rules to be executed; obtaining the parameter values corresponding to the execution elements from the business data; determining the execution result of the rules to be executed according to the parameter values.

[0079] In an embodiment of the present invention, after determining each to-be-executed rule corresponding to business data, each to-be-executed rule is executed, the execution result of each to-be-executed rule is determined, and then the audit result corresponding to the audit request is determined. Among them, before executing each to-be-executed rule, the priority of each to-be-executed rule is obtained. The priority of each to-be-executed rule is the priority of the rule set corresponding to the to-be-executed rule. Then, the to-be-executed rules are sorted in descending order of priority to determine the execution order of each to-be-executed rule. When executing each to-be-executed rule, the execution element of each to-be-executed rule is obtained. Each execution element has a corresponding element code. Then, the business data is analyzed according to the element code (i.e., the element code), the parameter value corresponding to the execution element is obtained from the business data, and the rule execution interface is called using the parameter value to execute the corresponding to-be-executed rule and obtain the execution result. Then, an audit result, that is, an audit report, is generated according to the execution result. Then, the audit report is analyzed to determine whether the current audit node can be skipped. If so, the audit report data is persisted and stored in the database, and the audit result is presented on the front end to realize the visual display of the audit result. If the execution result is successful execution, a prompt message for successful execution is generated. If the execution result is failed execution, a prompt message for failed execution is generated, and the reason for failure is explained in the prompt message. Then, an audit report is generated according to each execution result. If all the to-be-executed rules are successfully executed, the current audit node is set to be audited and passed. Among them, the audit result can be displayed in multiple colors. For example, four colors, red, yellow, green, and black, are used. Red indicates that the execution result is failed execution, green indicates that the execution result is successful execution, gray indicates the default execution result, and yellow indicates that the execution result is a prompt rule. Each execution result in the audit result can be located by clicking to locate to the specific field and displayed in the corresponding color. The user can also give feedback on each execution result, which has strong flexibility.

[0080] Figure 3 It is a schematic flow chart of a data processing method according to an embodiment of the present invention. After determining each to-be-executed rule, a rule execution task is started to execute each to-be-executed rule. Each to-be-executed rule is obtained in a loop. The execution element of the current to-be-executed rule is obtained. The corresponding parameter value is obtained from the business data according to the execution element. Then, the rule execution interface is called according to the parameter value to return the execution result. An audit report is generated according to the execution result. The audit report is analyzed to determine whether the current audit node can be skipped. If so, the audit report data is persisted and the audit report is displayed on the front end.

[0081] The data processing method according to an embodiment of the present invention, after receiving an audit request sent by a service system, obtains service data corresponding to the audit request; then determines each rule to be executed corresponding to the service data, executes each rule to be executed according to the service data, determines the execution result of each rule to be executed, and further determines the audit result. In this data processing method, a rule set is pre-configured, and each rule to be executed is determined by matching the service data with the rule set. The matching logic is more flexible, and the rules can be dynamically adjusted according to the service data; moreover, the service data is in the JSON data format, supports a three-level data structure, and has strong scalability; after determining each rule to be executed, it automatically enters the execution of the rules to be executed, and generates an audit result according to the execution result, improving the audit efficiency and audit effect of the service data and enhancing the user experience.

[0082] According to still another aspect of an embodiment of the present invention, as Figure 4 shown, a data processing apparatus 400 is provided, including:

[0083] An obtaining module 401, in response to receiving an audit request sent by a service system, obtains service data corresponding to the audit request;

[0084] A first determination module 402, determines each rule to be executed corresponding to the service data;

[0085] An execution module 403, executes the rules to be executed according to the service data, and determines the execution result of the rules to be executed;

[0086] A second determination module 404, determines an audit result corresponding to the audit request according to the execution results of each rule to be executed.

[0087] In an embodiment of the present invention, the first determination module 402 is further configured to: obtain the application scope of each rule set; the rule set includes one or more rules; match the service data with the rule set according to the application scope to determine a candidate rule set that matches successfully; determine each rule to be executed according to each rule in the candidate rule set.

[0088] In an embodiment of the present invention, the application scope includes a first application scope including a policy and a second application scope excluding a policy. The first application scope including a policy indicates the included fields and field values, and the second application scope excluding a policy indicates the excluded fields and field values; the first determination module 402 is further configured to: determine whether there are included fields and field values in the service data and there are no excluded fields and field values. If so, determine the rule set corresponding to this application scope as the candidate rule set. If not, determine that the rule set corresponding to this application scope is not the candidate rule set.

[0089] In an embodiment of the present invention, there are multiple candidate rule sets. The first determination module 402 is further configured to: obtain the priority and hit policy of each candidate rule set; determine a target rule set according to the priority and hit policy of each candidate rule set; and use each rule in the target rule set as each rule to be executed.

[0090] In an embodiment of the present invention, the first determination module 402 is further configured to: sort each candidate rule set according to the priority; determine whether there is a target candidate rule set with a hit policy of the first policy in each candidate rule set according to the hit policy of each candidate rule set; if so, use the target candidate rule set with the highest priority and the candidate rule sets with priorities higher than that of the target candidate rule set as the target rule set; if not, use each candidate rule set as the target rule set.

[0091] In an embodiment of the present invention, the execution module 403 is further configured to: before executing the rule to be executed according to the service data, obtain the priority of each rule to be executed, determine the execution order of each rule to be executed according to the priority, and execute each rule to be executed according to the execution order; the execution module 403 is further configured to: obtain the execution element of the rule to be executed; obtain the parameter value corresponding to the execution element from the service data; and determine the execution result of the rule to be executed according to the parameter value.

[0092] In an embodiment of the present invention, the first determination module 402 is further configured to: configure the application scope of the rule set and each rule included in the rule set before obtaining the application scope of each rule set.

[0093] According to another aspect of the embodiments of the present invention, an electronic device is provided, including: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the data processing method provided by the present invention.

[0094] According to still another aspect of the embodiments of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the data processing method provided by the present invention is implemented.

[0095] Figure 5 An exemplary system architecture 500 is shown to which the data processing method or data processing apparatus according to the embodiments of the present invention can be applied.

[0096] As Figure 5As shown, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0097] Users can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0098] The terminal devices 501, 502, 503 may be various electronic devices with a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop portable computers, and desktop computers, etc.

[0099] The server 505 may be a server providing various services, such as a background management server (only as an example) that supports the shopping websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process data such as product information query requests received, and feedback the processing results (such as target push information, product information - only as examples) to the terminal devices.

[0100] It should be noted that the data processing method provided by the embodiments of the present invention is generally executed by the server 505. Correspondingly, the data processing device is generally set in the server 505.

[0101] It should be understood that Figure 5 the numbers of terminal devices, networks, and servers in

[0102] are merely illustrative. According to actual needs, there may be any number of terminal devices, networks, and servers. Figure 6 The following refers to Figure 6 which shows a schematic structural diagram of a computer system 600 of a terminal device suitable for implementing the embodiments of the present invention.

[0103] As shown in Figure 6As shown, computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0104] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 610 as needed so that a computer program read from it can be installed into the storage section 608 as needed.

[0105] Specifically, according to an embodiment disclosed by the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment disclosed by the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above functions defined in the system of the present invention are executed.

[0106] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection having 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 the present invention, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram can represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0108] The modules involved in the embodiments of the present invention can be implemented in software or in hardware. The described modules can also be provided in a processor. For example, it can be described as: a processor includes an acquisition module, a first determination module, an execution module, and a second determination module. Among them, the names of these modules do not constitute a limitation to the module itself in some cases. For example, the acquisition module can also be described as "a module that acquires service data corresponding to an audit request in response to receiving an audit request sent by a service system".

[0109] As another aspect, the present invention also provides a computer-readable medium. The computer-readable medium can be included in the device described in the above embodiments; or it can exist alone without being assembled into the device. The above computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the device includes: acquiring service data corresponding to an audit request in response to receiving an audit request sent by a service system; determining each to-be-executed rule corresponding to the service data; executing the to-be-executed rules according to the service data, determining the execution result of the to-be-executed rules; and determining the audit result corresponding to the audit request according to the execution results of each to-be-executed rule.

[0110] According to the technical solution of the embodiments of the present invention, in the data processing method of the embodiments of the present invention, after receiving an audit request sent by a service system, service data corresponding to the audit request is acquired; then each to-be-executed rule corresponding to the service data is determined, each to-be-executed rule is executed according to the service data, the execution result of each to-be-executed rule is determined, and then the audit result is determined. In this data processing method, a rule set is pre-configured, and each to-be-executed rule is determined through the matching of service data and the rule set. The matching logic is more flexible, and the rules can be dynamically adjusted according to service data; and the service data is in the JSON data format, supporting a three-level data structure, with strong scalability; after determining each to-be-executed rule, it automatically enters the execution of the to-be-executed rule, and generates an audit result according to the execution result, improving the audit efficiency and audit effect of service data and enhancing the user experience.

[0111] The above specific embodiments do not constitute a limitation to the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for data processing, characterized in that, including: Upon receiving an audit request sent by a business system, obtaining business data corresponding to the audit request; Determining each to-be-executed rule corresponding to the business data; Executing the to-be-executed rules according to the business data, and determining the execution results of the to-be-executed rules; Determining an audit result corresponding to the audit request according to the execution results of each to-be-executed rule.

2. The method according to claim 1, characterized in that, Determining each to-be-executed rule corresponding to the business data includes: Obtaining the application scope of each rule set; the rule set includes one or more rules; Matching the business data with the rule set according to the application scope to determine a candidate rule set with successful matching; Determining each to-be-executed rule according to each rule in the candidate rule set.

3. The method according to claim 2, characterized in that, The application scope includes a first application scope containing policies and a second application scope excluding policies. The first application scope containing policies indicates the included fields and field values, and the second application scope excluding policies indicates the excluded fields and field values; Determining a candidate rule set with successful matching includes: Judging whether the included fields and field values exist in the business data and the excluded fields and field values do not exist. If so, determining the rule set corresponding to this application scope as the candidate rule set. If not, determining that the rule set corresponding to this application scope is not the candidate rule set.

4. The method according to claim 2, characterized in that, There are multiple candidate rule sets. Determining each to-be-executed rule according to each rule in the candidate rule set includes: Obtaining the priority and hit policy of each candidate rule set; Determining a target rule set according to the priority and hit policy of each candidate rule set; Regarding each rule in the target rule set as each to-be-executed rule.

5. The method according to claim 4, characterized in that, Determining a target rule set according to the priority and hit policy of each candidate rule set includes: Sorting each candidate rule set according to the priority; Judging whether there is a target candidate rule set with a hit policy of the first policy in each candidate rule set according to the hit policy of each candidate rule set; If so, regarding the target candidate rule set with the highest priority and the candidate rule sets with priorities higher than this target candidate rule set as the target rule set; If not, regarding each candidate rule set as the target rule set.

6. The method according to claim 1, characterized in that, Before executing the to-be-executed rules according to the business data, it further includes: obtaining the priority of each to-be-executed rule, determining the execution order of each to-be-executed rule according to the priority, and executing each to-be-executed rule according to the execution order; Executing the to-be-executed rules according to the business data and determining the execution results of the to-be-executed rules includes: obtaining the execution elements of the to-be-executed rules; obtaining the parameter values corresponding to the execution elements from the business data; determining the execution results of the to-be-executed rules according to the parameter values.

7. The method according to claim 2, characterized in that, Before obtaining the application scope of each rule set, it further includes: Configuring the application scope of the rule set and each rule included in the rule set.

8. A data processing device, characterized in that, including: An obtaining module, which, upon receiving an audit request sent by a business system, obtains business data corresponding to the audit request; A first determination module, which determines each to-be-executed rule corresponding to the business data; An execution module that executes the to-be-executed rule according to the service data and determines the execution result of the to-be-executed rule; A second determination module that determines the audit result corresponding to the audit request according to the execution results of each to-be-executed rule.

9. An electronic device, characterized in that, Comprising: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-7.

10. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, the method according to any one of claims 1-7 is implemented.