Bill Data Verification Method, Device, Storage Medium and Electronic Device

By obtaining bill data from different systems and using the big data platform for distributed calculations, the problem of inconsistent order, commodity and logistics data and payment data in data verification is solved, and more reliable data verification is achieved.

CN111695900BActive Publication Date: 2025-07-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010537557.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2025-07-11
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

In the data verification, it is difficult for the prior art to ensure that the order data, commodity data and logistics data of platform merchants are consistent with the account data of payment providers, resulting in unreliable data verification.

Method used

By obtaining multiple sets of bill information to be checked, the data of the first and second bill information are obtained from different systems, the data is optimized for data acquisition using the target delay time, and the big data platform is used to perform distributed calculations for data verification, and the verification result is returned.

Benefits of technology

Improve the reliability of data verification, reduce verification abnormalities caused by system data synchronization delay, and enhance the accuracy of data matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111695900B_ABST
    Figure CN111695900B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, storage medium and electronic device for verifying bill data. The method includes: obtaining a set of bill information to be verified, the set of bill information to be verified includes multiple groups of bill information to be verified, and each group of bill information to be verified includes first verified bill information and second verified bill information, the first verified bill information and the second verified bill information are information in different systems respectively; obtaining first bill data in the first verified bill information and second bill data in the second verified bill information; verifying the first bill data and the second bill data, and returning a verification result. The present invention can improve the reliability of data verification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular, to a method, device, storage medium, and electronic device for verifying bill data Background Art

[0002] Currently, in the case of data verification, it is often necessary to obtain the account data of the payment provider and the account data of the platform merchant, and compare the account data of the payment provider with the account data of the platform merchant. When the comparison is consistent, it is confirmed that the account data is consistent

[0003] In practice, it is found that this verification method can only ensure the consistency of the account data of the payment provider and the account data of the platform merchant. For the matching situation between the order data and the account data of the platform merchant, the matching situation between the commodity data and the order data of the platform merchant, and the matching situation between the order data and the logistics data of the platform merchant, it is difficult to ensure data consistency, resulting in unreliable data verification

[0004] In response to the above problems, no effective solution has been proposed yet Summary of the Invention

[0005] Embodiments of the present invention provide a method, device, storage medium, and electronic device for verifying bill data, which can improve the reliability of data verification

[0006] According to one aspect of the embodiments of the present invention, a method for verifying bill data is provided, including: obtaining a set of bill information to be verified, where the set of bill information to be verified includes multiple groups of bill information to be verified, and each group of bill information to be verified includes first bill information and second bill information, and the first bill information and the second bill information are information in different systems respectively; obtaining first bill data in the first bill information and second bill data in the second bill information; verifying the first bill data and the second bill data, and returning a verification result

[0007] According to another aspect of the embodiments of the present invention, a device for verifying bill data is further provided, including: a first obtaining unit for obtaining a set of bill information to be verified, where the set of bill information to be verified includes multiple groups of bill information to be verified, and each group of bill information to be verified includes first bill information and second bill information, and the first bill information and the second bill information are information in different systems respectively; a second obtaining unit for obtaining first bill data in the first bill information and second bill data in the second bill information; a verification unit for verifying the first bill data and the second bill data, and returning a verification result

[0008] According to another aspect of the embodiments of the present invention, there is also provided a storage medium storing a computer program, wherein the computer program is configured to execute the above-mentioned bill data verification method when running.

[0009] According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the above-mentioned processor executes the above-mentioned bill data verification method through the computer program.

[0010] In the embodiments of the present invention, a set of bill information to be verified is obtained. The set of bill information to be verified includes multiple groups of bill information to be verified. Each group of bill information to be verified includes first verified bill information and second verified bill information. The first verified bill information and the second verified bill information are information in different systems respectively; the first bill data in the first verified bill information and the second bill data in the second verified bill information are obtained; the first bill data and the second bill data are verified, and a verification result is returned. This process can obtain multiple groups of bill information to be verified and perform bill data verification on multiple groups of bill information to be verified, so as to realize the verification of multiple groups of bill information to be verified and improve the reliability of data verification. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:

[0012] Figure 1 is a schematic diagram of the network environment of an optional bill data verification system according to the embodiments of the present invention;

[0013] Figure 2 is a schematic flowchart of an optional bill data verification method according to the embodiments of the present invention;

[0014] Figure 3 is a schematic diagram of an optional bill data verification according to the embodiments of the present invention;

[0015] Figure 4 is a schematic diagram of a verification form of an optional bill data verification according to the embodiments of the present invention;

[0016] Figure 5 is a schematic diagram of a verification form of another optional bill data verification according to the embodiments of the present invention;

[0017] Figure 6 is a schematic diagram of a verification form of another optional bill data verification according to the embodiments of the present invention;

[0018] Figure 7 It is a schematic diagram of an optional time cut-off point according to an embodiment of the present invention;

[0019] Figure 8 It is a schematic diagram of another optional bill data verification process according to an embodiment of the present invention;

