CN109214902B - User account asset clearing method and device - Google Patents

User account asset clearing method and device Download PDF

Info

Publication number
CN109214902B
CN109214902B CN201810845702.8A CN201810845702A CN109214902B CN 109214902 B CN109214902 B CN 109214902B CN 201810845702 A CN201810845702 A CN 201810845702A CN 109214902 B CN109214902 B CN 109214902B
Authority
CN
China
Prior art keywords
asset
user account
clearing
assets
balance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810845702.8A
Other languages
Chinese (zh)
Other versions
CN109214902A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810845702.8A priority Critical patent/CN109214902B/en
Publication of CN109214902A publication Critical patent/CN109214902A/en
Application granted granted Critical
Publication of CN109214902B publication Critical patent/CN109214902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A method and apparatus for clearing assets of a user account are disclosed. A method of user account asset clearance, the method comprising: configuring a user account asset clearance table; in the recording stage of the user asset change condition: for a user asset changing request received by a user account, recording the user asset changing request in the user account, and recording the user asset changing request into a user account asset clearing table; in the user account asset clearing phase: when the user account asset clearing is triggered, inquiring the user account asset clearing table at the current time to obtain balance assets, and determining expired assets from the balance assets; and subtracting the expired asset from the balance asset of the current time of the user account, and calculating to obtain the available asset of the current time of the user account.

Description

User account asset clearing method and device
Technical Field
The embodiment of the specification relates to the technical field of asset clearing, in particular to a user account asset clearing method and device.
Background
The user account is set according to the accounting subject, has a certain format and structure, and is used as a carrier for reflecting the increase and decrease change condition of the accounting factors and the result thereof. Typically in a user account, the assets present may be points, may be transit monthly cards, may be traffic packets, may be funds, etc. But for some assets, such as points, bus month cards, traffic packets, etc., there is often a lifetime, e.g. the lifetime of a flower point is a natural month. Therefore, when the assets with the service life reach the service life, the assets in the user account need to be cleared, the expired assets in the user account are cleared, and the available assets in the user account are obtained through calculation.
The current method for clearing assets in a user account is as follows: and periodically inquiring the balance of the user account through a timing task, determining the expired assets of the user account, and triggering the operation of clearing the assets of the user account once. However, in the conventional asset clearing method, there is a certain time difference (delay) between the time when the user account receives the asset change request from the user and the time when the balance is actually changed, which means that when the user account receives the asset change request from the user, the balance can be changed after a certain time (for example, several seconds) has elapsed. Therefore, in some special scenarios, during the execution of the asset clearing operation, the asset clearing may be failed, and in the case of the point taking the natural month as the service life, the user consumes 20 points in 2017-09-3023: 59:59, but due to the time delay, the balance of the user account may be changed after 2 seconds, but the balance of the user account is inquired to be 100 points in 2017-10-0100: 00:00, the amount expired in the user account is determined to be 100 points, and when the asset clearing operation is executed, the account balance is changed to 80, which results in the failure of the asset clearing.
Disclosure of Invention
In view of the above technical problems, an embodiment of the present specification provides a method and an apparatus for clearing assets of a user account, and a technical scheme is as follows:
a method of user account asset clearance, the method comprising: configuring a user account asset clearance table;
in the recording stage of the user asset change condition:
for a user asset changing request received by a user account, recording the user asset changing request in the user account, and recording the user asset changing request into a user account asset clearing table;
in the user account asset clearing phase:
when the user account asset clearing is triggered, inquiring the user account asset clearing table at the current time to obtain balance assets, and determining expired assets from the balance assets;
and subtracting the expired asset from the balance asset of the current time of the user account, and calculating to obtain the available asset of the current time of the user account.
A user account asset clearing apparatus, the apparatus comprising:
the configuration module is used for configuring the user account asset clearing table;
the request recording module is used for recording a user asset change request received by a user account in the user account and recording the user asset change request into the user account asset clearing table in the user asset change condition recording stage;
the asset query module is used for querying the user account asset clearing table at the current time to obtain balance assets when the user account asset clearing is triggered in the user account asset clearing stage;
the asset determination module is used for determining an expired asset from the balance assets in the asset clearing stage of the user account;
and the asset clearing module is used for subtracting the expired asset from the balance asset of the user account at the current time in the asset clearing stage of the user account to calculate the available asset of the user account at the current time.
According to the technical scheme provided by the embodiment of the specification, in the stage of recording the user asset change, the user asset change request received by the user account is recorded in the user account asset clearing table, when the user account asset clearing table is triggered, the user account asset clearing table can be inquired to obtain balance assets, expired assets are determined, and then the available assets of the user account at the current time are obtained through calculation. Because the user asset change request is recorded in the user asset clearing table, the actual balance asset corresponding to the user asset clearing table at the current time can be obtained through real-time calculation, and then the user account asset clearing can be completed, and the clearing failure phenomenon is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
In addition, any one of the embodiments in the present specification is not required to achieve all of the effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present specification, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a schematic flow diagram of a user account asset clearing method of an embodiment of the present description;
FIG. 2 is a schematic diagram of recording a user account asset change request in a user account and a user account asset clearance table in accordance with an embodiment of the present description;
FIG. 3 is a preferred flow diagram of a user account asset clearing method of an embodiment of the present description;
FIG. 4 is a schematic diagram of a user account asset clearing device in accordance with an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an apparatus for configuring a device according to an embodiment of the present disclosure.
Detailed Description
Typically in a user account, the assets that are present may be in various forms, such as points, bus monthly cards, traffic packets, funds, etc. However, some assets tend to have a lifespan, such as the points, bus monthly cards, traffic packets, etc. described above, which tend to have a lifespan, such as a more common traffic packet lifespan of a week or a natural month. For these assets with a lifetime, it is often necessary to periodically clear out the expired assets from the user account assets and calculate the available assets in the user account.
The current method for clearing assets in a user account is as follows: and periodically inquiring the balance of the user account through a timing task, determining the expired assets of the user account, and triggering the operation of clearing the assets of the user account once. However, in the existing asset clearing method, a certain time difference (time delay) exists between the time when the user account receives the asset change request of the user and the time when the balance is actually changed, and a part of the time difference is caused by factors designed by the user account, namely, in order to reduce the pressure of service processing of the user account, a certain time delay is set between operation steps, and another part of the time delay is possibly caused by network fluctuation and other factors, and due to the existence of the time delay, the time delay cannot be avoided, which means that when the user account receives the asset change request of the user, the balance can be changed after a certain time. In this way, in some special scenarios, during the execution of the asset clearing operation, the asset clearing failure may be caused, as mentioned in the background art, the user consumes 20 points in 2017-09-3023: 59:59, since the consumption time of the user does not exceed the service life of the point, the point consumption of the user is effective this time, and the balance of the user account needs to be changed, but due to the existence of the above-mentioned time delay, the balance change may be performed on the user account after 2 seconds, but the balance of the user account is queried to be 100 points in 2017-10-0100: 00:00, the expired amount in the user account is determined to be 100 points, but the actual expired amount is 80 points, and when the asset clearing operation is executed (the above-mentioned determined 100 points are cleared), the balance of the user account is changed to be 80, which causes the asset clearing failure.
In view of the above problems, embodiments of the present disclosure provide a technical solution, which may obtain an actual balance asset in real time, determine an expired asset from the actual balance asset, and further complete clearing of an account asset of a user, where for example, the actual account balance should be 80 points, and then the determined expired amount is 80 points, and the cleared expired amount is 80 points. This avoids the occurrence of a clearing failure.
The specific technical scheme provided by the embodiment of the specification is as follows:
configuring a user account asset clearance table; in the recording stage of the user asset change condition: for a user asset changing request received by a user account, recording the user asset changing request in the user account, and recording the user asset changing request into a user account asset clearing table; in the user account asset clearing phase: when the user account asset clearing is triggered, inquiring the user account asset clearing table at the current time to obtain balance assets, and determining expired assets from the balance assets; and subtracting the expired asset from the balance asset of the current time of the user account, and calculating to obtain the available asset of the current time of the user account.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of protection.
As shown in fig. 1, an implementation flowchart of a user account asset clearing method provided in the embodiment of the present specification may specifically include the following steps:
s101, configuring an asset clearing table of a user account;
as mentioned in the background art, the user account is configured according to the accounting subject, has a certain format and structure, and is used for reflecting the increase and decrease change condition of the accounting element and a carrier of the result thereof, and the embodiment of the present specification additionally configures a user account asset clearing table, wherein the configured user account asset clearing table may include a user asset inflow record, a user asset outflow record, a user asset change date, a user asset balance, and the like, and may be configured according to the actual requirement, which is not limited in the present specification.
In the recording stage of the user asset change condition:
s102, recording a user asset change request received by a user account in the user account, and recording the user asset change request into a user account asset clearing table;
for the user account asset clearing table configured in S101, for the user asset change request received by the user account, in addition to recording in the user account, synchronously recording into the user account asset clearing table configured in S101 means that two records are made for the user asset change request, as shown in fig. 2.
The user account asset clearing table can record the user asset changing request received by each user account each time, and the timeliness of the information is ensured by maintaining the user account asset clearing table in real time, namely synchronously recording the user asset changing request received by the user account in the user account asset clearing table.
The user asset change request is an asset change request generated by some operation of the user. For example, if a user consumes 20 points at a certain time, a user point change request may be generated, the user completes a certain task at a certain time, the user is rewarded with 20 points, and accordingly, the user point change request may also be generated, the user makes a mistake at a certain time, the user 20 points need to be deducted, and accordingly, the user point change request may also be generated, which means that the user asset change request is determined by the behavior of the user, and the user triggers a certain operation to generate a corresponding user asset change request.
In the user account asset clearing phase:
s103, when the user account asset clearing is triggered, inquiring the user account asset clearing table at the current time to obtain balance assets, and determining overdue assets from the balance assets;
through the above-mentioned stage of recording the user asset change condition, the user asset change request received by the user account is synchronously recorded in the user asset change clearance table, when the user account asset clearance is triggered, the user account asset clearance table at the current time is inquired to obtain the balance asset corresponding to the user account asset clearance table, instead of inquiring the account balance from the user account and determining the expired asset from the balance asset as in the prior art. The timing for triggering the user account asset clearing may be set according to the lifetime of the user asset, for example, taking the credit as an example, the lifetime of the credit is a natural month, and the user account asset clearing may be triggered at the end of the month or at the beginning of the month.
The method comprises the following steps of inquiring a user account asset clearing table at the current time to obtain balance assets corresponding to the user account asset clearing table, wherein the following two realization modes exist:
one implementation way for inquiring the user account asset clearance table at the current time to obtain the balance asset corresponding to the user account asset clearance table is as follows: inquiring the user asset changing request recorded in the user account asset clearing table, and calculating the balance asset corresponding to the user account asset clearing table at the current time according to the user asset changing request, which means that the user asset changing request received by a user account is synchronously recorded in the user account asset clearing table at the recording stage of the user asset changing condition, and the user asset changing request recorded in the user account asset clearing table is inquired and the balance asset at the current time is obtained by real-time calculation at the clearing stage of the user account asset.
Another implementation way for querying the user account asset clearance table at the current time to obtain the balance asset corresponding to the user account asset clearance table is as follows: in the stage of recording the user asset changing condition, synchronously recording the user asset changing request received by the user account in the user account asset clearing table, meanwhile, calculating the balance asset corresponding to the user account asset clearing table in real time according to the user asset changing request, and timely updating the balance asset into the user account asset clearing table, which means that the balance asset can be obtained in real time in the user account asset clearing table, and then in the stage of clearing the user account asset, directly inquiring the balance asset recorded in the user account asset clearing table.
For example, as described in the background, the user consumes 20 points in 2017-09-3023: 59:59, and after perhaps 2 seconds, the balance of the user account changes, and the user account asset clearance is triggered in 2017-10-0100: 00:00, where the balance of the user account is 100 points (no balance change is performed), and the balance asset at the current time obtained by querying the user account asset clearance table in the embodiment of the present specification should be 80 points, where the 80 points may be calculated according to the user asset change request at the time of 2017-09-3023: 59:59, or may be calculated according to the user asset change request recorded in the user account asset clearance table at the time of 2017-10-0100: 00: 00. The preferred implementation mode is that the user asset changing request is recorded in the user account asset clearing table, and the balance asset corresponding to the user account asset clearing table is calculated in real time.
After obtaining the balance assets corresponding to the user account asset clearing table, determining the expired assets from the balance assets, wherein the implementation modes of determining the expired assets include the following two modes:
one implementation of determining expired assets is: and determining the expired asset from the balance assets directly according to the service life of the user account assets, wherein the balance assets are obtained by inquiring a user account asset clearing table. For user account assets, typically some assets have a lifetime, and when the assets reach the lifetime, the assets can be determined to be expired assets.
Another implementation of determining expired assets is: and determining a grace period asset from the balance assets corresponding to the user account asset clearing table, subtracting the grace period asset from the balance assets corresponding to the user account asset clearing table, and calculating to obtain an expired asset. Here, the grace period asset may be, for example, a non-lifetime credit, or may be, for example, a deferred credit, where the theoretical lifetime of the credit is one natural month, but the deferred credit may be one natural month, which means that the actual lifetime is two natural months. The graceful period assets can be regarded as unexpired assets, and in the process of determining the expired assets, the unexpired assets are determined, so that the expired assets are indirectly obtained.
For example, in the user account asset clearing stage, the balance asset corresponding to the user account asset clearing table is 80 at the moment of 2017-10-0100: 00:00, and the expired asset is determined to be 80. The balance assets corresponding to the user account exist in the user account, the balance assets corresponding to the user account exist in the user account asset clearing table, the two balance assets are possibly inconsistent, the balance assets corresponding to the user account are not updated timely, a certain time delay exists, the balance assets corresponding to the user account asset clearing table are timely and effective, and the time delay does not exist.
And S104, subtracting the expired asset from the balance asset of the current time of the user account, and calculating to obtain the available asset of the current time of the user account.
And for the expired assets determined in the S103, the expired assets are actual expired assets when the assets of the user account are triggered to be cleared, time delay does not exist, the expired assets are subtracted from balance assets of the current time of the user account, and available assets of the current time of the user account are obtained through calculation.
For example, at the time of 2017-10-0100: 00:00, the balance asset of the user account is 100, the determined expired asset is 80, and the available asset of the user account is calculated to be 20 by subtracting the expired asset from the balance asset of the user account.
In addition, in the process of calculating the available assets at the current time of the user account, besides the expired assets, the frozen assets, that is, the assets frozen in the user account, and the assets corresponding to the currently executed balance change are also included, for example, the assets corresponding to the user asset change request are changed into 20 at the time of 2017-09-3023: 59:58, and the balance change is executed at the time of 2017-10-0100: 00:00, and the corresponding changed assets are 20, that is, at the time of 2017-10-0100: 00:00, the balance assets minus the expired assets minus the frozen assets minus the assets corresponding to the executed balance change are current available assets.
On the basis of the above technical solution, as shown in fig. 3, the embodiment of this specification may further include the following steps:
and S105, after the available assets of the current time of the user account are obtained through calculation, updating the asset clearing date of the user account.
And after the assets of the user account are cleared, updating the assets clearing dates of the user account in time, namely updating the assets clearing dates of the user account to the assets clearing dates of the user account at this time in time. For example, the previous user account asset clearing date is 2017-09-0100: 00:00, the current user account asset clearing date is 2017-10-0100: 00:00, and the user account asset clearing date is updated to the current user account asset clearing date in time.
Through the above description of the technical solutions provided in this specification, in the user asset change recording stage, the user asset change request received by the user account is recorded in the user account asset clearing table, and in the user account asset clearing stage, when the user account asset clearing is triggered, the user account asset clearing table may be queried to obtain a balance asset, and an expired asset may be determined, and then an available asset of the user account at the current time may be obtained through calculation. Because the user asset change request is recorded in the user asset clearing table, the actual balance asset corresponding to the user asset clearing table at the current time can be obtained through real-time calculation, and then the user account asset clearing can be completed, and the clearing failure phenomenon is avoided.
With respect to the above method embodiment, this specification embodiment further provides a user account asset clearing device, as shown in fig. 4, which may include: configuration module 410, request recording module 420, asset query module 430, asset determination module 440, asset clearing module 450.
A configuration module 410 for configuring a user account asset clearance table;
a request recording module 420, configured to, in a user asset change status recording stage, perform recording in a user account except for recording a user asset change request received by the user account, and record the user asset change request in the user account asset clearance table;
the asset query module 430 is configured to, in the user account asset clearing stage, query the user account asset clearing table at the current time to obtain a balance asset when the user account asset clearing is triggered;
an asset determination module 440 for determining expired assets from the balance assets during a user account asset clearing phase;
and the asset clearing module 450 is configured to subtract the expired asset from the balance asset of the current time of the user account in the asset clearing stage of the user account, and calculate to obtain the available asset of the current time of the user account.
According to a specific embodiment provided by the present specification, the asset query module 430 is specifically configured to:
querying the user asset change request recorded in the user account asset clearance table;
and calculating balance assets corresponding to the user account asset clearing table at the current time according to the user asset changing request.
According to a specific embodiment provided in this specification, the apparatus further includes: an asset calculation module 460;
an asset calculation module 460, configured to calculate, in the user account asset clearing table, a balance asset corresponding to the user account asset clearing table according to the user asset change request in the user asset change status recording stage, and update the balance asset into the user account asset clearing table;
the asset query module 430 is specifically configured to:
and inquiring the balance assets recorded in the user account asset clearing table.
According to an embodiment provided by the present specification, the asset determination module 440 is specifically configured to:
determining an expired asset from the balance assets according to the service life of the user account assets;
or
Determining a grace period asset from said balance assets;
and subtracting the grace period asset from the balance asset, and calculating to obtain an overdue asset.
According to a specific embodiment provided in this specification, the apparatus further includes: an update module 470;
an update module 470 is configured to update the asset clearing date of the user account after calculating the available assets of the user account at the current time.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
Through the above description of the technical solutions provided in this specification, in the user asset change recording stage, the user asset change request received by the user account is recorded in the user account asset clearing table, and in the user account asset clearing stage, when the user account asset clearing is triggered, the user account asset clearing table may be queried to obtain a balance asset, and an expired asset may be determined, and then an available asset of the user account at the current time may be obtained through calculation. Because the user asset change request is recorded in the user asset clearing table, the actual balance asset corresponding to the user asset clearing table at the current time can be obtained through real-time calculation, and then the user account asset clearing can be completed, and the clearing failure phenomenon is avoided.
Embodiments of the present specification further provide a computer device, as shown in fig. 5, the computer device may include: a processor 510, a memory 520, an input/output interface 530, a communication interface 540, and a bus 550. Wherein processor 510, memory 520, input/output interface 530, and communication interface 540 are communicatively coupled to each other within the device via bus 550.
The processor 510 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present specification.
The Memory 520 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 520 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 520 and called by the processor 510 for execution.
The input/output interface 530 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 540 is used for connecting a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 550 includes a pathway to transfer information between various components of the device, such as processor 510, memory 520, input/output interface 530, and communication interface 540.
It should be noted that although the above-mentioned device only shows the processor 510, the memory 520, the input/output interface 530, the communication interface 540 and the bus 550, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Embodiments of the present specification also provide a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the aforementioned user account asset clearing method. The method at least comprises the following steps:
a method of user account asset clearance, the method comprising:
configuring a user account asset clearance table;
in the recording stage of the user asset change condition:
for a user asset changing request received by a user account, recording the user asset changing request in the user account, and recording the user asset changing request into a user account asset clearing table;
in the user account asset clearing phase:
when the user account asset clearing is triggered, inquiring the user account asset clearing table at the current time to obtain balance assets, and determining expired assets from the balance assets;
and subtracting the expired asset from the balance asset of the current time of the user account, and calculating to obtain the available asset of the current time of the user account.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
From the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present disclosure can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the modules described as separate components may or may not be physically separate, and the functions of the modules may be implemented in one or more software and/or hardware when implementing the embodiments of the present disclosure. And part or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is only a specific embodiment of the embodiments of the present disclosure, and it should be noted that, for those skilled in the art, a plurality of modifications and decorations can be made without departing from the principle of the embodiments of the present disclosure, and these modifications and decorations should also be regarded as the protection scope of the embodiments of the present disclosure.

