WO2016008075A1 - 生成账户数据快照的方法和设备 - Google Patents

生成账户数据快照的方法和设备 Download PDF

Info

Publication number
WO2016008075A1
WO2016008075A1 PCT/CN2014/082160 CN2014082160W WO2016008075A1 WO 2016008075 A1 WO2016008075 A1 WO 2016008075A1 CN 2014082160 W CN2014082160 W CN 2014082160W WO 2016008075 A1 WO2016008075 A1 WO 2016008075A1
Authority
WO
WIPO (PCT)
Prior art keywords
data processing
account
processing record
balance
serial number
Prior art date
Application number
PCT/CN2014/082160
Other languages
English (en)
French (fr)
Inventor
王彬
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/082160 priority Critical patent/WO2016008075A1/zh
Publication of WO2016008075A1 publication Critical patent/WO2016008075A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications

Definitions

  • Embodiments of the present invention relate to the field of computer technology, and in particular, to a method and device for generating a snapshot of account data.
  • Trial balance detection is an important task performed regularly by the financial accounting system. Its purpose is to check all sub-account data tables (such as households) in a statistical period (for example, one day, one month) by summarizing, calculating and comparing account data. Changes in the funds, the changes in the funds and the consistency, completeness and correctness of the general ledger data.
  • the core problem of trial balance detection is how to obtain a snapshot of each account in the sub-account data table, that is, the real-time balance of each account.
  • the prior art provides a method for generating a snapshot of an account data, which interrupts the above-mentioned sub-account data table when receiving an instruction to generate a snapshot of the account data (for example, a statistical period switching instruction, the instruction carries a snapshot time point at which a snapshot needs to be generated)
  • the update generates a copy data of the sub-account data table, and restarts the update of the sub-account data table after the copy data is generated, that is, restarts the service of the financial accounting system.
  • the method for generating an account data snapshot provided by the prior art generates a copy data of the sub-account data table.
  • the sub-account data table update is interrupted for a long time, that is, the financial accounting system service is interrupted for a long time.
  • Embodiments of the present invention provide a method and apparatus for avoiding generation of account data snapshots in which the account data table update is interrupted for a long time when generating an account data snapshot.
  • an embodiment of the present invention provides a method for generating a snapshot of an account data, where the party The law includes:
  • the obtaining, from the data processing record whose sequence number corresponding to each account is less than or equal to J, the ending balance of the last data processing includes:
  • the initial balance of the first data processing after the data processing record corresponding to J is obtained from the data processing record corresponding to each account includes:
  • the comparing accounts in an account data table The serial number and J size of the last data processing record of each account specifically include:
  • the embodiment of the present invention further provides an apparatus for generating a snapshot of an account data, including: an instruction receiving unit, configured to receive an instruction for generating a snapshot of an account data, and determine a snapshot time point corresponding to the instruction that needs to generate a snapshot;
  • serial number search unit configured to search for a maximum sequence number J of the data processing record in the data processing record table that is earlier than or equal to the snapshot time point;
  • a serial number comparison unit configured to compare a serial number of the data processing record of each account in the account data table and a size of J;
  • An account balance obtaining unit configured to obtain, from the sub-account data table, a current balance of an account whose serial number of the latest data processing record is less than or equal to J;
  • the account balance obtaining unit is further configured to acquire an account of an account whose sequence number of the latest data processing record is greater than J, and a data processing record whose sequence number in the data processing record corresponding to each account is less than or equal to J Obtaining the ending balance of the last data processing, or obtaining the opening balance of the first data processing after the data processing record corresponding to J from the data processing record corresponding to each of the accounts.
  • the account balance obtaining unit includes:
  • a first record obtaining module configured to acquire an account of an account whose sequence number of the latest data processing record is greater than J, and obtain a sequence from a data processing record whose sequence number in the data processing record corresponding to each account is less than or equal to J Number of the largest data processing record;
  • a first balance obtaining module configured to acquire a closing balance in the data processing record with the largest serial number and obtain a sequence number of the latest data processing record from the sub-account data table is smaller than Or the current balance of the account equal to J.
  • the account balance obtaining unit includes: a second record obtaining module, configured to acquire a sequence number of the latest data processing record that is greater than
  • a second balance obtaining module configured to acquire an opening balance in the data processing record with the smallest serial number and obtain a current balance of an account whose sequence number of the latest data processing record is less than or equal to J from the sub-account data table .
  • an embodiment of the present invention provides an apparatus for generating a snapshot of an account data, including: a processor, a memory, and a bus, where the memory is used to store a computer execution instruction, and the processor is connected to the memory through the bus And executing, by the processor, the computer-executed instructions stored by the memory to cause the device to perform the following method:
  • the device obtains a closing balance of the last data processing from a data processing record whose sequence number corresponding to each account is less than or equal to J. Specifically include:
  • the initial balance of the first data processing after the device obtains the data processing record corresponding to J from the data processing record corresponding to each account includes:
  • the comparing, by the device, the serial number and the size of the J of the last data processing record of each account in the account data table specifically includes: reading the sub-account data table The serial number of the most recent data processing record recorded in the last data processing record field of each account;
  • the method for generating an account data snapshot first, obtain the maximum sequence number J of the data processing record closest to the snapshot time point that needs to generate the snapshot of the account data, and before the snapshot time point, and then compare each account.
  • the current balance is available as a snapshot of the data. If the comparison result is greater than J, it indicates that the account is updated during the period of time, and the current balance of the account cannot be used as a data snapshot.
  • the sequence number in the data processing record corresponding to the account is less than or equal to J.
  • the data processing record obtains the ending balance of the last data processing, or the opening balance of the first data processing after the data processing record corresponding to J is obtained from the data processing record corresponding to the account, the above-mentioned ending balance or opening balance Can be done A snapshot of the data for this account.
  • the embodiment of the present invention does not need to back up the sub-account data table when generating the snapshot of the account data, thereby avoiding the interruption process of the sub-account data table for a long time, and greatly improving the availability of the system service.
  • the embodiment of the present invention does not need to perform any data backup, reduces data redundancy, and saves storage space.
  • FIG. 1 is a flowchart of a method for generating a snapshot of an account data according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for generating a snapshot of an account data according to Embodiment 2 of the present invention
  • FIG. 3 is a generation account provided by Embodiment 3 of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for generating an account data snapshot according to Embodiment 4 of the present invention
  • FIG. 7 is a schematic structural diagram of an apparatus for generating an account data snapshot according to Embodiment 5 of the present invention.
  • Real-time snapshot scenarios such as financial accounting, payment technology, and enterprise resource planning (ERP, Enterprise resource planning )
  • ERP enterprise resource planning
  • system for example, in the field of material inventory management technology.
  • FIG. 1 is a flow chart of a method for generating a snapshot of an account data according to Embodiment 1 of the present invention.
  • the method for generating a snapshot of an account data mainly includes: Step 101: Receive an instruction to generate a snapshot of an account data, and determine a snapshot time point corresponding to the instruction that needs to generate a snapshot.
  • the instruction for generating the snapshot of the account data in the embodiment of the present invention may be manually triggered manually, and the financial accounting system or the inventory management system automatically triggers, and the instruction may be included in, for example, a statistical cycle switching command, an accounting day cutting instruction, a material inventory instruction, and the like.
  • the meaning of the account includes not only financial accounts, but also material accounts.
  • the time point at which the snapshot needs to be generated may be carried in an instruction to generate a snapshot of the account data.
  • the step of determining the snapshot time point corresponding to the instruction that needs to generate a snapshot may be a direct analysis of the received instruction to obtain a snapshot time point at which a snapshot needs to be generated.
  • the snapshot time point at which the snapshot needs to be generated may not be carried in the instruction for generating the account data snapshot, and the snapshot time point may be sent as an independent parameter, and the snapshot time point has a corresponding relationship with the instruction, and the present invention is implemented.
  • the snapshot time point corresponding to the received instruction is obtained.
  • the instruction to generate the snapshot of the account data does not carry the snapshot time point.
  • the current time of the instruction for generating the snapshot of the account data is taken as the snapshot time point at which the snapshot needs to be generated. .
  • the snapshot time point may be earlier than or equal to the current time. Therefore, the embodiment of the present invention can not only obtain a data snapshot of the current time point, but also can obtain a data snapshot at any time point before the current time point, and the flexibility is more flexible. it is good.
  • Step 102 Find a maximum sequence number J of the data processing record whose processing time in the data processing record table is earlier than or equal to the snapshot time point.
  • the data processing record table records the data processing records of different accounts in the order of serial numbers.
  • a data processing record in the data processing record table contains the serial number, account number, and account change number. Amount, processing time, etc.
  • the serial number is uniformly assigned, and the serial number can uniquely identify a data processing record.
  • one or more data processing records exist for an account of an account.
  • the data processing record corresponding to the maximum serial number J is the last data processing record before the snapshot time point (including the current time point number).
  • the data processing record table may have different names corresponding to different application scenarios, such as a transaction flow table in the financial accounting field, a transaction schedule, an order flow table in the material inventory technical field, an order schedule, and the like.
  • Step 103 Compare the sequence number of the last data processing record and the size of J of each account in the account data table.
  • the account number of the account, the account balance, and the serial number of the last data processing record of the account are recorded by account.
  • the account data table may have different names corresponding to different application scenarios, such as a household account in the field of financial accounting, an inventory item detail in the material inventory technical field, a stock data table, a balance data table, and the like.
  • Step 104 Acquire, from the sub-account data table, the current balance of the account whose serial number of the latest data processing record is less than or equal to J.
  • the sequence number of the last data processing record is less than or equal to J, it indicates that the account does not have data update during the period from the snapshot time point to the current time point, and the embodiment of the present invention directly
  • the current balance of these accounts can be obtained as a data snapshot in the sub-account data table.
  • Step 105 Obtain an account of an account whose sequence number of the latest data processing record is greater than J, and obtain a closing balance of the last data processing from a data processing record whose serial number corresponding to the account number is less than or equal to J, or The opening balance of the first data processing after the data processing record corresponding to J is obtained from the data processing record corresponding to each of the account accounts.
  • the ending balance of the last data processing is obtained from the data processing record whose serial number is less than or equal to J in the data processing record corresponding to the account, and the ending balance refers to the data processing record.
  • the account balance after the data processing; or the opening balance of the first data processing after the data processing record corresponding to the J is obtained from the data processing record corresponding to the account, and the opening balance refers to the data processing record, The account balance before the secondary data processing.
  • the above ending balance or opening balance can be used as a snapshot of the data of the account.
  • the method for generating an account data snapshot provided by the first embodiment of the present invention, first obtain the maximum sequence number J of the data processing record that is closest to the snapshot time point that needs to generate the data snapshot, and before the snapshot time point, and then compare each The serial number of the last data processing record of the account and the size of J, less than or equal to J, indicating that the account does not have data update during the period from the snapshot time point to the current time point, the current balance of these accounts is directly obtained as A snapshot of the data. If the comparison result is greater than J, it indicates that the account has updated data during the period of time, and the current balance of the account cannot be used as a data snapshot.
  • FIG. 2 is a flowchart of a method for generating a snapshot of an account data according to Embodiment 2 of the present invention.
  • the method for generating an account data snapshot mainly includes: Step 201: Receive an instruction to generate a snapshot of the account data, and determine a snapshot time point corresponding to the instruction that needs to generate a snapshot.
  • Step 202 Find a maximum sequence number J of the data processing record in which the processing time in the data processing record table is earlier than or equal to the snapshot time point.
  • the specific implementation process of the steps 201-202 is the same as the steps 101-102 in the first embodiment. For details, refer to the related description of the first embodiment, and details are not described herein again.
  • Step 203 Compare the sequence number of the latest data processing record and the size of J of each account in the account data table.
  • the embodiment of the present invention first reads the sequence number of the latest data processing record recorded in the last record of each account in the account data table, and then compares the serial number and the size of J. It should be noted that a person skilled in the art can set the serial number of the most recent data processing record in other fields in the sub-account data table, and is not limited to the last data processing record field given by the embodiment of the present invention.
  • the sub-account data table can have different names, such as the account book in the field of financial accounting, the inventory material list in the material inventory technology field, the inventory data table, the balance data table, and the like.
  • step 204 Acquire, from the sub-account data table, the current balance of the account whose serial number of the latest data processing record is less than or equal to J.
  • step 204 The specific implementation process of the step 204 is the same as the step 104 in the first embodiment. For details, refer to the related description of the first embodiment, and details are not described herein again.
  • Step 205 Obtain an account of an account whose sequence number of the latest data processing record is greater than J, and obtain a ending balance of the last data processing from a data processing record whose sequence number corresponding to the account number is less than or equal to J, or The opening balance of the first data processing after the data processing record corresponding to J is obtained from the data processing record corresponding to each of the account accounts.
  • the method for generating a data snapshot provided by the second embodiment of the present invention can determine the last data processing record before the snapshot time point by comparing the sequence number when performing step 205, and then obtain the ending balance of the last data processing.
  • the step of obtaining the ending balance may include: A1: Obtaining a data processing record with the largest serial number from the data processing record whose sequence number is less than or equal to J in the data processing record corresponding to each account.
  • the data processing record with the largest serial number is the last data processing record of the account. Recorded. In a specific case, the data processing record with the largest serial number is the data processing record corresponding to J.
  • the data processing record includes the serial number, the account number, the data processing time, the transaction amount (transaction amount), and the ending balance (that is, the account balance after the current data processing).
  • the ending balance in the data processing record with the largest serial number can be directly obtained as a snapshot of the data of the account at the snapshot time point.
  • the embodiment of the present invention directly obtains the ending balance recorded in the closing balance field of the data processing record having the largest serial number. It should be noted that those skilled in the art can flexibly set the ending balance in other fields of the data processing record, and are not limited to the ending balance field given by the embodiment of the present invention.
  • the opening balance and the closing balance can be converted. For example, the ending balance is calculated based on the opening balance and the current transaction amount (trading volume), and the opening balance is calculated based on the ending balance and the current transaction amount (trading volume). .
  • the method for generating a data snapshot provided by the second embodiment of the present invention can determine the first data processing after the snapshot time point by comparing the sequence numbers, and then obtain the opening balance of the first data processing.
  • the foregoing steps for obtaining the opening balance specifically include:
  • the data processing record with the smallest serial number (greater than J) is the first data processing record of the account.
  • the data processing record includes the serial number, the account number, the data processing time, and the opening balance (that is, the account balance before the current data processing).
  • the opening balance in the data processing record with the smallest serial number can be directly obtained as a snapshot of the data of the account at the snapshot time point.
  • the embodiment of the present invention directly obtains the opening balance recorded in the opening balance field of the data processing record with the smallest serial number. It should be noted that those skilled in the art can The amount can be flexibly set in other fields of the data processing record, and is not limited to the opening balance field given by the embodiment of the present invention.
  • Step 206 Obtain a general ledger balance of the total account at the snapshot time point.
  • the general ledger balance total balance of all accounts
  • the total ledger generation time are recorded in the general account.
  • the step 206 can be performed simultaneously with the step 202.
  • the execution sequence of the step 206 is not limited by the sequence number of the step, and can be performed after the snapshot time point is determined. Those skilled in the art can flexibly adjust the execution order according to the needs.
  • the method for generating an account data snapshot provided by Embodiment 2 of the present invention includes obtaining a total account balance of a total account at a snapshot time point, and further obtaining a data snapshot of the total account, thereby facilitating statistical comparison between the balance in the total account and the balance in the sub-account. For example, perform trial balance detection and the like.
  • the snapshot time point in the instruction for generating the snapshot of the account data may be earlier than or equal to the current time. Therefore, the embodiment of the present invention can not only obtain the current time, the data snapshot of ⁇ , but also obtain the current time point. The data snapshot at any point in time can only obtain a snapshot of the data at the current time.
  • the flexibility of the embodiment of the present invention is better, and the adaptation scenario is wider.
  • the application scenario provided by the embodiment of the present invention mainly involves three types of data structures: a sub-account data table (specifically, a sub-account), a data processing record table (specifically, a transaction flow meter), and a total account, and the specific contents thereof are as follows: Account No. account name Subject balance last date/time last journal No.
  • the last transaction number the serial number of the transaction that was last updated (last time)
  • the opening balance of the opening balance refers to the account balance before the transaction is recorded.
  • the serial number uniquely identifies a transaction, and the serial number increases in the order of transaction.
  • the opening balance field is set in the transaction flow table, corresponding to the storage opening balance.
  • the closing balance field may be provided in the transaction flow table, corresponding to the storage of the closing balance (the balance of the account after the transaction is posted).
  • a method for generating an account data snapshot provided by Embodiment 3 of the present invention specifically includes the following steps:
  • Step 301 Receive an accounting period switching instruction, where the instruction carries a snapshot time point at which a snapshot needs to be generated.
  • the accounting settlement system issues an accounting cycle switching instruction (the instruction is generated) A form of the instruction for the snapshot of the account data.
  • the switch instruction carries the snapshot time point at which the snapshot needs to be generated, for example, 23:30, which is earlier than the current time of the accounting settlement system 01:00:.
  • Step 302 Find a maximum serial number J1 of the transaction flow in the transaction flow table that is earlier than or equal to the transaction time point.
  • Step 303 Read the serial number of the last transaction recorded in the last transaction serial number field of each account in the account.
  • serial numbers of the most recent transactions recorded in the last journal No. field of the account 001-006 are 106, 100, 99, 98, 105, and 50, respectively.
  • Step 304 Compare the serial number of the last transaction of each account and the size of J1.
  • the comparison result is greater than J1, it means that the transactions occurred from 23:30 to the current time.
  • the data snapshot of the account is obtained. If the comparison result is less than or equal to J1, it means that these accounts have not been traded in the paragraph, and the current balance can be used as a data snapshot.
  • step 305 a snapshot of the data of the account is obtained.
  • Step 305 Acquire a current balance of an account whose serial number of the latest transaction is less than or equal to J1. If the serial number of the last transaction of the account 002, 003, 004, 006 in the household account is less than or equal to 100, the current balance of the accounts 002, 003, 004, 006 is directly obtained from the account to be taken as a data snapshot of these accounts.
  • Step 306 Obtain an account of an account with a serial number greater than J1 of the latest transaction, and obtain a transaction flow after the transaction flow corresponding to J1 is obtained from the transaction flow corresponding to each account and the flow number is the smallest.
  • the lowest flow number among all the transaction flows (101, 102, 104, 106) whose serial number is greater than 100 is the transaction flow 101.
  • the lowest flow number among all transaction flows (103, 105) with a serial number greater than 100 is the transaction flow 103.
  • Step 307 Obtain an opening balance recorded in an opening balance field of a transaction stream with the smallest serial number.
  • the opening balances recorded in the opening balance fields of the transaction flow 101 and the transaction flow 103 are respectively 120.0 and 85.2, and the data snapshots of the accounts 001 and 005 in the household account at 23:30 are 120.0 and 85.2, respectively. .
  • Step 308 Obtain a general ledger balance of the total account at the snapshot time point.
  • the general ledger balance recorded in the total account is queried according to the snapshot time 23:30.
  • the application scenario obtains a snapshot of the data of the total account and a snapshot of the data of each account in the account, and the accounting settlement system can perform trial balance detection according to the above data snapshot, and check whether the total amount of all accounts in the account is total and total.
  • the account's general ledger balance is consistent.
  • the embodiment of the present invention does not need to lock any data table, and does not need to back up any points.
  • the account book and the running account book so there is no need to interrupt the service, any transaction can continue, greatly improving the system availability, reducing data redundancy and saving storage space.
  • the snapshot time point is earlier than the current time.
  • the embodiment of the present invention can obtain a snapshot of the data at any time before the current time point, and the flexibility is good. It is necessary to add a few fields to the existing data structure, such as the sub-account data table and the data processing record table, without modifying the existing transaction logic, so the influence surface is small, and the promotion and application are convenient.
  • the method for generating an account data snapshot provided by the embodiment of the present invention is described in detail above, and the device for generating a snapshot of the account data corresponding to the method embodiment is further given below. Schematic diagram.
  • the instruction receiving unit 410 is configured to receive an instruction for generating a snapshot of the account data, and determine a snapshot time point corresponding to the instruction that needs to generate a snapshot;
  • the serial number searching unit 420 is configured to search for a maximum sequence number J of the data processing record in the data processing record table that is earlier than or equal to the snapshot time point;
  • the serial number comparison unit 430 is configured to compare the sequence number of the latest processing data of each account in the account data table and the size of J;
  • the account balance obtaining unit 440 is configured to obtain, from the sub-account data table, a current balance of an account whose serial number of the latest data processing record is less than or equal to J;
  • the account balance obtaining unit 440 is further configured to acquire an account of an account whose sequence number of the latest data processing record is greater than J, and obtain the last time from the data processing record whose sequence number corresponding to each account is less than or equal to J.
  • the closing balance of the data processing, or the opening balance of the first data processing after the data processing record corresponding to J is obtained from the data processing record corresponding to each of the account numbers.
  • the device for generating the snapshot of the account data provided in the fourth embodiment of the present invention may be used in the foregoing method, the second, the third, and the third. For details, refer to the related description of the foregoing embodiment, and details are not described herein again.
  • the sequence number searching unit 420 first obtains the sequence number of the data processing record that is closest to the snapshot time point that needs to generate the data snapshot and before the snapshot time point. J, then the serial number comparison unit 430 compares the serial number of the last data processing record of each account and the size of J. If it is less than or equal to J, it indicates that the account is in the period from the snapshot time point to the current time point. If the data update does not occur, the account balance obtaining unit 440 directly acquires the current balance of these accounts as a data snapshot.
  • the account balance obtaining unit 440 obtains the ending balance or the opening balance as the A snapshot of the data for the account.
  • the embodiment of the present invention does not need to back up the sub-account data table, avoiding the interruption process of the sub-account data table for a long time, and greatly improving the availability of the system service.
  • the embodiment of the present invention does not need to perform any data backup, reduces data redundancy, and saves storage space.
  • FIG. 5-6 is a schematic structural diagram of two embodiments of an account balance obtaining unit in an apparatus for generating an account data snapshot according to an embodiment of the present invention.
  • the account balance obtaining unit 440 in the device for generating an account data snapshot provided by the embodiment of the present invention may specifically include:
  • the first record obtaining module 441 is configured to obtain an account of an account whose sequence number of the latest data processing record is greater than J, and obtain the data with the largest serial number from the data processing record whose sequence number corresponding to each account is less than or equal to J. Processing records;
  • the first balance obtaining module 442 is configured to acquire a closing balance in the data processing record with the largest serial number and obtain the current account number of the latest data processing record that is less than or equal to J from the sub-account data table. Balance.
  • the account balance obtaining unit 440 in the device may specifically include:
  • a second record obtaining module 443, configured to acquire an account of an account whose serial number is greater than J of the latest data processing record, and obtain a data processing record corresponding to J from each data processing record corresponding to the account number and sequence No. of the smallest data processing record;
  • a second balance obtaining module 444 configured to acquire an opening balance in the data processing record with the smallest serial number and obtain the current account number of the latest data processing record that is less than or equal to J from the sub-account data table. Balance.
  • FIG. 7 is a schematic structural diagram of an apparatus for generating an account data snapshot according to Embodiment 5 of the present invention.
  • the device for generating a snapshot of the account data mainly includes: a processor 501, a memory 502, and a bus 503, where the memory 502 is configured to store a computer execution instruction, and the processor 501 and the memory 502 is connected by the bus 503.
  • the processor 501 executes the computer execution instruction stored by the memory 502, so that the device performs the following method:
  • the device provided by the embodiment of the present invention can obtain a snapshot of the balance data of each account in the account data table by performing the foregoing method.
  • the embodiment of the present invention does not need to lock any data table, and does not need to back up any account book and running account table, so no transaction can be interrupted, and any transaction can continue. Greatly improve system availability, reduce data redundancy, and save storage space.
  • the step of the device for generating the snapshot of the account data provided in the fifth embodiment of the present invention to perform the comparison of the sequence number of the last data processing record of each account in the account data table and the size of J includes: Step D1, reading the sub-account data table The serial number of the most recent data processing record recorded in the last data processing record field of each account;
  • Step D2 Compare the serial number of the last data processing record and the size of J recorded in the last data processing record field.
  • the device for generating the account data snapshot provided by the fifth embodiment of the present invention adopts different methods for obtaining data snapshots for different accounts according to the comparison result, and for the account whose serial number is less than or equal to J, the account is directly obtained from the sub-account data table.
  • Current balance For an account whose serial number is greater than J, the ending balance of the last data processing is obtained from the data processing record whose serial number in the data processing record corresponding to each account is less than or equal to J, or data corresponding to each of the account numbers.
  • the opening balance of the first data processing after the data processing record corresponding to J is obtained in the processing record, and the specific acquisition process is further explained below.
  • the device for generating an account data snapshot provided by Embodiment 5 of the present invention performs the last data processing from the data processing record whose sequence number corresponding to each account is less than or equal to J.
  • the steps of the closing balance specifically include:
  • Step El Obtain a data processing record with the largest serial number from the data processing record whose sequence number is less than or equal to J in the data processing record corresponding to each account;
  • Step E2 Obtain a closing balance in the data processing record with the largest serial number.
  • the above ending balance is a snapshot of the data for the account.
  • the steps of obtaining the opening balance of the first data processing after the data processing record corresponding to J in the data processing record should include:
  • Step F1 Obtain a data processing record after the data processing record corresponding to J and having the smallest serial number from the data processing record corresponding to each account;
  • Step F2 Obtain an opening balance in the data processing record with the smallest serial number.
  • the above ending balance is a snapshot of the data for the account.
  • the device for generating the snapshot of the account data may use one of the two methods to obtain a data snapshot of the account whose sequence number of the latest data processing record is greater than J, and the foregoing obtaining process does not need to modify the existing data processing.
  • Logic such as transaction logic
  • coupled with the prior art is better, easy to use and simple.
  • the device for generating an account data snapshot provided by the embodiment of the present invention may use a scenario in which a real-time snapshot of a resource needs to be acquired, and is not limited to a data snapshot of an account.
  • a real-time snapshot of a resource needs to be acquired, and is not limited to a data snapshot of an account.
  • Those of ordinary skill in the art will appreciate that various aspects of the present invention, or possible implementations of various aspects, may be embodied as a system, method, or computer program product.
  • aspects of the invention, or possible implementations of various aspects may be in the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, etc.), or a combination of software and hardware aspects, They are collectively referred to herein as "circuits,"”modules," or “systems.”
  • aspects of the invention, or possible implementations of various aspects may take the form of a computer program product, which is a computer readable program code stored on a computer readable medium.
  • the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
  • the computer readable storage medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing, such as random access memory (RAM), read only memory (ROM), Erase programmable read-only memory (EPROM or flash memory), optical fiber, portable read-only memory (CD-ROM:).
  • RAM random access memory
  • ROM read only memory
  • EPROM Erase programmable read-only memory
  • CD-ROM portable read-only memory
  • the processor in the computer reads the computer readable program code stored in the computer readable medium, such that the processor can perform the functional actions specified in each step or combination of steps in the flowchart; A device that functions as specified in each block, or combination of blocks.
  • the computer readable program code can execute entirely on the user's computer, partly on the user's computer, as a separate software package, partly on the user's computer and partly on the remote computer, or entirely on the remote computer or server.
  • the functions noted in the various steps of the flowchart, or in the blocks in the block diagrams may not occur in the order noted. For example, two steps, or two blocks shown in succession may be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本发明提出了一种生成账户数据快照的方法和设备,该方法首先获得最接近需要生成数据快照的快照时间点、且在该快照时间点之前的数据处理记录的序列号J,然后比较每一账户的最近一次数据处理记录的序列号和J的大小,小于或等于J,则说明该账户在从快照时间点到当前时间点的这段时间没有发生数据更新,则直接获取这些账户的当前余额作为数据快照。若比较结果大于J,则说明该账户在这段时间内发生了数据更新,该账户的当前余额不能作为数据快照使用,本发明实施例获取满足相关条件的数据处理期末余额或期初余额作为该账户的数据快照。本发明实施例不需要备份分账户数据表,避免较长时间中断分账户数据表的更新过程。

Description

生成账户数据快照的方法和设备 技术领域
本发明实施例涉及计算机技术领域,特别是一种生成账户数据快照的方 法和设备。
背景技术
试算平衡检测是金融会计系统定期执行的一项重要工作, 其目的就是通 过汇总、 计算和比较账户数据, 来检查一个统计周期(例如一天、 一月) 内 所有分账户数据表(例如分户账)的资金变动情况、 该资金变动情况和总账 数据的一致性、 完整性和正确性。在账户数据统计分析期间要求 "关帐"(即 分账户数据表停止更新, 从而获取分帐户数据表中的实时数据)和 "开帐" (即不断有新交易发生, 更新分账户数据表) 同时并存, 试算平衡检测的核 心问题在于如何获得分账户数据表中各账户的快照, 即各账户的实时余额。
现有技术提供了一种生成账户数据快照的方法,其在接收到生成账户数 据快照的指令(例如统计周期切换指令, 该指令携带需要生成快照的快照时 间点) 时, 中断上述分账户数据表的更新, 生成分账户数据表的副本数据, 在所述副本数据生成之后再重启所述分账户数据表的更新, 即重启金融会计 系统的服务。 但是,现有技术提供的生成账户数据快照的方法在生成分账户数据表的 副本数据时, 如果分账户数据表的数据量较大, 则生成副本数据的过程将会 耗时较长, 造成上述分账户数据表更新中断较长时间, 即金融会计系统服务 中断较长时间。
发明内容
本发明实施例提出一种避免在生成账户数据快照时分账户数据表更新 中断较长时间的生成账户数据快照的方法和设备。
第一方面, 本发明实施例提出了一种生成账户数据快照的方法, 所述方 法包括:
接收生成账户数据快照的指令,确定所述指令对应的需要生成快照的快 照时间点;
查找数据处理记录表中处理时刻早于或等于所述快照时间点的数据处 理记录的最大序列号 J;
比较分账户数据表中每一账户的最近一次数据处理记录的序列号和 J的 大小;
从分账户数据表中获取所述最近一次数据处理记录的序列号小于或等 于 J的账户的当前余额;
获取所述最近一次数据处理记录的序列号大于 J的账户的账号, 从每一 所述账号对应的序列号小于或等于 J的数据处理记录中获取最后一次数据处 理的期末余额, 或者从每一所述账号对应的数据处理记录中获取 J所对应的 数据处理记录之后的第一次数据处理的期初余额。
结合第一方面, 在第一种可能的实现方式中, 所述从每一账号对应的序 列号小于或等于 J的数据处理记录中获取最后一次数据处理的期末余额具体 包括:
从每一账号对应的数据处理记录中的序列号小于或等于 J的数据处理记 录中获取序列号最大的数据处理记录;
获取所述序列号最大的数据处理记录中的期末余额。
结合第一方面, 在第二种可能的实现方式中, 所述从每一账号对应的数 据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期初余 额具体包括:
从每一账号对应的数据处理记录中获取 J所对应的数据处理记录之后且 序列号最小的数据处理记录;
获取所述序列号最小的数据处理记录中的期初余额。
结合第一方面, 在第三种可能的实现方式中, 所述比较分账户数据表中 每一账户的最近一次数据处理记录的序列号和 J的大小具体包括:
读取分账户数据表中每一账户的最近一次数据处理记录字段记载的最 近一次数据处理记录的序列号;
比较所述最近一次数据处理记录字段记载的最近一次数据处理记录的 序列号和 J的大小。
第二方面, 本发明实施例还提供一种生成账户数据快照的设备, 包括: 指令接收单元, 用于接收生成账户数据快照的指令, 确定所述指令对应 的需要生成快照的快照时间点;
序列号查找单元, 用于查找数据处理记录表中处理时刻早于或等于所述 快照时间点的数据处理记录的最大序列号 J;
序列号比较单元, 用于比较分账户数据表中每一账户的最近一次数据处 理记录的序列号和 J的大小;
账户余额获取单元, 用于从分账户数据表中获取所述最近一次数据处理 记录的序列号小于或等于 J的账户的当前余额;
所述账户余额获取单元还用于获取所述最近一次数据处理记录的序列 号大于 J的账户的账号, 从每一所述账号对应的数据处理记录中的序列号小 于或等于 J的数据处理记录中获取最后一次数据处理的期末余额, 或者从每 一所述账号对应的数据处理记录中获取 J所对应的数据处理记录之后的第一 次数据处理的期初余额。
结合第二方面, 在第一种可能的实现方式中, 所述账户余额获取单元包 括:
第一记录获取模块, 用于获取所述最近一次数据处理记录的序列号大于 J 的账户的账号, 从每一账号对应的数据处理记录中的序列号小于或等于 J 的数据处理记录中获取序列号最大的数据处理记录;
第一余额获取模块, 用于获取所述序列号最大的数据处理记录中的期末 余额以及从分账户数据表中获取所述最近一次数据处理记录的序列号小于 或等于 J的账户的当前余额。
结合第二方面, 在第二种可能的实现方式中, 账户余额获取单元包括: 第二记录获取模块, 用于获取所述最近一次数据处理记录的序列号大于
J的账户的账号, 从每一账号对应的数据处理记录中获取 J所对应的数据处 理记录之后且序列号最小的数据处理记录;
第二余额获取模块, 用于获取所述序列号最小的数据处理记录中的期初 余额以及从分账户数据表中获取所述最近一次数据处理记录的序列号小于 或等于 J的账户的当前余额。
第三方面, 本发明实施例提供一种生成账户数据快照的设备, 包括: 处理器、 存储器和总线, 所述存储器用于存储计算机执行指令, 所述处 理器与所述存储器通过所述总线连接, 当所述设备运行时, 所述处理器执行 所述存储器存储的所述计算机执行指令, 以使所述设备执行如下方法:
接收生成账户数据快照的指令,确定所述指令对应的需要生成快照的快 照时间点;
查找数据处理记录表中处理时刻早于或等于所述快照时间点的数据处 理记录的最大序列号 J;
比较分账户数据表中每一账户的最近一次数据处理记录的序列号和 J的 大小;
从分账户数据表中获取所述最近一次数据处理记录的序列号小于或等 于 J的账户的当前余额;
获取所述最近一次数据处理记录的序列号大于 J的账户的账号, 从每一 所述账号对应的序列号小于或等于 J的数据处理记录中获取最后一次数据处 理的期末余额, 或者从每一所述账号对应的数据处理记录中获取 J所对应的 数据处理记录之后的第一次数据处理的期初余额。
结合第三方面, 在第一种可能的实现方式中, 所述设备从每一账号对应 的序列号小于或等于 J的数据处理记录中获取最后一次数据处理的期末余额 具体包括:
从每一账号对应的数据处理记录中的序列号小于或等于 J的数据处理记 录中获取序列号最大的数据处理记录;
获取所述序列号最大的数据处理记录中的期末余额。
结合第三方面, 在第二种可能的实现方式中, 所述设备从每一账号对应 的数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期 初余额具体包括:
从每一账号对应的数据处理记录中获取 J所对应的数据处理记录之后且 序列号最小的数据处理记录;
获取所述序列号最小的数据处理记录中的期初余额。
结合第三方面, 在第三种可能的实现方式中, 所述设备比较分账户数据 表中每一账户的最近一次数据处理记录的序列号和 J的大小具体包括: 读取分账户数据表中每一账户的最近一次数据处理记录字段记载的最 近一次数据处理记录的序列号;
比较所述最近一次数据处理记录字段记载的最近一次数据处理记录的 序列号和 J的大小。
本发明实施例提供的生成账户数据快照的方法中, 首先获得最接近需要 生成账户数据快照的快照时间点、且在该快照时间点之前的数据处理记录的 最大序列号 J, 然后比较每一账户的最近一次数据处理记录的序列号和 J的 大小, 若小于或等于 J, 则说明该账户在从上述快照时间点到当前时间点的 这段时间内没有发生数据更新, 则直接获取这些账户的当前余额作为数据快 照即可。 若比较结果大于 J, 则说明该账户在这段时间内发生了数据更新, 该账户的当前余额不能作为数据快照使用, 本发明实施例从该账号对应的数 据处理记录中的序列号小于或等于 J的数据处理记录中获取最后一次数据处 理的期末余额, 或者从该账号对应的数据处理记录中获取 J所对应的数据处 理记录之后的第一次数据处理的期初余额, 上述期末余额或期初余额即可作 为该账户的数据快照。 与现有技术相比, 本发明实施例在生成账户数据快照 时不需要备份分账户数据表, 避免较长时间中断分账户数据表的更新过程, 极大的提高了系统服务的可用性。 同时, 本发明实施例不需要进行任何数据 备份, 降低数据冗余, 节省了存储空间。
附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对现有技术或实施 例中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳 动的前提下, 还可以根据这些附图获得其他的附图。 图 1是本发明实施例一提供的生成账户数据快照的方法流程图; 图 2是本发明实施例二提供的生成账户数据快照的方法流程图; 图 3是本发明实施例三提供的生成账户数据快照的方法流程图; 图 4是本发明实施例四提供的生成账户数据快照的设备的结构示意图;
单元一实施例的结构示意图;
单元的另一实施例的结构示意图;
图 7是本发明实施例五提供的生成账户数据快照的设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
实时快照的场景,例如金融会计结算、支付技术领域中、企业资源计划(ERP, enterprise resource planning ) 系统中, 例如物料库存管理技术领域中。
参见图 1 , 图 1是本发明实施例一提供的生成账户数据快照的方法流程 图。
如图所示, 本发明实施例一提供的生成账户数据快照的方法主要包括: 步骤 101、 接收生成账户数据快照的指令, 确定所述指令对应的需要生 成快照的快照时间点。
具体的, 本发明实施例中生成账户数据快照的指令可以由人工手动触发, 金融会计系统或库存管理系统自动触发, 该指令可以包含在例如统计周期切 换命令、 会计日切指令、 物料盘点指令等需要数据快照的命令中。 对应的, 账户的含义不仅包括金融账户, 还可以包括物料账户等。
其中, 所述需要生成快照的时间点可以携带在生成账户数据快照的指令。 上述确定所述指令对应的需要生成快照的快照时间点的步骤可以为直接解 析接收到的指令获取需要生成快照的快照时间点。 此外, 需要生成快照的快 照时间点可以不携带在生成账户数据快照的指令中, 该快照时间点可以作为 独立的参数下发, 该快照时间点与该条指令之间存在对应关系, 本发明实施 例根据接收到的指令与快照时间点之间的对应关系,获得接收到的指令所对 应的快照时间点。 作为另外一种实施方式, 本发明实施例中生成账户数据快 照的指令中不携带需要快照时间点, 本发明实施例将接收到生成账户数据快 照的指令的当前时间作为需要生成快照的快照时间点。
其中, 上述快照时间点可以早于或等于当前时间, 因而本发明实施例不 仅可以获取当前时间点的数据快照,还可以用于获取当前时间点之前的任一 时间点的数据快照, 灵活性较好。
步骤 102、 查找数据处理记录表中处理时刻早于或等于所述快照时间点 的数据处理记录的最大序列号 J。
其中,数据处理记录表中按照序列号顺序记录了不同账户的数据处理记 录。 数据处理记录表中的一条数据处理记录包含序列号, 账号, 账户变更数 额, 处理时间等字段。 对不同账户, 序列号是统一分配的, 序列号可以唯一 标识一条数据处理记录。 数据处理记录表中, 对某一个账户的账号, 存在一 条或多条数据处理记录。 最大序列号 J所对应的数据处理记录为上述快照时 间点之前(包括该时间点本数) 的最后一次数据处理记录。
需要指出的是, 对应不同的应用场景, 数据处理记录表可以有不同的名 称, 例如金融会计领域中的交易流水表、 交易明细表, 物料库存技术领域中 的订单流水表、 订单明细表等。
步骤 103、 比较分账户数据表中每一账户的最近一次数据处理记录的序 列号和 J的大小。
其中, 本发明实施例提供的分账户数据表中按账户区分记载了账户的账 号、 账户余额以及该账户最近一次数据处理记录的序列号等数据。 具体的, 对应不同的应用场景, 分账户数据表可以有不同的名称, 例如金融会计领域 中的分户账, 物料库存技术领域中的库存物料明细、 存量数据表、 余量数据 表等。
步骤 104、 从分账户数据表中获取所述最近一次数据处理记录的序列号 小于或等于 J的账户的当前余额。
在本发明实施例中, 若最近一次数据处理记录的序列号小于或等于 J, 则说明该账户在从上述快照时间点到当前时间点的这段时间没有发生数据 更新, 本发明实施例直接从分账户数据表中获取这些账户的当前余额作为数 据快照即可。
步骤 105、 获取所述最近一次数据处理记录的序列号大于 J的账户的账 号, 从每一所述账号对应的序列号小于或等于 J的数据处理记录中获取最后 一次数据处理的期末余额, 或者从每一所述账号对应的数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期初余额。
在本发明实施例中, 若分账户数据表中某一账户最近一次数据处理记录 的序列号大于 J, 则说明该账户在这段时间内发生了数据更新, 该账户的当 前余额不能作为数据快照使用,本发明实施例从该账号对应的数据处理记录 中的, 序列号小于或等于 J的数据处理记录中获取最后一次数据处理的期末 余额, 期末余额是指数据处理记录中, 本次数据处理之后的账户余额; 或者 从该账号对应的数据处理记录中获取 J所对应的数据处理记录之后的第一次 数据处理的期初余额, 期初余额是指数据处理记录中, 本次数据处理之前的 账户余额。 上述期末余额或期初余额即可作为该账户的数据快照。
在本发明实施例一提供的生成账户数据快照的方法中, 首先获得最接近 需要生成数据快照的快照时间点、且在该快照时间点之前的数据处理记录的 最大序列号 J, 然后比较每一账户的最近一次数据处理记录的序列号和 J的 大小, 小于或等于 J则说明该账户在从快照时间点到当前时间点的这段时间 没有发生数据更新, 则直接获取这些账户的当前余额作为数据快照。 若比较 结果大于 J, 则说明该账户在这段时间内发生了数据更新, 该账户的当前余 额不能作为数据快照使用, 本发明实施例获取上述序列号 J之前最后一次数 据处理记录的期末余额或序列号 J之后第一笔数据处理记录的期初余额作为 该账户的数据快照。 与现有技术相比, 本发明实施例不需要备份分账户数据 表, 避免较长时间中断分账户数据表的更新过程, 极大的提高了系统服务的 可用性。 同时, 本发明实施例不需要进行任何数据备份, 降低数据冗余, 节 省了存储空间。 参见图 2, 图 2是本发明实施例二提供的生成账户数据快照的方法流程 图。
如图所示, 本发明实施例二提供的生成账户数据快照的方法主要包括: 步骤 201、 接收生成账户数据快照的指令, 确定所述指令对应的需要生 成快照的快照时间点。
步骤 202、 查找数据处理记录表中处理时刻早于或等于所述快照时间点 的数据处理记录的最大序列号 J。 其中, 步骤 201-202的具体执行过程和上述实施例一中的步骤 101-102 相同, 详情参见上述实施例一的相关描述, 在此不再赘述。
步骤 203、 比较分账户数据表中每一账户的最近一次数据处理记录的序 列号和 J的大小。
具体的, 本发明实施例首先读取分账户数据表中每一账户的最近一次数 据处理记录字段记载的最近一次数据处理记录的序列号, 然后比较该序列号 和 J的大小。 需要说明的是, 本领域技术人员可以将最近一次数据处理记录 的序列号可以设置在分账户数据表中的其他字段中, 而不限于本发明实施例 给出的最近一次数据处理记录字段。 对应不同的应用场景, 分账户数据表可 以有不同的名称, 例如金融会计领域中的分户账, 物料库存技术领域中的库 存物料明细、 存量数据表、 余量数据表等。
若比较后该系列号小于或等于 J, 则执行步骤 204, 否则执行步骤 205。 步骤 204、 从分账户数据表中获取所述最近一次数据处理记录的序列号 小于或等于 J的账户的当前余额。
其中, 步骤 204的具体执行过程和上述实施例一中的步骤 104相同, 详 情参见上述实施例一的相关描述, 在此不再赘述。
步骤 205、 获取所述最近一次数据处理记录的序列号大于 J的账户的账 号, 从每一所述账号对应的序列号小于或等于 J的数据处理记录中获取最后 一次数据处理的期末余额, 或者从每一所述账号对应的数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期初余额。
具体的, 本发明实施例二提供的生成数据快照的方法在执行步骤 205时 可以通过比较序列号来确定快照时间点前的最后一次数据处理记录, 然后再 获取该最后一次数据处理的期末余额。 上述获取期末余额的步骤可以包括: A1、从每一账号对应的数据处理记录中的序列号小于或等于 J的数据处 理记录中获取序列号最大的数据处理记录。
其中, 上述序列号最大的数据处理记录为该账号的最后一次数据处理记 录。在特定情况下,序列号最大的数据处理记录为 J所对应的数据处理记录。
A2、 获取所述序列号最大的数据处理记录中的期末余额。
其中,数据处理记录中记载了序列号、账号、数据处理时间、交易额(交 易量)、 期末余额 (即本次数据处理后的账户余额)等内容。 本发明实施例 可以直接获取序列号最大的数据处理记录中的期末余额,将其作为该账户在 所述快照时间点的数据快照。
更进一步的, 本发明实施例直接获取序列号最大的数据处理记录的期末 余额字段中记载的期末余额。 需要说明的是, 本领域技术人员可以将期末余 额灵活设置在数据处理记录的其他字段中, 而不限于本发明实施例给出的期 末余额字段。 此外, 期初余额、 期末余额之间是可以进行换算的, 例如根据 期初余额和本次交易额(交易量)计算得到期末余额, 根据期末余额和本次 交易额 (交易量)来计算得到期初余额。
同样的, 本发明实施例二提供的生成数据快照的方法在执行步骤 205时 可以通过比较序列号来确定快照时间点后的第一次数据处理, 然后再获取该 第一次数据处理的期初余额。 具体的, 上述获取期初余额的步骤具体包括:
Bl、从每一账号对应的数据处理记录中获取 J所对应的数据处理记录之 后且序列号最小的数据处理记录。
其中, 上述序列号最小 (大于 J ) 的数据处理记录为该账号的第一次数 据处理记录。
B2、 获取所述序列号最小的数据处理记录中的期初余额。
其中, 数据处理记录中记载了序列号、 账号、 数据处理时间、 期初余额 (即本次数据处理前的账户余额)等内容。 本发明实施例可以直接获取序列 号最小的数据处理记录中的期初余额, 将其作为该账户在所述快照时间点的 数据快照。
更进一步的, 本发明实施例直接获取序列号最小的数据处理记录的期初 余额字段中记载的期初余额。 需要说明的是, 本领域技术人员可以将期初余 额可以灵活设置在数据处理记录的其他字段中, 而不限于本发明实施例给出 的期初余额字段。
步骤 206、 获取总账户在所述快照时间点的总账余额。
具体的, 总账户中记载了总账余额 (所有账户的总余额)以及的总账生 成时间。
其中, 步骤 206可以和步骤 202同时执行, 步骤 206的执行顺序不受其 步骤序号的限定, 在确定了快照时间点之后即可执行, 本领域技术人员可以 根据需要灵活调整其执行顺序。
本发明实施例二提供的生成账户数据快照的方法包括获取总账户在快 照时间点的总账余额, 进而获得总账户的数据快照, 进而方便对总账户中的 余额和分账户中的余额进行统计对比, 例如进行试算平衡检测等。
在本发明实施例中, 生成账户数据快照的指令中的快照时间点可以早于 或等于当前时间, 因而本发明实施例不仅可以获取当前时间 , ^的数据快照, 还可以获取当前时间点之前的任一时间点的数据快照,相对于现有技术仅能 获取当前时间的数据快照, 本发明实施例的灵活性较好, 适应场景更广。 为更详细的理解本发明实施例提供的生成账户数据快照的方法, 下面给 出会计结算领域的具体应用场景来进一步描述。
本发明实施例提供的应用场景中主要涉及三类数据结构: 分账户数据表 (具体为分户账)、 数据处理记录表(具体为交易流水表) 以及总账户, 其 包含的具体内容如下: account No. account name Subject balance last date/time last journal No.
字段说明:
account No 账号
account name 贝长户名
subject 科目(账户类型, 例如借、 货等类型) balance 余额
last date/time 最后交易日期 /时间
最近一次交易流水号,保存账户最后被更新(最近一次 ) 的交易的流水号
交易流水表:
Figure imgf000015_0001
字段说明:
journal No. 序列号, 在本应用场景中为交易的流水号
account No. 贝长号
amount 发生额 (交易额)
date/time 发生日期 /时间
opening balance期初余额, 指该笔交易流水记账之前的账户余额 其中, 流水号唯一标识一笔交易, 且流水号按交易顺序递增。 在本应用 场景中, 交易流水表中设有期初余额字段, 对应存储期初余额。 在可选的实 施例中, 交易流水表中可以设有期末余额字段, 对应存储期末余额(该表交 易流水记账之后的账户余额)。
总账户:
subject No. balance Date
字段说明
subject 科目号 (账户类型标识)
balance 余额
date 总账生成日期
参见图 3 , 本发明实施例三提供的生成账户数据快照的方法具体包括以 下步骤:
步骤 301、 接收会计周期切换指令, 所述指令中携带需要生成快照的快 照时间点。
在本应用场景中, 会计结算系统发出会计周期切换指令(该指令为生成 账户数据快照的指令的一种形式), 切换指令中携带需要生成快照的快照时 间点, 例如 23点 30分, 该时间早于会计结算系统的当前时间 01 : 00:。
步骤 302、 查找交易流水表中交易时间早于或等于所述快照时间点的交 易流水的最大流水号 Jl。
在本应用场景中, 由于交易的流水号单增, 则最大流水号 J1 必然存在 且唯一, 4艮定其值为 100。
步骤 303、 读取分户账中每一账户的最近一次交易流水号字段记载的最 近一次交易的流水号。
其中, 分户帐的具体内容如下表所示:
Figure imgf000016_0001
具体的,账户 001-006的 last journal No.字段中记载的最近一次交易的流 水号分别为 106、 100、 99、 98、 105和 50。
步骤 304、 比较每一账户的最近一次交易的流水号和 J1的大小。
若比较结果大于 J1 , 则说明这些账户从 23: 30分到当前时刻的这段时 间内发生了交易, 根据步骤 306-307来获取账户的数据快照。 若比较结果小 于或等于 J1 , 则说明这些账户在该段内容未发生交易, 当前余额可以作为数 据快照, 则根据步骤 305来获取账户的数据快照。
步骤 305、获取最近一次交易的流水号小于或等于 J1的账户的当前余额。 分户账中账号 002、 003、 004、 006的最近一次交易的流水号小于或等 于 100, 则直接从分户账中获取账号 002、 003、 004、 006的当前余额作为这 些账户的数据快照。 步骤 306、 获取最近一次交易的流水号大于 Jl的账户的账号,从其中每 一账号对应的交易流水中获取 J1 所对应的交易流水之后且流水号最小的交 易流水。
其中, 交易流水表的具体内容如下表所示:
Figure imgf000017_0001
在本应用场景中, 针对账号 001的交易流水, 流水号大于 100的所有交 易流水(101、 102、 104、 106 ) 中流水号最小的为交易流水 101。
针对账号 005的交易流水,流水号大于 100的所有交易流水( 103、 105 ) 中流水号最小的为交易流水 103。
步骤 307、 获取流水号最小的交易流水中的期初余额字段记载的期初余 额。
在本应用场景中, 交易流水 101和交易流水 103各自的期初余额字段中 记载的期初余额分别为 120.0、 85.2, 则分户账中账号 001、 005在 23: 30 的数据快照分别为 120.0和 85.2。
步骤 308、 获取总账户在快照时间点的总账余额。
具体的,本实施例根据快照时间 23: 30查询总账户中记载的总账余额。 至此, 本应用场景获得了总账户的数据快照和分户账中各账户的数据快照, 进而会计结算系统可以根据上述数据快照进行试算平衡检测,核对分户账中 所有账户的总额是否和总账户的总账余额一致。 与现有技术中的生成账户数 据快照的方法相比, 本发明实施例不需要锁定任何数据表, 不必备份任何分 户账表及流水账表, 因此无须中断服务, 任何交易都可继续进行, 极大的提 升了系统的可用性, 且降低了数据冗余, 节省存储空间。
在本发明实施例中, 快照时间点早于当前时间, 本发明实施例可以获取 当前时间点之前任一时间点的数据快照, 灵活性较好。 需要对现有的数据结构,例如分账户数据表、数据处理记录表增加少许字段, 无需改造现有的交易逻辑, 因此影响面小, 推广应用方便。 以上对本发明实施例提供的生成账户数据快照的方法进行了详细介绍, 下面再给出与方法实施例对应的生成账户数据快照的设备。 构示意图。
本发明实施例四提供的生成账户数据快照的设备主要包括:
指令接收单元 410, 用于接收生成账户数据快照的指令, 确定所述指令 对应的需要生成快照的快照时间点;
序列号查找单元 420 , 用于查找数据处理记录表中处理时刻早于或等于 所述快照时间点的数据处理记录的最大序列号 J;
序列号比较单元 430 , 用于比较分账户数据表中每一账户的最近一次数 据处理记录的序列号和 J的大小;
账户余额获取单元 440, 用于从分账户数据表中获取所述最近一次数据 处理记录的序列号小于或等于 J的账户的当前余额;
所述账户余额获取单元 440还用于获取所述最近一次数据处理记录的序 列号大于 J的账户的账号, 从每一所述账号对应的序列号小于或等于 J的数 据处理记录中获取最后一次数据处理的期末余额, 或者从每一所述账号对应 的数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期 初余额。 本发明实施例四提供的生成账户数据快照的设备可以使用在前述对应 的方法实施例一、 二、 三中, 详情参见上述实施例的相关描述, 在此不再赘 述。
在本发明实施例提供的生成账户数据快照的设备在使用时, 首先由序列 号查找单元 420获得最接近需要生成数据快照的快照时间点、且在该快照时 间点之前的数据处理记录的序列号 J, 然后由序列号比较单元 430比较每一 账户的最近一次数据处理记录的序列号和 J的大小, 若小于或等于 J, 则说 明该账户在从快照时间点到当前时间点的这段时间没有发生数据更新, 则由 账户余额获取单元 440直接获取这些账户的当前余额作为数据快照。若比较 结果大于 J, 则说明该账户在这段时间内发生了数据更新, 该账户的当前余 额不能作为数据快照使用, 本发明实施例由账户余额获取单元 440获取上述 期末余额或期初余额作为该账户的数据快照。 与现有技术相比, 本发明实施 例不需要备份分账户数据表, 避免较长时间中断分账户数据表的更新过程, 极大的提高了系统服务的可用性。 同时, 本发明实施例不需要进行任何数据 备份, 降低数据冗余, 节省了存储空间。
进一步参见图 5-6, 图 5-6分别是本发明实施例提供的生成账户数据快 照的设备中账户余额获取单元的两个实施例的结构示意图。
如图 5所示, 本发明实施例提供的生成账户数据快照的设备中的账户余 额获取单元 440具体可以包括:
第一记录获取模块 441, 用于获取所述最近一次数据处理记录的序列号 大于 J的账户的账号, 从每一账号对应的序列号小于或等于 J的数据处理记 录中获取序列号最大的数据处理记录;
第一余额获取模块 442, 用于获取所述序列号最大的数据处理记录中的 期末余额以及从分账户数据表中获取所述最近一次数据处理记录的序列号 小于或等于 J的账户的当前余额。
如图 6所示的另一实施方式, 本发明实施例提供的生成账户数据快照的 设备中的账户余额获取单元 440具体可以包括:
第二记录获取模块 443 , 用于获取所述最近一次数据处理记录的序列号 大于 J的账户的账号, 从每一所述账号对应的数据处理记录中获取 J所对应 的数据处理记录之后且序列号最小的数据处理记录;
第二余额获取模块 444, 用于获取所述序列号最小的数据处理记录中的 期初余额以及从分账户数据表中获取所述最近一次数据处理记录的序列号 小于或等于 J的账户的当前余额。
本发明实施例给出了账户余额获取单元 440的两种可能的实现方式, 上 述两种实施方式均可获取分账户数据表中每一账户的余额数据快照, 获取过 程不需要中断账户更新服务, 不影响业务运行, 可用性较高。 参见图 7 , 图 7给出了本发明实施例五提供的生成账户数据快照的设备 的结构示意图。
如图所示, 本发明实施例提供的生成账户数据快照的设备主要包括: 处理器 501、 存储器 502和总线 503 , 所述存储器 502用于存储计算机 执行指令, 所述处理器 501与所述存储器 502通过所述总线 503连接, 当所 述设备运行时, 所述处理器 501执行所述存储器 502存储的所述计算机执行 指令, 以使所述设备执行如下方法:
接收生成账户数据快照的指令,确定所述指令对应的需要生成快照的快 照时间点;
查找数据处理记录表中处理时刻早于或等于所述快照时间点的数据处 理记录的最大序列号 J;
比较分账户数据表中每一账户的最近一次数据处理记录的序列号和 J的 大小;
从分账户数据表中获取所述最近一次数据处理记录的序列号小于或等 于 J的账户的当前余额; 获取所述最近一次数据处理记录的序列号大于 J的账户的账号, 从每一 所述账号对应的序列号小于或等于 J的数据处理记录中获取最后一次数据处 理的期末余额, 或者从每一所述账号对应的数据处理记录中获取 J所对应的 数据处理记录之后的第一次数据处理的期初余额。
本发明实施例提供的设备通过执行上述方法, 可以获得分账户数据表中 每一账户的余额数据快照, 详细执行过程可以参考上述方法实施例一中的步 骤 101-105的描述。 与现有技术中的生成账户数据快照的设备相比, 本发明 实施例不需要锁定任何数据表, 不必备份任何分户账表及流水账表, 因此无 须中断服务, 任何交易都可继续进行, 极大的提升了系统的可用性, 且降低 了数据冗余, 节省存储空间。 本发明实施例五提供的生成账户数据快照的设备执行比较分账户数据 表中每一账户的最近一次数据处理记录的序列号和 J的大小的步骤具体包括: 步骤 Dl、 读取分账户数据表中每一账户的最近一次数据处理记录字段 记载的最近一次数据处理记录的序列号;
步骤 D2、 比较所述最近一次数据处理记录字段记载的最近一次数据处 理记录的序列号和 J的大小。
本发明实施例五提供的生成账户数据快照的设备根据比较结果对不同 的账户采用不同的获取数据快照的方法, 针对序列号小于或等于 J的账户, 则直接从分账户数据表中获取该账户的当前余额。针对序列号大于 J的账户, 则从每一账号对应的数据处理记录中的序列号小于或等于 J的数据处理记录 中获取最后一次数据处理的期末余额, 或者从每一所述账号对应的数据处理 记录中获取 J所对应的数据处理记录之后的第一次数据处理的期初余额, 具 体的获取过程参见下面的进一步解释。
进一步的, 本发明实施例五提供的生成账户数据快照的设备执行从每一 账号对应的序列号小于或等于 J的数据处理记录中获取最后一次数据处理的 期末余额的步骤具体包括:
步骤 El、从每一所述账号对应的数据处理记录中的序列号小于或等于 J 的数据处理记录中获取序列号最大的数据处理记录;
步骤 E2、 获取所述序列号最大的数据处理记录中的期末余额。
上述期末余额即为该账户的数据快照。 应的数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的 期初余额的步骤具体包括:
步骤 F1、从每一账号对应的数据处理记录中获取 J所对应的数据处理记 录之后且序列号最小的数据处理记录;
步骤 F2、 获取所述序列号最小的数据处理记录中的期初余额。
上述期末余额即为该账户的数据快照。
本发明实施例提供的生成账户数据快照的设备可以釆用上述两种方法 之一来获取最近一次数据处理记录的序列号大于 J的账户的数据快照, 上述 获取过程不需要改造现有的数据处理逻辑(例如交易逻辑), 与现有技术耦 合性较好, 使用方便简单。
本发明实施例提供的生成账户数据快照的设备可以使用在需要获取资 源的实时快照的场景, 而不限于账户的数据快照。 本领域普通技术人员将会理解, 本发明的各个方面、 或各个方面的可能 实现方式可以被具体实施为系统、 方法或者计算机程序产品。 因此, 本发明 的各方面、 或各个方面的可能实现方式可以釆用完全硬件实施例、 完全软件 实施例 (包括固件、驻留软件等等), 或者组合软件和硬件方面的实施例的形 式, 在这里都统称为"电路"、 "模块"或者"系统"。 此外, 本发明的各方面、 或各个方面的可能实现方式可以釆用计算机程序产品的形式,计算机程序产 品是指存储在计算机可读介质中的计算机可读程序代码。 计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。 计算机可读存储介质包含但不限于电子、 磁性、 光学、 电磁、 红外或半导体 系统、 设备或者装置,或者前述的任意适当组合,如随机存取存储器 (RAM)、 只读存储器 (ROM)、 可擦除可编程只读存储器 (EPROM或者快闪存储器)、 光纤、 便携式只读存储器 (CD-ROM:)。
计算机中的处理器读取存储在计算机可读介质中的计算机可读程序代 码, 使得处理器能够执行在流程图中每个步骤、 或各步骤的组合中规定的功 能动作;生成实施在框图的每一块、或各块的组合中规定的功能动作的装置。
计算机可读程序代码可以完全在用户的计算机上执行、部分在用户的计 算机上执行、 作为单独的软件包、 部分在用户的计算机上并且部分在远程计 算机上, 或者完全在远程计算机或者服务器上执行。 也应该注意, 在某些替 代实施方案中, 在流程图中各步骤、 或框图中各块所注明的功能可能不按图 中注明的顺序发生。 例如, 依赖于所涉及的功能, 接连示出的两个步骤、 或 两个块实际上可能被大致同时执行,或者这些块有时候可能被以相反顺序执 行。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。

Claims

权 利 要求 书
1、 一种生成账户数据快照的方法, 其特征在于, 所述方法包括: 接收生成账户数据快照的指令,确定所述指令对应的需要生成快照的快 照时间点;
查找数据处理记录表中处理时刻早于或等于所述快照时间点的数据处 理记录的最大序列号 J;
比较分账户数据表中每一账户的最近一次数据处理记录的序列号和 J的 大小;
从所述分账户数据表中获取所述最近一次数据处理记录的序列号小于 或等于 J的账户的当前余额;
获取所述最近一次数据处理记录的序列号大于 J的账户的账号, 从每一 所述账号对应的序列号小于或等于 J的数据处理记录中获取最后一次数据处 理的期末余额, 或者从每一所述账号对应的数据处理记录中获取 J所对应的 数据处理记录之后的第一次数据处理的期初余额。
2、 根据权利要求 1所述的方法, 其特征在于, 所述从每一账号对应的 序列号小于或等于 J的数据处理记录中获取最后一次数据处理的期末余额具 体包括:
从每一账号对应的数据处理记录中的序列号小于或等于 J的数据处理记 录中获取序列号最大的数据处理记录;
获取所述序列号最大的数据处理记录中的期末余额。
3、 根据权利要求 2所述的方法, 其特征在于, 所述获取序列号最大的 数据处理记录中的期末余额具体包括:
获取序列号最大的数据处理记录的期末余额字段中记载的期末余额。
4、 根据权利要求 1 所述的方法, 其特征在于, 所述从每一账号对应的 数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期初 余额具体包括:
从每一账号对应的数据处理记录中获取 J所对应的数据处理记录之后且 序列号最小的数据处理记录;
获取所述序列号最小的数据处理记录中的期初余额。
5、 根据权利要求 3所述的方法, 其特征在于, 所述获取序列号最小的 数据处理记录中的期初余额具体包括:
获取序列号最小的数据处理记录的期初余额字段中记载的期初余额。
6、 根据权利要求 1 所述的方法, 其特征在于, 所述比较分账户数据表 中每一账户的最近一次数据处理记录的序列号和 J的大小具体包括:
读取分账户数据表中每一账户的最近一次数据处理记录字段记载的最 近一次数据处理记录的序列号;
比较所述最近一次数据处理记录字段记载的最近一次数据处理记录的 序列号和 J的大小。
7、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 获取总账户在所述快照时间点的总账余额。
8、 一种生成账户数据快照的设备, 其特征在于, 包括:
指令接收单元, 用于接收生成账户数据快照的指令, 确定所述指令对应 的需要生成快照的快照时间点;
序列号查找单元, 用于查找数据处理记录表中处理时刻早于或等于所述 快照时间点的数据处理记录的最大序列号 J;
序列号比较单元, 用于比较分账户数据表中每一账户的最近一次数据处 理记录的序列号和 J的大小;
账户余额获取单元, 用于从所述分账户数据表中获取所述最近一次数据 处理记录的序列号小于或等于 J的账户的当前余额;
所述账户余额获取单元还用于获取所述最近一次数据处理记录的序列 号大于 J的账户的账号, 从每一所述账号对应的序列号小于或等于 J的数据 处理记录中获取最后一次数据处理的期末余额,或者从每一所述账号对应的 数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期初 余额。
9、 根据权利要求 8所述的设备, 其特征在于, 所述账户余额获取单元 包括:
第一记录获取模块, 用于获取所述最近一次数据处理记录的序列号大于 J 的账户的账号, 从每一账号对应的数据处理记录中的序列号小于或等于 J 的数据处理记录中获取序列号最大的数据处理记录;
第一余额获取模块, 用于获取所述序列号最大的数据处理记录中的期末 余额以及从分账户数据表中获取所述最近一次数据处理记录的序列号小于 或等于 J的账户的当前余额。
10、 根据权利要求 8所述的设备, 其特征在于, 所述账户余额获取单元 包括:
第二记录获取模块, 用于获取所述最近一次数据处理记录的序列号大于 J的账户的账号, 从每一账号对应的数据处理记录中获取 J所对应的数据处 理记录之后且序列号最小的数据处理记录;
第二余额获取模块, 用于获取所述序列号最小的数据处理记录中的期初 余额以及从分账户数据表中获取所述最近一次数据处理记录的序列号小于 或等于 J的账户的当前余额。
11、 一种生成账户数据快照的设备, 其特征在于, 包括:
处理器、 存储器和总线, 所述存储器用于存储计算机执行指令, 所述处 理器与所述存储器通过所述总线连接, 当所述设备运行时, 所述处理器执行 所述存储器存储的所述计算机执行指令, 以使所述设备执行如下方法:
接收生成账户数据快照的指令,确定所述指令对应的需要生成快照的快 照时间点;
查找数据处理记录表中处理时刻早于或等于所述快照时间点的数据处 理记录的最大序列号 J;
比较分账户数据表中每一账户的最近一次数据处理记录的序列号和 J的 大小;
从所述分账户数据表中获取所述最近一次数据处理记录的序列号小于 或等于 J的账户的当前余额;
获取所述最近一次数据处理记录的序列号大于 J的账户的账号, 从每一 所述账号对应的序列号小于或等于 J的数据处理记录中获取最后一次数据处 理的期末余额, 或者从每一所述账号对应的数据处理记录中获取 J所对应的 数据处理记录之后的第一次数据处理的期初余额。
12、 根据权利要求 11 所述的设备, 其特征在于, 所述从每一账号对应 的序列号小于或等于 J的数据处理记录中获取最后一次数据处理的期末余额 具体包括:
从每一账号对应的数据处理记录中的序列号小于或等于 J的数据处理记 录中获取序列号最大的数据处理记录;
获取所述序列号最大的数据处理记录中的期末余额。
13、 根据权利要求 11 所述的设备, 其特征在于, 所述从每一账号对应 的数据处理记录中获取 J所对应的数据处理记录之后的第一次数据处理的期 初余额具体包括:
从每一账号对应的数据处理记录中获取 J所对应的数据处理记录之后且 序列号最小的数据处理记录;
获取所述序列号最小的数据处理记录中的期初余额。
14、 根据权利要求 11 所述的设备, 其特征在于, 所述比较分账户数据 表中每一账户的最近一次数据处理记录的序列号和 J的大小具体包括: 读取分账户数据表中每一账户的最近一次数据处理记录字段记载的最 近一次数据处理记录的序列号;
比较所述最近一次数据处理记录字段记载的最近一次数据处理记录的 序列号和 J的大小。
PCT/CN2014/082160 2014-07-14 2014-07-14 生成账户数据快照的方法和设备 WO2016008075A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/082160 WO2016008075A1 (zh) 2014-07-14 2014-07-14 生成账户数据快照的方法和设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/082160 WO2016008075A1 (zh) 2014-07-14 2014-07-14 生成账户数据快照的方法和设备

Publications (1)

Publication Number Publication Date
WO2016008075A1 true WO2016008075A1 (zh) 2016-01-21

Family

ID=55077786

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082160 WO2016008075A1 (zh) 2014-07-14 2014-07-14 生成账户数据快照的方法和设备

Country Status (1)

Country Link
WO (1) WO2016008075A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350727A (zh) * 2007-07-18 2009-01-21 华为技术有限公司 帐户数据快照方法、装置、帐务平衡方法及实时计费系统
CN101459745A (zh) * 2007-12-10 2009-06-17 华为技术有限公司 计费校正方法及校正装置
US20090193195A1 (en) * 2008-01-25 2009-07-30 Cochran Robert A Cache that stores data items associated with sticky indicators
CN101620703A (zh) * 2008-07-04 2010-01-06 阿里巴巴集团控股有限公司 一种缓冲记账方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350727A (zh) * 2007-07-18 2009-01-21 华为技术有限公司 帐户数据快照方法、装置、帐务平衡方法及实时计费系统
CN101459745A (zh) * 2007-12-10 2009-06-17 华为技术有限公司 计费校正方法及校正装置
US20090193195A1 (en) * 2008-01-25 2009-07-30 Cochran Robert A Cache that stores data items associated with sticky indicators
CN101620703A (zh) * 2008-07-04 2010-01-06 阿里巴巴集团控股有限公司 一种缓冲记账方法及装置