[0020] Figure 9 It is a schematic diagram of an optional bill data verification device according to an embodiment of the present invention;

[0021] Figure 10 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed implementation manners

[0022] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0023] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0024] According to one aspect of the embodiments of the present invention, a bill data verification method is provided. Optionally, as an optional implementation manner, the above bill data verification method can be but is not limited to being applied to, for example, Figure 1In the bill data verification system in the shown network environment, the bill data verification system includes a user device 102, a network 110, and a server 112. Among them, the user device 102 includes a human-computer interaction screen 104, a processor 106, and a memory 108. The human-computer interaction screen 104 is used to display multiple groups of bill information to be verified in the set of bills to be verified, as well as the first bill data in the first verification bill information and the second bill data in the second verification bill information, etc.; the processor 106 is used to obtain data verification configuration information, and obtain the first bill data in the first verification bill information according to the data verification configuration information, and obtain the second bill data in the second verification bill information according to the data verification configuration information. The memory 108 is used to store bill information in different systems. Further, the processor 106 sends the above-mentioned first bill data and the above-mentioned second bill data to the server 112 through the network 110. The server 112 includes a database 114 and a processing engine 116. Among them, the database 114 is used to store the above-mentioned first bill data and the above-mentioned second bill data in sequence. Among them, the first bill data can include multiple data values, the second bill data can also include multiple data values, and the multiple data values in the first bill data and the multiple data values in the second bill data are data values to be compared correspondingly. The processor engine 116 is used to verify the first bill data and the second bill data and return the verification result.

[0025] S101. The user device 102 obtains a set of bill information to be verified. The set of bill information to be verified includes multiple groups of bill information to be verified. Each piece of bill information to be verified includes first verification bill information and second verification bill information. The first verification bill information and the second verification bill information are information in different systems respectively;

[0026] S102. The user device 102 obtains the first bill data in the first verification bill information and the second bill data in the second verification bill information;

[0027] S103. The user device 102 sends the first bill data in the first verification bill information and the second bill data in the second verification bill information to the network 110;

[0028] S104. The network 110 sends the first bill data in the first verification bill information and the second bill data in the second verification bill information to the server 112;

[0029] S105. The server 112 verifies the first bill data and the second bill data and returns the verification result.

[0030] In an embodiment of the present invention, the code corresponding to the bill data verification system can run in a user device, so that the user device obtains a set of bill information to be verified from a database. The set of bill information to be verified may include bill information stored in the memory of the user device, bill information stored in other user devices, bill information stored in a server, etc., which is not limited in the embodiment of the present invention. The set of bill information to be verified includes multiple groups of bill information to be verified, and each group of bill information to be verified includes two pieces of bill information to be verified, namely the first verified bill information and the second verified bill information. The first verified bill information and the second verified bill information are information in different systems. For example, when the first verified bill information is the payment bill information of a payment provider, the second verified bill information may be the payment bill information of a platform merchant. At this time, verifying the first verified bill information and the second verified bill information is to verify the payment data of the payment provider and the payment data of the platform merchant. Or, when the first verified bill information is the payment bill information of a platform merchant, the second verified bill information may be the order bill information of the platform merchant. At this time, verifying the first verified bill information and the second verified bill information is to verify the payment data and order data of the platform merchant. Optionally, the method for obtaining the set of bill information to be verified may be: receiving multiple groups of bill information to be verified selected by the user, and determining the multiple groups of bill information to be verified selected by the user as the set of bill information to be verified. This process can realize the verification of the bills selected by the user for verification, and the verification method is more flexible. After the user device obtains the first bill data and the second bill data, the first bill data and the second bill data can be sent to the server through the network, so that the server parses the first bill data and the second bill data on the big data platform, verifies the first bill data and the second bill data, and returns the verification result.

[0031] Optionally, in this embodiment, the above user device may be, but is not limited to, a computer device such as a mobile phone, a tablet computer, a laptop computer, a PC, etc. that supports running an application client. The above server and user device may be, but is not limited to, realizing data interaction through a network, and the above network may include, but is not limited to, a wireless network or a wired network. The wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication. The wired network may include, but is not limited to: a wide area network, a metropolitan area network, and a local area network. The above is only an example, and this embodiment does not make any limitation thereto.

[0032] Optionally, as an alternative embodiment, as Figure 2 shown, the above bill data verification method includes:

[0033] S201. Obtain a set of bills to be verified. The set of bills to be verified includes multiple groups of bills to be verified. Each bill to be verified includes first verified bill information and second verified bill information, and the first verified bill information and the second verified bill information are information from different systems respectively;

[0034] S202. Obtain the first bill data in the first verified bill information and the second bill data in the second verified bill information;

[0035] S203. Verify the first bill data and the second bill data, and return the verification result.