Claims (11)

1. A user account asset clearing method, for each user account, pre-configuring a user account asset clearing table for the user account, the method comprising:
in response to receiving a user asset change request for the user account, recording the asset change request into the user account asset clearing table, and updating the balance of the user account based on the asset change request, wherein the user account asset clearing table is used for clearing outdated assets of the user account;
under the condition that a triggering instruction for triggering the user account asset clearing is received, determining the balance asset of the user account according to the asset change request recorded in the user account asset clearing table, determining the expired asset from the balance asset, subtracting the expired asset from the balance asset of the user account at the current time, and calculating to obtain the available asset of the user account at the current time.
2. The method of claim 1, determining balance assets for the user account from asset change requests recorded in the user account asset clearance table, comprising:
querying the user asset change request recorded in the user account asset clearance table;
and calculating balance assets corresponding to the user account asset clearing table at the current time according to the user asset changing request.
3. The method of claim 1, further comprising:
in the user account asset clearing table, calculating balance assets corresponding to the user account asset clearing table according to the user asset changing request, and updating the balance assets into the user account asset clearing table;
determining balance assets of the user account according to the asset change requests recorded in the user account asset clearance table, wherein the method comprises the following steps:
and inquiring the balance assets recorded in the user account asset clearing table.
4. The method of claim 1, said determining an expired asset from said balance assets comprising:
determining an expired asset from the balance assets according to the service life of the user account assets;
or
Determining a grace period asset from said balance assets;
and subtracting the grace period asset from the balance asset, and calculating to obtain an overdue asset.
5. The method of claim 1, further comprising:
after the available assets for the current time of the user account are calculated, the user account asset clearing date is updated.
6. A user account asset clearing apparatus for configuring in advance a user account asset clearing table for each user account, comprising:
the recording module is used for responding to the received user asset change request aiming at the user account, recording the asset change request into the user account asset clearing table and updating the balance of the user account based on the asset change request, wherein the user account asset clearing table is used for clearing the expired assets of the user account;
and the clearing module is used for determining the balance assets of the user account according to the asset change requests recorded in the user account asset clearing table under the condition that a triggering instruction for triggering the user account asset clearing is received, determining the expired assets from the balance assets, and subtracting the expired assets from the balance assets at the current time of the user account to calculate the available assets at the current time of the user account.
7. The apparatus of claim 6, the clearing module to:
querying the user asset change request recorded in the user account asset clearance table;
and calculating balance assets corresponding to the user account asset clearing table at the current time according to the user asset changing request.
8. The apparatus of claim 6, the apparatus further comprising:
the asset calculation module is used for calculating balance assets corresponding to the user account asset clearing table according to the user asset change request in the user account asset clearing table and updating the balance assets into the user account asset clearing table;
the clearing module is specifically configured to:
and inquiring the balance assets recorded in the user account asset clearing table.
9. The apparatus of claim 6, the clearing module to:
determining an expired asset from the balance assets according to the service life of the user account assets;
or
Determining a grace period asset from said balance assets;
and subtracting the grace period asset from the balance asset, and calculating to obtain an overdue asset.
10. The apparatus of claim 6, the apparatus further comprising:
and the updating module is used for updating the asset clearing date of the user account after the available assets of the current time of the user account are obtained through calculation.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 5 when executing the program.
CN201810845702.8A 2018-07-27 2018-07-27 User account asset clearing method and device Active CN109214902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810845702.8A CN109214902B (en) 2018-07-27 2018-07-27 User account asset clearing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810845702.8A CN109214902B (en) 2018-07-27 2018-07-27 User account asset clearing method and device

