CN117078420A - Transaction data processing method, device, equipment and storage medium - Google Patents

Transaction data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN117078420A
CN117078420A CN202311061917.8A CN202311061917A CN117078420A CN 117078420 A CN117078420 A CN 117078420A CN 202311061917 A CN202311061917 A CN 202311061917A CN 117078420 A CN117078420 A CN 117078420A
Authority
CN
China
Prior art keywords
account
information
cache
transaction
target account
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.)
Pending
Application number
CN202311061917.8A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202311061917.8A priority Critical patent/CN117078420A/en
Publication of CN117078420A publication Critical patent/CN117078420A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a transaction data processing method, a device, equipment and a storage medium, which can be used in the financial field or other fields, and the method comprises the following steps: receiving accounting transaction request information, wherein the accounting transaction request information is used for indicating a target account and accounting transaction amount aiming at the target account; if the target account is determined to be a hot spot account, generating account-checking running water information of the target account according to the account-checking transaction amount, and determining the transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between account entry flow information of the target account and account exit flow information of the target account, and the preset thread is a timing thread; according to the transaction flow information, the account balance information of the target account is updated, and the method adopts a timed delay account-checking method, so that account-checking requests for hot accounts can be processed concurrently, the transaction processing efficiency is improved, and the user experience is optimized.

Description

