CN116362733A - Resource transfer method, device, computer equipment and storage medium - Google Patents

Resource transfer method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116362733A
CN116362733A CN202310337822.8A CN202310337822A CN116362733A CN 116362733 A CN116362733 A CN 116362733A CN 202310337822 A CN202310337822 A CN 202310337822A CN 116362733 A CN116362733 A CN 116362733A
Authority
CN
China
Prior art keywords
resource transfer
account
resource
record
task
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
CN202310337822.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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202310337822.8A priority Critical patent/CN116362733A/en
Publication of CN116362733A publication Critical patent/CN116362733A/en
Pending legal-status Critical Current

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/02Banking, e.g. interest calculation or account maintenance
    • 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
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present application relates to the field of artificial intelligence technology, and in particular, to a resource transfer method, apparatus, computer device, storage medium, and computer program product. The method comprises the following steps: responding to the resource transfer request, acquiring a resource transfer parameter, determining a corresponding resource transfer mode according to the resource transfer parameter, and judging the resource transfer parameter by adopting a preset condition corresponding to the resource transfer mode; and responding to the result that the resource transfer parameter meets the preset condition, executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, recording the execution result of the resource transfer operation, updating the account resource record corresponding to the resource transfer request by adopting the execution result, and generating the processing result of the resource transfer request according to the updated account resource record. By adopting the method, the execution result of one resource transfer operation corresponds to the update of one account resource record, so that the data synchronization of resource transfer and account resource change is realized.

Description

Resource transfer method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of artificial intelligence technology, and in particular, to a resource transfer method, apparatus, computer device, storage medium, and computer program product.
Background
Along with the continuous expansion of the public accumulation fund collecting units and the number of workers in the housing in China, the scale of the public accumulation fund collecting business in the housing is also continuously expanded. At present, there are two general public accumulation fee payment modes: an automatic account-entering payment handling mode and a delegated collection mode.
Under the automatic account-depositing, paying and handling mode, the business system can automatically match the remittance, account-receiving notice pushed by the bank with the verification record of the public accumulation, paying and handling accounting business under the condition of successful matching. However, since the flow of generating the remittance and accounting notification and the automatic accounting is long, there is a problem in that the public accumulation center business system and the bank accounting system are not synchronized.
In the commission collection mode, the business system automatically deducts the accumulated funds of the accumulated funds payment unit in a batch mode within a preset time, such as a month. However, since the withhold time is limited to a fixed time node, there is also a problem that the public accumulation center business system and the bank accounting system are not synchronized.
Therefore, there is a need for an accumulation fund payment method capable of realizing synchronous deposit of money transfer payment.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource transfer method, apparatus, computer device, computer-readable storage medium, and computer program product capable of driving the entry of corresponding resources through business operations of resource transfer.
In a first aspect, the present application provides a resource transfer method. The method comprises the following steps:
responding to a resource transfer request, and acquiring a resource transfer parameter;
determining a corresponding resource transfer mode according to the resource transfer parameters;
judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer modes;
responding to the result that the resource transfer parameter meets the preset condition, executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, and recording the execution result of the resource transfer operation;
updating account resource records corresponding to the resource transfer requests by adopting the execution results;
and generating a processing result of the resource transfer request according to the updated account resource record.
In one embodiment, after the obtaining the resource transfer parameter in response to the resource transfer request, the method further includes:
creating a first task lock and a first asynchronous task corresponding to the first task lock;
and executing the resource transfer operation corresponding to the resource transfer parameter and recording the execution result of the resource transfer operation according to the result that the resource transfer parameter meets the preset condition, wherein the method comprises the following steps:
Responding to the result that the resource transfer parameter meets the preset condition, calling the first asynchronous task to execute the resource transfer operation, recording the execution result of the resource transfer operation, and releasing the first task lock;
before updating the account resource record corresponding to the resource transfer request by adopting the execution result, the method comprises the following steps:
creating a second task lock and a second asynchronous task corresponding to the second task lock;
the updating the account resource record corresponding to the resource transfer request by adopting the execution result comprises the following steps:
and calling the second asynchronous task to update the account resource record by adopting the execution result, and releasing the second task lock.
In one embodiment, the method further comprises:
when the first asynchronous task is called, updating the service processing state of the resource transfer request according to a first processing node corresponding to the first asynchronous task;
and when the second asynchronous task is called, updating the service processing state of the resource transfer request according to a second processing node corresponding to the second asynchronous task.
In one embodiment, the method further comprises:
And responding to the state query request, acquiring and displaying the current business processing state of the resource transfer request.
In one embodiment, the resource transfer request is triggered according to a service approval record;
before the resource transfer operation corresponding to the resource transfer parameter is executed according to the resource transfer mode and the execution result of the resource transfer operation is recorded according to the result that the resource transfer parameter meets the preset condition, the method further comprises:
matching the business verification record with the resource transfer parameter;
and when the service verification record and the resource transfer parameter are successfully matched, obtaining a result that the resource transfer parameter meets a preset condition.
In one embodiment, the resource transfer parameters include a resource transfer-out account and a resource transfer-in account; the executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode comprises the following steps:
acquiring record data in a verified state in the business verification record;
when the resource transfer mode comprises a first transfer mode, executing the resource transfer operation on the resource transfer account and the resource transfer account by adopting the recorded data;
When the resource transfer mode comprises a second transfer mode, inquiring an account change notification corresponding to the resource transfer-out account, and responding to a result of matching the account change notification with the recorded data to execute the resource transfer operation on the resource transfer-in account;
when the resource transfer mode comprises a third transfer mode, pushing an account change notification corresponding to the record data of the resource transfer account to the resource transfer account by utilizing an account association relation between the resource transfer account and the resource transfer account, and executing the resource transfer operation on the resource transfer account in response to the account change notification.
In a second aspect, the present application also provides a resource transfer device. The device comprises:
the request response module is used for responding to the resource transfer request and acquiring the resource transfer parameters;
a mode determining unit, configured to determine a corresponding resource transfer mode according to the resource transfer parameter;
the condition judging unit is used for judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer modes;
an operation execution module, configured to execute a resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode in response to a result that the resource transfer parameter satisfies the preset condition, and record an execution result of the resource transfer operation;
The record updating module is used for updating the account resource record corresponding to the resource transfer request by adopting the execution result;
and the result generation module is used for generating a processing result of the resource transfer request according to the updated account resource record.
In one embodiment, the operation execution module is further configured to create a first task lock and a first asynchronous task corresponding to the first task lock, call the first asynchronous task to execute the resource transfer operation in response to a result that the resource transfer parameter meets a preset condition, record an execution result of the resource transfer operation, and release the first task lock;
the record updating module is further configured to create a second task lock and a second asynchronous task corresponding to the second task lock, call the second asynchronous task to update the account resource record by using the execution result, and release the second task lock.
In one embodiment, the apparatus further comprises:
and the state updating module is used for updating the service processing state of the resource transfer request according to a first processing node corresponding to the first asynchronous task when the first asynchronous task is called, and updating the service processing state of the resource transfer request according to a second processing node corresponding to the second asynchronous task when the second asynchronous task is called.
In one embodiment, the apparatus further comprises:
and the state query module is used for responding to the state query request, acquiring the current service processing state of the resource transfer request and displaying the current service processing state.
In one embodiment, the resource transfer request is triggered according to a service approval record;
the operation execution module is further configured to match the service verification record with the resource transfer parameter, and obtain a result that the resource transfer parameter meets a preset condition when it is determined that the service verification record and the resource transfer parameter are successfully matched.
In one embodiment, a record obtaining unit is configured to obtain record data in a verified state in the service verification record; the first execution unit is used for executing the resource transfer operation on the resource transfer account and the resource transfer account by adopting the recorded data when the resource transfer mode comprises a first transfer mode; the second execution unit is used for inquiring an account change notification corresponding to the resource transferring-out account when the resource transferring mode comprises a second transferring mode, and responding to the result of matching the account change notification with the recorded data to execute the resource transferring operation on the resource transferring-out account; and the third execution unit is used for pushing the account change notification corresponding to the record data of the resource transfer account to the resource transfer account by utilizing the account association relation between the resource transfer account and the resource transfer account when the resource transfer mode comprises a third transfer mode, and executing the resource transfer operation on the resource transfer account in response to the account change notification.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the resource transfer method according to any embodiment of the first aspect.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the resource transfer method according to any of the embodiments of the first aspect.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the resource transfer method according to any one of the embodiments of the first aspect.
The resource transfer method, the device, the computer equipment, the storage medium and the computer program product acquire the resource transfer parameters by responding to the resource transfer request, determine the corresponding resource transfer mode according to the resource transfer parameters, and judge the resource transfer parameters by adopting preset conditions corresponding to the resource transfer mode; and responding to the result that the resource transfer parameter meets the preset condition, executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, recording the execution result of the resource transfer operation, updating the account resource record corresponding to the resource transfer request by adopting the execution result, and generating the processing result of the resource transfer request according to the updated account resource record, so that the account resource record update can be driven based on the business behavior of the resource transfer operation, the execution result of one resource transfer operation corresponds to the account resource record, and the data synchronization of the resource transfer and the account resource change is realized. Meanwhile, different resource transfer operations can be realized based on the corresponding resource transfer modes, so that the flexibility of the resource transfer method is improved.
Drawings
FIG. 1 is a diagram of an application environment for a resource transfer method in one embodiment;
FIG. 2 is a flow diagram of a method of resource transfer in one embodiment;
FIG. 3 is a flow diagram of asynchronous task invocation steps in one embodiment;
FIG. 4 is a flowchart illustrating steps performed by a resource transfer operation in one embodiment;
FIG. 5 is a flow chart of a method of transferring resources according to another embodiment;
FIG. 6 is a schematic diagram of a status query request response step in one embodiment;
FIG. 7 is a schematic diagram of a first asynchronous task call step in one embodiment;
FIG. 8 is a block diagram of a resource transfer device in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In the process of building a housing public accumulation information system, the most original payment and transaction mode is manual transaction of a teller. In the manual transaction mode of the teller, the settlement application system needs to receive the business data such as the payment verification record, the account transfer check amount and the like input by the teller and the instruction that the payment verification record accords with the account transfer check amount, so that corresponding public accumulation payment business is transacted. However, the transaction efficiency of the public accumulation payment service is lower due to the large amount of manually entered service data.
After the housing public accumulation information system is connected with the settlement platform of the living building, the process of payment and transaction is optimized as follows: the unit sponsor can carry out intersection (supplement) by himself through the unit net hall to pay, check and determine, then remit to the bank specialist in the public accumulation center, and inform the teller to pay, deposit and account. At this time, the settlement application system can search the corresponding account-arriving notification pushed by the bank only by acquiring the payment amount, the unit account number, the payment amount and the time input by the teller, and is matched with the verification record of the payment unit. After the matching is successful, the settlement application system can transact payment and deposit accounts by receiving the corresponding account notification checked by the teller. However, in this flow mode, although a certain handling flexibility is given to the unit sponsor, a flow of manually inputting service data is still unavoidable, and there is a problem that the payment efficiency is low.
Based on the above mode, an automatic account entry, payment and transaction mode is further evolved: firstly, a unit sponsor submits a collection (supplement) payment approval at a unit web hall and reminds to a banking specialist of a housing public accumulation, then a settlement application system automatically matches a payment notice pushed by a bank with a approval record of the unit, and after the matching is successful, the payment accounting is automatically transacted. The process does not need manual intervention of a teller, so that customer experience is greatly improved. However, any unit can remit any amount of money into the bank account of the center through the modes of online banking remittance, letter wire transfer, check proposal at the payment bank and the like, so that a settlement application system is difficult to identify whether the account arrival notification of the remittance service is related to the accumulation fund payment and deposit, namely, the driving of funds through the service cannot be realized, more account unread items and account settlement of temporary deposit are generated, and the problem that the service system of the accumulation fund center and the bank accounting system are not synchronous easily exists.
In order to further facilitate customer payment, the house accumulation center pushes out a consignment collection mode, and automatic deduction of the accumulated fund of the payment unit is realized through a signing mode. In this mode, the settlement application system may automatically deduct the accumulation fund from the signed account to pay the deposit fund at a preset deduction day. However, the commissioned collection mode only supports the initiation of monthly timing in batch form, and the problem of asynchronism of the public accumulation center business system and the bank accounting system is easy to occur.
To solve the above-mentioned problems in the prior art, the present application provides a resource transfer method, apparatus, computer device, storage medium, and computer program product capable of driving a corresponding resource to be charged through a business operation of resource transfer. In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
The resource transfer method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
Specifically, the server 104 may respond to the resource transfer request sent by the terminal 102, and parse the resource transfer request to obtain the corresponding resource transfer parameter. And determining a corresponding resource transfer mode according to the resource transfer parameters. And judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer modes. Responding to the result that the resource transfer parameter meets the preset condition, executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, and recording the execution result of the resource transfer operation; updating account resource records corresponding to the resource transfer requests by adopting execution results; and generating a processing result of the resource transfer request according to the updated account resource record. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a resource transfer method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
step S202, responding to the resource transfer request, and acquiring the resource transfer parameters.
The resource transfer request may be used to characterize a service request to transfer digital resources such as electronic cash, electronic cheque, etc. from a payor account to a toll collector account.
The resource transfer parameters may include, but are not limited to, any one or more of a number of parameters such as a resource transfer amount, a resource transfer-out account, a resource transfer-in channel, a resource transfer-in account, a resource transfer time, and the like.
Specifically, the server may respond to the resource transfer request, and perform a data message parsing operation on the resource transfer request, so as to obtain a resource transfer parameter carried in the resource transfer request. Or, the server may also determine the corresponding account identifier from the resource transfer request in response to the resource transfer request, and query the local database for the corresponding resource transfer parameter according to the account identifier.
Step S204, determining a corresponding resource transfer mode according to the resource transfer parameters, and judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer mode.
The resource transfer mode may include, but is not limited to, a first transfer mode for transferring resources to a plurality of accounts in the same service system, a second transfer mode for transferring resources to a plurality of accounts in different service systems, a third transfer mode for pre-establishing an account association relationship (e.g., by subscription) between an account X of an a service system and an account Y of a B service system and transferring resources based on the account association relationship, and any combination of the three modes.
In one example, in a business scenario of funds payment, a first transfer mode for transferring resources to multiple accounts within the same business system may be a funds payment mode using only temporary storage. The second transfer mode for transferring resources to a plurality of accounts under different business systems may be a funds-transfer mode using only account-for-account notifications. The third transfer mode of pre-establishing an account association relationship between the account X of the a service system and the account Y of the B service system and performing resource transfer based on the account association relationship may be a funds payment mode of online subscription.
Specifically, the server may store preset conditions corresponding to the resource transfer mode in advance. According to the transfer mode identification in the resource transfer parameters, the resource transfer mode corresponding to the resource transfer parameters can be determined. And judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer modes.
For example, in the case that the resource transfer mode is determined to include a first transfer mode for transferring resources to a plurality of accounts in the same service system, the server may obtain a resource transfer amount in the resource transfer parameter and a corresponding resource transfer account, and match the resource transfer amount with a remaining resource amount of the resource transfer account by using a preset condition corresponding to the current first transfer mode, so as to obtain a determination result corresponding to the current first transfer mode.
Under the condition that the resource transfer mode comprises a second transfer mode for transferring the resources of a plurality of accounts under different service systems, the server can acquire the interactive interfaces between different service systems corresponding to the resource transfer parameters, and the working state of the interactive interfaces is judged by adopting preset conditions corresponding to the current second transfer mode, so that a judging result corresponding to the current second transfer mode is obtained.
Under the condition that the resource transfer mode is determined to comprise a third transfer mode of pre-establishing an account association relationship between an account X of the A service system and an account Y of the B service system and performing resource transfer based on the account association relationship, a server client acquires account association information corresponding to the resource transfer parameter, and judges the account association information by adopting a preset condition corresponding to the current third transfer mode, so that a judging result corresponding to the current third transfer mode is obtained.
Step S206, responding to the result that the resource transfer parameter meets the preset condition, executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, and recording the execution result of the resource transfer operation.
The execution result may be used to indicate whether the resource transfer operation is successfully executed, and may include, but not limited to, parameters such as an execution state of the resource transfer operation, an amount of resource variation, and a resource transfer time.
Specifically, the server may execute the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode in response to the result that the resource transfer parameter satisfies the preset condition corresponding to the resource transfer mode, and transfer the digital resource with the same amount as the resource transfer amount under the resource transfer account into the resource transfer account.
For example, in the case of a first transfer where the resource transfer mode includes a mode of transferring resources to multiple accounts within the same business system, an interactive interface within the business system may be invoked to transfer resources from the resource transfer account to the resource transfer account.
In the case that the resource transfer mode includes a second transfer mode for transferring resources to a plurality of accounts under different service systems, the resource transfer operation may be performed on the resource transfer account first and a corresponding account change notification may be generated, and the account change notification of the resource transfer account may be searched by using an interaction interface between the service system where the resource transfer account is located and the service system where the resource transfer account is located. And under the condition that the account change notification exists, executing the resource transfer operation of the resource transfer account, thereby realizing the resource transfer operation of the whole flow.
Under the condition that the resource transfer mode comprises a third transfer mode of pre-establishing an account association relation between an account X of the A business system and an account Y of the B business system and performing resource transfer based on the account association relation, the account association relation is utilized to automatically call an interaction interface between different business systems to push the account change notification to a resource transfer account while the resource transfer account generates the account change notification, and the resource transfer operation on the resource transfer account is triggered, so that the resource transfer operation of the whole flow is realized.
In one example, after the resource transfer operation is completed, the server may record the remaining resource amount of the resource transfer-out account and the real-time resource amount of the resource transfer-in account. And determining the resource change amount corresponding to the resource transfer-out account according to the residual resource amount of the resource transfer-out account after transfer and the residual resource amount of the resource transfer-out account before transfer. And the same can determine the resource variation amount corresponding to the resource transfer-in account according to the real-time resource amount of the resource transfer-in account before transfer and the real-time resource amount of the transferred resource transfer-in account. And respectively comparing whether the resource transfer amount is consistent with the resource change amount of the resource transfer account or the resource change amount of the resource transfer account, thereby obtaining the execution result of the resource transfer operation.
In another example, after the execution of the resource transfer operation is finished, the server may also generate a resource transfer-out notification corresponding to the resource transfer-out account (may carry information such as a resource transfer-out time and a resource transfer-out amount) and a resource transfer-in notification corresponding to the resource transfer-in account (may carry information such as a resource transfer-in time and a resource transfer-in amount). And performing character string matching on the resource transfer notification and the resource transfer notification, thereby obtaining an execution result of the resource transfer operation.
Optionally, in some embodiments, when the server determines that the resource transfer parameter does not meet the preset condition, a corresponding prompt message may be returned to the initiator of the resource transfer request.
Step S208, updating account resource records corresponding to the resource transfer requests by adopting the execution results.
The account resource record can be used for storing the real-time resource amount of the account and the resource variation condition.
Specifically, the server may query according to the resource transfer parameter to obtain an account resource record corresponding to the resource transfer account and an account resource record corresponding to the resource transfer account.
When the execution state of the resource transfer operation is successful, the server can respectively update the account resource records of the resource transfer account and the resource transfer account by adopting the execution result of the resource transfer operation, so as to newly increase the resource change conditions such as the resource change amount, the resource transfer object, the resource transfer time and the like corresponding to the resource transfer operation in the account resource records, mark the newly increased resource change condition as successful, and update the real-time resource amount of the corresponding account by utilizing the transferred residual resource amount.
When the execution state of the resource transfer operation is failure, the server may also update account resource records of the resource transfer account and the resource transfer account respectively by adopting an execution result of the resource transfer operation, so as to newly add resource variation conditions such as a resource variation amount, a resource transfer object, a resource transfer time and the like corresponding to the resource transfer operation in the corresponding account resource record, and mark the resource variation condition as failure. At this time, the real-time resource amount recorded in the updated account resource record does not change.
Step S210, generating a processing result of the resource transfer request according to the updated account resource record.
Specifically, the server may generate the processing result of the resource transfer request as the processing end according to the updated account resource record. Or, if the resource change condition mark is determined to be successful according to the updated account resource record, generating a processing result of the resource transfer request to be successful; and under the condition that the resource change condition mark is determined to be failed according to the updated account resource record, the processing result of the resource transfer request is the processing failure.
Optionally, in some embodiments, the server may further match the updated account resource record with the resource transfer parameter, and if it is determined that the matching is successful, the processing result of generating the resource transfer request is that the processing is successful, otherwise, the processing result of generating the resource transfer request is that the processing is failed.
In the resource transfer method, the resource transfer parameters are acquired by responding to the resource transfer request, the corresponding resource transfer mode is determined according to the resource transfer parameters, and the resource transfer parameters are judged by adopting preset conditions corresponding to the resource transfer mode; and responding to the result that the resource transfer parameter meets the preset condition, executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, recording the execution result of the resource transfer operation, updating the account resource record corresponding to the resource transfer request by adopting the execution result, and generating the processing result of the resource transfer request according to the updated account resource record, so that the account resource record update can be driven based on the business behavior of the resource transfer operation, the execution result of one resource transfer operation corresponds to the account resource record, and the data synchronization of the resource transfer and the account resource change is realized. Meanwhile, different resource transfer operations can be realized based on the corresponding resource transfer modes, so that the flexibility of the resource transfer method is improved.
In one embodiment, as shown in fig. 3, a flow diagram of an asynchronous task call step is provided, comprising:
In step S302, a first task lock and a first asynchronous task corresponding to the first task lock are created.
Step S304, in response to the result that the resource transfer parameter meets the preset condition, the first asynchronous task is called to execute the resource transfer operation, the execution result of the resource transfer operation is recorded, and the first task lock is released.
Among other things, task locks may be used to characterize a lock mechanism provided to prevent execution of a currently locked task from being interrupted by other high priority tasks. In one example, the task locks may include, but are not limited to, any of a number of types of lock mechanisms, including a distributed application coordination lock (Zookeeper lock, ZK lock for short), a remote dictionary service distributed lock (Remote Dictionary Server lock, redis distributed lock for short), a database distributed lock, and so on.
Asynchronous tasks may be used to characterize other tasks that a main thread creates one or more new non-blocking threads to execute while continuing with the current task.
In the application scenario of the embodiment, the first task lock may be used to lock the corresponding first asynchronous task, so that the execution of the first asynchronous task is not interrupted by other tasks. The first asynchronous task may be used to perform a resource transfer operation.
In particular, multiple threads may be stored in a server. In order that execution of the resource transfer operation is not blocked, the server may create a first task lock. And creating a first asynchronous task related to the resource transfer operation according to the resource transfer parameters, and locking the first asynchronous task by adopting a first task lock so as to adapt to application scenes initiated simultaneously by different types of resource transfer requests and realize the concurrent processing of asynchronous multitasks. And calling the first asynchronous task to execute the resource transfer operation in response to the result that the resource transfer parameter meets the preset condition, recording the execution result of the resource transfer operation, and releasing the first task lock after the execution of the resource transfer operation is finished.
In one example, with the first task lock in lock, resource transfer requests for the remaining traffic types are unable to process traffic currently handled by the first asynchronous task. For example, when the counter is used for concurrently processing the resource transfer requests of the business types such as payment and transaction, automatic account checking, automatic collection, verification cancellation, and account clearing, a first task lock is added to the payment and transaction business, so that the resource transfer requests of the business types such as automatic account checking, automatic collection, verification cancellation, and account clearing can be prevented from processing the payment and transaction business.
Step 306, creating a second task lock and a second asynchronous task corresponding to the second task lock.
And step 308, calling a second asynchronous task to update the account resource record by adopting the execution result, and releasing a second task lock.
In the application scenario of this embodiment, the processing sequence of the second task lock may be later than the processing sequence of the first task lock. The second asynchronous task may be used to perform account resource record update operations.
Specifically, the server may create a second task lock, create a second asynchronous task corresponding to the record update operation according to the resource transfer parameter, and lock the second asynchronous task with the second task lock. And calling a second asynchronous task to execute the operation of updating the account resource record by adopting the execution result of the resource transfer operation, and releasing a second task lock after the account resource record is updated.
In this embodiment, by creating a task lock and executing a resource transfer operation and an update operation of an account resource record in a manner of calling an asynchronous thread, blocking time of a first asynchronous task and a second asynchronous task can be reduced, so that execution efficiency of the first asynchronous task and the second asynchronous task is improved.
In one embodiment, the resource transfer method provided by the present application may further include: when a first asynchronous task is called, updating the service processing state of the resource transfer request according to a first processing node corresponding to the first asynchronous task; and when the second asynchronous task is called, updating the service processing state of the resource transfer request according to the second processing node corresponding to the second asynchronous task.
The first processing node may include, but is not limited to, a first task initiating node, a resource transferring-out node, a resource transferring-in node, a transfer success node, a transfer failure node, and the like.
The second processing node may include but is not limited to a second task initiation node, a record acquisition node, a record update node, an update success node, an update failure node, etc.,
in particular, there may be multiple processing nodes during execution of the first asynchronous task or the second asynchronous task. The server may determine a traffic handling state of the current resource transfer request according to the processing node that is currently in circulation in the asynchronous task. When the server calls the first asynchronous task to execute the resource transfer operation, the service processing state of the resource transfer request can be updated according to the first processing node corresponding to the first asynchronous task in real time.
For example, where the first processing node is a first task originating node, the business process state may be updated to a money transfer initiation success state. When the first processing node is a resource transfer-out node, the service processing state can be updated into the resource transfer-out processing. When the first processing node is a resource transfer node, the service processing state can be updated into the resource transfer processing.
When the server calls the second asynchronous task to execute the account resource record updating operation, the service processing state of the resource transfer request can be updated according to the second processing node corresponding to the second asynchronous task in real time. For example, when the second processing node is the second task initiating node, the service processing state may be updated to be successful in accounting initiation. When the second processing node is a record updating node, the business processing state can be updated to be in the accounting processing.
In this embodiment, the service processing state of the resource transfer request is updated according to the processing node corresponding to the asynchronous task in real time, so that the processing progress of the current resource transfer request can be conveniently determined.
In one embodiment, the resource transfer method provided by the present application may further include: and responding to the state query request, acquiring and displaying the current business processing state of the resource transfer request.
Specifically, the server may parse the resource transfer parameter corresponding to the status query request in response to the status query request sent by the terminal. And determining a resource transfer request corresponding to the state query request by adopting the resource transfer parameter corresponding to the state query request, acquiring the current service processing state of the resource transfer request, and returning to the terminal for display. Optionally, in some embodiments, the server may also automatically push the current service processing state to the terminal when the processing node changes.
In this embodiment, by responding to the state query request, determining the corresponding resource transfer request according to the resource transfer parameter corresponding to the state query request, and further obtaining and displaying the corresponding service processing state, the service processing state of the current resource transfer request can be intuitively displayed.
In one embodiment, the resource transfer request may be triggered based on a service approval record.
In step S206, in response to the result that the resource transfer parameter satisfies the preset condition, before executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, and recording the execution result of the resource transfer operation, the method further includes: and matching the service verification record with the resource transfer parameters, and obtaining a result that the resource transfer parameters meet preset conditions when the service verification record and the resource transfer parameters are successfully matched.
Specifically, the server is in the generation stage of the service verification record: the method can acquire the unit service information, the personal service information, the verification starting time, the verification ending time, the verification account state, the verification user quantity, the verification resource quantity and other service parameters input by the user, and generate an uncore service verification record by adopting the service parameters. And judging uncore business data in the business verification record by adopting a preset business rule, for example, judging the verification account state by adopting a transaction mutual exclusion rule, comparing whether unit business information is consistent with the number of verification users and the verification resource amount by adopting an amount unification rule, and judging the payment amount or the payment technology in the personal business information by adopting an amount threshold rule, thereby obtaining verified record data.
The server may automatically generate a resource transfer request corresponding to the business validation record in response to a user selection operation of the business validation record. And responding to the resource transfer request, and acquiring corresponding resource transfer parameters. The service verification record and the resource transfer parameter are matched, for example, the verification resource amount in the service verification record and the resource transfer amount in the resource transfer parameter can be matched, or the unit service information corresponding to the service verification record and the resource transfer account in the resource transfer parameter can be matched, and the like. When the server determines that the service verification record and the resource transfer parameter are successfully matched, the server can obtain the result that the resource transfer parameter meets the preset condition. Thereby performing subsequent resource transfer operations.
In this embodiment, by matching the service verification record with the resource transfer parameter, it is determined whether the resource transfer parameter meets the preset condition, and the accuracy of determining the resource transfer parameter can be improved.
In one embodiment, the resource transfer parameters may include a resource transfer-out account and a resource transfer-in account. As shown in fig. 4, step S204, in response to a result that the resource transfer parameter satisfies a preset condition, executes a resource transfer operation corresponding to the resource transfer parameter, and records an execution result of the resource transfer operation, including:
Step S402, obtaining the record data in the approved state in the business approval record.
The record data may include, but is not limited to, any one or more of a number of authorized users, an authorized period, an authorized resource amount, and the like.
In particular, the server can determine the record data in the approved state from the service approval records according to the approval mark,
in step S404, when the resource transfer mode includes the first transfer mode, the resource transfer operation is performed on the resource transfer-out account and the resource transfer-in account using the record data.
Specifically, when the resource transfer mode includes the first transfer mode, the server may input the verified resource amount in the record data to a settlement module interface of the service system, and execute corresponding resource transfer operations on a resource transfer account and a resource transfer account in the same service system by using the settlement module interface.
In step S406, when the resource transfer mode includes the second transfer mode, the account change notification corresponding to the resource transfer-out account is queried, and the resource transfer operation is performed on the resource transfer-in account in response to the result of matching the account change notification with the record data.
The account change notification may be used to record information about the change in the amount of resources remaining in the account, such as the amount of resources to be added, the amount of resources to be reduced, and the time for the change in the resources.
Specifically, when the resource transfer mode includes the second transfer mode, the server may use the identifier of the resource transfer account through the interface of the outbound settlement module in the service system where the resource transfer account is located, and query to obtain the account change notification corresponding to the resource transfer account. And matching the variable resource amount carried in the account variable notification with the verification resource amount in the record data, and when the variable resource amount is greater than or equal to the verification resource amount, responding to the result of matching the account variable notification with the record data, and executing resource transfer operation on the resource transfer account according to the verification resource amount in the record data.
In step S408, when the resource transfer mode includes the third transfer mode, the account change notification corresponding to the record data is pushed to the resource transfer account by using the account association relationship, and the resource transfer operation is performed on the resource transfer account in response to the account change notification.
Specifically, when the resource transfer mode includes the third transfer mode, the server may send the record data to the resource transfer-out account to instruct the resource transfer-out account to perform a corresponding resource transfer-out operation according to the record data and generate a corresponding account change notification. The server can push the account change notification corresponding to the resource transfer-out account and the record data to the resource transfer-in account by utilizing the account association relation between the resource transfer-out account and the resource transfer-in account, and the resource transfer operation is executed on the resource transfer-in account in response to the account change notification.
In the embodiment, the resource transfer operation is realized based on the record data in the approved state in the business approval record and the corresponding resource transfer mode, so that the accuracy of the resource transfer method can be improved, the flexibility of the resource transfer method can be improved, the personalized requirements of different users can be met conveniently, and the application scene of the resource transfer method is enlarged.
In one embodiment, as shown in fig. 5, a flow diagram of a resource transfer method is provided, including:
step S502, a first task lock and a first asynchronous task corresponding to the first task lock are created in response to a resource transfer request triggered according to a service verification record, and resource transfer parameters are acquired and corresponding resource transfer modes are determined.
Specifically, the server may acquire service data input by the user, such as the month to be approved, the unit service information table, the personal service information table, and the like, selected by the user during the generation stage of the service approval record. And creating a business verification record corresponding to the business data, and marking the business verification record at the moment as an uncorrupted state. And judging the data in the business verification record by adopting a preset business rule, such as judging whether the ending month and the starting and ending month span the year, whether the unit account and the individual household state are normal, whether the individual paying proportion is unified with the unit paying proportion, whether the number of people to be paid, the amount of money are consistent with a unit business information table, whether the individual paying amount and the base number are matched with upper and lower paying limit thresholds and the like. Thereby obtaining the approved business approval record. In one example, when the personal traffic is greater than a preset threshold, the server may also perform a validation operation on the service validation record by invoking an asynchronous task.
The server can respond to the resource transfer request triggered by the user aiming at the business verification record, and analyze the resource transfer request to obtain corresponding resource transfer parameters such as the resource transfer amount, the resource transfer account, the transfer mode identifier and the like. And taking the resource transfer mode corresponding to the transfer mode identification as the resource transfer mode corresponding to the current resource transfer request. And matching the resource transfer parameters with the business verification records, and when the resource transfer amount and/or the resource transfer account are/is matched with corresponding business data in the business verification records, determining that the data verification of the resource transfer parameters is passed, and executing the following steps S504-S510.
Meanwhile, the server can also create a first task lock and a first asynchronous task corresponding to the resource transfer request, and lock the first asynchronous task by adopting the first task lock. In one example, the server may also query the asynchronous task table according to the service flow identifier corresponding to the resource transfer request to determine whether there is a service processing flow associated with the currently processed resource transfer request.
Step S504, judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer modes.
Specifically, when the resource transfer mode includes a temporary money-saving only mode, the server may determine the resource transfer parameter using a preset condition corresponding to the temporary money-saving only mode, obtain a remaining resource amount of the temporary deposit account (i.e., a resource transfer account in the resource transfer parameter), and compare the remaining resource amount with the resource transfer amount. And under the condition that the residual resource amount is larger than or equal to the resource transfer amount, obtaining a result that the resource transfer parameter meets the preset condition.
When the resource transfer mode includes using only the account-in notification mode, or using the temporary deposit and the account-in notification mode in combination, the server may acquire an account-in notification record corresponding to the resource transfer parameter, and transfer the amount of the resource corresponding to the account-in notification record into the temporary deposit account. And comparing the real-time residual resource amount of the temporary money taking account with the resource transfer amount, thereby obtaining a result of whether the resource transfer parameter meets the preset condition.
When the resource transfer mode comprises an online deduction mode, the server can check the online subscription state of the resource transfer account, so that a result of whether the resource transfer parameter meets the preset condition is obtained.
Step S506, in response to the result that the resource transfer parameter meets the preset condition corresponding to the resource transfer mode, the first asynchronous task is called to execute the resource transfer operation according to the resource transfer mode.
Specifically, when the resource transfer mode is the use-only temporary deposit mode, the server may call the first asynchronous task to perform the resource transfer operation on the temporary deposit account in response to a result that the resource transfer parameter satisfies a preset condition corresponding to the use-only temporary deposit mode, and record an execution result of the resource transfer operation.
When the resource transfer mode does not include the temporary money storage mode, the server can call the outbound settlement interface of the first asynchronous task connected with the third party in response to the result that the resource transfer parameter meets the preset condition corresponding to the resource transfer mode, so that corresponding resource transfer operation is carried out through the outbound settlement interface, and the execution result of the resource transfer operation returned by the outbound settlement interface is obtained.
Meanwhile, when the first asynchronous task is successfully invoked, the server can update the service processing state corresponding to the current resource transfer request according to the first processing node corresponding to the current first asynchronous task.
In addition, the server can also respond to the state query request initiated by the user to acquire the current business processing state of the resource transfer request and display the business processing state to the user. For example, when the first processing node is the first task initiating node, the service processing state may be updated to be a successful money transfer initiation state, and the corresponding service processing state and the service flow identifier corresponding to the current resource transfer request may be pushed to the user. In one example, as shown in FIG. 6, a schematic diagram of a status query request response step is provided. The business processing status of the resource transfer request may include, but is not limited to, in-line transaction, successful and credited on-line deduction, failed on-line deduction, etc.
After the successful call of the first asynchronous task is finished, the server can release the current first task lock to release the locking state of the first asynchronous task, so that the rest asynchronous tasks can be executed. In one example, as shown in FIG. 7, a schematic diagram of a first asynchronous task call step is provided. The server creates a first task lock and a first asynchronous task in response to the resource transfer request. And when the resource transfer parameter meets a preset condition, calling a first asynchronous task to execute a resource transfer operation, and releasing a first task lock. And when the resource transfer parameters do not meet the preset conditions, directly releasing the first task lock and returning to the corresponding service processing state.
Step S508, creating a second task lock and a second asynchronous task corresponding to the second task lock, and calling the second asynchronous task to update the account resource record by adopting the execution result of the resource transfer operation.
Step S510, generating a processing result of the resource transfer request according to the updated account resource record.
Specifically, the server may create a second task lock and a second asynchronous task corresponding to the second task lock according to the resource transfer parameter, and lock the second asynchronous task with the second task lock. And calling a second asynchronous task to update the account resource record by adopting the execution result of the resource transfer operation, thereby realizing callback accounting.
After the account resource record is updated, the server can perform data matching on the updated account resource record, the execution result of the resource transfer operation and the business verification record, so that three accounts of the business account, the fund account and the financial account are automatically matched, and the processing result of the resource transfer request is obtained.
In this embodiment, by determining the resource transfer mode corresponding to the resource transfer parameter, determining the resource transfer parameter by using a preset condition corresponding to the resource transfer mode, and calling the first asynchronous task locked by the first task lock to execute the resource transfer operation corresponding to the resource transfer mode when the preset condition is satisfied, the execution flexibility of the resource transfer operation can be improved, the thread blocking rate of executing the resource transfer operation can be reduced, and thus the execution efficiency of the resource transfer operation can be improved. And updating the corresponding account resource record by calling a second asynchronous task locked by adopting a second task lock and adopting an execution result of a resource transfer operation, generating a processing result of a resource transfer request according to the updated account resource record, and driving the updating of the account resource record through the service operation of resource transfer, so that the execution result of one resource transfer operation corresponds to the accounting of one account resource record, thereby realizing the data synchronization of resource transfer and account resource change.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a resource transfer device for realizing the above-mentioned resource transfer method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the resource transfer device provided below may be referred to the limitation of the resource transfer method hereinabove, and will not be repeated here.
In one embodiment, as shown in FIG. 8, there is provided a resource transfer device 800 comprising: a request response module 802, an operation execution module 804, a record update module 806, and a result generation module 808, wherein:
a request response module 802, configured to obtain a resource transfer parameter in response to a resource transfer request.
The mode judging module 804 is configured to determine a corresponding resource transfer mode according to the resource transfer parameter, and judge the resource transfer parameter by adopting a preset condition corresponding to the resource transfer mode.
An operation execution module 806, configured to execute, according to the resource transfer mode, a resource transfer operation corresponding to the resource transfer parameter in response to a result that the resource transfer parameter satisfies the preset condition, and record an execution result of the resource transfer operation.
And the record updating module 808 is configured to update the account resource record corresponding to the resource transfer request by using the execution result.
The result generating module 810 is configured to generate a processing result of the resource transfer request according to the updated account resource record.
In one embodiment, the operation execution module 806 is further configured to create a first task lock and a first asynchronous task corresponding to the first task lock, call the first asynchronous task to execute the resource transfer operation in response to a result that the resource transfer parameter meets a preset condition, record an execution result of the resource transfer operation, and release the first task lock.
The record updating module 808 is further configured to create a second task lock and a second asynchronous task corresponding to the second task lock, call the second asynchronous task, update the account resource record with the execution result, and release the second task lock.
In one embodiment, the resource transfer device 800 further comprises: and the state updating module is used for updating the service processing state of the resource transfer request according to the first processing node corresponding to the first asynchronous task when the first asynchronous task is called, and updating the service processing state of the resource transfer request according to the second processing node corresponding to the second asynchronous task when the second asynchronous task is called.
In one embodiment, the resource transfer device 800 further comprises: and the state query module is used for responding to the state query request, acquiring the current service processing state of the resource transfer request and displaying the current service processing state.
In one embodiment, the resource transfer request is triggered based on a service approval record. The operation execution module 806 is further configured to match the service verification record with the resource transfer parameter, and obtain a result that the resource transfer parameter meets the preset condition when it is determined that the service verification record and the resource transfer parameter are successfully matched.
In one embodiment, the resource transfer parameters include a resource transfer-out account and a resource transfer-in account.
The operation execution module 806 includes: the record acquisition unit is used for acquiring record data in a verified state in the business verification record; the first execution unit is used for executing resource transfer operation on the resource transfer account and the resource transfer account by adopting the record data when the resource transfer mode comprises a first transfer mode; the second execution unit is used for inquiring the account change notification corresponding to the resource transfer-out account when the resource transfer mode comprises the second transfer mode, and executing the resource transfer operation on the resource transfer-in account in response to the result of matching the account change notification with the recorded data; and the third execution unit is used for pushing the account change notification corresponding to the resource transfer-out account and the record data to the resource transfer-in account by utilizing the account association relation between the resource transfer-out account and the resource transfer-in account when the resource transfer mode comprises the third transfer mode, and executing the resource transfer operation on the resource transfer-in account in response to the account change notification.
The various modules in the resource transfer device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data such as business verification records, resource transfer parameters, account resource records, execution results of resource transfer operation and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a resource transfer method.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that variations and modifications can be made by those skilled in the art without departing from the spirit of the present application, which falls within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (15)