Publications (2)

Publication Number Publication Date
CN109214902A CN109214902A (en) 2019-01-15
CN109214902B true CN109214902B (en) 2021-11-23

Family

ID=64990311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810845702.8A Active CN109214902B (en) 2018-07-27 2018-07-27 User account asset clearing method and device

Country Status (1)

Country Link
CN (1) CN109214902B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113723940B (en) * 2021-09-01 2023-11-03 京东科技控股股份有限公司 Account data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402767A (en) * 2011-12-31 2012-04-04 广州众卡汇企业管理咨询有限公司 Accumulated consumption point management system
CN103489099A (en) * 2013-09-24 2014-01-01 招商银行股份有限公司 Electronic cash liquidation method and device
CN106504085A (en) * 2016-10-18 2017-03-15 北京天德科技有限公司 A kind of DVP settlement methods based on block chain technology
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN108154393A (en) * 2017-12-25 2018-06-12 株洲市红博医学知识培训指导服务有限公司 A kind of quadrature conversion method and its system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808905B (en) * 2014-12-30 2019-04-02 金蝶软件(中国)有限公司 Remaining sum calculation method and device
CN105469275A (en) * 2015-11-12 2016-04-06 广州优识资讯系统有限公司 Credit data processing method and system based on plurality of merchants
CN105956918A (en) * 2016-04-28 2016-09-21 中国银行股份有限公司 Method for recording dynamic variation data
CN106327332A (en) * 2016-08-18 2017-01-11 深圳市金证科技股份有限公司 Liquidation method and system for supporting partial returning
CN106952158A (en) * 2017-03-17 2017-07-14 证通股份有限公司 Solve the problems, such as the bookkeeping methods and equipment of focus account

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402767A (en) * 2011-12-31 2012-04-04 广州众卡汇企业管理咨询有限公司 Accumulated consumption point management system
CN103489099A (en) * 2013-09-24 2014-01-01 招商银行股份有限公司 Electronic cash liquidation method and device
CN106504085A (en) * 2016-10-18 2017-03-15 北京天德科技有限公司 A kind of DVP settlement methods based on block chain technology
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN108154393A (en) * 2017-12-25 2018-06-12 株洲市红博医学知识培训指导服务有限公司 A kind of quadrature conversion method and its system