Similar Documents

Publication Publication Date Title
US20190266610A1 (en) Transaction management using machine learning and similarity analysis
KR101597704B1 (ko) 그래프 기반 어플리케이션에서 트랜잭션 처리 방법
US8671085B2 (en) Consistent database recovery across constituent segments
CN107330776B (zh) 一种记账及异常记账明细检测方法及装置
US8898641B2 (en) Managing transactions within a middleware container
US11087371B2 (en) Blockchain-based invoice creation method apparatus, and electronic device
JP6560265B2 (ja) ネットワーク支払を制御する方法及び装置
CN109840837B (zh) 财务数据的处理方法、装置、计算机可读介质及电子设备
US11915239B2 (en) System and method for updating and managing hosted catalogs in a procurement system
US20110078123A1 (en) Managing data consistency between loosely coupled components in a distributed computing system
WO2014186759A1 (en) Configurable data accumulators
CN107016029A (zh) 一种业务数据的处理方法、装置及系统
US20150081744A1 (en) Metadata model repository
CN111027984A (zh) 业务订单的处理方法、系统、电子设备及计算机存储介质
WO2020088072A1 (zh) 一种容灾数据处理方法、装置及系统
US9665438B2 (en) System and method for the production of job level pre-processed backup of critical data and/or datasets in a mainframe computing environment
CN109472680A (zh) 一种账务处理方法及系统
US8376749B2 (en) Milestone manager
WO2016169420A1 (zh) 一种业务请求执行状态的查询方法、装置及系统
US9239720B2 (en) Device and method for generating application model based on layered structure
US20230087584A1 (en) Reconciliating payment transactions performed by a payment service provider
CN104932935A (zh) 基于扩展Drools5规则引擎的数据流处理方法及系统
WO2016008075A1 (zh) 生成账户数据快照的方法和设备
WO2020181798A1 (zh) 数据处理方法、设备、服务器及计算机可读存储介质
US20060294006A1 (en) Business transaction process controller for composite transactions

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14897740

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14897740

Country of ref document: EP

Kind code of ref document: A1