[0036] In an embodiment of the present invention, the set of bills to be verified is a set composed of multiple bills to be verified, and may include multiple groups of bills to be verified. Each group of bills to be verified includes first verified bill information and second verified bill information from different systems. The first verified bill information may include payment bill information of a merchant payment system, preferential bill information of a merchant order system, order bill information of a merchant order system, and logistics bill information in a merchant logistics system, etc. The second verified bill information may include payment bill information of a payment provider, marketing bill information of a merchant marketing system, commodity bill information of a merchant commodity system, and logistics bill information of a logistics provider, etc. Among them, the payment bill information of the merchant payment system and the payment bill information of the payment provider are a group of bills to be verified, the preferential bill information of the merchant order system and the marketing bill information of the merchant marketing system are a group of bills to be verified, the order bill information of the merchant order system and the commodity bill information of the merchant commodity system are a group of bills to be verified, and the logistics bill information in the merchant logistics system and the logistics bill information of the logistics provider are a group of bills to be verified. Further, the first bill data in the first verified bill information from the start time to the target time of the time period can be obtained. Further, the first bill data and the second bill data can be verified, and the verification result can be returned. Optionally, the first bill data includes multiple data, and the second bill data includes multiple data. Each data in the first bill is verified one by one with each data in the second bill to obtain the verification result. The verification result is used to indicate the matching situation between the bill data. Optionally, the verification result at least includes verification passed and verification failed. Among them, verification passed is used to indicate that all the data in the first bill data match all the data in the second bill data, and verification failed is used to indicate that there is a situation where the data in the first bill data does not match the data in the second bill data.

[0037] Please refer to Figure 3 , Figure 3 which is an optional schematic diagram of bill data verification described in an embodiment of the present invention. As Figure 3As shown, the bill data verification described in the embodiments of the present invention can be applied to data verification between various internal systems of a merchant, or to the verification of data between the data in the internal system of the merchant and the data in an external system. In Figure 3 In the schematic diagram of the bill data verification described, the internal system of the merchant includes a payment system 301, an order system 302, a logistics system 303, a marketing system 304, and a commodity system 305. Among them, the payment system 301 can store information such as payment amount, payment category, and payment channel; the order system 302 can store information such as order amount, order status, and order number; the logistics system 303 can store information such as logistics order number, logistics status, and logistics amount; the marketing system 304 can store information such as coupon identifier and discount amount; the commodity system 305 can store information such as commodity quantity, commodity status, and commodity identifier. Further, the payment provider can be an external system that provides payment services, and the statement 306 provided by the payment provider can be compared with the payment data in the payment system 301. The statement provided by the logistics provider can be an external system that provides logistics services, and the statement 307 provided by the logistics provider can be compared with the logistics data in the logistics system 303. Further, in the internal system of the merchant, the payment data in the payment system 301 can be compared with the order data in the order system 302, and the order data in the order system can also be compared with the marketing discount data in the marketing system, and the order data in the order system can also be compared with the commodity data in the commodity system, and the order data in the order system can also be compared with the logistics data in the logistics system. This process can achieve multiple groups of bill data verification and improve the reliability of bill data verification.

[0038] As an optional implementation manner, before obtaining the first bill data in the first verification bill information and the second bill data in the second verification bill information, the following steps can also be performed:

[0039] S1. Obtain the error value corresponding to each delay time obtained after data verification using different delay times;

[0040] S2. Determine the delay time with an error value less than the target threshold as the target delay time;

[0041] The above-mentioned obtaining of the first bill data in the first verification bill information and the second bill data in the second verification bill information may include:

[0042] Obtain the first bill data in the first verification bill information and the second bill data in the second verification bill information from the start time of the time period to the target time, where the target time is the time obtained by adding the target delay time to the end time of the time period.

[0043] In an embodiment of the present invention, after obtaining the first verification bill information and the second verification bill information, the first bill data in the first verification bill information from the start time of the time period to the target time can be obtained, and the second bill data in the second verification bill information from the start time of the time period to the target time can be obtained, and the target time is the time obtained by adding the end time of the time period and the target delay time. Since there is a delay in the process of data synchronization between different systems, the target time is set as the sum of the end time of the time period and the target delay time. In this way, the obtained first bill data and second bill data are more reliable, and the probability of data verification anomalies caused by system data synchronization delays can be reduced, improving the reliability of data verification. Among them, the time period may include, but is not limited to, one month, one day, or one hour. Taking the time period as one month as an example, the start time of the time period may be 00:00:00 on May 1st, and the end time of the time period may be 00:00:00 on June 1st. At this time, the time obtained by adding the end time and the target delay time can be determined as the target time. Among them, if the target delay time is ten minutes, the target time is 00:10:00 on June 1st. The target delay time may be the time taken for data synchronization between each system, and can be obtained based on experimental statistics, so that the data error values of the first bill data and the second bill data obtained using the target delay time are minimized. It has been found in practice that if the first bill data in the first verification bill information from the start time to the end time of the time period and the second bill data in the second verification bill information are obtained, the data verification mismatch situation that occurs is often due to the delay error of data synchronization between each system. For example, if an order system initiates an order data at 23:59:57, the payment system pays successfully at 23:59:58, and the payment system returns the payment success time of 23:59:58 to the order system at 00:00:10 on the next day, then this order will be recorded as a paid order data in the order system. If the time for bill data verification is 23:59:58, at this time, this paid order cannot be queried in the order system, while the paid payment data can be queried in the payment system, and at this time, the data verification will not be successful. In response to this situation, in the embodiment of the present invention, the target delay time is used to delay the cut-off time for obtaining data, so that the obtained data takes into account the delay of data synchronization between each system. Specifically, the error values corresponding to each delay time obtained after data verification with different delay times can be obtained.The error value corresponding to each delay time may be the number of data that do not match when using this delay time for data verification. Or, the error value corresponding to each delay time may also be the absolute value of the difference between the number of data that do not match when using this delay time for data verification and the number of data that do not match when using the end time of the time period for data verification. There is no limitation in the embodiments of the present invention. Further optionally, determining the delay time with an error value less than the target threshold as the target delay time may include: sorting the delay times corresponding to each error value according to the magnitude of the error value, and selecting the delay time at the target position among the sorted delay times as the target delay time, where the error value corresponding to the delay time at the target position is less than the target threshold. This process can determine the most suitable target delay time by means of experimental statistics, thereby improving the reliability of data verification.

[0044] As an optional implementation manner, after obtaining the first bill data in the first verification bill information and the second bill data in the second verification bill information, the following steps may further be performed:

[0045] Transfer the first bill data and the second bill data from the database to the target big data platform;

[0046] Verifying the first bill data and the second bill data and returning the verification result may include: verifying the first bill data and the second bill data by using the distributed computing of the target big data platform and returning the verification result.

[0047] In the embodiments of the present invention, after obtaining the first bill data and the second bill data, the first bill data and the second bill data may be transferred to the target big data platform, where the target big data platform is a technical platform for collecting, storing, calculating, statistics, and analysis processing of massive data. The distributed computing method of the target big data platform can be used to process the bill data verification, which can relieve the data processing pressure in the server or the database.

[0048] Please refer to Figure 4 , Figure 4 is a schematic diagram of a verification form for an optional bill data verification disclosed in the embodiments of the present invention. As shown in Figure 4 , the first verification bill information and the second verification bill information can be summarized in the form of a table. In Figure 4In the above table, the first verified bill information can be the information corresponding to the payment provider's bill, and the second verified bill information can be the information corresponding to the merchant's bill. The information corresponding to the payment provider's bill and the information corresponding to the merchant's bill include the total order number information, the received payment amount information, the received order number information, the refund amount information, and the refund order number information. The first bill data in the first verified bill information is the quantity of the total order number, the quantity of the received payment amount, the quantity of the received order number, the quantity of the refund amount, and the quantity of the refund order number in the payment provider's bill. The second bill data in the second verified bill information is the quantity of the total order number, the quantity of the received payment amount, the quantity of the received order number, the quantity of the refund amount, and the quantity of the refund order number in the merchant's bill. During the process of verifying the first bill data and the second bill data, each of the above data items will be compared to obtain the comparison result corresponding to each data item, that is Figure 4 the conclusion in the above table. If the data comparison is consistent, the conclusion is normal; if the data comparison is inconsistent, the conclusion is abnormal. In Figure 4 the following table, the first verified bill information can be the information corresponding to the merchant's bill, and the second verified bill information can be the information corresponding to the merchant's order. The information corresponding to the merchant's bill and the information corresponding to the merchant's order include the total order number information, the payment amount information, the payment order number information, the refund amount information, and the refund order number information. The first bill data in the first verified bill information is the quantity of the total order number, the quantity of the payment amount, the quantity of the payment order number, the quantity of the refund amount, and the quantity of the refund order number in the merchant's bill. The second bill data in the second verified bill information is the quantity of the total order number, the quantity of the payment amount, the quantity of the payment order number, the quantity of the refund amount, and the quantity of the refund order number in the merchant's order. During the process of verifying the first bill data and the second bill data, each of the above data items will be compared to obtain the comparison result corresponding to each data item, that is Figure 4 the conclusion in the following table. If the data comparison is consistent, the conclusion is normal; if the data comparison is inconsistent, the conclusion is abnormal.

[0049] Please refer to Figure 5 , Figure 5 which is another optional schematic diagram of the verification form for bill data verification disclosed in the embodiments of the present invention. In the case where the above data comparison is inconsistent, Figure 4 the conclusion box in the table in Figure 5As shown, in the case where the first verified bill information is the information corresponding to the payment provider's bill and the second verified bill information is the information corresponding to the merchant's bill, the channel code, channel interaction number, transaction type, transaction amount, transaction time, error type, and detailed reason corresponding to the abnormal data can be output. Among them, the channel code is used to represent the payment channel of the bill data, the channel interaction number is used to represent the payment code corresponding to the bill data in this payment channel, the transaction type is used to indicate whether the bill data is payment data or refund data, the transaction amount is used to represent the amount of the bill data, the transaction time is used to represent the time of the transaction, the error type is used to represent the error type of inconsistent data comparison, and the detailed reason is a further explanation for this error type. For example, the detailed reason can be reasons such as missing orders. In the case where the first verified bill information is the information corresponding to the merchant's bill and the second verified bill information is the information corresponding to the merchant's order, the source, transaction type, transaction number, transaction amount, transaction time, error type, and detailed reason corresponding to the abnormal data can be output. Among them, the source of the abnormal data can include the merchant's payment system or the merchant's bill system, the transaction type can be payment or refund, the transaction number can be the code of this transaction, the transaction amount can be the payment amount or the refund amount, the transaction time can be the time of making the payment or the refund, the error type is used to represent the error type of inconsistent data comparison, and the detailed reason is a further explanation for this error type. For example, the detailed reason can be reasons such as missing orders.