Also Published As

Publication number Publication date
CN109214902A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
US9411872B1 (en) Management of application state data
US20210049592A1 (en) Resource sharing method, apparatus, and device
CN108960790B (en) Method, device, server and system for processing bill service
CN110163612B (en) Payment wind control method and device
CN110287229B (en) Data statistical processing method and device
CN108932286B (en) Data query method and device
CN110020912B (en) Page display method, device and equipment
CN108830705B (en) Method, device and equipment for summarizing transaction data
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
CN111737583B (en) Data processing method and device and recommendation processing method and device
WO2018219285A1 (en) Data object display method and device
JP6096692B2 (en) Information transaction apparatus, information transaction method and information transaction program
CN110046175B (en) Cache updating and data returning method and device
KR20130123482A (en) Time stamp management method for data synchronizing and terminal thereof
CN111506580B (en) Transaction storage method based on centralized block chain type account book
CN111553699A (en) Resource scheduling method and device
CN108153795B (en) Data processing method, system and device for electronic red packet
CN109034990A (en) Bookkeeping methods, device and electronic equipment
CN109214902B (en) User account asset clearing method and device
CN108648006B (en) Shop recommendation method and device
CN108920326A (en) Determine system time-consuming abnormal method, apparatus and electronic equipment
CN115563197A (en) Method, device and equipment for data driving service
US10496467B1 (en) Monitoring software computations of arbitrary length and duration
CN110148044B (en) Method and device for setting buffering threshold for accounting
CN110032461B (en) Method and device for determining abnormal display time

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant