CN110599026A - Data processing method and device for data processing - Google Patents

Data processing method and device for data processing Download PDF

Info

Publication number
CN110599026A
CN110599026A CN201910848957.4A CN201910848957A CN110599026A CN 110599026 A CN110599026 A CN 110599026A CN 201910848957 A CN201910848957 A CN 201910848957A CN 110599026 A CN110599026 A CN 110599026A
Authority
CN
China
Prior art keywords
data
account
transaction data
time
historical transaction
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.)
Granted
Application number
CN201910848957.4A
Other languages
Chinese (zh)
Other versions
CN110599026B (en
Inventor
王勇
段军峰
刘洁
范志刚
杨淞合
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201910848957.4A priority Critical patent/CN110599026B/en
Publication of CN110599026A publication Critical patent/CN110599026A/en
Application granted granted Critical
Publication of CN110599026B publication Critical patent/CN110599026B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention provides a data processing method and device and a device for data processing. The method specifically comprises the following steps: acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute; dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions; and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data. The embodiment of the invention can avoid the complex operation of recalculating the account balance at the end of term through all the historical transaction data of the account balance, thereby improving the calculation efficiency.

Description

Data processing method and device for data processing
Technical Field
The present invention relates to the field of big data processing technologies, and in particular, to a data processing method and apparatus, and an apparatus for data processing.
Background
For an enterprise, generally, the service business of the enterprise can be divided into a plurality of businesses. For example, if the plurality of services of the enterprise include a watch service and a blower service, an enterprise account a1 may be set for the watch service and an enterprise account a2 may be set for the blower service. In this way, the enterprise may separately manage and maintain the account balances of its respective enterprise accounts.
However, in a specific application, transaction data may exist between a plurality of enterprise accounts of an enterprise and a plurality of banks, and if the account balance of one of the enterprise accounts is calculated incorrectly, all transaction data between the enterprise account and the plurality of banks need to be recalculated, which results in low calculation efficiency.
Disclosure of Invention
The embodiment of the invention provides a data processing method and device and a data processing device, wherein historical transaction data of an enterprise account are divided according to a preset time region, so that when the account balance of a certain time region of the enterprise account is calculated incorrectly, the account balance of the certain time region is rapidly acquired again according to the regional historical transaction data of the certain time region, and the account balance of the certain time region does not need to be acquired again according to all the historical transaction data, so that the calculation efficiency is improved.
In order to solve the above problem, the present invention discloses a data processing method, comprising:
acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute;
dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions;
and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
In another aspect, the present invention discloses a data processing apparatus, including:
the historical transaction data acquisition module is used for acquiring historical transaction data corresponding to the enterprise account; the historical transaction data includes a transaction time attribute;
the time region dividing module is used for dividing the historical transaction data according to the transaction time attribute and preset time regions so as to obtain regional historical transaction data corresponding to different time regions;
and the end account balance calculation module is used for calculating the end account balance of the enterprise account in each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
In yet another aspect, an apparatus for data processing is disclosed that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the one or more processors to include instructions for:
acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute;
dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions;
and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
In another aspect, the present invention discloses a machine-readable medium having stored thereon instructions which, when executed by one or more processors, cause an apparatus to perform the data processing method as described above in the first aspect.
The embodiment of the invention has the following advantages: according to the transaction time attribute of the historical transaction data of the enterprise account, the historical transaction data are divided according to the preset time region to obtain the regional historical transaction data corresponding to different time regions; and calculating the balance of the enterprise account at the end account corresponding to each time zone according to the zone historical transaction data corresponding to each time zone and the data state corresponding to each data in the zone historical transaction data.
By the embodiment of the invention, the historical transaction data can be managed according to the time region. Therefore, under the condition that the account balance of the end account in a certain time region is determined to have calculation errors, the account balance of the end account in the certain time region can be recalculated according to the region historical transaction data corresponding to the certain time region, the tedious operation of recalculating the account balance of the end account through all the historical transaction data of the account balance is avoided, and the calculation efficiency is improved.
In addition, in the process of calculating the balance of the end account corresponding to each time zone, the data state corresponding to each data in the zone historical transaction data is considered, and whether the data needs to participate in the calculation of the balance of the end account is determined according to the data state, so that the flexibility of calculating the balance of the end account is improved, and the diversified requirements of enterprises are met.
Furthermore, in order to enable an enterprise to perform service analysis on services corresponding to the same enterprise account at different time stages, the embodiment of the invention acquires the balance of the end account of the same enterprise account in each time region, so as to perform comparison analysis on the balance of the end account of the same enterprise account in each time region; of course, the embodiment of the present invention may also perform service analysis on services corresponding to different enterprise accounts at the same time phase, that is, obtain the balance of the end account of different enterprise accounts in the same time region, so as to perform comparison analysis on the balance of the end account of different enterprise accounts in the same time region. Therefore, the embodiment of the invention facilitates business comparison and analysis of enterprises by performing regional management on the historical transaction data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram illustrating a prior art scenario for acquiring an account balance;
FIG. 2 is a diagram illustrating another prior art account balance acquisition scenario;
FIG. 3 is a flow chart of the steps of a data processing method embodiment of the present invention;
FIG. 4 is a flow chart of steps in another data processing method embodiment of the present invention;
FIG. 5 is a flowchart of the steps of a first data processing apparatus embodiment of the present invention;
FIG. 6 is a flowchart of the steps of a second data processing apparatus embodiment of the present invention;
FIG. 7 is a flowchart illustrating the steps of a third embodiment of a data processing apparatus according to the present invention;
FIG. 8 is a flowchart illustrating the steps of a fourth data processing apparatus embodiment of the present invention;
FIG. 9 is a flowchart of the steps of a fifth data processing apparatus embodiment of the present invention;
FIG. 10 is a block diagram of an apparatus 1000 for data processing of the present invention; and
fig. 11 is a schematic diagram of a server in some embodiments of the invention.
Detailed Description
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 some, not all, embodiments of the present invention. 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.
Method embodiment
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, which may specifically include:
step 101, acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute.
The embodiment of the present invention may be used to calculate the balance of the end account of the enterprise account, and it should be noted that the embodiment of the present invention does not limit the type of the transaction currency, and the transaction data in the embodiment of the present invention may be transaction data generated by entity currency issued by a bank, or may also be transaction data generated by virtual currency issued by a merchant. The virtual currency may include red parcels, credits, game pieces, bits, and the like. For convenience of description, the embodiments of the present invention all use bank entity currency as an example for explanation, and the application scenarios of virtual currency are similar and refer to each other.
In a specific application, an enterprise may register bank accounts in multiple banks respectively, and each bank account may have at least one virtual sub-account, so that each virtual sub-account may be used to store transaction data of different enterprise accounts, that is, an account correspondence exists between the virtual sub-account and the enterprise account.
Specifically, in one case, as shown in fig. 2, for enterprise a, bank accounts may be respectively registered in a plurality of banks (e.g., bank account D1 registered at B1 bank, bank account D2 registered at B2 bank, and bank account D3 registered at B3 bank), and at least one virtual sub-account exists under each bank account, such as the virtual sub-accounts existing under bank account D1 are D11, D12, D13, the virtual sub-accounts existing under bank account D2 are D21, D22, and the virtual sub-accounts existing under bank account D3 are D31, D32, so that the virtual sub-accounts respectively transmit corresponding transaction data to the data processing system of enterprise a. In consideration of the fact that the enterprise a may have multiple businesses, the enterprise is provided with multiple enterprise accounts (such as the enterprise account q1, the enterprise accounts q2, … and the enterprise account qi in fig. 2), and each enterprise account is used for managing the transaction data generated by the corresponding business.
In summary, in order to send the transaction data to the corresponding enterprise account, an account corresponding relationship needs to be set between the virtual sub-account and the enterprise account, for example, the transaction data in the virtual sub-account d11 and the virtual sub-account d21 are the transaction data in the enterprise account q1, the transaction data in the virtual sub-account d12, the virtual sub-account d22, and the virtual sub-account d31 are the transaction data in the enterprise account q2, and the transaction data in the virtual sub-account d13 and the virtual sub-account d32 are the transaction data in the enterprise account qi.
Based on this, the data processing system of the enterprise a may obtain a plurality of transaction data from each virtual sub-account through the bank interface, and the obtained transaction data may be respectively marked with the sub-account identifier of the corresponding virtual sub-account, so that the data processing system may divide the obtained transaction data into transaction data corresponding to each enterprise account based on the account correspondence.
For example, if the enterprise account is enterprise account q1, the historical transaction data may be transaction data in virtual sub-account d11 and virtual sub-account d 21; if the enterprise account is enterprise account q2, the historical transaction data may be transaction data in virtual sub-account d12 and virtual sub-account d22 and virtual sub-account d 31; if the enterprise account is an enterprise account qi, the historical transaction data may be transaction data in virtual sub-account d13 and virtual sub-account d 32.
In another case, as shown in fig. 3, for the enterprise P, a plurality of subsidiaries may be included, such as the plurality of subsidiaries including subsidiaries P1, subsidiaries P2, and subsidiaries P3. For the subsidiary company P1, corresponding bank accounts (e.g., the bank account D4 registered in the bank B1, the bank account D5 registered in the bank B2, and the bank account D6 registered in the bank B3) may be respectively registered in at least one bank, and at least one virtual sub-account exists under each bank account, e.g., the virtual sub-accounts existing under the bank account D4 are D41, D42, and D43, the virtual sub-accounts existing under the bank account D5 are D51 and D52, and the virtual sub-accounts existing under the bank account D6 are D61 and D62; for the subsidiary company P2, corresponding bank accounts (e.g., the bank account D7 registered in the B1 bank) may also be respectively registered in at least one bank, and at least one virtual sub-account exists under the bank account, e.g., the virtual sub-accounts existing under the bank account D7 are D71, D72, D73; for the subsidiary company P3, corresponding bank accounts (e.g., the bank account D8 registered at the bank B1, the bank account D9 registered at the bank B2) may be respectively registered in at least one bank, and at least one virtual sub-account exists under each bank account, e.g., the virtual sub-accounts existing under the bank account D8 are D81 and D82, and the virtual sub-accounts existing under the bank account D9 are D91 and D92. Considering that there may be multiple services for each subsidiary company and there may be the same service for different subsidiary companies, such as watch service for each subsidiary company P1 and P2, so, in order for the enterprise P to manage different services, the enterprise may set multiple enterprise accounts (such as enterprise account s1, enterprise accounts s2, …, and enterprise account sn in fig. 3), and each enterprise account is used to manage transaction data of the corresponding service, at this time, it is necessary to establish an account correspondence between the virtual sub-account and the enterprise account, such as transaction data in virtual sub-account d41 and d51 and virtual sub-account d61, virtual sub-account d71 as transaction data in the enterprise account s1, transaction data in virtual sub-account d42 and virtual sub-account d52 and virtual sub-account d62, virtual sub-account d72, virtual sub-account d81, and virtual sub-account d91 as transaction data in the enterprise account s2, the transaction data in the virtual sub-account d43, the virtual sub-account d73, the virtual sub-account d82 and the virtual sub-account d92 are the transaction data in the enterprise account sn. In this way, the data processing system of the enterprise P may obtain a plurality of transaction data from the virtual sub-accounts of the respective sub-companies through the bank interface, and the obtained transaction data may be respectively marked with the sub-account identifiers of the corresponding virtual sub-accounts, so that the obtained transaction data may be divided into transaction data respectively corresponding to the respective enterprise accounts based on the account correspondence relationship.
For example, if the enterprise account is enterprise account s1, the historical transaction data may be transaction data in virtual sub-account d41 and virtual sub-account d51 and virtual sub-account d61 and virtual sub-account d 71; if the enterprise account is the enterprise account s2, the historical transaction data may be transaction data in the virtual sub-account d42, the virtual sub-account d52, the virtual sub-account d62, the virtual sub-account d72, the virtual sub-account d81, and the virtual sub-account d 91; if the enterprise account is an enterprise account sn, the historical transaction data may be transaction data in the virtual sub-account d43, the virtual sub-account d73, the virtual sub-account d82, and the virtual sub-account d92, which is only an example and is not limited in this respect.
And 102, dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions.
In the embodiment of the invention, the historical transaction data can be firstly sorted according to the transaction time attribute and the transaction time sequence, and then the historical transaction data can be divided according to the preset time region according to the sorting result, so as to obtain the regional historical transaction data corresponding to different time regions. Wherein the regional historical transaction banking data may include all historical transaction data in the different time regions.
It should be noted that, in the embodiment of the present invention, by sorting the historical transaction data according to the sequence of the transaction time, the balance of the end account at any time can be quickly obtained according to the sorting result. Illustratively, if the different time zones include: and in the 2 th month, the 3 rd month and the 4 th month of 2019 in 2019, and if the user needs to check the end account balance of the 15 th month of the 3 rd month of 2019, the initial account balance of the 3 rd month of 2019 can be acquired, and the historical transaction data in the period from the 1 st month of the 3 th month of 2019 to the 15 th month of the 3 rd month of 2019 can be quickly acquired according to the sorting result, so that the end account balance of the 15 th month of the 3 rd month of 2019 can be acquired according to the initial account balance of the 3 rd month of 2019 and the historical transaction data in the period from the 1 st month of the 3 rd month of 2019 to the 15 th month of the 3 rd month of 201.
In addition, for the enterprise account, the historical transaction data at the previous time usually affects the balance of the last account at the next time, that is, if the historical transaction data at the previous time is income data, the balance of the last account at the next time is increased when the income data is increased, and conversely, the balance of the last account at the next time is decreased when the income data is decreased. Therefore, in order to accurately acquire the end account balance at the next moment when the historical transaction data at the previous moment is changed, the historical transaction data are sorted according to the transaction time sequence.
In addition, if the balance of the enterprise account at the end of each month needs to be calculated, the different time zones are different months, and at this time, the historical transaction data can be divided according to different months according to the sorting result so as to obtain the historical transaction data of the zones corresponding to different months; if the balance of the enterprise account at the end of each week needs to be calculated, the different time areas are different weeks, and at the moment, the historical transaction data can be divided according to the sorting result to obtain the historical transaction data of the areas corresponding to the different weeks; if the invention needs to calculate the account balance of the enterprise account at the end of each quarter, the areas in different time are different quarters, and at this time, the historical transaction data can be divided according to different quarters according to the sequencing result to obtain the area historical transaction data corresponding to different quarters, and the like.
Step 103, calculating the balance of the end account of the enterprise account in each time zone according to the zone historical transaction data corresponding to each time zone and the data state corresponding to each data in the zone historical transaction data.
In the embodiment of the present invention, after obtaining the area historical transaction data corresponding to different time areas, the initial data states corresponding to each data in the area historical transaction data may be set to be data use states, so that, in a default situation, the account balance at the end of each time area may be calculated according to all data in the area historical transaction data.
However, in a case where there is a portion of data in the area historical transaction data that does not need to be accounted in the enterprise account, for example, the portion of data may be data in a handwritten account book, in this case, the present invention needs to set the initial data state of the portion of data to a data unused state so that the portion of data does not need to be accounted in the balance of the end account in the time area in which the portion of data is located.
Under another condition, considering that the data to be changed which meets the preset state change condition exists in the regional historical bank data; the preset state changing condition is as follows: the multiple subdata contained in the data to be changed belong to at least two enterprise accounts to be identified, so that other enterprise accounts different from the enterprise account exist in the at least two enterprise accounts to be identified, and therefore, the data state of the target subdata of the other enterprise accounts different from the enterprise account needs to be changed, that is, the data use state of the target subdata is set to be the data unused state. For example, the data to be modified is income data 300 elements (including child data 100 elements corresponding to a watch service and child data 200 elements corresponding to a blower service), and if the data to be modified is used as historical transaction data of the watch service, the problem that the balance of the end account of the enterprise accounts corresponding to the services is inaccurate is caused, that is, the balance of the end account of the enterprise account corresponding to the watch service is 200 elements more than the balance of the end account of the enterprise account corresponding to the blower service is 200 elements less than the balance of the end account of the enterprise account corresponding to the blower service.
According to the transaction time attribute of the historical transaction data of the enterprise account, the historical transaction data are divided according to the preset time region to obtain the regional historical transaction data corresponding to different time regions; and calculating the balance of the enterprise account at the end account corresponding to each time zone according to the zone historical transaction data corresponding to each time zone and the data state corresponding to each data in the zone historical transaction data.
By the embodiment of the invention, the historical transaction data can be managed according to the time region. Therefore, under the condition that the account balance of the end account in a certain time region is determined to have calculation errors, the account balance of the end account in the certain time region can be recalculated according to the region historical transaction data corresponding to the certain time region, the tedious operation of recalculating the account balance of the end account through all the historical transaction data of the account balance is avoided, and the calculation efficiency is improved.
In addition, in the process of calculating the balance of the end account corresponding to each time zone, the data state corresponding to each data in the zone historical transaction data is considered, and whether the data needs to participate in the calculation of the balance of the end account is determined according to the data state, so that the flexibility of calculating the balance of the end account is improved, and the diversified requirements of enterprises are met.
Furthermore, in order to enable an enterprise to perform service analysis on services corresponding to the same enterprise account at different time stages, the embodiment of the invention acquires the balance of the end account of the same enterprise account in each time region, so as to perform comparison analysis on the balance of the end account of the same enterprise account in each time region; of course, the embodiment of the present invention may also perform service analysis on services corresponding to different enterprise accounts at the same time phase, that is, obtain the balance of the end account of different enterprise accounts in the same time region, so as to perform comparison analysis on the balance of the end account of different enterprise accounts in the same time region. Therefore, the embodiment of the invention facilitates business comparison and analysis of enterprises by performing regional management on the historical transaction data.
Referring to fig. 4, a flowchart illustrating steps of an embodiment of a data processing method according to the present invention is shown, which may specifically include:
step 401, obtaining historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute.
The specific process may refer to step 101, and is not described in detail.
Step 402, dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions.
The specific process may refer to step 102, and is not described in detail.
Step 403, acquiring data to be modified which meets preset state modification conditions from the regional historical transaction data; the preset state changing condition is as follows: and the subdata contained in the data to be changed belongs to at least two enterprise accounts to be identified.
The plurality of subdata contained in the data to be changed can be transaction data corresponding to different types of transaction matters.
In this step, it may be first determined whether each data in the area historical transaction data includes a plurality of sub-data, and when the first data in the area historical transaction data does not include a plurality of sub-data, it is determined that the first data does not satisfy a preset state change condition; when second data in the regional historical transaction data comprises a plurality of subdata, enterprise accounts to be identified corresponding to the subdata respectively and included in the second data can be obtained, whether the enterprise accounts to be identified are the same enterprise account or not is judged, the second data is determined to meet the preset state change condition under the condition that the enterprise accounts to be identified are not the same enterprise account, and the second data is determined not to meet the preset state change condition under the condition that the enterprise accounts to be identified are the same enterprise account. In summary, the data to be changed meeting the preset state change condition can be acquired from the regional historical transaction data in the above manner. Illustratively, if some of the regional historical transaction data is revenue data 300 element, and the revenue data 300 element includes: the child data 100 of the enterprise account corresponding to the watch service and the child data 200 of the enterprise account corresponding to the blower service, because the income data 300 includes the child data 100 and the child data 200, and the child data 100 and the child data 200 correspond to different enterprise accounts, it can be determined that the income data 300 meets the preset state change condition.
It should be noted that, if there is no to-be-modified data meeting the preset state modification condition in the regional historical transaction data, the embodiment of the present invention may calculate the balance of the end account of the enterprise account in each time region according to the regional historical transaction data corresponding to each time region. The balance of the initial account of the enterprise account corresponding to each time zone can be acquired according to the balance of the final account of the last time zone corresponding to each time zone; and calculating the balance of the end account of the enterprise account in each time region according to the balance of the end account corresponding to each time region and the historical transaction data of the region corresponding to each time region.
Optionally, in a case that it is determined that part of the data in the regional historical transaction data does not satisfy the preset condition for changing the state, if it is determined that the part of the data does not need to be counted in the enterprise account, for example, the part of the data may be data in a handwritten account book, in this case, the initial data state of the part of the data needs to be set to a data unused state, so that the part of the data does not need to be counted in the balance of the end account in the time region where the part of the data is located, and thus, the target transaction data in the subsequent step also needs to be filtered out. Of course, in the embodiment of the present invention, part of the sub data included in the part of the data may not be added to the enterprise account, so that the target transaction data in the subsequent step needs to filter out part of the sub data included in the part of the data, for example, a certain data in the part of the data is 100 metadata, and 20 metadata in the certain data needs not to be added to the enterprise account, at this time, the initial data state of 20 metadata in the certain data needs to be set to be the data unused state, which is only illustrated by way of example, and the present invention is not limited thereto.
Step 404, obtaining target subdata from the data to be changed; the enterprise account to be identified to which the target subdata belongs is different from the enterprise account.
Illustratively, the data to be changed existing in a certain time zone is taken as revenue data 300 element, and the revenue data 300 element includes: the subdata 100 elements of the enterprise account corresponding to the watch service and the subdata 200 elements of the enterprise account corresponding to the blower service are taken as examples for explanation, if the balance of the end account of the enterprise account corresponding to the watch service in the certain time region needs to be acquired, the target subdata is the subdata 200 elements; if the balance of the end account of the enterprise account corresponding to the blower service in the certain time zone needs to be acquired, the target subdata is 100-element subdata.
And step 405, setting the data state of the target subdata to be a data unused state.
The data corresponding to the data unused state does not need to be used for calculating the balance of the end account in the time region corresponding to the data. In this way, the data state of the target subdata is set to be the data unused state, so that the calculation of the account balance at the end of the term in the time zone of the target subdata is not required according to the target subdata in the subsequent steps, the flexibility of calculating the account balance at the end of the term is improved, and the diversified requirements of enterprises are met.
And step 406, filtering the target subdata with the data state being the data unused state in the historical transaction data of the area corresponding to each time area to obtain the target transaction data corresponding to each time area.
It should be noted that, in the area historical transaction data corresponding to each time area, there may be partial data that does not need to be counted in the account balance of each time area, and at this time, after the target transaction data is obtained in this step, partial data in the target transaction data may be filtered out to obtain final target transaction data corresponding to each time area, so that the account balance of the enterprise account corresponding to each time area is calculated based on the final target transaction data in the subsequent step.
Step 407, obtaining the balance of the initial account of the enterprise account in each time zone according to the balance of the final account in the last time zone corresponding to each time zone.
In the embodiment of the invention, the enterprise may have transaction data generated by other transaction modes (such as cash transaction modes) besides the transaction data; or, the enterprise and the bank need to register and enter accounts according to the settlement voucher, but the time for receiving the settlement voucher by the enterprise and the bank is not consistent. In summary, the enterprise has outstanding account data, and therefore, the balance of the initial account in each time zone in the present invention needs to consider the outstanding account data in the previous time zone corresponding to each time zone. Thus, the balance of the initial account of the enterprise account in any time region can be acquired in the following ways: firstly, acquiring the balance of the enterprise account in the last time zone corresponding to any time zone; then judging whether the enterprise account has account unacknowledged data in the previous time region corresponding to the any time region; when there is outstanding account data in the last time zone corresponding to the any time zone, acquiring an initial account balance corresponding to the any time zone of the enterprise account according to the outstanding account data in the last time zone corresponding to the any time zone and the end account balance of the last time zone corresponding to the any time zone, and acquiring a difference value between the end account balance of the last time zone corresponding to the certain time zone and the outstanding account data to obtain the initial account balance corresponding to the certain time zone if the outstanding account data of the last time zone corresponding to the certain time zone is expense data; when the unaccounted data of the previous time zone corresponding to a certain time zone is income data, the sum of the end account balance of the previous time zone corresponding to the certain time zone and the unaccounted data can be obtained to obtain the initial account balance corresponding to the certain time zone; when the unachievable data of the previous time zone corresponding to a certain time zone includes expenditure data and income data, a difference between an end account balance corresponding to the previous time zone corresponding to the certain time zone and the expenditure data may be obtained to obtain an initial account balance, and then a sum of the initial account balance and the income data is calculated to obtain the initial account balance corresponding to the certain time zone. And when the enterprise account does not have account unachieved data in the last time region corresponding to the any time region, determining that the end account balance of the last time region corresponding to the any time region is the initial account balance corresponding to the any time region.
And step 408, calculating the balance of the end account of the enterprise account in each time zone according to the balance of the end account corresponding to each time zone and the target transaction data corresponding to each time zone.
In this step, since the data type of the target transaction data may be expenditure data or income data, in order to calculate the end account balance, a data symbol of the target transaction data may be set according to the data type of the target transaction data, that is, the data symbol of the expenditure data is a minus sign, and the data symbol of the income data is a plus sign, so that the target transaction data provided with the data symbol may be obtained, and the initial account balance corresponding to each time zone and the end account balance corresponding to the enterprise account in each time zone may be calculated by summing the target transaction data provided with the data symbol corresponding to each time zone.
Optionally, since there may be a change to the target data in the target time zone in the enterprise account, the target time zone being any one of the respective time zones, it is necessary to recalculate the end account balance of the target time zone, and then based on the recalculated end account balance of the target time zone, retrieve the end account balance of the respective time zone following the target time zone. The specific process is as follows:
step 409, receiving a data change instruction; the data change instruction is used for indicating that target data of the enterprise account in a target time region is changed; the target data includes at least one of: at least one data in the regional historical transaction data, a data state corresponding to the at least one data in the regional historical transaction data, and the balance of the initial account.
Step 410, according to the changed target data, reacquiring the balance of the end account of the enterprise account in the target time zone, and according to the reacquired balance of the end account in the target time zone, reacquiring the balance of the end account in the next time zone corresponding to the target time zone.
Wherein, if the target data comprises: at least one piece of data in the area historical transaction data may be changed, and the balance of the end account of the enterprise account in the target time zone is re-acquired according to the balance of the end account in the target time zone, the changed at least one piece of data, and other data except the at least one piece of data in the area historical transaction data, and since the balance of the end account in the next time zone corresponding to the target time zone needs to be acquired according to the balance of the end account in the target time zone, when the balance of the end account in the target time zone is changed, the balance of the end account in the next time zone corresponding to the target time zone is also changed, at this time, the balance of the end account in the next time zone corresponding to the target time zone needs to be changed according to the balance of the end account after the change in the next time zone corresponding to the target time zone, and re-acquiring the balance of the end account of the next time zone corresponding to the target time zone, and repeating the steps to re-acquire the balance of the end account of each time zone after the target time zone.
If the target data comprises: if the data state corresponding to at least one data in the regional historical transaction data is changed from the data use state to the data unused state, filtering out at least one data in the regional historical transaction data from the target transaction data included in the target time region to obtain new target transaction data; and under the condition that the data state corresponding to at least one piece of data in the regional historical transaction data is changed from the data unused state to the data used state, adding at least one piece of data in the regional historical transaction data to the target transaction data included in the target time region to obtain new target transaction data. In this way, when new target transaction data is acquired, the balance of the end account of the enterprise account in the target time zone may be acquired again according to the balance of the end account in the target time zone and the new target transaction data in the target time zone, and similarly, the balance of the end account in each time zone after the target time zone may be acquired again.
If the target data comprises: the balance of the initial account may be obtained again from the changed balance of the initial account and the target transaction data in the target time zone. Similarly, the account balance at the end of each time zone after the target time zone is retrieved.
For the case that the target data includes the combination of the different data types, reference may be made to the end data processing method corresponding to each type of target data, for example, if the target data includes an initial account balance and at least one piece of data in the area historical transaction data, the end account balance of the enterprise account in the target time area may be obtained again according to the changed initial account balance, the changed at least one piece of data, and other data except the at least one piece of data in the area historical transaction data, and the end account balances of the time areas after the target time area are obtained again in the same manner, and for the combination of the different data types included in the target data, details of the embodiment of the present invention are not repeated.
Therefore, the historical transaction data of the enterprise account is stored in the regions, so that after target data are modified, the balance of the end account does not need to be recalculated according to all the historical transaction data, the balance of the end account is recalculated in the target time region of the target data and each time region after the target time region, and the calculation amount is reduced.
According to the transaction time attribute of the historical transaction data of the enterprise account, the historical transaction data are divided according to the preset time region to obtain the regional historical transaction data corresponding to different time regions; and calculating the balance of the enterprise account at the end account corresponding to each time zone according to the zone historical transaction data corresponding to each time zone and the data state corresponding to each data in the zone historical transaction data.
By the embodiment of the invention, the historical transaction data can be managed according to the time region. Therefore, under the condition that the account balance of the end account in a certain time region is determined to have calculation errors, the account balance of the end account in the certain time region can be recalculated according to the region historical transaction data corresponding to the certain time region, the tedious operation of recalculating the account balance of the end account through all the historical transaction data of the account balance is avoided, and the calculation efficiency is improved.
In addition, in the process of calculating the balance of the end account corresponding to each time zone, the data state corresponding to each data in the zone historical transaction data is considered, and whether the data needs to participate in the calculation of the balance of the end account is determined according to the data state, so that the flexibility of calculating the balance of the end account is improved, and the diversified requirements of enterprises are met.
Furthermore, in order to enable an enterprise to perform service analysis on services corresponding to the same enterprise account at different time stages, the embodiment of the invention acquires the balance of the end account of the same enterprise account in each time region, so as to perform comparison analysis on the balance of the end account of the same enterprise account in each time region; of course, the embodiment of the present invention may also perform service analysis on services corresponding to different enterprise accounts at the same time phase, that is, obtain the balance of the end account of different enterprise accounts in the same time region, so as to perform comparison analysis on the balance of the end account of different enterprise accounts in the same time region. Therefore, the embodiment of the invention facilitates business comparison and analysis of enterprises by performing regional management on the historical transaction data.
Device embodiment
Referring to fig. 5, a block diagram of an embodiment of a data processing apparatus 50 according to the present invention is shown, which may specifically include:
a historical transaction data obtaining module 501, configured to obtain historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute;
a time zone dividing module 502, configured to divide the historical transaction data according to a preset time zone according to the transaction time attribute, so as to obtain historical transaction data of zones corresponding to different time zones;
the end account balance calculation module 503 is configured to calculate an end account balance of the enterprise account in each time zone according to the zone historical transaction data corresponding to each time zone and the data state corresponding to each data in the zone historical transaction data.
Optionally, referring to fig. 6, which shows a block diagram of an embodiment of the data processing apparatus 50 according to the present invention, the end account balance calculating module 503 includes:
a target transaction data obtaining sub-module 5031, configured to obtain, according to a data state corresponding to each data in the regional historical transaction data, target transaction data corresponding to each time region from the regional historical transaction data corresponding to each time region;
the end account balance calculation sub-module 5032 is configured to calculate, according to the target transaction data corresponding to each time zone, an end account balance corresponding to the enterprise account in each time zone.
Optionally, referring to fig. 7, a block diagram of an embodiment of a data processing apparatus 50 according to the present invention is shown, where the apparatus 50 further includes:
a to-be-changed data obtaining module 504, configured to obtain, from the regional historical transaction data, to-be-changed data that meets a preset state change condition; the preset state changing condition is as follows: subdata contained in the data to be changed belongs to at least two enterprise accounts to be identified;
a target sub-data obtaining module 505, configured to obtain target sub-data from the data to be changed; the enterprise account to be identified to which the target subdata belongs is different from the enterprise account;
a state setting module 506, configured to set the data state of the target sub-data to a data unused state.
Optionally, the target transaction data obtaining sub-module 5031 is configured to filter out target sub-data in a data state of unused data in the area historical transaction data corresponding to each time zone to obtain target transaction data corresponding to each time zone.
Optionally, referring to fig. 8, a block diagram of an embodiment of a data processing apparatus 50 according to the present invention is shown, where the apparatus 50 further includes:
an initial account balance obtaining module 507, configured to obtain an initial account balance corresponding to the enterprise account in each time zone according to an end account balance of a previous time zone corresponding to each time zone;
the end account balance obtaining module 503 is configured to calculate an end account balance of the enterprise account in each time zone according to the initial account balance corresponding to each time zone and the target transaction data corresponding to each time zone.
Optionally, referring to fig. 9, a block diagram of an embodiment of a data processing apparatus 50 according to the present invention is shown, where the apparatus 50 further includes:
an instruction receiving module 508, configured to receive a data change instruction; the data change instruction is used for indicating that target data of the enterprise account in a target time region is changed; the target data includes at least one of: at least one data in the regional historical transaction data, a data state corresponding to the at least one data in the regional historical transaction data, and the balance of the initial account;
an end account balance reacquiring module 509, configured to reacquire the end account balance of the enterprise account in the target time zone according to the changed target data, and reacquire the end account balance of the next time zone corresponding to the target time zone according to the reacquired end account balance of the target time zone.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 10 is a block diagram illustrating an apparatus 1000 for data processing according to an exemplary embodiment, where the apparatus 1000 may be an intelligent terminal or a server. For example, the apparatus 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 10101008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 10101008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operation at the device 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 10101008 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 10101008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of apparatus 1000, sensor assembly 1014 may also detect a change in position of apparatus 1000 or a component of apparatus 1000, the presence or absence of user contact with apparatus 1000, orientation or acceleration/deceleration of apparatus 1000, and a change in temperature of apparatus 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the device 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 11 is a schematic diagram of a server in some embodiments of the invention. The server 1100 may vary widely in configuration or performance and may include one or more Central Processing Units (CPUs) 1122 (e.g., one or more processors) and memory 1132, one or more storage media 1130 (e.g., one or more mass storage devices) storing applications 1142 or data 1144. Memory 1132 and storage media 1130 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 1130 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 1122 may be provided in communication with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the server 1100.
The server 1100 may also include one or more power supplies 1126, one or more wired or wireless network interfaces 1150, one or more input-output interfaces 1158, one or more keyboards 1156, and/or one or more operating systems 1141, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus (smart terminal or server), enable the apparatus to perform a data processing method, the method comprising: acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute; dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions; and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
The embodiment of the invention discloses A1 and a data processing method, which comprises the following steps:
acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute;
dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions;
and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
A2, according to the method in A1, the calculating an end account balance of the enterprise account in each time zone according to the zone historical transaction data corresponding to each time zone and the data state corresponding to each data in the zone historical transaction data includes:
acquiring target transaction data corresponding to each time region from the regional historical transaction data corresponding to each time region according to the data state corresponding to each data in the regional historical transaction data;
and calculating the balance of the end account of the enterprise account corresponding to each time zone according to the target transaction data corresponding to each time zone.
A3, the method of A2, the method further comprising:
acquiring data to be changed meeting preset state change conditions from the regional historical transaction data; the preset state changing condition is as follows: subdata contained in the data to be changed belongs to at least two enterprise accounts to be identified;
acquiring target subdata from the data to be changed; the enterprise account to be identified to which the target subdata belongs is different from the enterprise account;
and setting the data state of the target subdata to be a data unused state.
A4, according to the method of A3, acquiring target transaction data corresponding to each time zone from the regional historical transaction data corresponding to each time zone according to the data state corresponding to each data in the regional historical transaction data, including:
and filtering the target subdata with the data state being the data unused state in the regional historical transaction data corresponding to each time region to obtain the target transaction data corresponding to each time region.
A5, the method of A2, the method further comprising:
acquiring initial account balances of the enterprise accounts in the time areas according to the final account balances of the last time areas corresponding to the time areas;
the calculating the balance of the end account of the enterprise account in each time zone according to the target transaction data corresponding to each time zone includes:
and calculating the balance of the end account of the enterprise account corresponding to each time region according to the balance of the end account corresponding to each time region and the target transaction data corresponding to each time region.
A6, the method of A5, the method further comprising:
receiving a data change instruction; the data change instruction is used for indicating that target data of the enterprise account in a target time region is changed; the target data includes at least one of: at least one data in the regional historical transaction data, a data state corresponding to the at least one data in the regional historical transaction data, and the balance of the initial account;
and according to the changed target data, re-acquiring the balance of the end account of the enterprise account in the target time region, and according to the re-acquired balance of the end account in the target time region, re-acquiring the balance of the end account in the next time region corresponding to the target time region.
The embodiment of the invention discloses B7 and a data processing device, which comprises:
the historical transaction data acquisition module is used for acquiring historical transaction data corresponding to the enterprise account; the historical transaction data includes a transaction time attribute;
the time region dividing module is used for dividing the historical transaction data according to the transaction time attribute and preset time regions so as to obtain regional historical transaction data corresponding to different time regions;
and the end account balance calculation module is used for calculating the end account balance of the enterprise account in each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
B8, the apparatus of B7, the end account balance calculation module comprising:
the target transaction data acquisition submodule is used for acquiring target transaction data corresponding to each time zone from the regional historical transaction data corresponding to each time zone according to the data state corresponding to each data in the regional historical transaction data;
and the end account balance calculation sub-module is used for calculating the end account balance corresponding to the enterprise account in each time region according to the target transaction data corresponding to each time region.
B9, the apparatus according to B8, further comprising:
the data to be changed acquisition module is used for acquiring data to be changed meeting preset state change conditions from the regional historical transaction data; the preset state changing condition is as follows: subdata contained in the data to be changed belongs to at least two enterprise accounts to be identified;
the target subdata obtaining module is used for obtaining target subdata from the data to be changed; the enterprise account to be identified to which the target subdata belongs is different from the enterprise account;
and the state setting module is used for setting the data state of the target subdata to be a data unused state.
And B10, according to the device of B9, the target transaction data acquisition submodule is used for filtering out target subdata with data states being unused states in the regional historical transaction data corresponding to each time region to obtain the target transaction data corresponding to each time region.
B11, the apparatus according to B8, further comprising:
the initial account balance acquisition module is used for acquiring initial account balances of the enterprise accounts in the time areas according to the final account balances of the previous time areas corresponding to the time areas;
the end account balance obtaining module is configured to calculate an end account balance corresponding to the enterprise account in each time zone according to the initial account balance corresponding to each time zone and the target transaction data corresponding to each time zone.
B12, the apparatus according to B11, further comprising:
the instruction receiving module is used for receiving a data change instruction; the data change instruction is used for indicating that target data of the enterprise account in a target time region is changed; the target data includes at least one of: at least one data in the regional historical transaction data, a data state corresponding to the at least one data in the regional historical transaction data, and the balance of the initial account;
and the end account balance reacquiring module is used for reacquiring the end account balance of the enterprise account in the target time zone according to the changed target data, and reacquiring the end account balance of the next time zone corresponding to the target time zone according to the reacquired end account balance of the target time zone.
The embodiment of the invention discloses C13, an apparatus for data processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors comprise instructions for:
acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute;
dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions;
and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
C14, the calculating the balance of the end account of the enterprise account in each time zone according to the zone historical transaction data corresponding to each time zone and the data state corresponding to each data in the zone historical transaction data according to the apparatus of C13, including:
acquiring target transaction data corresponding to each time region from the regional historical transaction data corresponding to each time region according to the data state corresponding to each data in the regional historical transaction data;
and calculating the balance of the end account of the enterprise account corresponding to each time zone according to the target transaction data corresponding to each time zone.
C15, the device of C14, the device also configured to execute the one or more programs by one or more processors including instructions for:
acquiring data to be changed meeting preset state change conditions from the regional historical transaction data; the preset state changing condition is as follows: subdata contained in the data to be changed belongs to at least two enterprise accounts to be identified;
acquiring target subdata from the data to be changed; the enterprise account to be identified to which the target subdata belongs is different from the enterprise account;
and setting the data state of the target subdata to be a data unused state.
C16, the apparatus according to C15, the obtaining target transaction data corresponding to each time zone from the regional historical transaction data corresponding to each time zone according to the data state corresponding to each data in the regional historical transaction data includes:
and filtering the target subdata with the data state being the data unused state in the regional historical transaction data corresponding to each time region to obtain the target transaction data corresponding to each time region.
C17, the device of C14, the device also configured to execute the one or more programs by one or more processors including instructions for:
acquiring initial account balances of the enterprise accounts in the time areas according to the final account balances of the last time areas corresponding to the time areas;
the calculating the balance of the end account of the enterprise account in each time zone according to the target transaction data corresponding to each time zone includes:
and calculating the balance of the end account of the enterprise account corresponding to each time region according to the balance of the end account corresponding to each time region and the target transaction data corresponding to each time region.
C18, the device of C17, the device also configured to execute the one or more programs by one or more processors including instructions for:
receiving a data change instruction; the data change instruction is used for indicating that target data of the enterprise account in a target time region is changed; the target data includes at least one of: at least one data in the regional historical transaction data, a data state corresponding to the at least one data in the regional historical transaction data, and the balance of the initial account;
and according to the changed target data, re-acquiring the balance of the end account of the enterprise account in the target time region, and according to the re-acquired balance of the end account in the target time region, re-acquiring the balance of the end account in the next time region corresponding to the target time region.
An embodiment of the invention discloses D19, a machine-readable medium, characterized in that instructions are stored thereon, which when executed by one or more processors, cause an apparatus to perform a data processing method as claimed in one or more of claims 1 to 6.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The data processing method, the data processing apparatus and the storage medium provided by the present invention have been described in detail, and the principles and embodiments of the present invention are explained herein by applying specific examples, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of data processing, the method comprising:
acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute;
dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions;
and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
2. The method according to claim 1, wherein the calculating an end account balance of the enterprise account at each time zone according to the zone historical transaction data corresponding to each time zone and the data status corresponding to each data in the zone historical transaction data comprises:
acquiring target transaction data corresponding to each time region from the regional historical transaction data corresponding to each time region according to the data state corresponding to each data in the regional historical transaction data;
and calculating the balance of the end account of the enterprise account corresponding to each time zone according to the target transaction data corresponding to each time zone.
3. The method of claim 2, further comprising:
acquiring data to be changed meeting preset state change conditions from the regional historical transaction data; the preset state changing condition is as follows: subdata contained in the data to be changed belongs to at least two enterprise accounts to be identified;
acquiring target subdata from the data to be changed; the enterprise account to be identified to which the target subdata belongs is different from the enterprise account;
and setting the data state of the target subdata to be a data unused state.
4. The method according to claim 3, wherein the obtaining target transaction data corresponding to each time zone from the regional historical transaction data corresponding to each time zone according to the data state corresponding to each data in the regional historical transaction data comprises:
and filtering the target subdata with the data state being the data unused state in the regional historical transaction data corresponding to each time region to obtain the target transaction data corresponding to each time region.
5. The method of claim 2, further comprising:
acquiring initial account balances of the enterprise accounts in the time areas according to the final account balances of the last time areas corresponding to the time areas;
the calculating the balance of the end account of the enterprise account in each time zone according to the target transaction data corresponding to each time zone includes:
and calculating the balance of the end account of the enterprise account corresponding to each time region according to the balance of the end account corresponding to each time region and the target transaction data corresponding to each time region.
6. The method of claim 5, further comprising:
receiving a data change instruction; the data change instruction is used for indicating that target data of the enterprise account in a target time region is changed; the target data includes at least one of: at least one data in the regional historical transaction data, a data state corresponding to the at least one data in the regional historical transaction data, and the balance of the initial account;
and according to the changed target data, re-acquiring the balance of the end account of the enterprise account in the target time region, and according to the re-acquired balance of the end account in the target time region, re-acquiring the balance of the end account in the next time region corresponding to the target time region.
7. A data processing apparatus, characterized in that the apparatus comprises:
the historical transaction data acquisition module is used for acquiring historical transaction data corresponding to the enterprise account; the historical transaction data includes a transaction time attribute;
the time region dividing module is used for dividing the historical transaction data according to the transaction time attribute and preset time regions so as to obtain regional historical transaction data corresponding to different time regions;
and the end account balance calculation module is used for calculating the end account balance of the enterprise account in each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
8. The apparatus of claim 7, wherein the end account balance calculation module comprises:
the target transaction data acquisition submodule is used for acquiring target transaction data corresponding to each time zone from the regional historical transaction data corresponding to each time zone according to the data state corresponding to each data in the regional historical transaction data;
and the end account balance calculation sub-module is used for calculating the end account balance corresponding to the enterprise account in each time region according to the target transaction data corresponding to each time region.
9. An apparatus for data processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein execution of the one or more programs by one or more processors comprises instructions for:
acquiring historical transaction data corresponding to an enterprise account; the historical transaction data includes a transaction time attribute;
dividing the historical transaction data according to the transaction time attribute and preset time regions to obtain regional historical transaction data corresponding to different time regions;
and calculating the balance of the enterprise account at the end account corresponding to each time region according to the region historical transaction data corresponding to each time region and the data state corresponding to each data in the region historical transaction data.
10. A machine-readable medium, having stored thereon instructions, which, when executed by one or more processors, cause an apparatus to perform a data processing method as claimed in one or more of claims 1 to 6.
CN201910848957.4A 2019-09-09 2019-09-09 Data processing method and device for data processing Active CN110599026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910848957.4A CN110599026B (en) 2019-09-09 2019-09-09 Data processing method and device for data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910848957.4A CN110599026B (en) 2019-09-09 2019-09-09 Data processing method and device for data processing

Publications (2)

Publication Number Publication Date
CN110599026A true CN110599026A (en) 2019-12-20
CN110599026B CN110599026B (en) 2022-07-05

Family

ID=68858255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910848957.4A Active CN110599026B (en) 2019-09-09 2019-09-09 Data processing method and device for data processing

Country Status (1)

Country Link
CN (1) CN110599026B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157479A (en) * 2021-04-23 2021-07-23 广州市网星信息技术有限公司 Data error correction method, system, device, equipment and storage medium
CN113628053A (en) * 2021-09-03 2021-11-09 中电金信软件有限公司 Transaction balance calculation method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036088A (en) * 2014-06-23 2014-09-10 国网山东省电力公司 Method and system for generating equity curves of group enterprise in real time
CN106503977A (en) * 2016-10-20 2017-03-15 财付通支付科技有限公司 The processing method of data, system and device
CN106991518A (en) * 2017-01-18 2017-07-28 武汉中软通证信息技术有限公司 Funds transaction analysis method and system based on mobile terminal
CN107977867A (en) * 2017-12-18 2018-05-01 深圳市快付通金融网络科技服务有限公司 Billing model update method, data system for settling account and computer-readable recording medium
CN109033468A (en) * 2018-08-31 2018-12-18 阿里巴巴集团控股有限公司 The processing method and processing device of resource change
CN109447807A (en) * 2019-01-25 2019-03-08 杨城 The weak center's trust data management system and method for the total score double-strand of digital bank
CN109460421A (en) * 2018-10-09 2019-03-12 四川航天信息有限公司 Trade company's transaction data management method and device
CN109840837A (en) * 2017-11-27 2019-06-04 财付通支付科技有限公司 Processing method, device, computer-readable medium and the electronic equipment of financial data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036088A (en) * 2014-06-23 2014-09-10 国网山东省电力公司 Method and system for generating equity curves of group enterprise in real time
CN106503977A (en) * 2016-10-20 2017-03-15 财付通支付科技有限公司 The processing method of data, system and device
CN106991518A (en) * 2017-01-18 2017-07-28 武汉中软通证信息技术有限公司 Funds transaction analysis method and system based on mobile terminal
CN109840837A (en) * 2017-11-27 2019-06-04 财付通支付科技有限公司 Processing method, device, computer-readable medium and the electronic equipment of financial data
CN107977867A (en) * 2017-12-18 2018-05-01 深圳市快付通金融网络科技服务有限公司 Billing model update method, data system for settling account and computer-readable recording medium
CN109033468A (en) * 2018-08-31 2018-12-18 阿里巴巴集团控股有限公司 The processing method and processing device of resource change
CN109460421A (en) * 2018-10-09 2019-03-12 四川航天信息有限公司 Trade company's transaction data management method and device
CN109447807A (en) * 2019-01-25 2019-03-08 杨城 The weak center's trust data management system and method for the total score double-strand of digital bank

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113157479A (en) * 2021-04-23 2021-07-23 广州市网星信息技术有限公司 Data error correction method, system, device, equipment and storage medium
CN113628053A (en) * 2021-09-03 2021-11-09 中电金信软件有限公司 Transaction balance calculation method and device

Also Published As

Publication number Publication date
CN110599026B (en) 2022-07-05

Similar Documents

Publication Publication Date Title
US10817866B2 (en) Sending and receiving payments using a message system
US20180374081A1 (en) Public transit payment method and device
EP3171270A1 (en) Method and device for information push
CN104951935B (en) Account splitting method and device
US20140089188A1 (en) System for funds transfer using source atm and delivering atm
US20180374080A1 (en) Public transit payment device
CN110599026B (en) Data processing method and device for data processing
CN115689556A (en) Processing method and device applied to payment routing system and storage medium
CN115062921A (en) Carbon emission quota adjusting method and device, storage medium and electronic equipment
CN113887999A (en) Policy risk assessment method and device
CN109409097B (en) Information management method, device and computer readable storage medium
CN111681034A (en) Method and device for distributing resource information
CN110019657B (en) Processing method, apparatus and machine-readable medium
CN111680248A (en) Method and device for generating batch number of message pushed
CN117076423A (en) Method, device, equipment and storage medium for migrating subject balance information
CN115905200A (en) Data processing method, device, equipment and storage medium
US9225582B1 (en) Managing and enabling interaction with communication information
CN116910087A (en) Method and device for determining service circulation information, electronic equipment and storage medium
CN111984423A (en) Method, device and medium for operating deep learning model
CN117131020A (en) Data migration method, device, electronic equipment and storage medium
CN116645052A (en) Method, device, equipment and storage medium for auditing service information
CN115953257A (en) Data processing method, device, equipment and storage medium
CN117075857A (en) Processing method, device, equipment and storage medium of internet banking system
CN116521637A (en) Method and device for processing variable data, electronic equipment and storage medium
CN115237925A (en) Data processing method, device, equipment, storage medium and product

Legal Events

Date Code Title Description
PB01 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