[0050] Please refer to Figure 6 , Figure 6 which is another optional schematic diagram of the verification form for bill data verification disclosed in the embodiments of the present invention. As Figure 6 shown, before data verification, Figure 6The verification form shown, specifically, it is necessary to configure the data introduction, data source table, associated fields, reconciliation content, time fields, cycle, time cut-off point, and screening conditions corresponding to the first verification bill information and the second verification bill information. Among them, the data introduction can be used to identify the data source. For example, the data introduction of the first verification bill information can be configured as the merchant's order system, and the data introduction of the second verification bill information can be configured as the merchant's payment system. The data source table is used to configure the data source. Specifically, the data source table can be the source table name corresponding to the first verification bill information and the source table name corresponding to the second verification bill information. The associated fields are used to configure the fields that associate the first bill data in the first verification bill information and the second bill data in the second verification bill information. The reconciliation content is multiple data included in the first bill data and the second bill data. The time field is the field definition of the bill generation time of the first verification bill information and the second verification bill information. The cycle is the cycle for data verification, which can include, but is not limited to, one month, one day, etc. The time cut-off point is the time point for obtaining data determined according to the cycle, and the screening condition is the condition for the user to select the data for verification. After completing the configuration of the verification form, the above verification form can be obtained and parsed during verification. Further, please refer to Figure 7 , Figure 7 FIG. Figure 7 is a schematic diagram of an optional time cut-off point disclosed in an embodiment of the present invention. When the cycle P is in months, the time cut-off point can be the target date: target hour: target minute: target second. When the cycle P is in days, the time cut-off point can be the target hour: target minute: target second. When the cycle P is in hours, the time cut-off point can be the target minute: target second.

[0051] As an optional implementation manner, after verifying the first bill data and the second bill data and returning the verification result, the following steps can also be executed:

[0052] S1. When the verification result is the first data identifier, output the description information corresponding to the first data identifier. The first data identifier is used to indicate that there is a first target bill record in the first bill data and there is no first target bill record in the second bill data;

[0053] S2. When the verification result is the second data identifier, output the description information corresponding to the second data identifier. The second data identifier is used to indicate that there is no second target bill record in the first bill data and there is a second target bill record in the second bill data;

[0054] S3. When the verification result is the third data identifier, output the description information corresponding to the third data identifier. The third data identifier is used to indicate that there is a third target bill record in the first bill data and a third target bill record in the second bill data, but the bill value in the third target bill record in the first bill data is different from the bill value in the third target bill record in the second bill data.

[0055] In the embodiments of the present invention, the first data identifier, the second data identifier, and the third data identifier are error codes used to identify error reasons. For example, the first data identifier can be 801, the second data identifier can be 802, and the third data identifier can be 803. The error code 801 can correspond to the situation that there is a first target bill record in the first bill data and no first target bill record in the second bill data. The error code 802 can correspond to the situation that there is no second target bill record in the first bill data and there is a second target bill record in the second bill data. The error code 803 can correspond to the situation that there is a third target bill record in the first bill data and a third target bill record in the second bill data, but the bill value in the third target bill record in the first bill data is different from the bill value in the third target bill record in the second bill data. For different error codes, the error reasons matching the error codes can be selected for display.

[0056] Further, when directly obtaining the first bill data and the second bill data within a time period for data verification without optimizing using the target delay time, the distribution of error codes is as follows:

[0057] Table 1

[0058] Error code Number of items Percentage 801 683 81.4% 802 108 12.9% 803 48 5.7%

[0059] In the case of performing data verification on the first bill data and the second bill data obtained after optimizing using the target delay time, the distribution of error codes is as follows:

[0060] Table 2

[0061]

[0062]

[0063] It can be seen that after optimizing using the target delay time, the occurrences of error code 801 and error code 802 can be significantly reduced, thereby improving the reliability of data verification.

[0064] As an optional implementation manner, after outputting the description information corresponding to the third data identifier, the following steps can also be executed:

[0065] Send task information to the target device, where the task information is information for instructing to verify the third target bill record.

[0066] In the embodiment of the present invention, the target device can be a device used by a staff member for error handling. Task information can be sent to the target device to instruct the staff member to verify the information of the third target bill record, thereby realizing error handling.

[0067] As an alternative embodiment, after obtaining the set of bills to be verified, it further includes:

