CN106503977B - Data processing method, system and device - Google Patents
Data processing method, system and device Download PDFInfo
- Publication number
- CN106503977B CN106503977B CN201610915150.4A CN201610915150A CN106503977B CN 106503977 B CN106503977 B CN 106503977B CN 201610915150 A CN201610915150 A CN 201610915150A CN 106503977 B CN106503977 B CN 106503977B
- Authority
- CN
- China
- Prior art keywords
- data
- account
- interaction
- interactive
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/102—Bill distribution or payments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/22—Payment schemes or models
- G06Q20/227—Payment schemes or models characterised in that multiple accounts are available, e.g. to the payer
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a data processing method, a system and a device. Wherein, the method comprises the following steps: the server acquires interactive data and current account data of a target account in a preset time period; the server acquires account change data of the target account in a preset time period according to the interactive data and preset conditions, wherein the preset conditions are used for representing the account data increase and decrease conditions of the target account caused by interaction indicated by the interactive data; the server acquires second account data according to the first account data and the account change data, wherein the first account data is data of a target account at the initial moment of a preset time period, and the second account data is data of the first account data changed according to the account change data; the server compares whether the current account data is consistent with the second account data or not to obtain a comparison result. The invention solves the technical problem that the existing checking mode is inaccurate.
Description
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, a system, and an apparatus for processing data.
Background
The data interaction system generally completes data interaction in a data transmission mode, and performs corresponding operations according to the interaction data, for example, data interaction is performed between third-party software installed in a mobile phone terminal and a server through a network, when a user transmits data online through the third-party software, the server performs data interaction with the third-party software, and processes the interaction data to complete data transmission operations. In this process, the interactive system completes the change of account data. For example, the third party software is third party payment software, and account data changes are generated in the payment process. A data interaction system similar to the payment system generates a large amount of service data after long-term operation, so that the data checking work becomes heavy and complicated, and the checking result is often not accurate enough.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a system and a device, which at least solve the technical problem that the existing checking mode is inaccurate.
According to an aspect of an embodiment of the present invention, there is provided a data processing method, including: the server acquires interactive data and current account data of a target account in a preset time period; the server acquires account change data of the target account in the preset time period according to the interaction data and preset conditions, wherein the preset conditions are used for representing the increase and decrease of the account data of the target account caused by the interaction indicated by the interaction data; the server acquires second account data according to first account data and the account change data, wherein the first account data is data of the target account at the initial moment of the preset time period, and the second account data is data of the first account data changed according to the account change data; and the server compares whether the current account data is consistent with the second account data or not to obtain a comparison result.
According to another aspect of the embodiments of the present invention, there is also provided a data processing system, including: the receiving unit is used for receiving the audit request from the interactive system; the first acquisition unit is used for acquiring interactive data and current account data of a target account in a preset time period from the interactive system according to the audit request; a second obtaining unit, configured to obtain account change data of the target account in the preset time period according to the interaction data and a preset condition, where the preset condition is used to indicate that an increase or decrease of the account data of the target account is caused by the interaction indicated by the interaction data; a third obtaining unit, configured to obtain second account data according to first account data and the account change data, where the first account data is data of the target account at an initial time of the preset time period, and the second account data is data of the first account data after being changed according to the account change data; and the comparison unit is used for comparing whether the current account data is consistent with the second account data or not to obtain a comparison result.
According to another aspect of the embodiments of the present invention, there is also provided a data processing apparatus, including: the data acquisition unit is used for acquiring transaction data and current account data of the target account in a preset time period; the data change unit is used for acquiring account change data of the target account in the preset time period according to the transaction data and preset conditions, wherein the preset conditions are used for representing the increase and decrease of the account data of the target account caused by the transaction indicated by the transaction data; a theoretical data unit, configured to obtain second account data according to first account data and the account change data, where the first account data is data of the target account at an initial time of the preset time period, and the second account data is data of the first account data after being changed according to the account change data; and the result unit is used for comparing whether the current account data is consistent with the second account data or not to obtain a comparison result.
In the embodiment of the invention, the data audit of the account is realized by comparing whether the current account data is consistent with the second account data or not in a mode of acquiring the account change data of the target account in the preset time period according to the interactive data and the preset conditions of the target account in the preset time period and acquiring the second account data after the first account data is changed according to the account change data, so that the technical effect of finishing the account data audit according to the interactive data is realized, and the technical problem of inaccurate existing audit mode is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is an architecture diagram of a hardware system according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative method of processing data according to an embodiment of the invention;
FIG. 3 is a flow chart of an alternative method of processing data according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative data processing system according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative data processing system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method that may be performed by an embodiment of the apparatus of the present application, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
According to an embodiment of the present invention, a method for processing data is provided.
Alternatively, in this embodiment, the data processing method may be applied to a hardware environment formed by the terminal 102 and the server 104 shown in fig. 1. As shown in fig. 1, a terminal 102 is connected to a server 104 via a network including, but not limited to: the terminal 102 may be a mobile phone terminal, or may also be a PC terminal, a notebook terminal, or a tablet terminal.
Fig. 2 is a flowchart of an optional data processing method according to an embodiment of the present invention, and the following describes the data processing method according to the embodiment of the present invention with reference to fig. 2, as shown in fig. 2, the data processing method mainly includes the following steps S202 to S208:
step S202, the server acquires the interactive data and the current account data of the target account in a preset time period.
The data interaction indicated by the interaction data occurs only within the preset time period, and the interaction data may include only interaction data that enables an increase or decrease in the account data. When data interaction is carried out, the interactive system processes the interactive data, the account data is correspondingly changed according to the interactive data, and the changed data is the current account data.
Step S204, the server obtains account change data of the target account in the preset time period according to the interaction data and a preset condition, where the preset condition is used to indicate that the interaction indicated by the interaction data causes an increase or decrease of the account data of the target account.
The preset condition represents the data increase and decrease condition of the account data of the target account according to the interactive data in the data interaction process when the specified data interaction occurs, so that the change data of the target account, which is acquired according to the interactive data and the preset condition, can represent the increase condition of the account data of the target account and the decrease condition of the account data of the target account when the interaction indicated by the interactive data occurs.
For example: the target account is a mobile network flow account of a mobile terminal user, and for the account, the interactive data mainly comprises two types, one type is flow use data, the other type is flow recharging data, the preset condition corresponding to the flow use data is flow data reduction of the flow account, and the preset condition corresponding to the flow recharging data is flow data increase of the flow account. According to the preset conditions, the flow use data and the flow recharging data, the change data of the flow account of the user can be acquired as follows: how much the traffic data of the traffic account is decreased and how much the traffic data of the traffic account is increased.
Step S206, the server obtains second account data according to first account data and the account change data, where the first account data is data of the target account at an initial time of the preset time period, and the second account data is data of the first account data changed according to the account change data.
The data before the interaction of the target account in the preset time period occurs is the first account data, that is, the first account data is the data of the target account at the initial time of the preset time period. After the first account data is correspondingly increased and decreased according to the account change data of the target account in the preset time period, the second account data can be obtained.
For example: the target account is a mobile network flow account of a mobile terminal user, the flow data of the flow account is 200M at the initial time of a preset time period, that is, the first account data of the flow account is 200M, two data interactions occur in the preset time period, so that the flow data of the flow account is changed, which are respectively: user "uses" 150M traffic data; the user "charges" 500M of traffic data. The change data of the flow account in the preset time period is as follows: the flow data is reduced by 150M and the flow data is increased by 500M, after the first account data is correspondingly increased and reduced according to the account change data, the obtained flow data of the flow account is 550M, and the second account data is: 550M.
Step S208, the server compares whether the current account data is consistent with the second account data, and obtains a comparison result.
In the embodiment of the invention, the data audit of the account is realized by comparing whether the current account data is consistent with the second account data or not in a mode of acquiring the account change data of the target account in the preset time period according to the interactive data and the preset conditions of the target account in the preset time period and acquiring the second account data after the first account data is changed according to the account change data, so that the technical effect of finishing the account data audit according to the interactive data is realized, and the technical problem of inaccurate existing audit mode is solved.
When the data processing method provided by the embodiment of the present invention is applied to the hardware environment formed by the terminal 102 and the server 104 shown in fig. 1, the hardware environment system shown in fig. 1 may perform the check of the traffic data in the above example, and may also perform the check of the network payment, and the following takes the network payment as an example to describe the main operation principle of the hardware environment system shown in fig. 1, specifically as follows:
the description will be given by taking the terminal 102 as a mobile phone terminal, the interactive system as an online transaction system, and the interactive data as transaction data. The terminal 102 is provided with online payment application software which can be used for payment process guidance, authority control and the like, when a user needs to perform online transaction, the operation of sending a transaction request and the like is completed through the payment process guidance of the online payment application software, and a transaction password is input for transaction authorization; the server 104 is provided with a transaction system and an auditing system, wherein the transaction system processes the transaction request after receiving the transaction request sent by the terminal 102 through the network, and completes the data change of an account related to the transaction request; after the transaction system completes the transaction request processing and before the processing result is returned to the terminal 102, an audit request is sent to the audit system, the audit system is requested to perform data audit on the current account, the audit system performs data audit on the account according to the audit request, generates an audit result, and performs corresponding processing.
Optionally, the obtaining, by the server, the account change data of the target account in the preset time period according to the interaction data and the preset condition includes: the server acquires an interactive account, an interactive type and an interactive numerical value from the interactive data; the server determines the accumulated increasing or decreasing value of the target account in the preset time period according to the interactive account, the interactive type and the interactive value; the server takes the value of the cumulative increase or decrease as the account change data.
Optionally, the determining, by the server, a value that the target account is increased or decreased cumulatively within the preset time period according to the interaction account, the interaction type, and the interaction value includes: the server counts target interaction data of the target account according to the interaction account; the server counts the increase and decrease of the interaction value in the target account according to the interaction type in the target interaction data and the preset condition; and accumulating the increased interactive numerical value and the decreased interactive numerical value by the server to obtain the accumulated increased or decreased numerical value.
The interactive data is data transmitted during interaction, records interactive main data, and comprises: interaction accounts, interaction types, and interaction values, such as: the interactive account may include: remaining traffic accounts, using traffic accounts, paying users, paid merchants, etc.; the types of interactions may include: "use", "pay", "collect", "transfer" and "recharge", etc., interactive values are values where the interaction causes the account to increase or decrease, usually consisting of numbers and units, such as: 100 yuan, 200M. When the account change data of the target account is acquired according to the interactive data and the preset conditions, firstly, the interactive data is counted according to the interactive account, and the counted result is used as the target interactive data of the target account; and then counting the increasing value and the decreasing value of the target interactive data according to the interactive type and the preset condition in the target interactive data, and taking the counted result as the cumulative increasing and decreasing value of the target account, namely the change data of the target account.
For example: the interactions that occur within the preset time period are: the price of a certain commodity is 100 yuan, the paying user pays 98 yuan for purchasing the commodity, the promoter pays 2 yuan through a third account according to the promotion rule of the commodity, the paid merchant of the commodity pays 100 yuan, and the commodity is provided to the paying user. The interactive data in the data interaction process is as follows: the payment user pays 98 yuan, the third account pays 2 yuan, and the paid merchant collects 100 yuan, and the interaction data comprises an interaction account, an interaction type and an interaction value, wherein the interaction account comprises: payment user, third account, and paid merchant, the interaction type including: paying and collecting money, wherein the interaction value comprises: 98, 2, 100. Firstly, interactive data are counted according to an interactive account, a statistical result is used as target interactive data, and the target interactive data are as follows: the interactive account is as follows: payment user, interaction type: payment, interactive value: 98-membered; the interactive account is as follows: third account, interaction type: payment, interactive value: 2 yuan; the interactive account is as follows: paid merchant, interaction type: collection, interactive value: 100 yuan. Then, counting the increase value and the decrease value of the target interaction data according to the interaction type and the preset condition, wherein the counting result is as follows: the payment user is reduced by 98 elements, the third account is reduced by 2 elements, and the paid merchant is increased by 100 elements. The statistical result is the value of the accumulated increase and decrease of the target account, and is the change data of the target account.
The following steps are repeated: for the data interaction process of 'employee urban traffic reimbursement' of the enterprise: employee A reports its traffic fee 78 yuan to company, and company reports its traffic fee to employee A through stock cash, and the interactive data is: 78 Yuan "account" reimbursement "for cash in stock," 78 Yuan "account" accounting for business cost-travel fee. For the account of the company, the "data interaction" causes the "cash in stock" account and the "business cost-travel" account to change, wherein the interaction type of 78 yuan of "cash in stock" account "reimbursement" is "reimbursement", the corresponding preset condition is reduction, the interaction type of 78 yuan of "business cost-travel" account "accounting" is "accounting", the corresponding preset condition is increase, the transaction data is counted according to the interaction account, the interaction type and the preset condition, and the account change data of the company is obtained as follows: the "cash in stock" account is reduced by 78 dollars, and the "business cost-travel" account is increased by 78 dollars.
Optionally, before the server obtains the interaction data and the current account data of the target account within the preset time period, the method further includes: after the interactive system carries out interactive processing according to an interactive request initiated by a user and before the interactive system returns a processing result, the interactive system initiates an auditing request to an auditing system, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data according to the current interactive data.
The auditing request is sent to the auditing system to realize real-time processing of the current interactive data, namely, the interactive system completes the processing of the interaction according to the interactive request of the user, including the processing of the target account according to the interaction after the corresponding change of the interaction, and before the interactive system returns the processing result to the user, the auditing request is sent to the auditing system to request the processing of the interaction, namely, the comparison of whether the current account data is consistent with the second account data is completed through the method.
Optionally, before the server obtains the interaction data and the current account data of the target account within the preset time period, the method further includes: the server judges whether the current time interval meets a preset trigger period or not; and the server initiates an auditing request when the current time interval meets the preset trigger period, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data or not for the interactive data in the current time interval.
The method can also realize the periodic processing of the account data by presetting the time period for sending the audit request, namely sending the audit request to the audit system when the current time interval meets the preset time period, requesting to process the interactive data occurring in the current time interval, and finishing the comparison of whether the current account data is consistent with the second account data or not by the method.
Optionally, the interaction data in the preset time period includes current interaction data, and after the server compares whether the current account data is consistent with the second account data, and obtains a comparison result, the method further includes: if the comparison result indicates that the current account data is consistent with the second account data, the server determines that the current interaction is normal; and if the comparison result indicates that the current account data is inconsistent with the second account data, the server determines that the current interaction is abnormal and marks the abnormal current interaction.
After the comparison of whether the current account data is consistent with the second account data is completed by the method, corresponding processing can be performed according to the comparison result, and the comparison result is as follows: if the current account data is consistent with the second account data, the current data interaction is normal, the processing is not needed, the next interaction is waited for and the interaction data in the next time or the next time period is processed; the comparison result is: if the current account data is not consistent with the second account data, the current data interaction is abnormal, and the current interaction can be marked or processed.
Fig. 3 is a flowchart of an optional data processing method according to an embodiment of the present invention, and as shown in fig. 3, the data processing method mainly includes the following steps S301 to S308:
step S301 starts.
Step S302, an audit request is received.
The auditing request is sent by the interactive system, and the auditing system is requested to perform data auditing on the target account according to the current interactive data.
Step S303, inquiring all the interactive data and the actual account data between the last audit and the current audit.
The last audit to the current audit can be regarded as a time period (equivalent to a preset time period), the time period can be preset to be a fixed time period, and the current audit can also be triggered in real time by data interaction; the interaction data represents data content transmitted during data interaction occurring in the time period, and comprises interaction types, interaction values and interaction accounts, such as: the interactive account may include: remaining traffic accounts, using traffic accounts, paying users, paid merchants, etc.; the transaction types may include: "use", "pay", "collect", "transfer" and "top up", interactive values are values where the interaction causes the account to increase or decrease, usually consisting of numbers and units, such as: 100 yuan, 200M; the actual account data includes data after the last successful audit (corresponding to the first account data) and data to be audited (corresponding to the current account data).
And step S304, classifying and counting the interactive data according to the interactive types.
The interactive data is data content transmitted when data interaction occurs, the interactive data is classified and counted according to interaction types, the interactive data is classified according to different interaction types, and the interactive numerical value of the classified interactive data is summarized and counted; when a plurality of interactive accounts are available, the interactive data can be classified according to the interactive accounts, and then the classified interactive data is subjected to summary statistics to obtain the change data of the accounts.
For example: the data interaction occurring within the preset time period is as follows: the price of a certain commodity is 100 yuan, the paying user pays 98 yuan for purchasing the commodity, the promoter pays 2 yuan through a third account according to the promotion rule of the commodity, the paid merchant of the commodity pays 100 yuan, and the commodity is provided to the paying user. The interactive data of the interaction is as follows: the payment user pays 98 yuan, the third account pays 2 yuan, and the paid merchant collects 100 yuan. Classifying the interactive data according to the interactive type and the interactive account to obtain three types of interactive data, wherein the first type of interactive data comprises the following steps: the interactive account is as follows: payment user, interaction type: payment, interactive value: 98-membered; second-type interaction data: the interactive account is as follows: third account, interaction type: payment, interactive value: 2 yuan; the third kind of interactive data: the interactive account is as follows: paid merchant, interaction type: collection, interactive value: 100 yuan. Summarizing and counting the three types of interaction data, wherein the result is as follows: the payment user pays 98 yuan, the third account pays 2 yuan and the paid merchant receives 100 yuan. The categorized summary result is the change data for the target account.
Step S305, according to the interaction type and the predefined condition, the change data of the account is applied to the account data.
The predefined condition represents a data increase or decrease condition of the account data of the target account according to the interaction data when the specified data interaction occurs, for example: the preset condition of data interaction payment is that the account data is decreased, and the preset condition of data interaction collection is that the account data is increased. According to the interaction type and the predefined condition thereof, the change data of the target account can be applied to the account data, such as: the summary of the classifications in the above example results in: the payment of the payment user is 98 yuan, the payment of the third account is 2 yuan, the payment of the paid merchant is 100 yuan, and the application of the interaction type and the predefined condition to the account data is combined to obtain the following results: the payment user is reduced by 98 elements, the third account is reduced by 2 elements, and the paid merchant is increased by 100 elements.
Step S306, the data of the account after interactive playback is obtained.
The above classifying and summarizing interactive data, and applying the summarized result to the account data by combining the interactive type and the predefined condition is equivalent to data interactive playback, for example: balance payment is interactive, the influence on a balance account is balance reduction, and the balance of the balance account at the end of the term, namely the data of the account after interactive replay, can be obtained by calculating the balance of the balance account at the beginning of the term and the sum of balance payment through interactive replay.
In step S307, the two account data are compared.
Comparing the data to be audited with the data of the account after interactive replay, and comparing whether the two are consistent, so as to obtain the auditing result.
Step S308, completing the audit, and waiting for processing the next audit request.
After obtaining the audit result, further processing can be performed, such as: if the data to be audited is consistent with the data of the account after interactive replay, the current data interaction is normal, the audit can be completed without processing, and the next audit request is waited to be processed; if the data to be audited is not consistent with the data of the account after interactive replay, the current data interaction is abnormal, the current data interaction can be marked or processed, then the audit is completed, and the next audit request is waited to be processed.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided a data processing system for implementing the data processing method, where the data processing system is mainly used to execute the data processing method provided in the foregoing content of the embodiment of the present invention, and the following specifically describes the data processing system provided in the embodiment of the present invention:
fig. 4 is a schematic diagram of a processing system of account data according to an embodiment of the present invention, and as shown in fig. 4, the processing system of account data mainly includes:
and the receiving unit is used for receiving the audit request from the interactive system.
After the interactive system completes the processing of the data interaction according to the interactive request of the user, the interactive system sends an auditing request to the auditing system after the target account is correspondingly changed according to the interactive data and before the interactive system returns the processing result to the user, and after the receiving unit receives the auditing request, the auditing system conducts data auditing on the target account.
The time period for sending the audit request is preset, and periodic processing of data can be realized, namely when the current time interval meets the preset time period, the interactive system sends the audit request to the audit system, and after the receiving unit receives the audit request, the audit system conducts data audit on the target account according to the interactive data in the current time interval.
The first acquisition unit is used for acquiring interactive data and current account data of the target account in a preset time period from the interactive system according to the audit request;
the data interaction indicated by the interaction data occurs only within the preset time period, and the interaction data may include only interaction data that enables an increase or decrease in the account data. When data interaction is carried out, the interactive system processes the interactive data, the account data is correspondingly changed according to the interactive data, and the changed data is the current account data.
And the second obtaining unit is used for obtaining account change data of the target account in a preset time period according to the interactive data and preset conditions, wherein the preset conditions are used for representing the account data increase and decrease condition of the target account caused by the interaction indicated by the interactive data.
The preset condition represents the data increase and decrease condition of the account data of the target account according to the interactive data in the data interaction process when the specified data interaction occurs, so that the change data of the target account, which is acquired according to the interactive data and the preset condition, can represent the increase condition of the account data of the target account and the decrease condition of the account data of the target account when the interaction indicated by the interactive data occurs.
For example: the target account is a mobile network flow account of a mobile terminal user, and for the account, the interactive data mainly comprises two types, one type is flow use data, the other type is flow recharging data, the preset condition corresponding to the flow use data is flow data reduction of the flow account, and the preset condition corresponding to the flow recharging data is flow data increase of the flow account. According to the preset conditions, the flow use data and the flow recharging data, the change data of the flow account of the user can be acquired as follows: how much the traffic data of the traffic account is decreased and how much the traffic data of the traffic account is increased.
The interactive data is data transmitted during interaction, records interactive main data, and comprises: interaction accounts, interaction types, and interaction values, such as: the interactive account may include: remaining traffic accounts, using traffic accounts, paying users, paid merchants, etc.; the types of interactions may include: "use", "pay", "collect", "transfer" and "recharge", etc., interactive values are values where the interaction causes the account to increase or decrease, usually consisting of numbers and units, such as: 100 yuan, 200M. When the account change data of the target account is acquired according to the interactive data and the preset conditions, firstly, the interactive data is counted according to the interactive account, and the counted result is used as the target interactive data of the target account; and then counting the increasing value and the decreasing value of the target interactive data according to the interactive type and the preset condition in the target interactive data, and taking the counted result as the cumulative increasing and decreasing value of the target account, namely the change data of the target account.
For example: the interactions that occur within the preset time period are: the price of a certain commodity is 100 yuan, the paying user pays 98 yuan for purchasing the commodity, the promoter pays 2 yuan through a third account according to the promotion rule of the commodity, the paid merchant of the commodity pays 100 yuan, and the commodity is provided to the paying user. The interactive data in the data interaction process is as follows: the payment user pays 98 yuan, the third account pays 2 yuan, and the paid merchant collects 100 yuan, and the interaction data comprises an interaction account, an interaction type and an interaction value, wherein the interaction account comprises: payment user, third account, and paid merchant, the interaction type including: paying and collecting money, wherein the interaction value comprises: 98, 2, 100. Firstly, interactive data are counted according to an interactive account, a statistical result is used as target interactive data, and the target interactive data are as follows: the interactive account is as follows: payment user, interaction type: payment, interactive value: 98-membered; the interactive account is as follows: third account, interaction type: payment, interactive value: 2 yuan; the interactive account is as follows: paid merchant, interaction type: collection, interactive value: 100 yuan. Then, counting the increase value and the decrease value of the target interaction data according to the interaction type and the preset condition, wherein the counting result is as follows: the payment user is reduced by 98 elements, the third account is reduced by 2 elements, and the paid merchant is increased by 100 elements. The statistical result is the value of the accumulated increase and decrease of the target account, and is the change data of the target account.
And the third acquisition unit is used for acquiring second account data according to the first account data and the account change data, wherein the first account data is data of the target account at the initial moment of a preset time period, and the second account data is data obtained by changing the first account data according to the account change data.
The data before the interaction of the target account in the preset time period occurs is the first account data, that is, the first account data is the data of the target account at the initial time of the preset time period. After the first account data is correspondingly increased and decreased according to the account change data of the target account in the preset time period, the second account data can be obtained.
For example: the target account is a mobile network flow account of a mobile terminal user, the flow data of the flow account is 200M at the initial time of a preset time period, that is, the first account data of the flow account is 200M, two data interactions occur in the preset time period, so that the flow data of the flow account is changed, which are respectively: user "uses" 150M traffic data; the user "charges" 500M of traffic data. The change data of the flow account in the preset time period is as follows: the flow data is reduced by 150M and the flow data is increased by 500M, after the first account data is correspondingly increased and reduced according to the account change data, the obtained flow data of the flow account is 550M, and the second account data is: 550M.
And the comparison unit is used for comparing whether the current account data is consistent with the second account data or not to obtain a comparison result.
After obtaining the comparison result, further processing can be performed, such as: if the current account data is consistent with the second account data, the current data interaction is normal, the processing is not needed, the next interaction is waited for and the interaction data in the next time or the next time period is processed; the comparison result is: if the current account data is not consistent with the second account data, the current data interaction is abnormal, and the current interaction can be marked or processed.
In the embodiment of the invention, the data audit of the account is realized by comparing whether the current account data is consistent with the second account data or not in a mode of acquiring the account change data of the target account in the preset time period according to the interactive data and the preset conditions of the target account in the preset time period and acquiring the second account data after the first account data is changed according to the account change data, so that the technical effect of finishing the account data audit according to the interactive data is realized, and the technical problem of inaccurate existing audit mode is solved.
Fig. 5 is a schematic diagram of an alternative data processing system according to an embodiment of the present invention, and as shown in fig. 5, the quasi-real-time data auditing system is a data processing system, and the transaction flow control module performs data interaction with the account module.
The transaction flow control module: the module is arranged at a user terminal and used for controlling the preposed flow of the transaction through the guidance of the payment flow, and the preposed flow comprises the following steps: for example, a select transaction item guide, a determine purchase transaction item guide, and a select payment method guide, etc. The transaction flow control module is also connected with authority control, a user can authorize the online transaction by inputting a secret key and the like, and the transaction flow control module sends a transaction request to the account module when the transaction is carried out.
An account module: corresponding to an interactive system, when an account module receives a transaction request (corresponding to an interactive request) sent by a transaction flow control module, the transaction request is processed, and the processing comprises the following steps: message parsing, distribution, business processing, etc., where the business processing involves the transfer of account data. After the transaction system processes the transaction request, executes the transaction and completes the corresponding account data transfer, and before the transaction system makes a transaction response to the transaction flow control module, the transaction auditing request is sent to the quasi-real-time account data auditing system, and the quasi-real-time account data auditing system is requested to audit the data of the current target account according to the current transaction.
The quasi-real-time account data auditing system comprises: corresponding to a processing system of data. After receiving the audit request from the transaction system, obtaining the current transaction data (corresponding to the interaction data only including the current interaction data in the preset time period) and the current account data of the target account from the transaction system.
And obtaining the change data of the target account according to the current transaction data and preset conditions, namely the increase condition of the account data of the target account and the decrease condition of the account data of the target account. The preset condition represents the data increase and decrease condition of the account data of the target account according to the transaction when the current transaction occurs.
Second account data is obtained based on the first account data and the account change data provided by the transaction system. The first account data is the data of the target account before the current transaction occurs, and the obtained account data is the second account data after the first account data is correspondingly increased and decreased according to the target account change data.
For example: before the transaction occurs, the account data for the payment user is: 300 yuan, account data of the third party account is 1000 yuan, and account data of the paid merchant is 500 yuan. The currently occurring transaction is: the price of a certain commodity is 100 yuan, the paying user pays 98 yuan for purchasing the commodity, the promoter pays 2 yuan through a third account according to the promotion rule of the commodity, the paid merchant of the commodity pays 100 yuan, and the commodity is provided to the paying user. The transaction data for the transaction is: the payment user pays 98 yuan, the third account pays 2 yuan, and the paid merchant collects 100 yuan. The transaction data includes a transaction account, a transaction type and a transaction value, wherein the transaction account includes: a payment user, a third account, and a paid merchant, the transaction types including: payment and collection, wherein the transaction value comprises: 98, 2, 100. The preset conditions are as follows: the transaction type is "payment" and the account data is decreased, the transaction type is "cash collection" and the account data is increased. The change data of the target account obtained according to the current transaction data and the preset conditions is as follows: the payment user is reduced by 98 elements, the third account is reduced by 2 elements, and the paid merchant is increased by 100 elements. The first account data is correspondingly increased and decreased according to the target account change data, namely: the payment user obtains second account data according to the first account data and the account change data as follows: the first account data of the payment user is 300 yuan, 98 yuan is reduced, and 202 yuan is changed; the first account data of the third account is 1000 yuan, which is reduced by 2 yuan and becomes 998 yuan; the first account data of the paid merchant is 500 yuan, increased by 100 yuan and changed into 600 yuan, and the second account data is: the account data of the payment user is 202 yuan, the account data of the third account is 998 yuan, and the account data of the payment merchant is 600 yuan.
Comparing whether the current account data is consistent with the second account data to obtain an audit result, if the current account data is consistent with the second account data, the current transaction is normal and does not need to be processed; if the current account data is not consistent with the second account data, the current transaction is abnormal, and the current transaction can be marked or processed.
After the quasi-real-time account data auditing system completes the data auditing request, the transaction system carries out corresponding processing according to the auditing result, and finally makes transaction response to the transaction flow control module.
Example 3
According to an embodiment of the present invention, there is also provided a data processing apparatus for implementing the data processing method, where the data processing apparatus is mainly configured to execute the data processing method provided in the foregoing content of the embodiment of the present invention, and the following describes in detail the data processing apparatus provided in the embodiment of the present invention:
fig. 6 is a schematic diagram of an alternative data processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the data processing apparatus mainly includes:
the data obtaining unit 601 is configured to obtain, by the server, interaction data and current account data of the target account in a preset time period.
The data interaction indicated by the interaction data occurs only within the preset time period, and the interaction data may include only interaction data that enables an increase or decrease in the account data. When data interaction is carried out, the interactive system processes the interactive data, the account data is correspondingly changed according to the interactive data, and the changed data is the current account data.
A data changing unit 602, configured to obtain, by the server, account change data of the target account in a preset time period according to the interaction data and a preset condition, where the preset condition is used to indicate that the interaction indicated by the interaction data causes an increase or decrease of the account data of the target account.
The preset condition represents the data increase and decrease condition of the account data of the target account according to the interactive data in the data interaction process when the specified data interaction occurs, so that the change data of the target account, which is acquired according to the interactive data and the preset condition, can represent the increase condition of the account data of the target account and the decrease condition of the account data of the target account when the interaction indicated by the interactive data occurs.
For example: the target account is a mobile network flow account of a mobile terminal user, and for the account, the interactive data mainly comprises two types, one type is flow use data, the other type is flow recharging data, the preset condition corresponding to the flow use data is flow data reduction of the flow account, and the preset condition corresponding to the flow recharging data is flow data increase of the flow account. According to the preset conditions, the flow use data and the flow recharging data, the change data of the flow account of the user can be acquired as follows: how much the traffic data of the traffic account is decreased and how much the traffic data of the traffic account is increased.
The theoretical data unit 603 is configured to obtain, by the server, second account data according to first account data and account change data, where the first account data is data of a target account at an initial time of a preset time period, and the second account data is data of the first account data after the first account data is changed according to the account change data.
The data before the interaction of the target account in the preset time period occurs is the first account data, that is, the first account data is the data of the target account at the initial time of the preset time period. After the first account data is correspondingly increased and decreased according to the account change data of the target account in the preset time period, the second account data can be obtained.
For example: the target account is a mobile network flow account of a mobile terminal user, the flow data of the flow account is 200M at the initial time of a preset time period, that is, the first account data of the flow account is 200M, two data interactions occur in the preset time period, so that the flow data of the flow account is changed, which are respectively: user "uses" 150M traffic data; the user "charges" 500M of traffic data. The change data of the flow account in the preset time period is as follows: the flow data is reduced by 150M and the flow data is increased by 500M, after the first account data is correspondingly increased and reduced according to the account change data, the obtained flow data of the flow account is 550M, and the second account data is: 550M.
A result unit 604, configured to compare, by the server, whether the current account data is consistent with the second account data, and obtain a comparison result.
In the embodiment of the invention, the data audit of the account is realized by comparing whether the current account data is consistent with the second account data or not in a mode of acquiring the account change data of the target account in the preset time period according to the interactive data and the preset conditions of the target account in the preset time period and acquiring the second account data after the first account data is changed according to the account change data, so that the technical effect of finishing the account data audit according to the interactive data is realized, and the technical problem of inaccurate existing audit mode is solved.
Optionally, the data change unit includes: the data module is used for acquiring an interactive account, an interactive type and an interactive numerical value from the interactive data through the server; the determining module is used for determining the accumulated increasing or decreasing value of the target account in a preset time period according to the interactive account, the interactive type and the interactive value through the server; and the change module is used for taking the accumulated increased or decreased numerical value as account change data through the server.
Optionally, the determining module includes: the first statistic submodule is used for counting target interaction data of a target account according to the interaction account through the server; the second counting submodule is used for counting the increase and decrease of the interaction value in the target account according to the interaction type in the target interaction data and the preset condition through the server; and the accumulation submodule is used for accumulating the increased interactive numerical value and the decreased interactive numerical value through the server to obtain an accumulated increased or decreased numerical value.
The interactive data is data transmitted during interaction, records interactive main data, and comprises: interaction accounts, interaction types, and interaction values, such as: the interactive account may include: remaining traffic accounts, using traffic accounts, paying users, paid merchants, etc.; the types of interactions may include: "use", "pay", "collect", "transfer" and "recharge", etc., interactive values are values where the interaction causes the account to increase or decrease, usually consisting of numbers and units, such as: 100 yuan, 200M. When the account change data of the target account is acquired according to the interactive data and the preset conditions, firstly, the interactive data is counted according to the interactive account, and the counted result is used as the target interactive data of the target account; and then counting the increasing value and the decreasing value of the target interactive data according to the interactive type and the preset condition in the target interactive data, and taking the counted result as the cumulative increasing and decreasing value of the target account, namely the change data of the target account.
For example: the interactions that occur within the preset time period are: the price of a certain commodity is 100 yuan, the paying user pays 98 yuan for purchasing the commodity, the promoter pays 2 yuan through a third account according to the promotion rule of the commodity, the paid merchant of the commodity pays 100 yuan, and the commodity is provided to the paying user. The interactive data in the data interaction process is as follows: the payment user pays 98 yuan, the third account pays 2 yuan, and the paid merchant collects 100 yuan, and the interaction data comprises an interaction account, an interaction type and an interaction value, wherein the interaction account comprises: payment user, third account, and paid merchant, the interaction type including: paying and collecting money, wherein the interaction value comprises: 98, 2, 100. Firstly, interactive data are counted according to an interactive account, a statistical result is used as target interactive data, and the target interactive data are as follows: the interactive account is as follows: payment user, interaction type: payment, interactive value: 98-membered; the interactive account is as follows: third account, interaction type: payment, interactive value: 2 yuan; the interactive account is as follows: paid merchant, interaction type: collection, interactive value: 100 yuan. Then, counting the increase value and the decrease value of the target interaction data according to the interaction type and the preset condition, wherein the counting result is as follows: the payment user is reduced by 98 elements, the third account is reduced by 2 elements, and the paid merchant is increased by 100 elements. The statistical result is the value of the accumulated increase and decrease of the target account, and is the change data of the target account.
The following steps are repeated: for the data interaction process of 'employee urban traffic reimbursement' of the enterprise: employee A reports its traffic fee 78 yuan to company, and company reports its traffic fee to employee A through stock cash, and the interactive data is: 78 Yuan "account" reimbursement "for cash in stock," 78 Yuan "account" accounting for business cost-travel fee. For the account of the company, the "data interaction" causes the "cash in stock" account and the "business cost-travel" account to change, wherein the interaction type of 78 yuan of "cash in stock" account "reimbursement" is "reimbursement", the corresponding preset condition is reduction, the interaction type of 78 yuan of "business cost-travel" account "accounting" is "accounting", the corresponding preset condition is increase, the transaction data is counted according to the interaction account, the interaction type and the preset condition, and the account change data of the company is obtained as follows: the "cash in stock" account is reduced by 78 dollars, and the "business cost-travel" account is increased by 78 dollars.
Optionally, the apparatus further comprises: the system comprises a first request unit, a second request unit and a third request unit, wherein the first request unit is used for initiating an auditing request to the auditing system through the interactive system before the server acquires interactive data and current account data of a target account in a preset time period, after the interactive system carries out interactive processing according to an interactive request initiated by a user and before the interactive system returns a processing result, the auditing request is used for requesting to compare whether the current account data is consistent with the second account data or not according to the current interactive data.
The auditing request is sent to the auditing system to realize real-time processing of the current interactive data, namely, the interactive system completes the processing of the interaction according to the interactive request of the user, including the processing of the target account according to the interaction after the corresponding change of the interaction, and before the interactive system returns the processing result to the user, the auditing request is sent to the auditing system to request the processing of the interaction, namely, the comparison of whether the current account data is consistent with the second account data is completed through the method. .
Optionally, the apparatus further comprises: the judging unit is used for judging whether the current time interval meets a preset trigger cycle or not through the server before the server acquires the interactive data and the current account data of the target account in a preset time period; and the second request unit is used for initiating an auditing request when the current time interval meets a preset trigger period through the server, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data or not for the interactive data in the current time interval.
The method can also realize the periodic processing of the account data by presetting the time period for sending the audit request, namely sending the audit request to the audit system when the current time interval meets the preset time period, requesting to process the interactive data occurring in the current time interval, and finishing the comparison of whether the current account data is consistent with the second account data or not by the method.
Optionally, the interaction data in the preset time period includes currently interacted data, and the apparatus further includes: the first result unit is used for determining that the current interaction is normal through the server when the comparison result indicates that the current account data is consistent with the second account data after the server compares whether the current account data is consistent with the second account data and obtains the comparison result; and the second result unit is used for determining that the current interaction is abnormal through the server and marking the abnormal current interaction after the server compares whether the current account data is consistent with the second account data and obtains a comparison result and the comparison result indicates that the current account data is inconsistent with the second account data.
After the comparison of whether the current account data is consistent with the second account data is completed by the method, corresponding processing can be performed according to the comparison result, and the comparison result is as follows: if the current account data is consistent with the second account data, the current data interaction is normal, the processing is not needed, the next interaction is waited for and the interaction data in the next time or the next time period is processed; the comparison result is: if the current account data is not consistent with the second account data, the current data interaction is abnormal, and the current interaction can be marked or processed.
Example 4
According to an embodiment of the present invention, there is also provided a server for implementing the data processing method, as shown in fig. 7, the server mainly includes a processor 701, a memory 702, and a network interface 703, where:
the memory 702 is mainly used for storing preset conditions, intermediate data in the process of acquiring second account data according to the preset conditions, the first account data and the interactive data, and a comparison result between the current account data and the second account data.
The network interface 703 is mainly used for performing network communication with the interactive system, and acquiring first account data, interactive data, current account data, and the like.
The processor 701 is mainly configured to perform the following operations:
acquiring interactive data and current account data of a target account in a preset time period; acquiring account change data of the target account in a preset time period according to the interactive data and preset conditions, wherein the preset conditions are used for representing the account data increase and decrease conditions of the target account caused by interaction indicated by the interactive data; acquiring second account data according to the first account data and the account change data, wherein the first account data is data of a target account at the initial moment of a preset time period, and the second account data is data of the first account data changed according to the account change data; and comparing whether the current account data is consistent with the second account data or not to obtain a comparison result.
The processor 701 is further configured to obtain an interaction account, an interaction type, and an interaction value from the interaction data; determining the accumulated increasing or decreasing value of the target account in a preset time period according to the interactive account, the interactive type and the interactive value; the cumulative increase or decrease value is used as account change data.
The processor 701 is further configured to count target interaction data of the target account according to the interaction account; counting the increase and decrease of the interaction value in the target account according to the interaction type and the preset condition in the target interaction data; and accumulating the increased interactive numerical value and the decreased interactive numerical value to obtain an accumulated increased or decreased numerical value.
The processor 701 is further configured to initiate an audit request to the audit system after the interactive system performs interactive processing according to the interactive request initiated by the user and before the interactive system returns a processing result, where the audit request is used to request to compare whether the current account data is consistent with the second account data according to the current interactive data.
The processor 701 is further configured to determine whether the current time interval meets a preset trigger period; and initiating an auditing request when the current time interval meets a preset trigger period, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data or not for the interactive data in the current time interval.
The processor 701 is further configured to determine that the current interaction is normal when the comparison result indicates that the current account data is consistent with the second account data; and when the comparison result indicates that the current account data is inconsistent with the second account data, determining that the current interaction is abnormal, and marking the abnormal current interaction.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1, embodiment 2, and embodiment 3, which are not described herein again.
Example 5
The embodiment of the invention also provides a storage medium. Alternatively, in this embodiment, the storage medium may be configured to store a program code of the data processing method according to the embodiment of the present invention.
Optionally, in this embodiment, the storage medium may be located in at least one of a plurality of network devices in a network of a mobile communication network, a wide area network, a metropolitan area network, or a local area network.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, acquiring interactive data and current account data of the target account in a preset time period;
s2, obtaining account change data of the target account in a preset time period according to the interactive data and preset conditions, wherein the preset conditions are used for representing the account data increase and decrease conditions of the target account caused by the interaction indicated by the interactive data;
s3, acquiring second account data according to the first account data and the account change data, wherein the first account data is data of the target account at the initial moment of a preset time period, and the second account data is data of the first account data changed according to the account change data;
and S4, comparing whether the current account data is consistent with the second account data or not, and obtaining a comparison result.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, in this embodiment, the processor performs obtaining the interaction account, the interaction type, and the interaction value from the interaction data according to the program code stored in the storage medium; determining the accumulated increasing or decreasing value of the target account in a preset time period according to the interactive account, the interactive type and the interactive value; the cumulative increase or decrease value is used as account change data.
Optionally, in this embodiment, the processor performs, according to the program code stored in the storage medium, counting target interaction data of the target account according to the interaction account; counting the increase and decrease of the interaction value in the target account according to the interaction type and the preset condition in the target interaction data; and accumulating the increased interactive numerical value and the decreased interactive numerical value to obtain an accumulated increased or decreased numerical value.
Optionally, in this embodiment, the processor executes, according to program codes stored in the storage medium, after the interactive system performs interactive processing according to the interactive request initiated by the user and before the interactive system returns a processing result, the auditing system initiates an auditing request, where the auditing request is used to request to compare whether the current account data is consistent with the second account data according to the current interactive data.
Optionally, in this embodiment, the processor executes, according to a program code stored in the storage medium, to determine whether the current time interval meets a preset trigger period; and initiating an auditing request when the current time interval meets a preset trigger period, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data or not for the interactive data in the current time interval.
Optionally, in this embodiment, the processor determines that the current interaction is normal when the comparison result indicates that the current account data is consistent with the second account data, according to program codes stored in the storage medium; and when the comparison result indicates that the current account data is inconsistent with the second account data, determining that the current interaction is abnormal, and marking the abnormal current interaction.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1, embodiment 2, and embodiment 3, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (15)
1. A system for processing data, the system for processing data in communication with an interactive system, comprising:
the receiving unit is used for receiving the audit request from the interactive system;
the auditing system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring interactive data and current account data of a target account in a preset time period from the interactive system according to the auditing request, and the interactive data is data which causes the target account data to be increased or decreased when the target account performs data interaction;
a second obtaining unit, configured to obtain account change data of the target account in the preset time period according to the interaction data and a preset condition, where the preset condition is used to indicate an increase or decrease condition of account data of the target account caused by interaction indicated by the interaction data, the interaction data includes an interaction account, an interaction type, and an interaction value of the target account during data interaction, the interaction type is used to indicate a change manner of the target account data, and when there are multiple interaction accounts, the interaction data includes an interaction type and an interaction value corresponding to each of the multiple interaction accounts;
a third obtaining unit, configured to obtain second account data according to first account data and the account change data, where the first account data is data of the target account at an initial time of the preset time period, and the second account data is data of the first account data after being changed according to the account change data;
and the comparison unit is used for comparing whether the current account data is consistent with the second account data or not to obtain a comparison result.
2. A method for processing data, comprising:
the method comprises the steps that a server obtains interactive data and current account data of a target account in a preset time period, wherein the interactive data is data which cause the target account data to be increased or decreased when the target account carries out data interaction;
the server obtains account change data of the target account in the preset time period according to the interaction data and preset conditions, wherein the preset conditions are used for representing account data increase and decrease conditions of the target account caused by interaction indicated by the interaction data, the interaction data comprise an interaction account, an interaction type and an interaction numerical value of the target account during data interaction, the interaction type is used for representing a change mode of the target account data, and the interaction data comprise an interaction type and an interaction numerical value corresponding to each interaction account of the interaction accounts under the condition that the interaction accounts are multiple;
the server acquires second account data according to first account data and the account change data, wherein the first account data is data of the target account at the initial moment of the preset time period, and the second account data is data of the first account data changed according to the account change data;
and the server compares whether the current account data is consistent with the second account data or not to obtain a comparison result.
3. The method of claim 2, wherein the server obtaining the account change data of the target account in the preset time period according to the interaction data and preset conditions comprises:
the server acquires an interactive account, an interactive type and an interactive numerical value from the interactive data;
the server determines the accumulated increasing or decreasing value of the target account in the preset time period according to the interactive account, the interactive type and the interactive value;
the server takes the value of the cumulative increase or decrease as the account change data.
4. The method of claim 3, wherein the server determining the accumulated increasing or decreasing value of the target account in the preset time period according to the interaction account, the interaction type and the interaction value comprises:
the server counts target interaction data of the target account according to the interaction account;
the server counts the increase and decrease of the interaction value in the target account according to the interaction type in the target interaction data and the preset condition;
and accumulating the increased interactive numerical value and the decreased interactive numerical value by the server to obtain the accumulated increased or decreased numerical value.
5. The method of claim 2, wherein before the server obtains the interaction data and the current account data of the target account within a preset time period, the method further comprises:
after the interactive system carries out interactive processing according to an interactive request initiated by a user and before the interactive system returns a processing result, the interactive system initiates an auditing request to an auditing system, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data according to the current interactive data.
6. The method of claim 2, wherein before the server obtains the interaction data and the current account data of the target account within a preset time period, the method further comprises:
the server judges whether the current time interval meets a preset trigger period or not;
and the server initiates an auditing request when the current time interval meets the preset trigger period, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data or not for the interactive data in the current time interval.
7. The method according to any one of claims 2 to 6, wherein the interaction data in the preset time period comprises data of current interaction, and after the server compares whether the current account data is consistent with the second account data, the method further comprises:
if the comparison result indicates that the current account data is consistent with the second account data, the server determines that the current interaction is normal;
and if the comparison result indicates that the current account data is inconsistent with the second account data, the server determines that the current interaction is abnormal and marks the abnormal current interaction.
8. An apparatus for processing data, comprising:
the data acquisition unit is used for acquiring interactive data and current account data of a target account in a preset time period through a server, wherein the interactive data is data which causes the target account data to be increased or decreased when the target account performs data interaction;
a data change unit, configured to obtain, by the server, account change data of the target account in the preset time period according to the interaction data and a preset condition, where the preset condition is used to indicate an increase or decrease condition of account data of the target account caused by the interaction indicated by the interaction data, the interaction data includes an interaction account, an interaction type, and an interaction value of the target account during data interaction, the interaction type is used to indicate a change manner of the target account data, and when a plurality of interaction accounts are provided, the interaction data includes an interaction type and an interaction value corresponding to each of the plurality of interaction accounts;
a theoretical data unit, configured to obtain, by the server, second account data according to first account data and the account change data, where the first account data is data of the target account at an initial time of the preset time period, and the second account data is data of the first account data after being changed according to the account change data;
and the result unit is used for comparing whether the current account data is consistent with the second account data through the server to obtain a comparison result.
9. The apparatus of claim 8, wherein the data change unit comprises:
the data module is used for acquiring an interactive account, an interactive type and an interactive numerical value from the interactive data through the server;
the determining module is used for determining the value of the accumulated increase or decrease of the target account in the preset time period according to the interactive account, the interactive type and the interactive value through the server;
and the change module is used for taking the accumulated increased or decreased numerical value as the account change data through the server.
10. The apparatus of claim 9, wherein the determining module comprises:
the first statistic submodule is used for counting the target interaction data of the target account according to the interaction account through the server;
the second counting submodule is used for counting the increase and decrease of the interaction value in the target account according to the interaction type in the target interaction data and the preset condition through the server;
and the accumulation submodule is used for accumulating the increased interaction numerical value and the decreased interaction numerical value through the server to obtain the accumulated increased or decreased numerical value.
11. The apparatus of claim 8, further comprising:
the auditing method comprises the steps that a first request unit is used for initiating an auditing request to an auditing system through an interactive system before a server acquires interactive data and current account data of a target account in a preset time period, the interactive system carries out interactive processing according to an interactive request initiated by a user and before the interactive system returns a processing result, wherein the auditing request is used for requesting to compare whether the current account data is consistent with second account data or not according to the interactive data of current interaction.
12. The apparatus of claim 8, further comprising:
the system comprises a judging unit, a triggering unit and a processing unit, wherein the judging unit is used for judging whether a current time interval meets a preset triggering period or not through a server before the server acquires interactive data and current account data of a target account in a preset time period;
and the second request unit is used for initiating an auditing request when the current time interval meets the preset trigger period through the server, wherein the auditing request is used for requesting to compare whether the current account data is consistent with the second account data or not for interactive data in the current time interval.
13. The apparatus according to any one of claims 8 to 12, wherein the interaction data in the preset time period includes data of a current interaction, the apparatus further comprising:
a first result unit, configured to determine, by the server, that the current interaction is normal when the comparison result indicates that the current account data is consistent with the second account data after the server compares whether the current account data is consistent with the second account data and obtains the comparison result;
and the second result unit is used for determining that the current interaction is abnormal through the server and marking the abnormal current interaction after the server compares whether the current account data is consistent with the second account data and obtains a comparison result and the comparison result indicates that the current account data is inconsistent with the second account data.
14. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 2 to 7.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 2 to 7 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610915150.4A CN106503977B (en) | 2016-10-20 | 2016-10-20 | Data processing method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610915150.4A CN106503977B (en) | 2016-10-20 | 2016-10-20 | Data processing method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106503977A CN106503977A (en) | 2017-03-15 |
CN106503977B true CN106503977B (en) | 2021-04-09 |
Family
ID=58318031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610915150.4A Active CN106503977B (en) | 2016-10-20 | 2016-10-20 | Data processing method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106503977B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106980684B (en) * | 2017-03-31 | 2020-04-17 | 电信科学技术第五研究所有限公司 | Method and system for realizing data flow audit of large-scale informatization system |
CN110599026B (en) * | 2019-09-09 | 2022-07-05 | 北京搜狗科技发展有限公司 | Data processing method and device for data processing |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710410A (en) * | 2009-10-28 | 2010-05-19 | 金蝶软件(中国)有限公司 | Method and system for checking accounting data |
CN101976419A (en) * | 2010-10-19 | 2011-02-16 | 中国工商银行股份有限公司 | Processing method and system for risk monitoring and controlling of transaction data |
CN103325032A (en) * | 2012-03-21 | 2013-09-25 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN103577571A (en) * | 2013-10-31 | 2014-02-12 | 北京奇虎科技有限公司 | Data processing method and device |
CN103778584A (en) * | 2012-10-23 | 2014-05-07 | 鸿富锦精密工业(深圳)有限公司 | Patent fee auditing system and method |
CN103955854A (en) * | 2014-04-28 | 2014-07-30 | 华为技术有限公司 | Account management device and method |
CN104732441A (en) * | 2015-04-07 | 2015-06-24 | 中国农业银行股份有限公司 | Data checking method and device applicable to fund consignment sale mechanism |
CN105719143A (en) * | 2014-12-01 | 2016-06-29 | 阿里巴巴集团控股有限公司 | Data verification method and device |
CN105790952A (en) * | 2016-02-29 | 2016-07-20 | 上海诺亚投资管理有限公司 | Verification system and verification method of user information |
CN105847367A (en) * | 2016-03-30 | 2016-08-10 | 乐视控股(北京)有限公司 | Service request processing method and apparatus |
-
2016
- 2016-10-20 CN CN201610915150.4A patent/CN106503977B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710410A (en) * | 2009-10-28 | 2010-05-19 | 金蝶软件(中国)有限公司 | Method and system for checking accounting data |
CN101976419A (en) * | 2010-10-19 | 2011-02-16 | 中国工商银行股份有限公司 | Processing method and system for risk monitoring and controlling of transaction data |
CN103325032A (en) * | 2012-03-21 | 2013-09-25 | 阿里巴巴集团控股有限公司 | Data processing method and device |
CN103778584A (en) * | 2012-10-23 | 2014-05-07 | 鸿富锦精密工业(深圳)有限公司 | Patent fee auditing system and method |
CN103577571A (en) * | 2013-10-31 | 2014-02-12 | 北京奇虎科技有限公司 | Data processing method and device |
CN103955854A (en) * | 2014-04-28 | 2014-07-30 | 华为技术有限公司 | Account management device and method |
CN105719143A (en) * | 2014-12-01 | 2016-06-29 | 阿里巴巴集团控股有限公司 | Data verification method and device |
CN104732441A (en) * | 2015-04-07 | 2015-06-24 | 中国农业银行股份有限公司 | Data checking method and device applicable to fund consignment sale mechanism |
CN105790952A (en) * | 2016-02-29 | 2016-07-20 | 上海诺亚投资管理有限公司 | Verification system and verification method of user information |
CN105847367A (en) * | 2016-03-30 | 2016-08-10 | 乐视控股(北京)有限公司 | Service request processing method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN106503977A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10867304B2 (en) | Account type detection for fraud risk | |
US7848736B2 (en) | Package billing for micro-transactions | |
US8543502B2 (en) | System and method for pricing of merchant accounts | |
US8346661B2 (en) | Aggregation of customer transaction data | |
WO2019197920A1 (en) | Systems and methods for implementing a blockchain-based money transfer network | |
CN106600284B (en) | Credit line authorization method and device | |
KR100583181B1 (en) | System and method for providing partial payment in the electronic commerce | |
CN112465528A (en) | Digital commodity unsubscribe processing method, device, equipment and storage medium | |
CN103154983A (en) | Payment system, shopping system and method for performing a plurality of payment transactions | |
CN110610247B (en) | Service data processing method and device | |
US20240185256A1 (en) | Methods for payment and merchant systems | |
CN110148046A (en) | A kind of payment management method and device | |
KR101564063B1 (en) | Mobile point collecting system and method | |
CN106503977B (en) | Data processing method, system and device | |
KR102354858B1 (en) | Electronic apparatus for processing item sales information and method thereof | |
TWI521451B (en) | To assess the risk of online consumption of trading control methods, systems and online transactions to pay methods | |
CN116188072A (en) | User equity processing system and member equity processing system | |
JP2018106587A (en) | Settlement device and settlement system | |
KR101889360B1 (en) | Method of paying mobile, terminal performing the same, server performing the same and storage media storing the same | |
KR102318699B1 (en) | Electronic apparatus for processing item sales information and method thereof | |
US20210158337A1 (en) | Payment processing method and payment processing device | |
WO2013126982A1 (en) | System and method of facilitating payday loans | |
KR101074617B1 (en) | System and method for providing partial payment in the electronic commerce | |
CN118822531A (en) | Fused cashing system, method, device, readable storage medium and product | |
KR20210106793A (en) | Hybrid Electronic Money Conversion System, and Method For Converting and using Hybrid Electronic Money |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |