Fund transaction result returning method and device, storage medium and electronic equipment

By sharding and timed verification and optimization of cross-bank fund transaction data, the problem of long return time for fund transaction results is solved, and a more efficient verification process and a better user experience is achieved.

CN118941389APending Publication Date: 2024-11-12BANK OF NINGBO
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411006488.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the prior art, the results of cross-bank fund transactions have a long return time, resulting in poor user experience and low verification efficiency, which cannot meet the demand for real-time and efficiency in the financial transaction field.

Method used

By sharding the transaction data of funds being checked, a verification request is generated, and the second regular verification time is set based on the regular verification time of the payment center, it can issue a query to the enterprise financial product system in real time, optimize the verification process, and shorten the results of funds transactions Return time.

Benefits of technology

It significantly shortens the verification return time of fund transaction results, improves verification efficiency and user experience, and improves system processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941389A_ABST
    Figure CN118941389A_ABST
Patent Text Reader

Abstract

The fund transaction result return method and device, the storage medium and the electronic equipment provided by the invention can be applied to the technical field of financial transactions. The method is applied to a financial transaction service system, the to-be-checked fund transaction data is acquired and fragmented, the verification request is created for the fragmented data, and the verification request time is staggered and set according to the verification time of the payment platform. And the verification request is sent to an enterprise financial product system according to set time, and the system inquires the payment platform in real time and quickly obtains and returns a transaction result. According to the invention, through processing of the to-be-checked fund transaction data in the fund transaction service system, optimization of the verification request and implementation of real-time verification, the efficiency of the verification process is effectively improved, and the verification return time of the fund transaction result is significantly shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial transaction technology, and in particular to a method, device, storage medium and electronic device for returning fund transaction results. Background Art

[0002] In the field of financial transactions, the efficiency and real-time nature of fund transactions are crucial to user experience. Current intra-bank fund transactions are mainly divided into two categories: one is fund transactions between accounts within the same bank. Since such transactions only involve intra-bank bookkeeping, the transaction results can usually be returned quickly; the other is fund transactions between accounts within the same bank and accounts in other banks. Such transactions involve cross-bank fund deductions, which have a long link and result in a long time for fund transaction results to be returned.

[0003] Taking a single transfer as an example, the traditional complete link of fund transactions includes the client system calling the transfer interface provided by the server system, and the subsequent verification interface call to obtain the final transaction result. However, this link is not suitable for channel systems such as treasury, because there is a long link between the front-end channel system and the back-end accounting system, resulting in a fund transaction from one bank to another bank. It takes more than ten minutes from initiation to the return of the transaction result.

[0004] Therefore, how to shorten the verification return time of fund transaction results and improve the verification efficiency has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention

[0005] In view of the above problems, the present invention provides a method, device, storage medium and electronic device for returning fund transaction results to overcome the above problems or at least partially solve the above problems. The technical solution is as follows:

[0006] A method for returning fund transaction results, applied to a treasury financial service system, comprising:

[0007] Obtain the fund transaction data to be checked;

[0008] Slice the fund transaction data to be checked to obtain a plurality of slicing data to be checked, and generate a verification request for the slicing data to be checked;

[0009] Based on the first scheduled verification time of the payment middle station, a second scheduled verification time of the verification request of the shard data to be checked is set, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length;

[0010] According to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that after receiving the verification request, the enterprise financial product system sends the to-be-checked shard data to the payment center in real time for verification, and if there is a fund transaction result corresponding to the to-be-checked shard data, the fund transaction result is returned to the treasury financial service system;

[0011] Obtain the fund transaction result returned by the enterprise financial product system and corresponding to the shard data to be queried.

[0012] Optionally, the method further includes:

[0013] According to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that after receiving the verification request, the enterprise financial product system actively sends the shard data to the payment center for verification. If there is no fund transaction result corresponding to the shard data to be checked, the enterprise financial product system waits for the third scheduled verification time of the enterprise financial product system, and then sends the shard data to the payment center for verification. If there is the fund transaction result corresponding to the shard data to be checked, the fund transaction result is returned to the treasury and financial service system.

[0014] Optionally, the third scheduled verification time is staggered with the first scheduled verification time by a second preset time length.

[0015] Optionally, the method further includes:

[0016] In the case where the enterprise financial product system sends a query to the payment center for the shard data to be checked, if any transaction channel system obtains the fund transaction result corresponding to the shard data to be checked through the query at the payment center, the payment center pushes the fund transaction result to the message center, and after the consumption message of the client system matches the fund transaction result of the message center, the message center returns the fund transaction result to the treasury financial service system;

[0017] Obtain the fund transaction result returned by the message center and corresponding to the shard data to be queried.

[0018] Optionally, slicing the fund transaction data to be checked to obtain a plurality of slicing data to be checked, and generating a verification request for the slicing data to be checked, includes:

[0019] A shard broadcast routing strategy is adopted to slice the fund transaction data to be checked, and multiple shard data to be checked are obtained, and each shard data to be checked is broadcast to each server node. The server node selects and processes a specific shard data to be checked according to its own routing strategy, and generates verification requests for each shard data to be checked.

[0020] A fund transaction result return device is applied to a financial financial service system, and the device comprises: a fund transaction data acquisition unit to be checked, a verification frequency increase unit, a verification time delay unit, a verification reduction unit and a fund transaction result return unit.

[0021] The to-be-checked fund transaction data obtaining unit is used to obtain the to-be-checked fund transaction data;

[0022] The verification frequency adding unit is used to slice the fund transaction data to be checked, obtain a plurality of slice data to be checked, and generate a verification request for the slice data to be checked;

[0023] The verification time-staggering unit is used to set a second scheduled verification time of the verification request of the shard data to be checked based on the first scheduled verification time of the payment middle station, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length;

[0024] The verification and reduction unit is used to send the verification request to the enterprise financial product system according to the second scheduled verification time, so that the enterprise financial product system, after receiving the verification request, sends the to-be-checked shard data to the payment center in real time for verification, and if there is a fund transaction result corresponding to the to-be-checked shard data, the fund transaction result is returned to the treasury and financial service system;

[0025] The fund transaction result returning unit is used to obtain the fund transaction result returned by the enterprise financial product system and corresponding to the shard data to be checked.

[0026] Optionally, the verification and reduction unit is also used to send the verification request to the enterprise financial product system according to the second scheduled verification time, so that after receiving the verification request, the enterprise financial product system actively sends the shard data to the payment center for verification. If there is no fund transaction result corresponding to the shard data to be checked, the enterprise financial product system waits for the third scheduled verification time of the enterprise financial product system, and then sends the shard data to be checked to the payment center for verification. If there is a fund transaction result corresponding to the shard data to be checked, the fund transaction result is returned to the treasury and financial services system.

[0027] Optionally, the method further comprises: a verification time push unit,

[0028] The verification push unit is used for, when the enterprise financial product system sends a check to the payment middle station for the shard data to be checked, if any transaction channel system obtains the fund transaction result corresponding to the shard data to be checked through the check at the payment middle station, the payment middle station pushes the fund transaction result to the message center, and after the consumption message of the client system matches the fund transaction result of the message center, the message center returns the fund transaction result to the treasury financial service system; and obtains the fund transaction result corresponding to the shard data to be checked returned by the message center.

[0029] A computer-readable storage medium stores a program, which, when executed by a processor, implements any of the above-mentioned methods for returning fund transaction results.

[0030] An electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute any of the above-mentioned methods for returning fund transaction results.

[0031] By means of the above technical scheme, a method, device, storage medium and electronic device for returning fund transaction results provided by the present invention can be applied to the field of financial transaction technology. The present invention is applied to a financial and financial service system to obtain fund transaction data to be checked; the fund transaction data to be checked is fragmented to obtain multiple fragmented data to be checked, and a verification request for the fragmented data to be checked is generated; based on the first scheduled verification time of the payment middle station, a second scheduled verification time for the verification request of the fragmented data to be checked is set, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length; according to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that the enterprise financial product system, after receiving the verification request, sends a check to the fragmented data to be checked to the payment middle station in real time, and if there is a fund transaction result corresponding to the fragmented data to be checked, the fund transaction result is returned to the financial and financial service system; and the fund transaction result corresponding to the fragmented data to be checked returned by the enterprise financial product system is obtained. The present invention effectively improves the efficiency of the verification process and significantly shortens the verification return time of fund transaction results by processing the fund transaction data to be checked in the treasury financial service system, optimizing the verification request and implementing real-time verification.

[0032] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0034] Figure 1 A schematic diagram of system interaction showing a single transfer processing flow provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of system interaction of an inter-bank transfer verification process provided by an embodiment of the present invention is shown;

[0036] Figure 3 A schematic diagram showing a flow chart of an implementation of a method for returning fund transaction results provided by an embodiment of the present invention;

[0037] Figure 4 Another system interaction schematic diagram of the inter-bank transfer verification process provided by an embodiment of the present invention is shown;

[0038] Figure 5 Another system interaction schematic diagram of the inter-bank transfer verification process provided by an embodiment of the present invention is shown;

[0039] Figure 6 Another system interaction schematic diagram of the inter-bank transfer verification process provided by an embodiment of the present invention is shown;

[0040] Figure 7 Another system interaction schematic diagram of the inter-bank transfer verification process provided by an embodiment of the present invention is shown;

[0041] Figure 8 A schematic diagram showing the structure of a fund transaction result return device provided by an embodiment of the present invention is shown;

[0042] Fig. 9 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0043] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0044] The existing basic link for fund transactions is mainly composed of the client system calling the transfer interface provided by the server system, sending the fund transaction to the accounting system, and receiving the response from the server system. Then, the client system continues to call the verification interface provided by the server system to query the transaction results and finally obtain the final transaction results. However, this basic link is not completely suitable for channel systems that process treasury and other types. The main reason is that there is a long link communication problem between the front-end channel system and the back-end accounting system, resulting in even a simple inter-bank transfer operation. It usually takes more than ten minutes from initiation to the return of the transaction result. This delay is mainly caused by the communication and processing time between systems.

[0045] After the channel fund transaction is upgraded, the completion process of a single treasury transfer transaction is as follows: Figure 1 and Figure 2 shown.

[0046] Figure 1 The figure shows a system interaction diagram of a single transfer processing flow provided by an embodiment of the present invention. The treasury financial service system settlement center initiates a single transfer transaction to the enterprise financial product system settlement center. After receiving the transaction request, the enterprise financial product system settlement center first stores the data in the database, and then forwards the transaction to the payment center. After receiving the transaction request, the payment center also stores the data in the database, and then sends the transaction to the accounting system. After processing, the accounting system returns the response information in sequence, and the treasury financial service system settlement center finally receives the response.

[0047] Figure 2 The figure shows a system interaction diagram of the inter-bank transfer verification process provided by an embodiment of the present invention. For transactions where the receiving account is in another bank, a clear transaction result response cannot be obtained after the transfer is sent. At this time, it is necessary to introduce a timed verification to obtain the final transaction result. At present, each system has its own verification timed task, which is sent to the next level system in turn to finally obtain the status of the transaction.

[0048] It can be seen that due to the long transaction chain, the efficiency of transaction result return is seriously affected. In terms of transaction real-time and user experience, it is necessary to improve the verification efficiency to shorten the transaction result return time and improve the efficiency of transaction processing and user experience.

[0049] Based on this, in an embodiment of the present invention, a method for returning fund transaction results is provided, by acquiring and sharding the fund transaction data to be checked, creating a verification request for the sharded data, and staggering the setting of the verification request time according to the verification time of the payment center. The verification request is sent to the enterprise financial product system at the set time, and the system queries the payment center in real time to quickly obtain and return the transaction results. It can be seen that the embodiment of the present invention effectively improves the efficiency of the verification process and shortens the verification return time of the fund transaction results by sharding the transaction data, optimizing the verification time, and implementing real-time verification. It not only improves the system processing capacity, but also greatly improves the user's transaction experience.

[0050] The method for returning fund transaction results provided in the embodiment of the present invention is applied to a treasury financial service system, wherein the treasury financial service system refers to a system that provides comprehensive financial and fund management services for an enterprise. The treasury financial service system usually integrates multiple financial functions, including but not limited to fund scheduling, fund settlement, fund clearing, account management, risk management, and financial reporting.

[0051] like Figure 3 As shown, a flow chart of an implementation of a method for returning fund transaction results provided by an embodiment of the present invention is provided, and the method may include:

[0052] S100: Obtain the fund transaction data to be checked.

[0053] Among them, pending fund transaction data refers to fund transaction records that are waiting to be checked but have not yet received final confirmation or processing results. In actual applications, fund transactions may be in a pending state for a variety of reasons, such as inter-bank transfers, network delays, system failures, transaction review processes, etc. In these cases, the initiator of the transaction cannot immediately obtain the final status of the transaction (transaction success or transaction failure), so a subsequent verification process is required to confirm whether the transaction is successful, failed, or still being processed.

[0054] S200, sharding the fund transaction data to be checked, obtaining a plurality of sharded data to be checked, and generating a verification request for the sharded data to be checked.

[0055] Specifically, the embodiment of the present invention can obtain the fund transaction data to be checked from the treasury financial service system. Then, the fund transaction data to be checked is processed in slices to generate multiple sliced ​​data to be checked, thereby dividing a large amount of transaction data into smaller and more manageable data blocks, so that the processing of each data block is faster and more efficient. At the same time, the sliced ​​data to be checked can also be processed in parallel, thereby greatly improving the verification efficiency.

[0056] based on Figure 2The system interaction diagram of the inter-bank transfer verification process shown in the figure shows that when the fund transaction data to be checked is divided into multiple shard data to be checked and the verification frequency is increased, the system interaction of the adjusted inter-bank transfer verification process can be as follows: Figure 4 shown.

[0057] S300. Based on the first scheduled verification time of the payment middle station, a second scheduled verification time of the verification request for the sharded data to be checked is set, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length.

[0058] Among them, the payment platform refers to a centralized payment service platform built within the enterprise, which is designed to uniformly process and manage the enterprise's payment business. The payment platform usually integrates multiple payment channels, payment methods and payment tools, and provides a standardized and modular payment service interface for the front-end business system.

[0059] Specifically, the embodiment of the present invention can generate a verification request for each shard data to be checked, and set a second scheduled verification time for the verification request based on the first scheduled verification time of the payment station. The second scheduled verification time is staggered from the first scheduled verification time by a first preset time length. For example: if the first scheduled verification time is the hour, the second scheduled verification time is the hour plus the first preset time length. By staggering the sending time of the verification request, the embodiment of the present invention can avoid congestion or delay caused by multiple systems processing a large number of query requests at the same time, thereby balancing the system load, optimizing resource utilization, and improving verification efficiency.

[0060] The first preset duration can be set according to actual needs. Typically, the first preset duration can be set to 2 to 3 minutes.

[0061] based on Figure 4 The system interaction diagram of the inter-bank transfer verification process is shown in the figure. Under the circumstance that the verification time and frequency of the settlement center of the enterprise financial product system and the settlement center of the treasury financial service system and the payment center are staggered, the system interaction of the adjusted inter-bank transfer verification process can be as follows: Figure 5 As shown. In actual applications, although speeding up the verification frequency can be considered from the initiator end, the execution frequency of the scheduled tasks of the payment middle end cannot be customized according to the special needs of the treasury system. From the perspective of the entire link, since each system has an independent scheduled verification mechanism, it may lead to reduced efficiency. For example, if the scheduled verification of each system starts at the top of the hour and is executed every 5 minutes, it may take 20 minutes for a transaction to get the result.

[0062] Since the number of systems connected to the payment center is large, its verification time cannot be modified. Therefore, the verification time and frequency of the enterprise financial product system settlement center and the treasury financial service system settlement center can be adjusted. After such adjustments, the return time of fund transaction results, including the intelligent salary verification task, has been reduced from an average of more than 15 minutes to an average of less than 10 minutes.

[0063] S400. Send a verification request to the enterprise financial product system at the second scheduled verification time, so that after receiving the verification request, the enterprise financial product system will send a verification to the payment center in real time for the shard data to be checked. If there is a fund transaction result corresponding to the shard data to be checked, the fund transaction result will be returned to the treasury and financial service system.

[0064] Among them, sending a query in the payment system and financial services refers to initiating a query request to verify or confirm the financial transaction results of the shard data to be checked.

[0065] Among them, the enterprise financial product system is a technical platform that provides various financial services and solutions for enterprises. The enterprise financial product system is designed to help enterprises manage their financial needs, including but not limited to payment processing, account management, financing, investment, risk management, financial planning and analysis, etc.

[0066] Specifically, the embodiment of the present invention can send a verification request to the enterprise financial product system according to the set second scheduled verification time. After receiving the verification request, the enterprise financial product system will send a query to the payment center in real time for the shard data to be checked. If there is a fund transaction result corresponding to the shard data to be checked, the result is returned to the treasury financial service system. The embodiment of the present invention ensures the immediacy of data processing by real-time query, and shortens the total time from request sending to result return. This not only improves the verification efficiency, but also optimizes the user experience and shortens the time users wait for the return of fund transaction results.

[0067] based on Figure 5 The system interaction diagram of the inter-bank transfer verification process is shown in the figure. In the case of reducing the loop connection of scheduled verification, the system interaction of the adjusted inter-bank transfer verification process can be as follows Figure 6 As shown. In actual applications, the reason for the low verification efficiency is that each system needs to obtain the verification results from the database of the server system. Considering that there are many systems connected to the payment middle platform, changing its verification strategy from scheduled verification to immediate verification after receiving the verification request will make it difficult to control the concurrent processing of the accounting system and the pressure on the system. Therefore, the optimization plan needs to start from the settlement center of the enterprise financial product system.

[0068] The specific approach is that when the enterprise financial product system settlement center receives a verification request from the treasury financial service system settlement center, and the data transaction result status in the database is still "pending verification", the enterprise financial product system settlement center will proactively initiate a verification request to the payment middle office, thereby effectively reducing the concurrent pressure on the accounting system and improving the efficiency of the entire verification process.

[0069] S500. Obtain the fund transaction result returned by the enterprise financial product system and corresponding to the shard data to be checked.

[0070] The fund transaction result refers to the final confirmation state of the transaction after the fund transaction (such as transfer, payment, collection, etc.) is carried out, that is, the final transaction state. In the embodiment of the present invention, the final transaction state is one of a successful transaction and a failed transaction.

[0071] A method for returning fund transaction results provided by the present invention can be applied to the field of financial transaction technology. The present invention is applied to a treasury financial service system to obtain fund transaction data to be checked; the fund transaction data to be checked is fragmented to obtain multiple fragmented data to be checked, and a verification request for the fragmented data to be checked is generated; based on the first scheduled verification time of the payment middle station, a second scheduled verification time for the verification request of the fragmented data to be checked is set, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length; according to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that the enterprise financial product system sends a check to the fragmented data to be checked to the payment middle station in real time after receiving the verification request, and if there is a fund transaction result corresponding to the fragmented data to be checked, the fund transaction result is returned to the treasury financial service system; and the fund transaction result corresponding to the fragmented data to be checked returned by the enterprise financial product system is obtained. The present invention effectively improves the efficiency of the verification process and significantly shortens the verification return time of the fund transaction result by optimizing the processing of the fund transaction data to be checked and the verification request in the treasury financial service system and implementing real-time verification.

[0072] Optional, in the above Figure 3 On the basis of one or more corresponding embodiments, in another embodiment provided by the embodiment of the present invention, the method may further include:

[0073] According to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that after receiving the verification request, the enterprise financial product system will actively send the shard data to the payment center for verification. If there is no fund transaction result corresponding to the shard data to be checked, it will wait for the third scheduled verification time of the enterprise financial product system, and then send the shard data to the payment center for verification. If there is a fund transaction result corresponding to the shard data to be checked, the fund transaction result will be returned to the treasury and financial service system.

[0074] It can be seen from the above embodiments that since the payment middle station cannot modify its verification time, the verification time and frequency of the enterprise financial product system settlement center can be adjusted. The embodiment of the present invention can set the second scheduled verification time of the enterprise financial product system settlement center based on the first scheduled verification time of the payment middle station, so that when the enterprise financial product system actively sends a check and cannot find the fund transaction result corresponding to the shard data to be checked, it can re-check the shard data to be checked to the payment middle station according to the third scheduled verification time, so as to obtain the fund transaction result corresponding to the shard data to be checked in time, thereby improving the return efficiency of the fund transaction result.

[0075] Optionally, the third scheduled verification time is staggered with the first scheduled verification time by a second preset time. The second preset time can be set according to actual needs. Typically, the second preset time can be set to 2 to 3 minutes.

[0076] Optional, in the above Figure 3 On the basis of one or more corresponding embodiments, in another embodiment provided by the embodiment of the present invention, the method may further include:

[0077] When the enterprise financial product system sends a query to the payment platform for the shard data to be checked, if any transaction channel system obtains the fund transaction result corresponding to the shard data to be checked through the query at the payment platform, the payment platform will push the fund transaction result to the message center. After the consumption message of the client system matches the fund transaction result of the message center, the message center will return the fund transaction result to the treasury financial service system. The fund transaction result corresponding to the shard data to be checked is obtained from the message center.

[0078] Among them, the transaction channel system may include the counter transaction system, online banking transaction system and treasury and financial service system.

[0079] Specifically, in the embodiment of the present invention, when the enterprise financial product system sends a query request to the payment platform to obtain the fund transaction result corresponding to the shard data to be checked, if any transaction channel system successfully obtains the fund transaction result in the payment platform, the payment platform will immediately push the fund transaction result to the message center. The client system then receives and matches these fund transaction result messages from the message center. Once the match is successful, the message center will feed back the fund transaction result to the treasury financial service system to ensure that the treasury financial service system can obtain the fund transaction result corresponding to the shard data to be checked in a timely manner.

[0080] based on Figure 6 The system interaction diagram of the inter-bank transfer verification process is shown in FIG. 1 . In the case of supporting message push, the system interaction of the inter-bank transfer verification process after adjustment can be as follows: Figure 7As shown. Here we illustrate this by processing a transaction return scenario: when a return occurs, such as when the account name and account number of another bank do not match and the account is not credited, the server system should automatically receive a return request from the People's Bank of China. The core accounting system should automatically perform the rollback operation and immediately notify the original accounting system to ensure that all related systems update the transaction status synchronously. For the final state of the transaction obtained through the query, the server system should immediately push the result to the message center. The client system consumes these messages from the message center and matches the corresponding transaction results to achieve rapid feedback. Through these server-side optimization measures, the efficiency of transaction verification can be greatly improved, the accuracy and timeliness of transaction information can be ensured, and the performance and user experience of the entire payment system can be improved.