1. A method of resource transfer, the method comprising:
responding to a resource transfer request, and acquiring a resource transfer parameter;
determining a corresponding resource transfer mode according to the resource transfer parameters, and judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer mode;
responding to the result that the resource transfer parameter meets the preset condition, executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode, and recording the execution result of the resource transfer operation;
Updating account resource records corresponding to the resource transfer requests by adopting the execution results;
and generating a processing result of the resource transfer request according to the updated account resource record.
2. The method of claim 1, further comprising, after said obtaining a resource transfer parameter in response to a resource transfer request:
creating a first task lock and a first asynchronous task corresponding to the first task lock;
and executing the resource transfer operation corresponding to the resource transfer parameter and recording the execution result of the resource transfer operation according to the result that the resource transfer parameter meets the preset condition, wherein the method comprises the following steps:
responding to the result that the resource transfer parameter meets the preset condition, calling the first asynchronous task to execute the resource transfer operation, recording the execution result of the resource transfer operation, and releasing the first task lock;
before updating the account resource record corresponding to the resource transfer request by adopting the execution result, the method comprises the following steps:
creating a second task lock and a second asynchronous task corresponding to the second task lock;
the updating the account resource record corresponding to the resource transfer request by adopting the execution result comprises the following steps:
And calling the second asynchronous task to update the account resource record by adopting the execution result, and releasing the second task lock.
3. The method according to claim 2, wherein the method further comprises:
when the first asynchronous task is called, updating the service processing state of the resource transfer request according to a first processing node corresponding to the first asynchronous task;
and when the second asynchronous task is called, updating the service processing state of the resource transfer request according to a second processing node corresponding to the second asynchronous task.
4. A method according to claim 3, characterized in that the method further comprises:
and responding to the state query request, acquiring and displaying the current business processing state of the resource transfer request.
5. The method according to any one of claims 1-4, wherein the resource transfer request is triggered according to a service approval record;
before the resource transfer operation corresponding to the resource transfer parameter is executed according to the resource transfer mode and the execution result of the resource transfer operation is recorded according to the result that the resource transfer parameter meets the preset condition, the method further comprises:
Matching the business verification record with the resource transfer parameter;
and when the service verification record and the resource transfer parameter are successfully matched, obtaining a result that the resource transfer parameter meets a preset condition.
6. The method of claim 5, wherein the resource transfer parameters include a resource transfer-out account and a resource transfer-in account; the executing the resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode comprises the following steps:
acquiring record data in a verified state in the business verification record;
when the resource transfer mode comprises a first transfer mode, executing the resource transfer operation on the resource transfer account and the resource transfer account by adopting the recorded data;
when the resource transfer mode comprises a second transfer mode, inquiring an account change notification corresponding to the resource transfer-out account, and responding to a result of matching the account change notification with the recorded data to execute the resource transfer operation on the resource transfer-in account;
when the resource transfer mode comprises a third transfer mode, pushing an account change notification corresponding to the record data of the resource transfer account to the resource transfer account by utilizing an account association relation between the resource transfer account and the resource transfer account, and executing the resource transfer operation on the resource transfer account in response to the account change notification.
7. A resource transfer device, the device comprising:
the request response module is used for responding to the resource transfer request and acquiring the resource transfer parameters;
the mode judging module is used for determining a corresponding resource transfer mode according to the resource transfer parameters and judging the resource transfer parameters by adopting preset conditions corresponding to the resource transfer mode;
an operation execution module, configured to execute a resource transfer operation corresponding to the resource transfer parameter according to the resource transfer mode in response to a result that the resource transfer parameter satisfies the preset condition, and record an execution result of the resource transfer operation;
the record updating module is used for updating the account resource record corresponding to the resource transfer request by adopting the execution result;
and the result generation module is used for generating a processing result of the resource transfer request according to the updated account resource record.
8. The apparatus of claim 7, wherein the operation execution module is further configured to create a first task lock and a first asynchronous task corresponding to the first task lock, call the first asynchronous task to execute the resource transfer operation in response to a result that the resource transfer parameter satisfies a preset condition, record an execution result of the resource transfer operation, and release the first task lock;
The record updating module is further configured to create a second task lock and a second asynchronous task corresponding to the second task lock, call the second asynchronous task to update the account resource record by using the execution result, and release the second task lock.
9. The apparatus of claim 8, wherein the apparatus further comprises:
and the state updating module is used for updating the service processing state of the resource transfer request according to a first processing node corresponding to the first asynchronous task when the first asynchronous task is called, and updating the service processing state of the resource transfer request according to a second processing node corresponding to the second asynchronous task when the second asynchronous task is called.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the state query module is used for responding to the state query request, acquiring the current service processing state of the resource transfer request and displaying the current service processing state.
11. The apparatus according to any one of claims 7 to 10, wherein the resource transfer request is triggered according to a service approval record;
the operation execution module is further configured to match the service verification record with the resource transfer parameter, and obtain a result that the resource transfer parameter meets a preset condition when it is determined that the service verification record and the resource transfer parameter are successfully matched.
12. The apparatus of claim 11, wherein the resource transfer parameters include a resource transfer-out account and a resource transfer-in account; the operation execution module includes:
a record acquisition unit, configured to acquire record data in a verified state in the service verification record;
the first execution unit is used for executing the resource transfer operation on the resource transfer account and the resource transfer account by adopting the recorded data when the resource transfer mode comprises a first transfer mode;
the second execution unit is used for inquiring an account change notification corresponding to the resource transferring-out account when the resource transferring mode comprises a second transferring mode, and responding to the result of matching the account change notification with the recorded data to execute the resource transferring operation on the resource transferring-out account;
and the third execution unit is used for pushing the account change notification corresponding to the record data of the resource transfer account to the resource transfer account by utilizing the account association relation between the resource transfer account and the resource transfer account when the resource transfer mode comprises a third transfer mode, and executing the resource transfer operation on the resource transfer account in response to the account change notification.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
15. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310337822.8A 2023-03-31 2023-03-31 Resource transfer method, device, computer equipment and storage medium Pending CN116362733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310337822.8A CN116362733A (en) 2023-03-31 2023-03-31 Resource transfer method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310337822.8A CN116362733A (en) 2023-03-31 2023-03-31 Resource transfer method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116362733A true CN116362733A (en) 2023-06-30