[0068] Obtain the first screening condition corresponding to the first verification information and the second screening condition corresponding to the second verification information;

[0069] Obtain the first bill data in the first verified bill information and the second bill data in the second verified bill information, including: obtaining the first bill data that meets the first screening condition in the first verified bill information, and obtaining the second bill data that meets the second screening condition in the second verified bill information.

[0070] In the embodiment of the present invention, the first bill data and the second bill data to be verified in the first verified bill information and the second verified bill information can be selected by setting the first screening condition and the second screening condition, meeting various data verification requirements and having higher flexibility.

[0071] As an alternative embodiment, before obtaining the set of bills to be verified, it further includes:

[0072] Obtain data verification configuration information, which at least includes information of the system to be verified. The information of the system to be verified includes the first system to be verified and the second system to be verified stored correspondingly;

[0073] Obtain the set of bills to be verified, including: obtaining the first verified bill information in the first system to be verified and obtaining the second verified bill information in the second system to be verified;

[0074] Determine at least one group of the first verified bill information and the second verified bill information as the set of bills to be verified.

[0075] In the embodiment of the present invention, the first system to be verified and the second system to be verified can be obtained from the data verification configuration information, and thereby the first verified bill information can be obtained from the first system to be verified and the second verified bill information can be obtained from the second system to be verified.

[0076] Please refer to Figure 8 , Figure 8 which is another alternative schematic flow diagram of bill data verification disclosed in the embodiment of the present invention. As shown in Figure 8 shown, the following steps can be executed:

[0077] S801, configure data verification configuration information;

[0078] S802, parse the data verification configuration information;

[0079] S803, obtain the first bill data in the first verification bill information and the second bill data in the second verification bill information;

[0080] S804, verify the first bill data and the second bill data, and return the verification result;

[0081] S805, in the case where the verification result indicates that the bills do not match, perform bill error handling to make the bills match.

[0082] In the embodiments of the present invention, the data verification configuration information can be configured first. The data verification configuration information is used to indicate information such as the data source and data content for the current data verification. When performing data verification, first parse the data verification configuration information, obtain the first bill data in the first verification bill information and the second bill data in the second verification bill information according to the data verification configuration information, and connect the first bill data and the second bill data to the target big data platform. Use the distributed computing of the target big data platform to verify the first bill data and the second bill data, and return the verification result. If the verification result indicates that the bills do not match, bill error handling can also be performed to make the bills match.

[0083] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.

[0084] According to another aspect of the embodiments of the present invention, there is also provided a bill data verification device for implementing the above bill data verification method. As Figure 9 shown, the device includes:

[0085] The first acquisition unit 901 is used to acquire a set of bills to be verified. The set of bills to be verified includes multiple groups of bills to be verified. Each group of bills to be verified includes the first verification bill information and the second verification bill information. The first verification bill information and the second verification bill information are information in different systems respectively;

[0086] A second acquisition unit 902, configured to acquire first bill data in the first verification bill information and second bill data in the second verification bill information;

[0087] A verification unit 903, configured to verify the first bill data and the second bill data, and return a verification result.

[0088] As an optional implementation manner, the above device may further include:

[0089] A third acquisition unit, configured to acquire an error value corresponding to each delay time obtained after data verification using different delay times before acquiring the first bill data in the first verification bill information and the second bill data in the second verification bill information;

[0090] A determination unit, configured to determine a delay time with an error value less than a target threshold as a target delay time.

[0091] As an optional implementation manner, the above device may further include:

[0092] A transfer unit, configured to transfer the first bill data and the second bill data from a database to a target big data platform after acquiring the first bill data in the first verification bill information and the second bill data in the second verification bill information;

[0093] The manner in which the verification unit is configured to verify the first bill data and the second bill data and return a verification result is specifically as follows:

[0094] A verification unit, configured to verify the first bill data and the second bill data by using distributed computing of the target big data platform, and return a verification result.

[0095] As an optional implementation manner, the above device may further include:

[0096] An output unit, configured to, after verifying the first bill data and the second bill data and returning a verification result, output the description information corresponding to the first data identifier when the verification result is the first data identifier, where the first data identifier is used to indicate that there is a first target bill record in the first bill data and there is no first target bill record in the second bill data; output the description information corresponding to the second data identifier when the verification result is the second data identifier, where the second data identifier is used to indicate that there is no second target bill record in the first bill data and there is a second target bill record in the second bill data; output the description information corresponding to the third data identifier when the verification result is the third data identifier, where the third data identifier is used to indicate that there is a third target bill record in the first bill data and there is a third target bill record in the second bill data, but the bill value in the third target bill record in the first bill data is different from the bill value in the third target bill record in the second bill data.

[0097] As an optional implementation manner, the above device may further include:

[0098] A sending unit, configured to send task information to a target device after outputting the description information corresponding to the third data identifier, where the task information is information used to indicate verifying the third target bill record.

[0099] As an optional implementation manner, the above device may further include:

[0100] A fourth obtaining unit, configured to obtain a first screening condition corresponding to first verification information and a second screening condition corresponding to second verification information after obtaining a set of bills to be verified;

