Data processing method and device, storage medium and program product
By applying reverse logic to generate audit conditions in data auditing, and combining positive and negative auditing, the time-consuming, labor-intensive and omission problems in the traditional data auditing process are solved, and efficient and accurate data processing is achieved.
Patent Information
- Application Number
- CN202310341980.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
In the traditional data audit process, business development and audit developers need to develop calculation logic separately, which is time-consuming and labor-intensive. It is also difficult to find missing problems and cannot guarantee the complete reliability of calculation results.
By obtaining target business data and business results, business processing and audit processing are performed based on filtering conditions, and reverse logic is used to generate audit conditions to achieve auditing from both positive and negative perspectives and avoid re-development of calculation logic.
There is no need to re-develop logic when filtering conditions change, which improves the accuracy and efficiency of data processing and makes it easy to find problems missed by business and auditors.
Smart Images

Figure CN118735698A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and specifically to a data processing method, device, storage medium, and program product. Background Art
[0002] As a business with a large number of users, the scale of business brings huge risks to fund security and compliance. Therefore, for some important businesses, especially those involving capital, it is often necessary to audit the compliance of data. Auditing is an activity in which independent personnel or institutions accept commissions or authorizations to confirm and authenticate the authenticity, legality, compliance, fairness, effectiveness and efficiency of the information, data, materials and management activities of the audited organization. The basic requirement of auditing is that it needs to be independently verified by personnel other than business personnel.
[0003] In the traditional data audit process, business development and audit development personnel usually develop data calculation logic twice for the same business needs, and process the business data based on their respective calculation logic to obtain their respective business results. Furthermore, the business results calculated by the business development and audit development personnel are compared for consistency, so as to determine whether the business results of the business data are valid through consistency. However, every time there is a change in the calculation conditions, it is necessary to wait for both parties to complete the development of the calculation logic before conducting a data audit, which is time-consuming and labor-intensive. In addition, it is difficult to discover problems that are missed by both business personnel and auditors through consistency comparison alone, and it is impossible to guarantee that the calculation results of both parties are completely reliable. Summary of the invention
[0004] The embodiments of the present application provide a method, device, storage medium and program product for data processing, which not only saves time and effort by eliminating the need to redevelop the calculation logic when the screening conditions change, but also comprehensively considers the effectiveness of business results from the perspective of negative auditing, easily discovers problems that are missed by both business personnel and auditors, and improves the accuracy of business processing.
[0005] In a first aspect, an embodiment of the present application provides a method for data processing. The method can be applied to a first processing device. The method may include: obtaining target business data and a first business result, the first business result being obtained by a second processing device performing business processing on the target business data based on a first screening condition; performing audit processing on the target business data based on the first screening condition to obtain a first audit result, and performing audit processing on the target business data based on a second screening condition to obtain a second audit result, the processing logic of the second screening condition being the reverse logic of the processing logic of the first screening condition; and judging the validity of the first business result based on the first business result, the first audit result, and the second audit result.
[0006] In a second aspect, an embodiment of the present application provides a first processing device. The first processing device includes an acquisition unit and a processing unit. The acquisition unit is used to acquire target business data and a first business result, and the first business result is obtained by the second processing device performing business processing on the target business data based on the first screening condition. The processing unit is used to perform audit processing on the target business data based on the first screening condition to obtain a first audit result, and to perform audit processing on the target business data based on the second screening condition to obtain a second audit result, and the processing logic of the second screening condition is the reverse logic of the processing logic of the first screening condition. The processing unit is used to judge the validity of the first business result based on the first business result, the first audit result, and the second audit result.
[0007] In some optional embodiments, the processing unit is also used to: before auditing the target business data based on the second filtering condition and obtaining the second audit result, determine the processing logic of the first filtering condition; perform logical inversion processing on the processing logic of the first filtering condition to obtain the processing logic of the second filtering condition to determine the second filtering condition.
[0008] In other optional implementations, the processing unit is used to: when the processing logic of the first filtering condition is a first conditional expression, directly perform a logical inversion processing on the first conditional expression to obtain the processing logic of the second filtering condition, and the first conditional expression is composed of an atomic expression.
[0009] In other optional embodiments, the processing unit is used to: when the processing logic of the first filtering condition is the second conditional expression, split the second conditional expression to obtain at least one first conditional expression, the second conditional expression is composed of at least two first conditional expressions, and the first conditional expression is composed of an atomic expression; perform a logical inversion process on each first conditional expression to obtain the corresponding inverted result of the first conditional expression; perform a logical inversion process on the connection logic between each first conditional expression to obtain the corresponding inverted result of the connection logic; based on the priority of each first conditional expression, combine the corresponding inverted result of the first conditional expression and the inverted result of the connection logic to obtain the processing logic of the second filtering condition.
[0010] In other optional embodiments, the processing unit is used to: determine a first value based on the first business result and the first audit result, the first value being used to indicate whether the first business result is the same as the first audit result; calculate the intersection between the first business result and the second audit result, and calculate the union between the first business result and the second audit result; and judge the validity of the first business result based on the first value, the intersection, and the union.
[0011] In other optional implementations, the processing unit is used to determine that the first business result is a valid result when the first value indicates that the first business result is the same as the first audit result, the intersection is an empty set, and the union is the same as the target business data.
[0012] In other optional embodiments, the processing unit is used to determine that the first business result is an invalid result when there is a first value indicating that the first business result is different from the first audit result, the intersection is a non-empty set, and the union is different from the target business data.
[0013] The third aspect of the embodiment of the present application provides a data processing device, including: a memory, an input / output (I / O) interface and a memory. The memory is used to store program instructions. The processor is used to execute the program instructions in the memory to perform the data processing method corresponding to the implementation method of the first aspect above.
[0014] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute a method corresponding to the implementation method of the first aspect described above.
[0015] The fifth aspect of the embodiments of the present application provides a computer program product containing instructions, which, when executed on a computer or a processor, enables the computer or the processor to execute the method corresponding to the implementation method of the first aspect.
[0016] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0017] In an embodiment of the present application, the first business result is obtained by the second processing device performing business processing on the target business data based on the first screening condition, and the processing logic of the second screening condition is the reverse logic of the processing logic of the first screening condition. Then, after obtaining the target business data and the first business result, the first processing device can audit the target business data based on the first screening condition to obtain the first audit result, and audit the target business data based on the second screening condition to obtain the second audit result. In this way, the first processing device can make a validity judgment on the first business result based on the first business result, the first audit result and the second audit result. In the above manner, by performing a logical inversion calculation on the processing logic of the first screening condition, the corresponding processing logic of the second screening condition is determined, so that not only the first processing device can realize the audit processing of the target business data from the perspective of positive audit based on the first screening condition, but also can realize the audit processing of the target business data from the perspective of negative audit based on the second screening condition. In this way, there is no need to redevelop the calculation logic when the screening conditions change, saving time and effort. Moreover, on the basis of the first business result and the first audit result, the second audit result calculated from the perspective of the reverse audit is comprehensively considered to judge the validity of the first business result, which makes it easy to discover problems missed by both business personnel and auditors, thereby improving the accuracy of business processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 A schematic diagram of the audit framework for business results in the traditional solution is shown;
[0020] Figure 2 A schematic diagram of the system architecture provided by an embodiment of the present application is shown;
[0021] Figure 3 A flow chart showing a method for data processing provided by an embodiment of the present application is shown;
[0022] Figure 4 A schematic diagram of a logical recursion process provided by an embodiment of the present application is shown;
[0023] Figure 5 A code schematic diagram of a pseudo code of logical recursion provided in an embodiment of the present application is shown;
[0024] Figure 6 A schematic diagram of the structure of a first processing device provided in an embodiment of the present application is shown;
[0025] Figure 7 A schematic diagram of the hardware structure of a data processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] The embodiments of the present application provide a method, device, storage medium and program product for data processing, which not only saves time and effort by eliminating the need to redevelop the calculation logic when the screening conditions change, but also comprehensively considers the effectiveness of business results from the perspective of negative auditing, easily discovers problems that are missed by both business personnel and auditors, and improves the accuracy of business processing.
[0027] It is understandable that in the specific implementation of this application, related data such as user information and user personal data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Figure 1 The following is a schematic diagram of the audit framework for business results in the traditional solution. Figure 1As shown, the traditional solution is to compare the consistency of the business results calculated by the business personnel through the processing device 1 with the audit results calculated by the auditor through the processing device 2, so as to judge whether the business results of the business data are valid through consistency. However, every time there is a change in the calculation conditions, it is necessary to wait for both parties to complete the development of the calculation logic before conducting data audits, which is time-consuming and labor-intensive. In addition, it is difficult to find problems that are missed by both business personnel and auditors through consistency comparison alone, and it is impossible to ensure that the calculation results of both parties are completely reliable.
[0031] Therefore, in order to solve the technical problems described above, the present application provides a data processing method that can be applied to data auditing scenarios. Figure 2 The system architecture shown in FIG. Figure 2 As shown, the system architecture includes at least a first processing device and a second processing device. Among them, the second processing device can perform business processing on the target business data based on the first screening condition, obtain the first business result, and send the first business result to the first processing device. Further, the first processing device can obtain the target business data, and audit the target business data based on the first screening condition to obtain the first audit result. In addition, the first processing device can also perform processing logic inversion on the first screening condition to generate the second screening condition. Further, the first processing device can also audit the target business data based on the second screening condition to obtain the second audit result. In this way, after the first processing device obtains the first business result and processes the first audit result and the second audit result, it can judge the validity of the first business result based on the first business result, the first audit result and the second audit result. For example, the first processing device compares the consistency of the first business result with the first audit result, and judges the complementarity of the first business result with the second audit result, etc., and then obtains the final audit result. For example, the final audit result may include but is not limited to the first business result being valid, or the first business result being invalid, etc., which is not limited in the embodiment of the present application.
[0032] It should be noted that the first processing device described can be understood as the aforementioned Figure 1 The processing device 2 shown in the figure may also be understood as a processing device with data processing capabilities, such as a terminal device, a server, etc., which is not limited in the present embodiment of the application. The second processing device described may be understood as the aforementioned Figure 1 The processing device 1 shown in the figure may also be a processing device with data processing capabilities, such as a terminal device, a server, etc. The difference is that the first processing device is operated by an auditor to implement audit processing of the target business data. The second processing device is operated by a business person to implement business processing of the target business data.
[0033] The terminal devices mentioned may include but are not limited to smartphones, desktop computers, laptops, tablet computers, smart speakers, car-mounted devices, smart watches, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and basic cloud computing services such as big data and artificial intelligence platforms, etc., which are not specifically limited in this application. In addition, the terminal devices and servers mentioned can be directly or indirectly connected by wired communication or wireless communication, which is not specifically limited in this application.
[0034] In order to facilitate understanding of the technical solution of the present application, a data processing method provided by an embodiment of the present application will be introduced below from the perspective of device interaction with reference to the accompanying drawings. Figure 3 A flow chart of a data processing method provided by an embodiment of the present application is shown. Figure 3 As shown, the data processing method may include the following steps:
[0035] 301. A second processing device performs business processing on target business data based on a first screening condition to obtain a first business result.
[0036] In this example, the first screening condition can also be understood as a screening rule. The business personnel can obtain corresponding target business data from a database or other platform through the first processing device, and then perform business processing on the target business data based on the first screening condition to obtain a first business result.
[0037] For example, the first screening condition described may be "FieldA>x", and the first processing device may filter out the target data from the target business data based on the "FieldA>x" condition to obtain the first business result. It should be noted that the first screening condition shown above may be "FieldA>x", which is only a schematic description, and other conditional expressions may be included in actual applications, which is not limited in the embodiments of the present application.
[0038] 302. The second processing device sends the first service result to the first processing device.
[0039] In this example, after the second processing device obtains the first business result through processing, the second processing device may send the first business result to the first processing device, and the first processing device may perform audit processing on the first business result.
[0040] 303. The first processing device obtains target service data and a first service result.
[0041] In this example, in order to determine whether the business data under the business demand is true and valid, the first processing device can first obtain the corresponding target business data from the database or other platform. For example, the target business data may include but is not limited to financial income and expenditure data, product purchase data, etc., which is not limited in the embodiment of this application.
[0042] In addition, the first processing device may also receive the first business result sent by the second processing device. It should be noted that the order in which the first processing device executes the acquisition of the target business data and the first business result may be the following: first execute the acquisition of the target business data, then execute the acquisition of the first business result; or first execute the acquisition of the first business result, then execute the acquisition of the target business data; or, execute the acquisition of the target business data and the first business result simultaneously. This is not limited in the specific embodiments of the present application.
[0043] 304. The first processing device audits the target business data based on the first screening condition to obtain a first audit result, and audits the target business data based on the second screening condition to obtain a second audit result, wherein the processing logic of the second screening condition is the reverse logic of the processing logic of the first screening condition.
[0044] In this example, after acquiring the target business data, the first processing device can use the same screening condition (i.e., the first screening condition) as the second processing device to audit the target business data, thereby obtaining a first audit result. The first screening condition described can be understood with reference to the content described in the aforementioned step 201, and will not be described in detail here.
[0045] In order to avoid the problem of missing data processing in both business processing and audit processing, the first processing device can improve the completeness of the audit by combining the inverse algorithm. The described inverse algorithm can be understood as automatically generating the processing logic of the reverse calculation (i.e. the processing logic of the second filtering condition mentioned later) based on the processing logic in the business processing (i.e. the processing logic of the first filtering condition mentioned above). In this way, the first processing device can perform audit processing based on the processing logic of the reverse calculation, thereby obtaining a reverse audit result (i.e. the second audit result mentioned later). As an illustrative description, the first processing device can determine the processing logic of the first filtering condition, and then perform a logical operation on the processing logic of the first filtering condition to obtain the processing logic of the second filtering condition to determine the second filtering condition. That is to say, it is understood that the processing logic of the second filtering condition described is the reverse logic of the processing logic of the first filtering condition.
[0046] Exemplarily, the first processing device may first determine whether the processing logic of the first filtering condition is the first conditional expression or the second conditional expression. It should be noted that the described first conditional expression may be understood as a conditional expression that cannot be further decomposed. In other words, the first conditional expression may be composed of an atomic expression, such as a>1. The described second conditional expression is composed of at least two first conditional expressions, that is, it is understood as a conditional expression that can be further decomposed. For example, the second conditional expression may include but is not limited to "a>1AND b≤2", etc., which is not limited in the embodiments of the present application. In this way, when the first processing device determines that the processing logic of the first filtering condition is a different conditional expression, it may adopt different processing methods for inversion processing, which may be understood specifically by referring to the following method, namely:
[0047] (1) The processing logic of the first screening condition is the first conditional expression
[0048] As an illustrative description, when the processing logic of the first screening condition is the first conditional expression, the first processing device can directly perform a logical operation on the first conditional expression to obtain the processing logic of the second screening condition. It should be noted that the first conditional expression is composed of an atomic expression. The described atomic expression can be understood as a conditional expression that cannot be further decomposed.
[0049] For example, if the processing logic of the first filtering condition is the first conditional expression "Expression_c=count<5", at this time, since "Expression_c=count<5" is a conditional expression that cannot be further decomposed, the first processing device can perform a logical inversion processing on the "Expression_c=count<5" to obtain the processing logic of the second filtering condition, that is, "Expression_c1=count≥5".
[0050] Alternatively, if the processing logic of the first filtering condition is the first conditional expression "id NOT IN(18,3,6)", since "id NOT IN(18,3,6)" is a conditional expression that cannot be further decomposed, the first processing device can perform a logical inversion processing on the "id NOT IN(18,3,6)" to obtain the processing logic of the second filtering condition, that is, "id IN(18,3,6)".
[0051] It should be noted that the above description only takes the first conditional expression "Expression_c=count<5" and id NOT IN(18,3,6) as an example. In practical applications, the first conditional expression may also include but is not limited to "a<1", etc., which is not limited in the present embodiment.
[0052] (2) The processing logic of the first screening condition is the second conditional expression
[0053] In some optional examples, the first device may first determine whether the processing logic of the first screening condition is the second conditional expression, and then, when the processing logic of the first screening condition is the second conditional expression, split the second conditional expression to obtain at least one first conditional expression. Then, the first processing device performs a logical operation negation process on each first conditional expression to obtain the corresponding negation result of the first conditional expression.
[0054] For example, if the processing logic of the first filtering condition is the second conditional expression "(device_id=9OR id=7)AND id NOT IN(18,3,6)AND count<5". At this time, the first processing device can split the second conditional expression into the following expressions: Expression_a=(device_id=9OR id=7), Expression_b=id NOT IN(18,3,6), Expression_c=count<5. And the logical association between expression Expression_a, expression Expression_b and expression Expression_c is "Expression_a AND Expression_b ANDExpression_c".
[0055] In addition, since expression Expression_b and expression Expression_c are already the first conditional expressions that cannot be further split, the first processing device can perform logical inversion processing on expression Expression_b and expression Expression_c respectively, thereby obtaining the corresponding inversion result of the first conditional expression, that is, "Expression_c1=count≥5", "id IN(18,3,6)".
[0056] In addition, since the expression Expression_a is still a second conditional expression composed of two expressions, the first processing device can further split the Expression_a into two first expressions, namely, Expression_a1 = device_id = 9, and Expression_a2 = id = 7. Moreover, the expression Expression_a1 and the expression Expression_a2 are connected by the logical relationship "OR". At this time, the first processing device performs logical operation negation processing on the expression Expression_a1 and the expression Expression_a2 respectively, thereby obtaining the corresponding negation result of the first conditional expression, namely, "Expression_b1 = device_id≠9", "Expression_b1 = id≠7".
[0057] In addition, the first processing device also needs to perform a logical inversion process on the connection logic between each first conditional expression to obtain the corresponding connection logic inversion result. For example, the connection logic inversion result between the second conditional expression "Expression_a ANDExpression_b AND Expression_c" is "Expression_a ORExpression_b OR Expression_c", and the connection logic inversion result between the second conditional expression "Expression_a1 OR Expression_a2" is "Expression_a1 AND Expression_a2".
[0058] Finally, the first processing device combines the inverted result of the corresponding first conditional expression and the inverted result of the connection logic based on the priority of each first conditional expression to obtain the processing logic of the second screening condition. For example, the processing logic of the second screening condition is ((Expression_b1=device_id≠9AND Expression_b1=id≠7)OR Expression_c1=count≥5OR id IN(18,3,6)).
[0059] In this way, after generating the second screening condition, the first device can further perform audit processing on the target business data based on the second screening condition, thereby obtaining a second audit result.
[0060] The second conditional expression "(device_id=9OR id=7)AND id NOT IN(18,3,6)AND count<5" shown above is only a schematic description. In actual applications, the complex conditional expression can still be continuously split according to the recursive thinking of the second conditional expression "(device_id=9OR id=7)AND id NOT IN(18,3,6)AND count<5" to obtain a series of simple first conditional expressions. For the specific recursive thinking of logical negation, please refer to Figure 4 The schematic diagram of the process is shown for understanding. Figure 4 As shown, the first processing device can first judge the conditional expression of the processing logic of the first filtering condition, and then directly perform a logical inversion process on the first conditional expression when the processing logic of the first filtering condition is the first conditional expression. On the contrary, when the processing logic of the first filtering condition is the second conditional expression, the first processing device first inverts the split first conditional expressions one by one; and, in the process of recursive backtracking, the first processing device also performs a logical inversion process on the logical relationship connecting each first conditional expression (such as AND, OR, etc.), and then combines the inverted result of the logical relationship with the inverted result of each first conditional expression, so as to obtain the final inverse expression, that is, the processing logic of the second filtering condition.
[0061] As a schematic description, for the above Figure 4 The recursive processing flow shown in the figure can be found in the corresponding pseudo code. Figure 5 For example, since the operators of SQL conditional statements are limited, mainly including: 'AND', 'OR', '=', '!=', '>', '<', '>=', '<=', 'LIKE', 'NOT LIKE', 'IN', 'NOT IN', 'EXISTS', 'NOT EXISTS', 'IS NULL', 'IS NOT NULL', it is possible to check and set the condition of the inverted result by enumeration, that is, the above Figure 5 OperatorRevertLogic function in pseudocode.
[0062] 305. The first processing device determines the validity of the first business result based on the first business result, the first audit result, and the second audit result.
[0063] In this example, since the reverse audit result and the business result are complementary sets, the following two conditions should be met, namely: there is no overlapping data in the reverse audit result and the business result, and the reverse audit result and the data in the business result should be completely equivalent to the target business data after being combined. In addition, the forward audit result (i.e., the first audit result mentioned later) should also be equivalent to the first business result. Based on this, after the first processing device obtains the first business result and determines the first audit result and the second audit result, it can make a validity judgment on the first business result based on the first business result, the first audit result, and the second audit result.
[0064] Exemplarily, the first processing device may determine the first value based on the first business result and the first audit result. The first value can indicate whether the first business result is the same as the first audit result. In addition, the first processing device may also calculate the intersection between the first business result and the second audit result, and calculate the union between the first business result and the second audit result. In this way, the first processing device again judges the validity of the first business result based on the first value, the intersection, and the union. For example, the first processing device may determine that the first business result is a valid result when the first value indicates that the first business result is the same as the first audit result, the intersection is an empty set, and the union is the same as the target business data. Alternatively, the first processing device determines that the first business result is an invalid result when there is one or more of the first value indicating that the first business result is not the same as the first audit result, the intersection is a non-empty set, and the union is not the same as the target business data. At this time, when the first device determines that the first business result is an invalid result, it may send an indication message to the second processing device to inform the second processing device to promptly perform abnormal processing on the first business result, such as re-checking, etc., which is not limited in the embodiments of the present application.
[0065] In the embodiment of the present application, the first business result is obtained by the second processing device performing business processing on the target business data based on the first screening condition, and the processing logic of the second screening condition is the reverse logic of the processing logic of the first screening condition. Then, after obtaining the target business data and the first business result, the first processing device can audit the target business data based on the first screening condition to obtain the first audit result, and audit the target business data based on the second screening condition to obtain the second audit result. In this way, the first processing device can make a validity judgment on the first business result based on the first business result, the first audit result and the second audit result. In the above manner, by performing a logical inversion calculation on the processing logic of the first screening condition, the corresponding processing logic of the second screening condition is determined, so that not only the first processing device can realize the audit processing of the target business data from the perspective of positive audit based on the first screening condition, but also can realize the audit processing of the target business data from the perspective of negative audit based on the second screening condition. In this way, there is no need to redevelop the calculation logic when the screening conditions change, saving time and effort. Moreover, on the basis of the first business result and the first audit result, the second audit result calculated from the perspective of the reverse audit is comprehensively considered to judge the validity of the first business result, which makes it easy to discover problems missed by both business personnel and auditors, thereby improving the accuracy of business processing.
[0066] The above mainly introduces the scheme provided by the embodiment of the present application from the perspective of the method. It can be understood that in order to realize the above functions, the hardware structure and / or software module corresponding to the execution of each function are included. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed in this application, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0067] The embodiment of the present application can divide the functional modules of the device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be combined into one processing module. The above modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0068] The first processing device in the embodiment of the present application is described in detail below. Figure 6FIG. 1 is a schematic diagram of an embodiment of the first processing device provided in the embodiment of the present application. Figure 6 As shown, the first processing device may include an acquisition unit 601 and a processing unit 602 .
[0069] The acquisition unit 601 is used to acquire the target business data and the first business result, and the first business result is obtained by the second processing device performing business processing on the target business data based on the first screening condition. Figure 3 The contents described in step 303 can be understood for reference only and will not be elaborated here.
[0070] Processing unit 602 is used to audit the target business data based on the first screening condition to obtain a first audit result, and to audit the target business data based on the second screening condition to obtain a second audit result. The processing logic of the second screening condition is the reverse logic of the processing logic of the first screening condition. Figure 3 The contents described in step 304 can be understood for reference only and will not be elaborated here.
[0071] The processing unit 602 is used to determine the validity of the first business result based on the first business result, the first audit result and the second audit result. Figure 3 The contents described in step 305 can be understood for reference only and will not be elaborated here.
[0072] In some optional embodiments, the processing unit 602 is also used to: before auditing the target business data based on the second filtering condition and obtaining the second audit result, determine the processing logic of the first filtering condition; perform logical inversion processing on the processing logic of the first filtering condition to obtain the processing logic of the second filtering condition to determine the second filtering condition.
[0073] In other optional implementations, the processing unit 602 is used to: when the processing logic of the first filtering condition is a first conditional expression, directly perform a logical inversion processing on the first conditional expression to obtain the processing logic of the second filtering condition, and the first conditional expression is composed of an atomic expression.
[0074] In other optional embodiments, the processing unit 602 is used to: when the processing logic of the first filtering condition is the second conditional expression, split the second conditional expression to obtain at least one first conditional expression, the second conditional expression is composed of at least two first conditional expressions, and the first conditional expression is composed of an atomic expression; perform a logical inversion process on each first conditional expression to obtain the corresponding inverted result of the first conditional expression; perform a logical inversion process on the connection logic between each first conditional expression to obtain the corresponding inverted result of the connection logic; based on the priority of each first conditional expression, combine the corresponding inverted result of the first conditional expression and the inverted result of the connection logic to obtain the processing logic of the second filtering condition.
[0075] In other optional embodiments, the processing unit 602 is used to: determine a first value based on the first business result and the first audit result, the first value being used to indicate whether the first business result is the same as the first audit result; calculate the intersection between the first business result and the second audit result, and calculate the union between the first business result and the second audit result; and judge the validity of the first business result based on the first value, the intersection, and the union.
[0076] In other optional implementations, the processing unit 602 is used to determine that the first business result is a valid result when the first value indicates that the first business result is the same as the first audit result, the intersection is an empty set, and the union is the same as the target business data.
[0077] In other optional embodiments, the processing unit 602 is used to determine that the first business result is an invalid result when there is a first value indicating that the first business result is different from the first audit result, the intersection is a non-empty set, and the union is different from the target business data.
[0078] The above describes the data processing device in the embodiment of the present application from the perspective of modular functional entities, and the following describes the data processing device in the embodiment of the present application from the perspective of hardware processing. The described data processing device may be Figure 6 A first processing device is shown, and Figure 3 The second processing device shown, etc. Figure 7 701, a communication line 707, a memory 703, and at least one communication interface 704.
[0079] Processor 701 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (server IC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0080] The communication link 707 may include a pathway to transmit information between the above-mentioned components.
[0081] The communication interface 704 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0082] The memory 703 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, and the memory may exist independently and be connected to the processor via a communication line 707. The memory may also be integrated with the processor.
[0083] The memory 703 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 701. The processor 701 is used to execute the computer-executable instructions stored in the memory 703, thereby implementing the method provided in the above embodiment of the present application.
[0084] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.
[0085] In a specific implementation, as an embodiment, the data processing device may include multiple processors, such as Figure 7 701 and 702 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0086] In a specific implementation, as an embodiment, the data processing device may further include an output device 705 and an input device 706. The output device 705 communicates with the processor 701 and may display information in a variety of ways. The input device 706 communicates with the processor 701 and may receive input of a target object in a variety of ways. For example, the input device 706 may be a mouse, a touch screen device, or a sensor device.
[0087] The above-mentioned data processing device can be a general device or a special device. In a specific implementation, the data processing device can be a server, a terminal device, or a Figure 7 The embodiment of the present application does not limit the type of the data processing device.
[0088] Need to explain, Figure 7 The processor 701 in the embodiment can call the computer execution instructions stored in the memory 703 to make the data processing device execute the following Figure 3 The method in the corresponding method embodiment.
[0089] Specifically, Figure 6 The function / implementation process of the processing unit 602 in Figure 7 The processor 701 in the embodiment calls the computer execution instructions stored in the memory 703 to implement. Figure 6 The function / implementation process of the acquisition unit 601 in can be Figure 7 The communication interface 704 in is implemented.
[0090] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any data processing method recorded in the above method embodiments.
[0091] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any data processing method recorded in the above method embodiments.
[0092] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0094] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0095] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0096] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.
[0097] If the resulting unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0098] The above embodiments may be implemented in whole or in part through software, hardware, firmware or any combination thereof. When implemented by software, they may be implemented in whole or in part in the form of a computer program product.
[0099] The computer program product includes one or more computer instructions. When the computer execution instruction is loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instruction can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server, a data center, etc. that includes one or more available media. Available media can be magnetic media, (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., SSD)) and the like.
[0100] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method of data processing, It is characterized in that Applied to a first processing device, the method comprises: Acquire target business data and a first business result, where the first business result is obtained by a second processing device performing business processing on the target business data based on a first screening condition; Performing an audit process on the target business data based on the first screening condition to obtain a first audit result, and performing an audit process on the target business data based on a second screening condition to obtain a second audit result, wherein the processing logic of the second screening condition is the reverse logic of the processing logic of the first screening condition; Based on the first business result, the first audit result, and the second audit result, the validity of the first business result is judged.
2. The method according to claim 1, It is characterized in that Before performing audit processing on the target business data based on the second screening condition to obtain a second audit result, the method further includes: Determining the processing logic of the first screening condition; The processing logic of the first screening condition is subjected to a logical inversion process to obtain the processing logic of the second screening condition, so as to determine the second screening condition.
3. The method according to claim 2, It is characterized in that The performing a logical operation and inverting processing on the processing logic of the first screening condition to obtain the processing logic of the second screening condition includes: When the processing logic of the first screening condition is a first conditional expression, a logical operation is directly performed on the first conditional expression to obtain the processing logic of the second screening condition, and the first conditional expression is composed of an atomic expression.
4. The method according to claim 2, It is characterized in that The performing a logical operation and inverting processing on the processing logic of the first screening condition to obtain the processing logic of the second screening condition includes: When the processing logic of the first screening condition is a second conditional expression, splitting the second conditional expression to obtain at least one first conditional expression, the second conditional expression is composed of at least two of the first conditional expressions, and the first conditional expression is composed of one atomic expression; Performing a logical inversion process on each of the first conditional expressions to obtain a corresponding inversion result of the first conditional expression; Performing a logical inversion process on the connection logic between each of the first conditional expressions to obtain a corresponding inversion result of the connection logic; Based on the priority of each first conditional expression, the inverted result of the corresponding first conditional expression and the inverted result of the connection logic are combined to obtain the processing logic of the second screening condition.
5. The method according to any one of claims 1 to 4, It is characterized in that The determining the validity of the first business result based on the first business result, the first audit result, and the second audit result includes: determining a first value based on the first business result and the first audit result, the first value being used to indicate whether the first business result is the same as the first audit result; Calculating the intersection of the first business result and the second audit result, and calculating the union of the first business result and the second audit result; The validity of the first business result is judged based on the first value, the intersection and the union.
6. The method according to claim 5, It is characterized in that The performing validity judgment on the first business result based on the first value, the intersection and the union includes: When the first value indicates that the first business result is the same as the first audit result, the intersection is an empty set, and the union is the same as the target business data, it is determined that the first business result is a valid result.
7. The method according to claim 5, It is characterized in that The performing validity judgment on the first business result based on the first value, the intersection and the union includes: When the first value indicates that the first business result is different from the first audit result, the intersection is a non-empty set, and the union is different from the target business data, the first business result is determined to be an invalid result.
8. A first processing device, It is characterized in that include: an acquiring unit, configured to acquire target business data and a first business result, wherein the first business result is obtained by performing business processing on the target business data by the second processing device based on a first screening condition; a processing unit, configured to perform audit processing on the target business data based on the first screening condition to obtain a first audit result, and to perform audit processing on the target business data based on a second screening condition to obtain a second audit result, wherein the processing logic of the second screening condition is the reverse logic of the processing logic of the first screening condition; The processing unit is used to judge the validity of the first business result based on the first business result, the first audit result and the second audit result.
9. A data processing device, It is characterized in that The data processing device comprises: an input / output (I / O) interface, a processor and a memory, wherein program instructions are stored in the memory; The processor is used to execute program instructions stored in the memory to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium comprises instructions, which, when executed on a computer device, cause the computer device to perform the method according to any one of claims 1 to 7.
11. A computer program product, It is characterized in that The finished computer program comprises instructions, and when the instructions are executed on a computer device or a processor, the computer device or the processor executes the method according to any one of claims 1 to 7.