Family

ID=86923593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310337822.8A Pending CN116362733A (en) 2023-03-31 2023-03-31 Resource transfer method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116362733A (en)

Similar Documents

Publication Publication Date Title
CN110032598B (en) Method and device for updating field and electronic equipment
TW202008235A (en) Transaction method and system based on centralized settlement and block chain storage
US11087371B2 (en) Blockchain-based invoice creation method apparatus, and electronic device
US20200234383A1 (en) Blockchain-based service source tracing method, apparatus, and electronic device
CN109285069B (en) Resource transfer method, device and server
CN110163691B (en) Invoice creating method and device based on block chain and electronic equipment
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN110008716A (en) Block chain method of commerce and device, electronic equipment, storage medium
US11914732B2 (en) Systems and methods for hard deletion of data across systems
CN110033370A (en) Account creation method and device, electronic equipment, storage medium
CN110706105A (en) Error marking method, error marking device, computer equipment and storage medium
WO2018192931A1 (en) Delivery versus payment mechanism
CN111553695B (en) Cross-region payment method and device and electronic equipment
CN113205402A (en) Account checking method and device, electronic equipment and computer readable medium
CN112819632A (en) Block chain-based reimbursement expense segmentation method and device and electronic equipment
TW202016737A (en) Disaster recovery data processing method, device and system
CN110009492A (en) Block chain method of commerce and device, electronic equipment, storage medium
JP5978270B2 (en) Account evaluation system, account evaluation method, and account evaluation program
CN110782310A (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN116362733A (en) Resource transfer method, device, computer equipment and storage medium
CN111274255B (en) Service data monitoring method and system, monitoring architecture, equipment and storage medium
CN112634006A (en) Account checking processing method and device, electronic equipment and storage medium
CN112181817A (en) Test method and test device for SOA (service oriented architecture) platform
CN113807923B (en) Order processing method and device, electronic equipment and readable storage medium
CN109559115A (en) A kind of method for building up, method of commerce and the relevant apparatus of intelligence contract

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