[0101] The specific manner in which the second obtaining unit obtains the first bill data in the first verified bill information and the second bill data in the second verified bill information is as follows:

[0102] A second obtaining unit, configured to obtain the first bill data that meets the first screening condition in the first verified bill information and obtain the second bill data that meets the second screening condition in the second verified bill information.

[0103] As an optional implementation manner, the above device may further include:

[0104] A fifth obtaining unit, configured to obtain data verification configuration information before obtaining the set of bills to be verified, where the data verification configuration information at least includes information about the system to be verified, and the information about the system to be verified includes a first system to be verified and a second system to be verified stored correspondingly;

[0105] The specific manner in which the first obtaining unit obtains the set of bills to be verified is as follows:

[0106] A first acquisition unit, configured to acquire first verification bill information in a first system to be verified and second verification bill information in a second verification system;

[0107] Determine at least one set of first verification bill information and second verification bill information as a set of bills to be verified.

[0108] According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the above bill data verification method. As Figure 10 shown, the electronic device includes a memory 1002 and a processor 1004. A computer program is stored in the memory 1002, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.

[0109] Optionally, in this embodiment, the above electronic device may be at least one of multiple network devices in a computer network.

[0110] Optionally, in this embodiment, the above processor may be configured to execute the following steps through the computer program:

[0111] S1. Acquire a set of bills to be verified, where the set of bills to be verified includes multiple groups of bills to be verified, and each group of bills to be verified includes first verification bill information and second verification bill information. The first verification bill information and the second verification bill information are information in different systems respectively;

[0112] S2. Acquire first bill data in the first verification bill information and second bill data in the second verification bill information;

[0113] S3. Verify the first bill data and the second bill data, and return a verification result.

[0114] Optionally, those of ordinary skill in the art can understand that Figure 10 the structure shown is only schematic, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a mobile Internet device (Mobile Internet Devices, MID), a PAD and other terminal devices. Figure 10 It does not limit the structure of the above electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, etc.) than those shown in Figure 10 , or have a different configuration from that shown in Figure 10 .

[0115] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the bill data verification method and device in the embodiments of the present invention. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, to implement the above-mentioned bill data verification method. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 1002 may further include a memory remotely disposed relative to the processor 1004, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1002 can specifically but not limitedly be used to store information such as operation instructions. As an example, as Figure 10 shown, the above memory 1002 can include but is not limited to the first acquisition unit 901, the second acquisition unit 902, and the verification unit 903 in the above bill data verification device. In addition, it can also include but is not limited to other module units in the above bill data verification device, which will not be elaborated in this example.

[0116] Optionally, the above transmission device 1006 is used to receive or send data via a network. Specific examples of the above network can include wired networks and wireless networks. In one instance, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers through a network cable, thereby enabling communication with the Internet or a local area network. In one instance, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0117] In addition, the above electronic device further includes: a connection bus 1008, which is used to connect each module component in the above electronic device.

[0118] According to another aspect of the embodiments of the present invention, there is also provided a storage medium, in which a computer program is stored, and wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0119] Optionally, in this embodiment, the above storage medium can be configured to store a computer program for executing the following steps:

[0120] S1. Obtain a set of bills to be verified. The set of bills to be verified includes multiple groups of bills to be verified. Each bill to be verified includes a first verified bill information and a second verified bill information. The first verified bill information and the second verified bill information are information from different systems respectively;

[0121] S2. Obtain the first bill data in the first verified bill information and the second bill data in the second verified bill information;

[0122] S3. Verify the first bill data and the second bill data, and return the verification result.

[0123] Optionally, in this embodiment, those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware of the terminal device through a program. The program can be stored in a computer-readable storage medium. The storage medium can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disc, etc.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] If the integrated unit in the above embodiments is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the above computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, 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. The computer software product is stored in the storage medium and includes several instructions for causing one or more computer devices (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0126] In the above embodiments of the present invention, the descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0127] In several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of units or modules can be in an electrical or other form.

[0128] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0129] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0130] The above is only the preferred embodiment of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can still be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.

Claims

1. A bill data verification method, characterized in that, Including: Obtain a set of bills to be verified, where the set of bills to be verified includes multiple groups of bills to be verified, and each bill to be verified includes first verified bill information and second verified bill information, and the first verified bill information and the second verified bill information are information in different systems respectively; Obtain error values corresponding to each of the delay times after data verification using different delay times; Determine the delay time with the error value less than the target threshold as the target delay time; Obtain the first bill data in the first verified bill information and the second bill data in the second verified bill information, including: obtaining the first bill data in the first verified bill information and the second bill data in the second verified bill information from the start time of the time period to the target time, and the target time is the time obtained by adding the target delay time to the end time of the time period; Verify the first bill data and the second bill data and return the verification result.

2. The method according to claim 1, wherein After obtaining the first bill data in the first verified bill information and the second bill data in the second verified bill information, it further includes: Transfer the first bill data and the second bill data from the database to the target big data platform; The verifying the first bill data and the second bill data and returning the verification result includes: verifying the first bill data and the second bill data using the distributed computing of the target big data platform and returning the verification result.

3. The method according to claim 1, characterized in that, After verifying the first bill data and the second bill data and returning the verification result, it further includes: When the verification result is the first data identifier, output the description information corresponding to the first data identifier, and the first data identifier is used to indicate that there is a first target bill record in the first bill data and there is no such first target bill record in the second bill data; When the verification result is the second data identifier, output the description information corresponding to the second data identifier, and the second data identifier is used to indicate that there is no second target bill record in the first bill data and there is a second target bill record in the second bill data; When the verification result is the third data identifier, output the description information corresponding to the third data identifier, and the third data identifier is used to indicate that there is a third target bill record in the first bill data and there is a third target bill record in the second bill data, but the bill value in the third target bill record in the first bill data is different from the bill value in the third target bill record in the second bill data.

4. The method according to claim 3, wherein After outputting the description information corresponding to the third data identifier, it further includes: Send task information to the target device, and the task information is information for instructing to verify the third target bill record.

5. The method according to claim 1, characterized in that After obtaining the set of bills to be verified, it further includes: Obtain the first screening condition corresponding to the first verification information and the second screening condition corresponding to the second verification information; The obtaining of the first bill data in the first verification bill information and the second bill data in the second verification bill information includes: obtaining the first bill data that meets the first screening condition in the first verification bill information, and obtaining the second bill data that meets the second screening condition in the second verification bill information.

6. The method according to claim 1, wherein Before the obtaining of the set of bills to be verified, it further includes: Obtain data verification configuration information, where the data verification configuration information at least includes information on the system to be verified, and the information on the system to be verified includes a first system to be verified and a second system to be verified stored correspondingly; The obtaining of the set of bills to be verified includes: obtaining the first verification bill information in the first system to be verified, and obtaining the second verification bill information in the second verification system; Determine at least one group of the first verification bill information and the second verification bill information as the set of bills to be verified.

7. A bill data verification device, characterized in that, It includes: A first obtaining unit, configured to obtain a set of bills to be verified, where the set of bills to be verified includes multiple groups of bills to be verified, and each group of bills to be verified includes first verification bill information and second verification bill information, and the first verification bill information and the second verification bill information are information in different systems respectively; A third obtaining unit, configured to obtain the error value corresponding to each of the delay times after data verification using different delay times; A determination unit, configured to determine the delay time with the error value less than the target threshold as the target delay time; A second obtaining unit, configured to obtain the first bill data in the first verification bill information and the second bill data in the second verification bill information, including: obtaining the first bill data in the first verification bill information and the second bill data in the second verification bill information from the start time of the time period to the target time, where the target time is the time obtained by adding the target delay time to the end time of the time period; A verification unit, configured to verify the first bill data and the second bill data and return a verification result.

8. The device according to claim 7, characterized in that, It further includes: A transfer unit, configured to transfer the first bill data and the second bill data from the database to the target big data platform after the obtaining of the first bill data in the first verification bill information and the second bill data in the second verification bill information; The manner in which the verification unit is configured to verify the first bill data and the second bill data and return the verification result is specifically: The verification unit is configured to verify the first bill data and the second bill data using the distributed computing of the target big data platform and return the verification result.

9. The device according to claim 7, characterized in that, It further includes: An output unit, after verifying the first bill data and the second bill data and returning a verification result, outputs the description information corresponding to the first data identifier when the verification result is the first data identifier, where the first data identifier is used to indicate that there is a first target bill record in the first bill data and there is no such first target bill record in the second bill data; outputs the description information corresponding to the second data identifier when the verification result is the second data identifier, where the second data identifier is used to indicate that there is no second target bill record in the first bill data and there is such second target bill record in the second bill data; outputs the description information corresponding to the third data identifier when the verification result is the third data identifier, where the third data identifier is used to indicate that there is a third target bill record in the first bill data, and there is such third target bill record in the second bill data, but the bill value in the third target bill record in the first bill data is different from the bill value in the third target bill record in the second bill data.

10. The device according to claim 9, characterized in that, Further comprising: A sending unit, after outputting the description information corresponding to the third data identifier, sends task information to a target device, where the task information is information for instructing to verify the third target bill record.

11. The device according to claim 7, characterized in that, Further comprising: A fourth obtaining unit, after obtaining the set of bills to be verified, obtains the first screening condition corresponding to the first verification information and the second screening condition corresponding to the second verification information; The specific manner in which the second obtaining unit obtains the first bill data in the first verified bill information and the second bill data in the second verified bill information is as follows: The second obtaining unit is configured to obtain the first bill data in the first verified bill information that meets the first screening condition, and obtain the second bill data in the second verified bill information that meets the second screening condition.

12. A computer-readable storage medium, the computer-readable storage medium comprising a stored program, wherein, When the program runs, it executes the method described in any one of claims 1 to 6 above.

13. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Account checking method and system, computer equipment and storage medium

    CN110287200A