Transaction data processing method, device, equipment and storage medium
Technical Field
The present application relates to the financial field or other fields, and in particular, to a transaction data processing method, apparatus, device, and storage medium.
Background
A hot spot account refers to an account that is operated at a high frequency, for example, a large number of concurrent accounts in which balance changes occur. Common hot spot accounts are merchant accounts, transaction accounts, etc., either public or private.
In the prior art, the transaction processing of the hot-spot account is the same as the transaction processing of the common account, and the transaction processing aiming at the hot-spot account needs to be performed one by one and sequentially in a high concurrency scene, and after the former transaction data processing is completed, the latter transaction data can be processed.
However, in the prior art, the processing efficiency of the transaction data for the hot-spot account is low, resulting in poor customer experience, and a method for processing the transaction data for the hot-spot account is needed.
Disclosure of Invention
The application provides a transaction data processing method, a device, equipment and a storage medium, which are used for solving the problem that a transaction data processing method aiming at a hot spot account is needed.
In a first aspect, the present application provides a transaction data processing method, the method comprising:
receiving accounting transaction request information, wherein the accounting transaction request information is used for indicating a target account and accounting transaction amount aiming at the target account;
if the target account is determined to be a hot account, generating account-entering running water information of the target account according to the account-entering transaction amount, and determining the transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between the account entry flow information of the target account and the account exit flow information of the target account, and the preset thread is a timing thread;
and updating the account balance information of the target account according to the transaction flow information.
In an alternative embodiment, the method further comprises:
updating the cache balance information of the target account based on the account balance information, and determining updated cache balance information; the cache balance is balance information of the target value account cached on the basis of a cache database;
and processing the outbound transaction request information aiming at the target account based on the updated and processed cache balance information, wherein the cache balance information is used for representing the cache balance of the target account.
In an optional implementation manner, updating the cache balance information of the target account based on the account balance information, and determining updated cache balance information includes:
obtaining the cache balance information of the target account cached in the cache database at present, and determining the cache update time corresponding to the cache balance information; wherein the cache update time characterizes an information update time of the cache balance information;
if the cache updating time is determined to lag behind the balance updating time corresponding to the account balance information, determining that the cache balance information does not need updating, wherein the cache balance information is updated cache balance information; wherein the balance update time characterizes an update time of the account balance information;
if the balance updating time is delayed from the cache updating time, the cache balance information is updated according to the account balance information, the account balance information is determined to be updated cache balance information, and the cache updating time corresponding to the cache balance information is updated and recorded.
In an alternative embodiment, processing the outbound transaction request information for the target account based on the updated processed cache balance information includes:
receiving outbound transaction request information for the target account; wherein the outbound transaction request is used to indicate the target account and an outbound transaction amount for the target account;
if the cache balance information is determined to represent that the cache balance of the target account is smaller than the account-out transaction amount, the account-out transaction request information is refused, and prompt information is fed back; the prompt information is used for representing that the balance of the target account is insufficient;
if the cache balance information is determined to represent that the cache balance of the target account is larger than or equal to the account-out transaction amount, calculating and determining difference information between the cache balance and the account-out transaction amount, updating the cache balance information according to the difference information, and updating and recording cache updating time corresponding to the cache balance information.
In an optional embodiment, after updating the cache balance information according to the difference information, the method further includes:
and generating the account-out flow information of the target account according to the account-out transaction request information.
In an alternative embodiment, the method further comprises:
if the target account is determined to have the preset identification, determining that the target account is a hot spot account; the preset identifier is a hot spot account identifier.
In an alternative embodiment, the method further comprises:
and if the historical transaction concurrency data corresponding to the target account is determined to indicate that the transaction concurrency of the target account is greater than a preset threshold, determining that the target account is a hot spot account.
In a second aspect, the present application provides a transaction data processing apparatus, the apparatus comprising:
a receiving unit configured to receive accounting transaction request information, where the accounting transaction request information is used to indicate a target account and an accounting transaction amount for the target account;
the first processing unit is used for generating account-posting running water information of the target account according to the account-posting transaction amount and determining the transaction running water information of the target account based on a preset thread if the target account is determined to be a hot spot account; the transaction flow information characterizes total amount information of binding difference between the account entry flow information of the target account and the account exit flow information of the target account, and the preset thread is a timing thread;
and the second processing unit is used for updating the account balance information of the target account according to the transaction flow information.
In a third aspect, the present application provides an electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the transaction data processing method according to the first aspect according to the computer program in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement the transaction data processing method according to the first aspect.
The application provides a transaction data processing method, a device, equipment and a storage medium, which comprises the following steps: receiving accounting transaction request information, wherein the accounting transaction request information is used for indicating a target account and accounting transaction amount aiming at the target account; if the target account is determined to be a hot spot account, generating account-checking running water information of the target account according to the account-checking transaction amount, and determining the transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between account entry flow information of the target account and account exit flow information of the target account, and the preset thread is a timing thread; according to the transaction flow information, the account balance information of the target account is updated, and the method adopts a timed delay account-checking method, so that account-checking requests for hot accounts can be processed concurrently, the transaction processing efficiency is improved, and the user experience is optimized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flow chart of a transaction data processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of another transaction data processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a transaction data processing device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
It should be noted that the transaction data processing method, device, equipment and storage medium provided by the application can be used in the financial field, and can also be used in any field except the financial field, and the application fields of the transaction data processing method, device, equipment and storage medium provided by the application are not limited.
A hot spot account refers to an account that is operated at a high frequency, for example, a large number of concurrent accounts in which balance changes occur. Common hotspot accounts are transaction accounts for public or private merchant accounts, and the like.
In one example, the transaction processing of the hot account is the same as that of the ordinary account, transaction running and account balance change of the account are managed by using database transactions, and in order to ensure account consistency, the account operation needs to be locked. For example, in a high concurrency scenario, the transaction requests for the hot account need to be processed one by one and sequentially, when the previous transaction data is processed, the subsequent transaction request can only be waited, and after the transaction data of the previous transaction is processed, the account operation is unlocked, and the transaction data of the subsequent transaction can only be processed. This results in less efficient processing of transaction data for the hot spot account, resulting in a poor customer experience.
Therefore, the present application provides a transaction data processing method for solving the above technical problems.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a transaction data processing method according to an embodiment of the present application, as shown in fig. 1, where the method includes:
101. and receiving accounting transaction request information, wherein the accounting transaction request information is used for indicating the target account and the accounting transaction amount aiming at the target account.
For example, the execution body of the embodiment may be an electronic device, a mobile terminal or a cloud server, or a terminal device, or other apparatus or device that may execute the embodiment, which is not limited. The embodiment is described with an execution body as an electronic device.
The electronic equipment receives account-checking transaction request information aiming at the target account, wherein the account-checking transaction request information is used for indicating account-checking processing on the target account. The posting transaction request information also comprises posting transaction amount for the target account, and can also comprise account information of a transaction party account, request transaction time and the like.
102. If the target account is determined to be a hot spot account, generating account-checking running water information of the target account according to the account-checking transaction amount, and determining the transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between account entering flow information of the target account and account exiting flow information of the target account, and the preset thread is a timing thread.
For example, according to a preset account identification condition, for example, according to an account identifier of a target account, whether the target account is a hot spot account is determined, if the target account is determined to be the hot spot account, account-in running water information of the target account is generated according to account-in transaction amount, but account balance of the target account is not changed at this time, that is, for account-in transaction, only transaction running water is increased, and account balance is not updated. And calculating account-in running water information and account-out running water information of the target account based on a preset timing thread to determine transaction running water information of the target account, namely bundle difference total amount information, namely counting bundle difference total amount of account-in transaction running water and account-out transaction running water. The total amount of the binding difference is regular to represent that the account entry transaction running water is larger than the account exit transaction running water, and the total amount of the binding difference is negative to represent that the account entry transaction running water is smaller than the account exit transaction running water; and if the total amount of the binding difference is zero, the account entry transaction running water is equal to the account exit transaction running water.
103. And updating the account balance information of the target account according to the transaction flow information.
The account balance information is updated according to the obtained transaction flow information, namely the total amount information of the bundle difference, for example, the total amount of the bundle difference and the account balance are calculated, and the obtained value is determined to be a new account balance.
In summary, the transaction data processing method provided in this embodiment includes the following steps: receiving accounting transaction request information, wherein the accounting transaction request information is used for indicating a target account and accounting transaction amount aiming at the target account; if the target account is determined to be a hot spot account, generating account-checking running water information of the target account according to the account-checking transaction amount, and determining the transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between account entry flow information of the target account and account exit flow information of the target account, and the preset thread is a timing thread; according to the transaction flow information, the account balance information of the target account is updated, and the method adopts a timed delay account-checking method, so that account-checking requests for hot accounts can be processed concurrently, the transaction processing efficiency is improved, and the user experience is optimized.
Fig. 2 is a flowchart of another transaction data processing method according to an embodiment of the present application, as shown in fig. 2, where the method includes:
201. and receiving accounting transaction request information, wherein the accounting transaction request information is used for indicating the target account and the accounting transaction amount aiming at the target account.
Illustratively, this step is referred to step 101, and will not be described in detail.
202. If the target account is determined to be a hot spot account, generating account-checking running water information of the target account according to the account-checking transaction amount, and determining the transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between account entering flow information of the target account and account exiting flow information of the target account, and the preset thread is a timing thread.
In one example, if it is determined that the target account has a preset identifier, or if it is determined that historical transaction concurrency data corresponding to the target account indicates that the transaction concurrency of the target account is greater than a preset threshold, determining that the target account is a hot spot account; the preset identifier is a hot spot account identifier.
The target account is determined to be a hot spot account according to a preset identification condition, for example, if the target account is determined to have a preset hot spot account identification, or if the historical transaction concurrency data corresponding to the target account is determined to indicate that the transaction concurrency of the target account is greater than a preset threshold, the target account is determined to be the hot spot account. If the target account is determined to be a hot account, account-posting running water information of the target account is generated according to the account-posting transaction amount, but the account balance of the target account is not changed at the moment, namely, for account-posting transaction, only transaction running water is added, and the account balance is not updated. Transaction flow information of the target account, namely bundle difference total amount information, is determined by calculating account entry flow information and account exit flow information of the target account based on a preset timing thread, for example, based on an asynchronous thread at preset time intervals, for example, 5 seconds, namely, bundle difference total amount of account entry transaction flow and account exit transaction flow is counted. The total amount of the binding difference is regular to represent that the account entry transaction running water is larger than the account exit transaction running water, and the total amount of the binding difference is negative to represent that the account entry transaction running water is smaller than the account exit transaction running water; and if the total amount of the binding difference is zero, the account entry transaction running water is equal to the account exit transaction running water.
In one example, the statistical start time of the current total amount of binding difference information is the end time of the previous total amount of binding difference information statistics, the end time of the current statistics is the balance update time of account balance information, the time is the whole second number, and the statistics is performed by adopting a time interval of left closing and right opening.
203. And updating the account balance information of the target account according to the transaction flow information.
Illustratively, this step is referred to step 103, and will not be described in detail.
204. Updating the cache balance information of the target account based on the account balance information, and determining updated cache balance information; the cache balance is balance information of a target value account cached based on the cache database.
In one example, step 204 includes:
obtaining cache balance information of a target account cached in a current cache database, and determining cache update time corresponding to the cache balance information; wherein the cache update time characterizes an information update time of the cache balance information.
If the cache updating time is determined to lag behind the balance updating time corresponding to the account balance information, determining that the cache balance information does not need to be updated, wherein the cache balance information is updated cache balance information; wherein the balance update time characterizes an update time of the account balance information.
If the balance update time is later than the cache update time, the cache balance information is updated according to the account balance information, the account balance information is determined to be updated cache balance information, and the cache update time corresponding to the cache balance information is updated and recorded.
Illustratively, the cache balance information of the target account is updated based on the account balance information, and updated cache balance information is determined. Wherein the cache balance information is stored for use in a cache database, for example, in a remote dictionary service (Remote Dictionary Server, redis for short). For example, obtaining the cache balance information of the target account cached in the current cache database, and determining the cache update time corresponding to the cache balance information, namely the latest information update time of the cache balance information, if the cache update time is determined to be later than the balance update time corresponding to the account balance information, determining that the cache balance information does not need to be updated, wherein the cache balance information is updated cache balance information, namely the cache balance is unchanged; if the balance update time is determined to be later than the cache update time, the fact that the cache balance is not updated after the account balance changes is indicated, information update is carried out on the cache balance information according to the account balance information, the account balance information is determined to be updated cache balance information, namely the account balance is determined to be new cache balance, and the cache update time corresponding to the cache balance information is updated and recorded. Wherein the balance update time characterizes an update time of the account balance information.
205. And processing the account-out transaction request information aiming at the target account based on the updated cache balance information, wherein the cache balance information is used for representing the cache balance of the target account.
In one example, step 205 includes the steps of:
receiving outbound transaction request information for a target account; wherein the outbound transaction request is used to indicate the target account and an outbound transaction amount for the target account.
If the cache balance information is determined to represent that the cache balance of the target account is smaller than the account-out transaction amount, the account-out transaction request information is refused, and prompt information is fed back; the prompt information is used for representing insufficient balance of the target account.
If the cache balance information characterizes that the cache balance of the target account is larger than or equal to the account-out transaction amount, calculating and determining difference information between the cache balance and the account-out transaction amount, updating the cache balance information according to the difference information, and updating and recording cache updating time corresponding to the cache balance information.
Illustratively, when an outbound transaction request for a target account is received, judging whether the cache balance is enough for the outbound operation based on the cache balance information, if the cache balance is insufficient, indicating that the balance is insufficient, and rejecting the transaction; if the cache balance is enough to perform the account-out operation, correspondingly deducting the cache balance in the redis and updating the cache update time.
Receiving outbound transaction request information for a target account; the account-out transaction request is used for indicating a target account and an account-out transaction amount for the target account; if the cache balance information is determined to represent that the cache balance of the target account is smaller than the account-out transaction amount, the account-out transaction request information is refused, and prompt information is fed back; the prompt information is used for representing insufficient balance of the target account; if the cache balance information characterizes that the cache balance of the target account is larger than or equal to the account-out transaction amount, calculating and determining difference information between the cache balance and the account-out transaction amount, updating the cache balance information according to the difference information, and updating and recording cache updating time corresponding to the cache balance information.
206. And generating the account-out flow information of the target account according to the account-out transaction request information.
Illustratively, after the cache balance information is updated according to the difference information, the posting transaction flow is recorded, that is, posting flow information of the target account is generated according to posting transaction request information.
In summary, in this embodiment, cache balance information is updated timely after checking in, and a transaction is performed based on the updated cache balance information of the hot spot account, and transaction running water information is generated, so that a transaction running water is generated when checking in a delayed manner, and a transaction request for the hot spot account can be processed concurrently, so that transaction processing efficiency is improved, and user experience is optimized.
Fig. 3 is a schematic structural diagram of a transaction data processing device according to an embodiment of the present application, where, as shown in fig. 3, the device includes:
and a receiving unit 31 for receiving accounting transaction request information indicating the target account and an accounting transaction amount for the target account.
The first processing unit 32 is configured to, if it is determined that the target account is a hot account, generate posting running water information of the target account according to the posting transaction amount, and determine transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between account entering flow information of the target account and account exiting flow information of the target account, and the preset thread is a timing thread.
The second processing unit 33 is configured to update account balance information of the target account according to the transaction flow information.
In one example, the apparatus further comprises:
the determining unit is used for updating the cache balance information of the target account based on the account balance information and determining updated cache balance information; the cache balance is balance information of a target value account cached based on the cache database.
The third processing unit is used for processing the account-out transaction request information aiming at the target account based on the updated and processed cache balance information, wherein the cache balance information is used for representing the cache balance of the target account.
In one example, the determining unit includes:
the acquisition subunit is used for acquiring the cache balance information of the target account cached in the current cache database and determining the cache update time corresponding to the cache balance information; wherein the cache update time characterizes an information update time of the cache balance information.
The first processing subunit is used for determining that the cache balance information does not need to be updated if the cache update time lags behind the balance update time corresponding to the account balance information, and the cache balance information is updated cache balance information; wherein the balance update time characterizes an update time of the account balance information.
And the second processing subunit is used for carrying out information update on the cache balance information according to the account balance information if the balance update time is determined to be later than the cache update time, determining that the account balance information is updated cache balance information, and updating and recording the cache update time corresponding to the cache balance information.
In one example, the third processing unit includes:
a receiving subunit, configured to receive outbound transaction request information for a target account; wherein the outbound transaction request is used to indicate the target account and an outbound transaction amount for the target account.
The third processing subunit is used for refusing the posting transaction request information and feeding back prompt information if the cache balance information is determined to represent that the cache balance of the target account is smaller than the posting transaction amount; the prompt information is used for representing insufficient balance of the target account.
And the fourth processing subunit is used for calculating and determining the difference information between the cache balance and the account-out transaction amount if the cache balance information is determined to represent that the cache balance of the target account is greater than or equal to the account-out transaction amount, updating the cache balance information according to the difference information, and updating and recording the cache update time corresponding to the cache balance information.
In one example, after the fourth processing subunit, the apparatus further comprises:
and the generation unit is used for generating the account-out flow information of the target account according to the account-out transaction request information.
In one example, the apparatus further comprises:
the fourth processing unit is used for determining that the target account is a hot spot account if the target account is determined to have the preset identification; the preset identifier is a hot spot account identifier.
In one example, the apparatus further comprises:
and the fifth processing unit is used for determining that the target account is a hot account if the historical transaction concurrency data corresponding to the target account indicates that the transaction concurrency of the target account is greater than a preset threshold.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where, as shown in fig. 4, the electronic device includes: a memory 41, a processor 42.
A memory 41 for storing a computer program.
The processor 42 is configured to read the computer program stored in the memory, and execute the transaction data processing method according to any of the above embodiments according to the computer program in the memory.
Fig. 5 is a block diagram of an electronic device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc., in accordance with an embodiment of the present application.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the assemblies, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or one of the assemblies of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The embodiment of the application also provides a computer program product, which comprises: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A transaction data processing method, the method comprising:
receiving accounting transaction request information, wherein the accounting transaction request information is used for indicating a target account and accounting transaction amount aiming at the target account;
if the target account is determined to be a hot account, generating account-entering running water information of the target account according to the account-entering transaction amount, and determining the transaction running water information of the target account based on a preset thread; the transaction flow information characterizes total amount information of binding difference between the account entry flow information of the target account and the account exit flow information of the target account, and the preset thread is a timing thread;
and updating the account balance information of the target account according to the transaction flow information.
2. The method according to claim 1, wherein the method further comprises:
updating the cache balance information of the target account based on the account balance information, and determining updated cache balance information; the cache balance is balance information of the target value account cached on the basis of a cache database;
and processing the outbound transaction request information aiming at the target account based on the updated and processed cache balance information, wherein the cache balance information is used for representing the cache balance of the target account.
3. The method of claim 2, wherein updating the cache balance information for the target account based on the account balance information, determining updated cache balance information, comprises:
obtaining the cache balance information of the target account cached in the cache database at present, and determining the cache update time corresponding to the cache balance information; wherein the cache update time characterizes an information update time of the cache balance information;
if the cache updating time is determined to lag behind the balance updating time corresponding to the account balance information, determining that the cache balance information does not need updating, wherein the cache balance information is updated cache balance information; wherein the balance update time characterizes an update time of the account balance information;
if the balance updating time is delayed from the cache updating time, the cache balance information is updated according to the account balance information, the account balance information is determined to be updated cache balance information, and the cache updating time corresponding to the cache balance information is updated and recorded.
4. The method of claim 2, wherein processing the outbound transaction request information for the target account based on the updated processed cache balance information comprises:
receiving outbound transaction request information for the target account; wherein the outbound transaction request is used to indicate the target account and an outbound transaction amount for the target account;
if the cache balance information is determined to represent that the cache balance of the target account is smaller than the account-out transaction amount, the account-out transaction request information is refused, and prompt information is fed back; the prompt information is used for representing that the balance of the target account is insufficient;
if the cache balance information is determined to represent that the cache balance of the target account is larger than or equal to the account-out transaction amount, calculating and determining difference information between the cache balance and the account-out transaction amount, updating the cache balance information according to the difference information, and updating and recording cache updating time corresponding to the cache balance information.
5. The method of claim 4, wherein after updating the cache balance information based on the difference information, the method further comprises:
and generating the account-out flow information of the target account according to the account-out transaction request information.
6. The method according to any one of claims 1-5, further comprising:
if the target account is determined to have the preset identification, determining that the target account is a hot spot account; the preset identifier is a hot spot account identifier.
7. The method according to any one of claims 1-5, further comprising:
and if the historical transaction concurrency data corresponding to the target account is determined to indicate that the transaction concurrency of the target account is greater than a preset threshold, determining that the target account is a hot spot account.
8. A transaction data processing device, the device comprising:
a receiving unit configured to receive accounting transaction request information, where the accounting transaction request information is used to indicate a target account and an accounting transaction amount for the target account;
the first processing unit is used for generating account-posting running water information of the target account according to the account-posting transaction amount and determining the transaction running water information of the target account based on a preset thread if the target account is determined to be a hot spot account; the transaction flow information characterizes total amount information of binding difference between the account entry flow information of the target account and the account exit flow information of the target account, and the preset thread is a timing thread;
and the second processing unit is used for updating the account balance information of the target account according to the transaction flow information.
9. An electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor being adapted to read a computer program stored in the memory and to execute the transaction data processing method according to any of the preceding claims 1-7 in accordance with the computer program in the memory.
10. A computer readable storage medium having stored therein computer executable instructions which, when executed by a processor, implement the transaction data processing method of any of claims 1-7.
CN202311061917.8A 2023-08-22 2023-08-22 Transaction data processing method, device, equipment and storage medium Pending CN117078420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311061917.8A CN117078420A (en) 2023-08-22 2023-08-22 Transaction data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311061917.8A CN117078420A (en) 2023-08-22 2023-08-22 Transaction data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117078420A true CN117078420A (en) 2023-11-17

Family

ID=88701884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311061917.8A Pending CN117078420A (en) 2023-08-22 2023-08-22 Transaction data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117078420A (en)

Similar Documents

Publication Publication Date Title
CN105843615B (en) Notification message processing method and device
EP3113466A1 (en) Method and device for warning
CN104951935B (en) Account splitting method and device
CN106157027B (en) Payment method, device and system
CN106920170B (en) Transaction reminding method and device
CN109413157B (en) Message shielding method and device
CN114915923B (en) 5G message service triggering method and device, electronic equipment and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN117078420A (en) Transaction data processing method, device, equipment and storage medium
CN114124866A (en) Session processing method, device, electronic equipment and storage medium
CN109246322B (en) Information processing method and system
CN106897876B (en) Terminal payment processing method and device
CN114238728B (en) Vehicle data processing method, device and equipment
CN117291532A (en) User prompting method, device, equipment and storage medium
CN116894038A (en) Data processing method, apparatus, device, computer readable storage medium and product
CN113297549B (en) Authority control method, device, equipment and computer readable storage medium
CN117076505A (en) Information retrieval method, device, equipment and storage medium based on cache database
CN112102081B (en) Method, device, readable storage medium and blockchain network for generating blockchain
CN107025282B (en) Processing method and device for displaying bank card number information in terminal
CN117061583A (en) Message data information processing method, device, equipment and storage medium
CN116645096A (en) Resource processing method and device, electronic equipment and storage medium
CN117273949A (en) Account type conversion method and device of fund pool and storage medium
CN116910087A (en) Method and device for determining service circulation information, electronic equipment and storage medium
CN117422575A (en) Transaction data reconciliation method, device, server and storage medium

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