[0081] It can be seen from the above embodiments that in order to improve the verification efficiency, a direct method is to increase the frequency of verification, thereby shortening the waiting time between each verification. However, this approach may result in the inability to complete a complete verification task within a given time window. Traditional routing strategies (for example: consistent hashing) may not be able to effectively utilize server resources. In order to solve this problem, a fragmented broadcast routing strategy can be adopted. Under this strategy, the fund transaction data to be checked is divided into multiple fragments, and each server is responsible for processing its corresponding fragment data. In this way, server resources can be allocated more effectively, the verification process can be accelerated, and the verification task can be completed within the specified time.

[0082] Optional, in the above Figure 3 On the basis of one or more corresponding embodiments, in another embodiment provided by the embodiment of the present invention, the fund transaction data to be checked is sharded, a plurality of sharded data to be checked is obtained, and a verification request for the sharded data to be checked is generated, which may specifically include:

[0083] A shard broadcast routing strategy is used to slice the fund transaction data to be checked, obtain multiple shard data to be checked, and broadcast each shard data to be checked to each server node. The server node selects and processes specific shard data to be checked according to its own routing strategy, and generates verification requests for each shard data to be checked.

[0084] Among them, the shard broadcast routing strategy is a strategy used for task scheduling and data processing in a distributed system. It is mainly used to distribute tasks among multiple computing nodes (instances) to achieve load balancing and improve processing efficiency.

[0085] In order to avoid data skew when processing data between servers and ensure that each server can be evenly assigned processing tasks, the embodiment of the present invention can evenly distribute the total data volume according to the number of server instances currently online. However, since the verification task needs to be associated with specific customer information, the embodiment of the present invention can adopt a strategy of grouping by customer. That is, all verification data belonging to the same customer will be centrally distributed to the same server for processing to ensure the integrity and consistency of the data during the verification process, while also optimizing the efficiency of data processing.

[0086] Specifically, the embodiment of the present invention can record the information "start to obtain the pending fund transaction data that the current instance should execute" through the log. Use the ShardingUtil tool class to obtain the parameters of the sharding task, including the current instance number and the total number of instances. Record the current instance number and the total number of instances through the log. Call the "obankWageMapper.read()" method to obtain the list of data to be processed. If the data list is empty, record "no data to be processed" through the log, and return an empty ArrayList. Use the Java Stream API to group the data list by customer number, and store the results in a Map, with the key being the customer number and the value being the corresponding ObankWage object list. If the total number of instances is greater than 1, enter the sharding task logic: record "start entering the sharding task, evenly distribute according to the customer number" through the log, create an empty waitList list to store the data that the current instance needs to process, traverse the grouped Map, and add the data that belongs to the current instance to be processed to the waitList according to the current instance number and the total number of instances, and record each customer number and execution instance number through the log. If the total number of instances is equal to 1, it means there is only one instance: through the log record "there is only one instance, all the fund transaction data to be checked are executed in this instance", all the grouped data are merged into a list and assigned to waitList. If the total number of instances is less than or equal to 0, it means that no instance survives: through the log record "no instance survives, do not execute the scheduled task", and return an empty ArrayList. Record the current instance number and the number of data in waitList through the log. Return waitList as the result of the method.

[0087] The embodiment of the present invention adopts a shard broadcast routing strategy to process the fund transaction data to be checked. By dividing the fund transaction data to be checked into multiple shards and then broadcasting these shards to each server node, parallel processing can be achieved. Each server node independently processes a part of the data. This parallel processing mechanism greatly improves the overall data processing speed and shortens the verification time.

[0088] Although operations are depicted in a particular order, this should not be understood as requiring that the operations be performed in the particular order shown or in a sequential order.Multitasking and parallel processing may be advantageous under certain circumstances.

[0089] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0090] Corresponding to the above method embodiment, the embodiment of the present invention also provides a fund transaction result return device, whose structure is as follows: Figure 8 As shown, applied to a treasury financial service system, the fund transaction result returning device may include: a fund transaction data obtaining unit 10 to be checked, a verification frequency increasing unit 20, a verification time delay unit 30, a verification reduction unit 40 and a fund transaction result returning unit 50.

[0091] The fund transaction data to be checked obtaining unit 10 is used to obtain the fund transaction data to be checked.

[0092] The verification frequency adding unit 20 is used to slice the fund transaction data to be checked, obtain a plurality of sliced ​​data to be checked, and generate a verification request for the sliced ​​data to be checked.

[0093] The verification time-staggered unit 30 is used to set a second scheduled verification time for the verification request of the shard data to be checked based on the first scheduled verification time of the payment center, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length.

[0094] The verification and reduction unit 40 is used to send a verification request to the enterprise financial product system according to the second scheduled verification time, so that after receiving the verification request, the enterprise financial product system will send a check to the payment center in real time on the shard data to be checked. If there is a fund transaction result corresponding to the shard data to be checked, the fund transaction result will be returned to the treasury and financial service system.

[0095] The fund transaction result returning unit 50 is used to obtain the fund transaction result corresponding to the shard data to be checked and returned by the enterprise financial product system.

[0096] Optionally, the verification and reduction unit 40 is also used to send a verification request to the enterprise financial product system according to a second scheduled verification time, so that after receiving the verification request, the enterprise financial product system actively sends a check to the payment center for the shard data to be checked. If there is no fund transaction result corresponding to the shard data to be checked, it will wait for the third scheduled verification time of the enterprise financial product system, and then send a check to the payment center for the shard data to be checked. If there is a fund transaction result corresponding to the shard data to be checked, the fund transaction result will be returned to the treasury and financial service system.

[0097] Optionally, the third scheduled verification time is staggered with the first scheduled verification time by a second preset time length.

[0098] Optionally, the fund transaction result return device may further include: a verification time push unit,

[0099] The verification push unit is used when the enterprise financial product system sends a query to the payment center for the shard data to be checked. If any transaction channel system obtains the fund transaction result corresponding to the shard data to be checked through the query at the payment center, the payment center will push the fund transaction result to the message center. After the consumption message of the client system matches the fund transaction result of the message center, the message center will return the fund transaction result to the treasury and financial service system; the fund transaction result corresponding to the shard data to be checked returned by the message center is obtained.

[0100] Optionally, the verification and frequency adding unit 20 can be specifically used to slice the fund transaction data to be checked by adopting a shard broadcast routing strategy, obtain multiple shard data to be checked, and broadcast each shard data to be checked to each server node. The server node selects and processes specific shard data to be checked according to its own routing strategy, and generates verification requests for each shard data to be checked.

[0101] A fund transaction result return device provided by the present invention can be applied to the field of financial transaction technology. The present invention is applied to a treasury financial service system to obtain fund transaction data to be checked; the fund transaction data to be checked is fragmented to obtain multiple fragmented data to be checked, and a verification request for the fragmented data to be checked is generated; based on the first scheduled verification time of the payment middle station, a second scheduled verification time for the verification request of the fragmented data to be checked is set, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length; according to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that the enterprise financial product system sends a check to the fragmented data to be checked to the payment middle station in real time after receiving the verification request, and if there is a fund transaction result corresponding to the fragmented data to be checked, the fund transaction result is returned to the treasury financial service system; and the fund transaction result corresponding to the fragmented data to be checked returned by the enterprise financial product system is obtained. The present invention effectively improves the efficiency of the verification process and significantly shortens the verification return time of the fund transaction result by optimizing the processing of the fund transaction data to be checked and the verification request in the treasury financial service system and implementing real-time verification.

[0102] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0103] The fund transaction result returning device includes a processor and a memory. The above-mentioned fund transaction data obtaining unit 10, the verification frequency increasing unit 20, the verification time delay unit 30, the verification reduction unit 40 and the fund transaction result returning unit 50 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize the corresponding functions.

[0104] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to optimize the processing of pending fund transaction data and verification requests in the treasury and financial services system, as well as the implementation of real-time verification, which effectively improves the efficiency of the verification process and significantly shortens the verification return time of fund transaction results.

[0105] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method for returning fund transaction results is implemented.

[0106] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for returning fund transaction results is executed when the program is running.

[0107] like Fig. 9As shown, an embodiment of the present invention provides an electronic device 1000, which includes at least one processor 1001, at least one memory 1002 connected to the processor 1001, and a bus 1003; wherein the processor 1001 and the memory 1002 communicate with each other through the bus 1003; the processor 1001 is used to call the program instructions in the memory 1002 to execute the above-mentioned fund transaction result return method. The electronic device in this article can be a server, a PC, a PAD, a mobile phone, etc.

[0108] The present invention also provides a computer program product, which, when executed on an electronic device, is suitable for executing the program steps of the method for initializing the return of fund transaction results.

[0109] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0110] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, electronic devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0111] In a typical configuration, an electronic device includes one or more processors (CPU), a memory, and a bus. The electronic device may also include an input / output interface, a network interface, and the like.

[0112] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0113] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0114] In the description of the present invention, it should be understood that the terms "up", "down", "front", "back", "left" and "right" etc. indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the positions or elements referred to must have specific directions, be constructed and operate in specific directions. Therefore, they should not be understood as limitations of the present invention.

[0115] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. It should also be noted that the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0116] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0117] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A method for returning fund transaction results. It is characterized in that Applied to a treasury financial services system, the method comprises: Obtain the fund transaction data to be checked; Slice the fund transaction data to be checked to obtain a plurality of slicing data to be checked, and generate a verification request for the slicing data to be checked; Based on the first scheduled verification time of the payment middle station, a second scheduled verification time of the verification request of the shard data to be checked is set, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length; According to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that after receiving the verification request, the enterprise financial product system sends the to-be-checked shard data to the payment center in real time for verification, and if there is a fund transaction result corresponding to the to-be-checked shard data, the fund transaction result is returned to the treasury financial service system; Obtain the fund transaction result returned by the enterprise financial product system and corresponding to the shard data to be queried.

2. The method according to claim 1, It is characterized in that Also includes: According to the second scheduled verification time, the verification request is sent to the enterprise financial product system, so that after receiving the verification request, the enterprise financial product system actively sends the shard data to the payment center for verification. If there is no fund transaction result corresponding to the shard data to be checked, the enterprise financial product system waits for the third scheduled verification time of the enterprise financial product system, and then sends the shard data to the payment center for verification. If there is the fund transaction result corresponding to the shard data to be checked, the fund transaction result is returned to the treasury and financial service system.

3. The method according to claim 2, It is characterized in that The third scheduled verification time is staggered with the first scheduled verification time by a second preset time length.

4. The method according to claim 1 or 2, It is characterized in that Also includes: In the case where the enterprise financial product system sends a query to the payment center for the shard data to be checked, if any transaction channel system obtains the fund transaction result corresponding to the shard data to be checked through the query at the payment center, the payment center pushes the fund transaction result to the message center, and after the consumption message of the client system matches the fund transaction result of the message center, the message center returns the fund transaction result to the treasury financial service system; Obtain the fund transaction result returned by the message center and corresponding to the shard data to be queried.

5. The method according to claim 1, It is characterized in that The step of slicing the fund transaction data to be checked to obtain a plurality of slicing data to be checked, and generating a verification request for the slicing data to be checked includes: A shard broadcast routing strategy is adopted to slice the fund transaction data to be checked, and multiple shard data to be checked are obtained, and each shard data to be checked is broadcast to each server node. The server node selects and processes a specific shard data to be checked according to its own routing strategy, and generates verification requests for each shard data to be checked.

6. A device for returning fund transaction results, It is characterized in that Applied to a financial financial service system, the device comprises: a unit for obtaining fund transaction data to be checked, a verification frequency increasing unit, a verification time delay unit, a verification reduction unit and a fund transaction result returning unit. The to-be-checked fund transaction data obtaining unit is used to obtain the to-be-checked fund transaction data; The verification frequency adding unit is used to slice the fund transaction data to be checked, obtain a plurality of slice data to be checked, and generate a verification request for the slice data to be checked; The verification time-staggering unit is used to set a second scheduled verification time of the verification request of the shard data to be checked based on the first scheduled verification time of the payment middle station, wherein the second scheduled verification time is staggered with the first scheduled verification time by a first preset time length; The verification and reduction unit is used to send the verification request to the enterprise financial product system according to the second scheduled verification time, so that the enterprise financial product system, after receiving the verification request, sends the to-be-checked shard data to the payment center in real time for verification, and if there is a fund transaction result corresponding to the to-be-checked shard data, the fund transaction result is returned to the treasury and financial service system; The fund transaction result returning unit is used to obtain the fund transaction result returned by the enterprise financial product system and corresponding to the shard data to be checked.

7. The device according to claim 6, It is characterized in that The verification and reduction unit is also used to send the verification request to the enterprise financial product system according to the second scheduled verification time, so that after receiving the verification request, the enterprise financial product system actively sends the shard data to the payment center for verification. If there is no fund transaction result corresponding to the shard data to be checked, the enterprise financial product system waits for the third scheduled verification time of the enterprise financial product system, and then sends the shard data to be checked to the payment center for verification. If there is the fund transaction result corresponding to the shard data to be checked, the fund transaction result is returned to the treasury and financial service system.

8. The device according to claim 6 or 7, It is characterized in that Also includes: Push unit during verification, The verification push unit is used for, when the enterprise financial product system sends a check to the payment middle station for the shard data to be checked, if any transaction channel system obtains the fund transaction result corresponding to the shard data to be checked through the check at the payment middle station, the payment middle station pushes the fund transaction result to the message center, and after the consumption message of the client system matches the fund transaction result of the message center, the message center returns the fund transaction result to the treasury financial service system; and obtains the fund transaction result corresponding to the shard data to be checked returned by the message center.

9. A computer-readable storage medium having a program stored thereon, It is characterized in that When the program is executed by a processor, the method for returning fund transaction results as described in any one of claims 1 to 5 is implemented.

10. An electronic device, It is characterized in that The electronic device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; the processor is used to call program instructions in the memory to execute the method for returning fund transaction results as described in any one of claims 1 to 5.

Citation Information

Cited By

  • Information processing method and device, electronic equipment and storage medium

    CN120317985A

  • Processing method and device for appointment transfer, electronic equipment and storage medium

    CN120509891A