WO2020006903A1 - Financial data interaction method, apparatus computer device and storage medium - Google Patents

Financial data interaction method, apparatus computer device and storage medium Download PDF

Info

Publication number
WO2020006903A1
WO2020006903A1 PCT/CN2018/108417 CN2018108417W WO2020006903A1 WO 2020006903 A1 WO2020006903 A1 WO 2020006903A1 CN 2018108417 W CN2018108417 W CN 2018108417W WO 2020006903 A1 WO2020006903 A1 WO 2020006903A1
Authority
WO
WIPO (PCT)
Prior art keywords
enterprise
task
bank
application server
financial data
Prior art date
Application number
PCT/CN2018/108417
Other languages
French (fr)
Chinese (zh)
Inventor
刘建
宁之孟
魏尧东
金明
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020006903A1 publication Critical patent/WO2020006903A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • 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

Definitions

  • the present application relates to the field of computers, and in particular, to a method, an apparatus, a computer device, and a storage medium for interacting financial data.
  • Bank-enterprise direct connection is a new online banking system that connects directly to the corporate financial system.
  • Bank-enterprise direct connection has realized the organic integration and smooth docking of banks and corporate computer systems through the Internet or dedicated line connection.
  • Bank-enterprise Direct Link can provide support for enterprises to develop and customize personalized functions in the financial system, with distinctive features of information synchronization, high efficiency and simplicity, personalized service, and safety and reliability.
  • the bank-enterprise direct connection can be connected with the enterprise computer system and facilitate the completion of bank-related transactions in the enterprise system.
  • the enterprise needs to open the bank-enterprise direct account at the corresponding bank.
  • an enterprise performs financial data interaction with a bank through the financial system, it is necessary to set up an enterprise-side front-end machine that matches the bank-side front-end machine in the enterprise, and insert the corresponding UKey on the enterprise side before it can communicate with the corresponding bank-side
  • the front-end machine interacts.
  • an enterprise establishes a bank-enterprise direct connection with different banks, it is necessary to set up multiple enterprise-end front-end machines.
  • select different enterprise-end front-end machines that is, the traditional front-end bank of an enterprise can only connect one front-end bank. After the operation is completed, another front-end bank needs to be replaced, and multiple banks cannot be operated on one front-end bank at the same time.
  • the main purpose of this application is to provide a financial data interaction method, device, computer equipment, and storage medium that facilitates the interaction of financial data between enterprises and different banks, without the need to convert the operation of the front end of the enterprise.
  • the present application proposes a method for financial data interaction, which uses an enterprise-end front-end to implement financial-data interaction between the enterprise-end financial system and the bank, wherein the enterprise-end front-end is provided with multiple UKey interfaces,
  • the enterprise-end front-end processor corresponding to a plurality of the UKey interfaces is configured to complete financial data interaction with a plurality of bank-end front-end processors of different types of banks; the method includes:
  • This application also provides a financial data interaction device, which uses an enterprise-end front-end to implement financial data interaction between the enterprise-side financial system and the bank-side, wherein the enterprise-end front-end is provided with multiple UKey interfaces, and the enterprise-end front-end The set-up corresponds to a plurality of the UKey interfaces configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks; the device includes:
  • a monitoring unit configured to monitor whether an application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task
  • a cache unit configured to: if the monitoring unit monitors the bank-enterprise direct link task sent by the application server, obtain a task ID of the bank-enterprise direct link task, and place the task ID in a corresponding cache queue;
  • An obtaining unit configured to, when the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct task from the application server according to the task ID;
  • An analysis unit configured to analyze the bank-enterprise direct link task to obtain configuration information of a bank-side front-end processor corresponding to the bank-enterprise direct link task;
  • a sending unit configured to send the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information
  • the forwarding unit is configured to send a result message returned by the bank-side front end to the application server.
  • the present application further provides a computer device including a memory and a processor, where the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, implements the steps of any of the foregoing methods.
  • the present application also provides a computer non-volatile readable storage medium having computer-readable instructions stored thereon, which are executed by a processor to implement the steps of the method according to any one of the foregoing.
  • the enterprise-end front-end processor can communicate with multiple different types of The bank performs the bank-enterprise direct connection function to ensure the normal use of each bank account.
  • the bank performs the bank-enterprise direct connection function to ensure the normal use of each bank account.
  • the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached.
  • the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
  • FIG. 1 is a schematic flowchart of a financial data interaction method according to an embodiment of the present invention
  • FIG. 2 is a detailed flowchart of step S2 of a financial data interaction method according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a financial data interaction method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural block diagram of a financial data interaction device according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a structure of a cache unit according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural block diagram of a financial data interaction device according to an embodiment of the present invention.
  • FIG. 7 is a schematic block diagram of a structure of a monitoring unit according to an embodiment of the present invention.
  • FIG. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention.
  • an embodiment of the present application provides a method for financial data interaction, which uses an enterprise-end front-end machine to implement financial-data interaction between an enterprise-side financial system and a bank-side, wherein the enterprise-end front-end machine is provided with multiple UKey interfaces.
  • the enterprise front-end processor corresponds to a plurality of the UKey interfaces and is configured to complete financial data interaction with a plurality of different bank-end front-end processors.
  • the above-mentioned enterprise-side front-end machine refers to the front-end machine set on the enterprise side, and is an intermediate device when the enterprise-side financial system is directly connected with the bank-bank-enterprise.
  • the foregoing enterprise-side front-end machine is configured to complete data interaction with a plurality of different types of bank-side front-end machines.
  • the configuration process is that when an enterprise-side front-end machine is installed, the enterprise-side front-end machine has an administrator interface. Enter the specified configuration information in the preset interface.
  • the configuration information includes the enterprise ID, the enterprise front-end processor number, the bank server IP, the bank port, the bank-enterprise direct connection number of the bank, and the bank-end front-end processor version number.
  • Banks and other corporate financial systems and banks complete the necessary parameters for direct bank-enterprise integration, and configure the number of threads to configure multi-threaded tasks; then send the configuration results to the application corresponding to the enterprise front-end processor server. That is, configure the bank-enterprise direct account number and related information that are applied for.
  • each bank-enterprise direct account When an enterprise needs to log in to each bank-enterprise direct account to obtain data (transaction data, query data, etc.) in its corresponding bank, it only needs to be in the enterprise.
  • the corresponding UKey (a small storage device directly connected to the computer via USB, with password verification function, and reliable and high speed) can be inserted into the front-end machine, which can realize an enterprise-side front-end machine and a number of different types of banks.
  • the front-end of the enterprise can easily obtain the account information, transaction flow information, and balance information of each bank-enterprise direct account of the enterprise, and can perform related operations such as payment, collection, and transfer.
  • the above major banks refer to different banks.
  • ICBC and China Construction Bank belong to two different major banks, that is, banks using different front-end processors are considered to be different major banks.
  • the above financial data interaction method includes steps:
  • the application server refers to a third-party application server that provides the enterprise-side front-end processor to the enterprise.
  • tasks issued by the enterprise will first enter the application server. It is then sent by the application server to the enterprise front end.
  • the tasks issued by the above-mentioned enterprises are tasks of various business operations such as the management and scheduling of bank accounts and funds issued by the enterprise through the financial system.
  • the above-mentioned bank-enterprise direct link task is that the enterprise initiates a request through the financial system, the request is sent to the application server, and the application server initiates the corresponding task to the enterprise-end front-end processor according to this request.
  • the above-mentioned bank-enterprise direct link task exists in the form of a message.
  • the above-mentioned task ID is only an identifier and has no task content, so as to prevent the message of the bank-enterprise direct link task from being directly placed on the enterprise side
  • the front-end machine occupies the running space of the enterprise-end front-end machine, which reduces the operating speed. Because the above-mentioned enterprise-side front-end machine can be connected to multiple bank-side front-end machines, there will be more direct bank-enterprise tasks of various types, and the packets of various bank-enterprise direct-connection tasks will be directly stacked on the enterprise-side front-end machine.
  • the task ID is only placed in the cache of the enterprise-end front-end processor, which greatly reduces the cache space requirement of the enterprise-end front-end processor and improves the quality of the operating environment.
  • Thread pool threads are background threads. Each thread uses the default stack size, runs at the default priority, and is in a multithreaded apartment. If a thread is idle in managed code (such as waiting for an event), the thread pool inserts another worker thread to keep all processors busy. If all thread pool threads remain busy all the time, but the queue contains pending work, the thread pool will create another worker thread after a period of time, but the number of threads will never exceed the maximum. Threads that exceed the maximum can be queued, but they will not start until other threads have completed.
  • a specified number of threads are always maintained in the thread pool.
  • the task is obtained from the above cache queue. Because the cache queue is only a task ID, it is adjusted to the application server according to the task ID. Take the corresponding bank-enterprise direct mission.
  • the number of threads in the above thread pool can be configured when the enterprise-side front-end processor is configured, such as 5, 10, 20, etc., which can be configured according to specific needs.
  • the configuration information will include the bank end corresponding to the type a bank
  • the serial number of the front-end processor and the IP of the bank server corresponding to the type a bank are all information in the application server that is configured when the front-end processor of the enterprise is installed and sent to the corresponding front-end server of the enterprise. Therefore, the above application server will automatically write this information into the bank-enterprise direct connection task according to the request of the enterprise, so that the enterprise-end front-end processor can accurately connect to the corresponding bank-end front-end processor.
  • step S6 when the front end of the bank receives the direct bank-enterprise task, it will forward it to the corresponding bank server, and the bank server will retrieve the corresponding data generation result message and send it to the first bank.
  • the machine is set up to return to the enterprise-end front-end machine, and the enterprise-end front-end machine is forwarding to the application server, and the application server finally feeds back the result message to the financial software system of the enterprise.
  • the step S2 of obtaining the task ID of the bank-enterprise direct link task and putting the task ID into a corresponding cache queue includes:
  • the attributes of the task ID are generally determined by the request issued by the financial system of the enterprise. They can include transaction attributes and query attributes.
  • the query attributes are the query of the company's bank flow, account balance, and payment.
  • the attributes corresponding to requests such as status, and the transaction attributes are the attributes corresponding to requests such as payment and transfer.
  • a transaction cache queue corresponding to the transaction attribute and a query cache queue corresponding to the query attribute are also provided.
  • a transaction thread pool corresponding to the transaction cache queue and a query thread pool corresponding to the query cache queue are also set.
  • Each task ID in the two cache queues is sorted and processed according to a preset priority, for example, the level of payment is higher than the level of querying the bank flow.
  • each task is provided with a type identifier, and the type identifier can be divided into 1-8 levels, and the highest level is 1, which represents emergency tasks and is given priority processing.
  • Various bank-enterprise direct tasks correspond to different type identifiers, and their corresponding task IDs have the same type identifier.
  • the method before the step S1 of monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task, the method includes:
  • steps S101 and S102 above collect the identifier of the UKey device corresponding to the type of bank inserted in each UKey interface, and then compare the identifier with the identifier representing various types of banks configured when the front end of the enterprise is configured. If the collected logos completely cover the logos representing various types of banks configured when the enterprise-end front-end is configured, it is determined that UKey devices corresponding to various types of banks are inserted into the enterprise-end front-end, and subsequent steps such as step S1 can be performed. If not, extract the type of bank corresponding to the uncovered logo and send it to the relevant personnel of the enterprise to report the alarm.
  • the relevant personnel of the enterprise can perform corresponding processing and forget the inserted UKey device or the insertion place will be loose. Re-insertion of UKey equipment caused by poor contact to ensure the interaction between the enterprise and the banks.
  • the financial data interaction method further includes: sending a heartbeat detection packet to detect a connection status with the application server; and if the connection status is disconnected, sending an alarm message.
  • the enterprise front-end machine and the application server should be online for a long time, but because it is an electronic product, it will inevitably fail or upgrade. At this time, the enterprise front-end machine and the application server may lose the connection.
  • This method detects the connection status between the enterprise front end and the application server. When the connection between the two fails, an alarm message needs to be issued.
  • the bank-side front-end machine is sent to the bank's relevant management system by the bank-side front-end machine to inform the bank-side staff.
  • the bank-side staff can manually notify the corresponding staff of the enterprise-side that a disconnection failure has occurred.
  • the above-mentioned sending of the heartbeat detection packet can ensure that the financial person at the enterprise side knows whether the front-end processor of the enterprise side and the application server are disconnected, so as to timely process things that should be completed directly by the bank and enterprise.
  • step S1 of monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task includes:
  • step S11 because the bank-enterprise direct connection task received by the front-end server of the enterprise may be continuous, the service is monitored by using a long connection method, so that each operation is not disconnected, and the next time it is processed directly It is sufficient to send data packets without establishing a TCP (Transmission Control Protocol) connection to maintain the efficiency of processing tasks.
  • the front end of the enterprise side and the application server use the block input output (BIO) synchronous blocking mode for a long connection.
  • BIO block input output
  • Different bank-enterprise direct tasks cannot be performed at the same time, so they need to be performed in accordance with the order of instructions. One instruction can be executed before the next instruction can be executed. It cannot be executed asynchronously. Therefore, in this application, the front end of the enterprise uses the BIO synchronous blocking mode and the application server Make a long connection.
  • the messages sent by the enterprise front end and the application server are serialized using Protocol Buffers.
  • Protocol Buffers It is a lightweight and efficient structured data storage format, which can be used for serialization of structured data, or serialization. It is very suitable for data storage or RPC data exchange format. Language-independent, platform-independent, and extensible serialization structure data format that can be used in communication protocols, data storage, etc., simply The main advantages of Protobuf are: simple and fast. This application uses GOOGLE's Protocol Buffers for serialization, which can improve the efficiency of message packaging and sending.
  • the enterprise-side front-end unit can directly connect with banks of different types with different types of banks Function to ensure the normal use of each bank account.
  • the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached.
  • the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
  • an embodiment of the present application provides a financial data interaction device, which uses an enterprise-end front-end processor to implement financial-data interaction between an enterprise-end financial system and a bank-side, wherein the enterprise-end front-end processor is provided with multiple UKey interfaces.
  • the enterprise front-end processor corresponds to a plurality of the UKey interfaces and is configured to complete financial data interaction with a plurality of different bank-end front-end processors.
  • the above-mentioned enterprise-side front-end machine refers to the front-end machine set on the enterprise side, and is an intermediate device when the enterprise-side financial system is directly connected with the bank-bank-enterprise.
  • the foregoing enterprise-side front-end machine is configured to complete data interaction with a plurality of different types of bank-side front-end machines.
  • the configuration process is that when an enterprise-side front-end machine is installed, the enterprise-side front-end machine has an administrator interface. Enter the specified configuration information in the preset interface.
  • the configuration information includes the enterprise ID, the enterprise front-end processor number, the bank server IP, the bank port, the bank-enterprise direct connection number of the bank, and the bank-end front-end processor version number.
  • Banks and other corporate financial systems and banks complete the necessary parameters for direct bank-enterprise integration, and configure the number of threads to configure multi-threaded tasks; then send the configuration results to the application corresponding to the enterprise front-end processor server. That is, configure the bank-enterprise direct account number and related information that are applied for.
  • an enterprise needs to log in to each bank-enterprise direct account to obtain data (transaction data, query data, etc.) in its corresponding bank, it only needs to be in the enterprise.
  • the corresponding UKey can be inserted into the front-end machine, and an enterprise-side front-end machine can be connected to multiple front-end machines of different types of banks.
  • the enterprise centrally manages the user's bank UKey, without the need for bank switching operations.
  • the front-end of the enterprise can easily obtain the account information, transaction flow information, and balance information of each bank-enterprise direct account of the enterprise, and can perform related operations such as payment, collection, and transfer.
  • the above major banks refer to different banks.
  • ICBC and China Construction Bank belong to two different major banks, that is, banks using different front-end processors are considered to be different major banks.
  • the above financial data interaction device includes steps:
  • the monitoring unit 10 is configured to monitor whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task;
  • the cache unit 20 is configured to: if the monitoring unit monitors the bank-enterprise direct link task sent by the application server, obtain a task ID of the bank-enterprise direct link task, and place the task ID in a corresponding cache queue ;
  • An obtaining unit 30, configured to obtain a corresponding bank-enterprise direct task from the application server according to the task ID when the thread pool corresponding to the cache queue acquires a task from the cache queue;
  • An analysis unit 40 is configured to analyze the bank-enterprise direct link task to obtain configuration information of a bank-side front-end processor corresponding to the bank-enterprise direct link task;
  • a sending unit 50 configured to send the bank-enterprise direct connection task to the bank-side front-end processor according to the configuration information
  • the forwarding unit 60 is configured to send a result message returned by the bank-end front end to the application server.
  • the application server refers to a third-party application server that provides an enterprise-side front-end machine to an enterprise.
  • tasks issued by the enterprise will first enter the application server. It is then sent by the application server to the enterprise front end.
  • the tasks issued by the above-mentioned enterprises are tasks of various business operations such as the management and scheduling of bank accounts and funds issued by the enterprise through the financial system.
  • the above-mentioned bank-enterprise direct link task is that the enterprise initiates a request through the financial system, the request is sent to the application server, and the application server initiates the corresponding task to the enterprise-end front-end processor according to this request.
  • the bank-enterprise direct link task exists in the form of a message, and the task ID is only an identifier, and there is no task content to prevent the message of the bank-enterprise direct link task from being directly placed on the enterprise side.
  • the front-end machine occupies the running space of the enterprise-end front-end machine, which reduces the operating speed. Because the above-mentioned enterprise-side front-end machine can be connected to multiple bank-side front-end machines, there will be more direct bank-enterprise tasks of various types, and the packets of various bank-enterprise direct-connection tasks will be directly stacked on the enterprise-side front-end machine In the cache, it will greatly reduce the operating efficiency of the front end of the enterprise side, and even crash. Therefore, in this embodiment, the task ID is only placed in the cache of the enterprise-end front-end processor, which greatly reduces the cache space requirement of the enterprise-end front-end processor and improves the quality of the operating environment.
  • Thread pool threads are background threads. Each thread uses the default stack size, runs at the default priority, and is in a multithreaded apartment. If a thread is idle in managed code (such as waiting for an event), the thread pool inserts another worker thread to keep all processors busy. If all thread pool threads remain busy all the time, but the queue contains pending work, the thread pool will create another worker thread after a period of time, but the number of threads will never exceed the maximum. Threads that exceed the maximum can be queued, but they will not start until other threads have completed.
  • a specified number of threads are always maintained in the thread pool.
  • the task is obtained from the above cache queue. Because the cache queue is only a task ID, it is adjusted to the application server according to the task ID. Take the corresponding bank-enterprise direct mission.
  • the number of threads in the above thread pool can be configured when the enterprise-side front-end processor is configured, such as 5, 10, 20, etc., which can be configured according to specific needs.
  • the configuration information will include the corresponding The number of the bank-side front-end machine, the bank server IP corresponding to a type A bank, and so on, all of this information is configured when the enterprise-side front-end machine is installed and sent to the application server corresponding to the enterprise-side front-end machine. Therefore, the above application server will automatically write this information into the bank-enterprise direct connection task according to the request of the enterprise, so that the enterprise-end front-end processor can accurately connect to the corresponding bank-end front-end processor.
  • the forwarding unit 60 when the front end of the bank receives the direct bank-enterprise task, it will forward it to the corresponding bank server, and the bank server will retrieve the corresponding data generation result message and send it to the first bank.
  • the machine is set up to return to the enterprise-end front-end machine, and the enterprise-end front-end machine is forwarding to the application server, and the application server finally feeds back the result message to the financial software system of the enterprise.
  • the cache unit 20 includes:
  • An obtaining module 21 configured to obtain a task ID of the bank-enterprise direct link task
  • a judging module 22 configured to judge attributes of the task ID, where the attributes include transaction attributes and query attributes;
  • the cache module 23 is configured to place the task ID into a cache queue of a corresponding attribute according to a determination result.
  • the attribute of the task ID is generally determined by the request issued by the financial system of the enterprise, and may specifically include the transaction attribute and the query attribute.
  • the query attribute is the bank flow of the query enterprise, Account balance, payment status, and other corresponding attributes are requested, while transaction attributes are those corresponding to requests such as payments and transfers.
  • a transaction cache queue corresponding to the transaction attribute and a query cache queue corresponding to the query attribute are also provided.
  • a transaction thread pool corresponding to the transaction cache queue and a query thread pool corresponding to the query cache queue are also set.
  • Each task ID in the two cache queues is sorted and processed according to a preset priority, for example, the level of payment is higher than the level of querying the bank flow.
  • each task is provided with a type identifier, and the type identifier can be divided into 1-8 levels, and the highest level is 1, which represents emergency tasks and is given priority processing.
  • Various bank-enterprise direct tasks correspond to different type identifiers, and their corresponding task IDs have the same type identifier.
  • the foregoing financial data interaction device further includes:
  • a judging unit 101 configured to judge whether a UKey device corresponding to various types of banks is inserted into the enterprise-end front-end processor;
  • the first alarm unit 102 is configured to alarm if it is determined that UKey devices corresponding to various types of banks are not plugged into the front end of the enterprise.
  • the identifiers corresponding to the types of banks of the UKey devices inserted in each UKey interface are collected, and then the identifiers are compared with the identifiers representing various types of banks configured when the enterprise-side front-end processor is configured. Yes, if the collected logos fully cover the logos representing various types of banks configured when the enterprise-end front end is configured, it is determined that UKey devices corresponding to various types of banks are inserted into the enterprise-end front end. Otherwise, it will not be The type of bank corresponding to the covered identifier is extracted and sent to the relevant personnel of the enterprise to report the alarm.
  • the relevant personnel of the enterprise can take corresponding measures to forget the inserted UKey device or the insertion place is loose, which will cause the UKey device to have poor contact. Plug in, etc. to ensure the interaction between the business and the banks.
  • this judgment method has defects, the judgment speed will be faster.
  • the foregoing financial data interaction device further includes:
  • a heartbeat sending unit configured to send a heartbeat detection packet to detect a connection status with the application server
  • the second alarm unit is configured to issue an alarm message if the connection state is disconnected.
  • the enterprise front-end machine and the application server should be online for a long time, but because it is an electronic product, it will inevitably fail or upgrade. At this time, the enterprise front-end machine and the application server may lose the connection.
  • This method detects the connection status between the enterprise front end and the application server. When the connection between the two fails, an alarm message needs to be issued.
  • the bank-side front-end machine is sent to the bank's relevant management system by the bank-side front-end machine to inform the bank-side staff.
  • the bank-side staff can manually notify the corresponding staff of the enterprise-side that a disconnection failure has occurred.
  • the above-mentioned sending of the heartbeat detection packet can ensure that the financial person at the enterprise side knows whether the front-end processor of the enterprise side and the application server are disconnected, so as to timely process things that should be completed directly by the bank and enterprise.
  • the monitoring unit 10 includes:
  • the long-connection monitoring module 11 monitors whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task through a long connection.
  • the bank-enterprise direct connection task received by the front end of the enterprise may be continuous, the service is monitored using the long connection method, so that it will not be disconnected after each operation and processed next time. You can send data packets directly without establishing a TCP connection to maintain the efficiency of processing tasks.
  • the front end of the enterprise side and the application server use the BIO synchronous blocking mode for a long connection. Different bank-enterprise direct tasks cannot be performed at the same time, so they need to be performed in accordance with the order of instructions. One instruction can be executed before the next instruction can be executed. It cannot be executed asynchronously. Therefore, in this application, the front end of the enterprise uses the BIO synchronous blocking mode and the application server Make a long connection.
  • the foregoing financial data interaction device further includes:
  • a serialization unit is used to serialize the packets sent by the foregoing enterprise-end front-end machine and the application server to each other using Protocol Buffers.
  • Protocol Buffers It is a lightweight and efficient structured data storage format, which can be used for serialization of structured data, or serialization. It is very suitable for data storage or RPC data exchange format. Language-independent, platform-independent, and extensible serialization structure data format that can be used in communication protocols, data storage, etc., simply The main advantages of Protobuf are: simple and fast. This application uses GOOGLE's Protocol Buffers for serialization, which can improve the efficiency of packet encapsulation and transmission.
  • the enterprise-end front-end processor can directly connect with banks of different types with different types of banks. Function to ensure the normal use of each bank account.
  • the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached.
  • the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor Sex.
  • an embodiment of the present application further provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the computer design processor is used 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-readable instructions, and a database.
  • the memory provides an environment for operating systems and computer-readable instructions in a non-volatile storage medium.
  • the database of the computer equipment is used to store financial data interaction method programs and the like.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by a processor to implement a method of financial data interaction.
  • the processor executes the financial data interaction method, and uses an enterprise-end front-end processor to implement financial-data interaction between the enterprise-end financial system and the bank-side.
  • the enterprise-end front-end processor is provided with multiple UKey interfaces. Corresponding to a plurality of the UKey interfaces are configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks, and the steps of the method are: monitoring whether an application server of the enterprise-end front-end machine sends a bank If the task is directly connected to the enterprise, if yes, obtain the task ID of the bank-enterprise directly connected task and put the task ID into the corresponding cache queue; when the thread pool corresponding to the cache queue is obtained from the cache queue At the time of the task, the corresponding bank-enterprise direct link task is obtained from the application server according to the task ID; the bank-enterprise direct link task is analyzed to obtain the bank-side front-end processor corresponding to the bank-enterprise direct link task. Configuration
  • the step of obtaining the task ID of the bank-enterprise direct link task and putting the task ID into a corresponding cache queue includes: obtaining the task ID of the bank-enterprise direct link task; Determine the attributes of the task ID, where the attributes include transaction attributes and query attributes; and place the task ID in a cache queue of the corresponding attributes according to the determination result.
  • the method before the step of monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task, the method includes: judging whether or not UKey equipment corresponding to various types of banks is inserted into the enterprise-end front-end processor; If not, an alarm is issued.
  • the financial data interaction method further includes: sending a heartbeat detection packet to detect a connection status with the application server; and if the connection status is disconnected, sending an alarm message.
  • the step of monitoring whether the application server of the enterprise-side front-end processor sends a bank-enterprise direct connection task includes: monitoring whether the application server of the enterprise-side front-end processor sends a bank-enterprise through a long connection. Direct missions.
  • the enterprise-end front-end unit and the application server adopt a BIO synchronous blocking mode for a long connection.
  • the packets sent by the enterprise-end front-end unit and the application server to each other are serialized using Protocol Buffers.
  • FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • the enterprise-end front-end processor can perform bank-enterprise direct connection functions with multiple different types of banks.
  • the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached.
  • the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
  • An embodiment of the present application further provides a computer non-volatile readable storage medium, which stores computer-readable instructions.
  • a method for interacting financial data is implemented.
  • Machine to realize the financial data interaction between the enterprise-side financial system and the bank wherein the enterprise-end front-end machine is provided with multiple UKey interfaces, and the enterprise-side front-end machine corresponds to the plurality of UKey interfaces and is configured to be able to communicate with multiple Different types of banks' front-end processors complete financial data interaction; the method includes: monitoring whether the application server of the enterprise-end front-end processors sends bank-enterprise direct link tasks; if so, obtaining the bank-enterprise direct link tasks The task ID and put the task ID into the corresponding cache queue; when the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain a corresponding one from the application server according to the task ID The bank-enterprise direct link task; analyzing the bank-enterprise direct link task; analyzing the bank-ent
  • the enterprise-side front-end machine can perform direct bank-enterprise functions with multiple different types of banks to ensure Normal use of each bank account.
  • the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached.
  • the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
  • the step of the processor acquiring the task ID of the bank-enterprise direct link task and placing the task ID in a corresponding cache queue includes: acquiring the task of the bank-enterprise direct link task. ID; judging the attributes of the task ID, wherein the attributes include transaction attributes and query attributes; and placing the task ID in a cache queue of the corresponding attribute according to the judgment result.
  • the method before the step of the processor monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task, the method includes: determining whether a UKey corresponding to various types of banks is inserted into the enterprise-end front-end processor. Equipment; if not, alarm.
  • the processor further controls the front end of the enterprise to send a heartbeat detection packet to detect the connection status with the application server; if the connection status is disconnected, an alarm message is issued.
  • the step of the processor monitoring whether the application server of the enterprise-side front-end processor sends a bank-enterprise direct connection task includes: monitoring whether the application server of the enterprise-side front-end processor sends through a long connection. Bank-enterprise direct link mission.
  • the processor controls the enterprise-end front end and the application server to use the BIO synchronous blocking mode for a long connection.
  • the processor controls the packets sent by the enterprise front end and the application server to each other, and uses Protocol Buffers for serialization.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Provided are a financial data interaction method, an apparatus, a computer device and a storage medium. Since multiple UKey interfaces are set on an enterprise front-end machine, and corresponding configurations are implemented, the enterprise front-end machine can perform direct bank-enterprise connection functions with multiple different types of banks to ensure the normal use of each bank account. In order to ensure the stable operation of the enterprise front-end machine and the efficiency of operation, the configuration of a cache queue and a thread pool is set in the enterprise front-end machine to perform various tasks in an orderly manner; Further, only a task ID is cached in the cache queue, and when it's the turn of the task, the specific direct bank-enterprise connection task is retrieved from an application server according to the task ID to save the cache space, and further improve the operating speed and operation stability of the enterprise front-end machine.

Description

财务数据交互方法、装置、计算机设备和存储介质Financial data interaction method, device, computer equipment and storage medium
本申请要求于2018年7月2日提交中国专利局、申请号为2018107078768,申请名称为“财务数据交互方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed with the Chinese Patent Office on July 2, 2018, with an application number of 2018107078768, and the application name is "Methods, Devices, Computer Equipment, and Storage Media for Interactive Financial Data", the entire contents of which are hereby incorporated by reference. Incorporated in this application.
技术领域Technical field
本申请涉及到计算机领域,特别是涉及到一种财务数据交互方法、装置、计算机设备和存储介质。The present application relates to the field of computers, and in particular, to a method, an apparatus, a computer device, and a storage medium for interacting financial data.
背景技术Background technique
银企直联是一种新的网上银行系统与企业的财务系统在线直接联接的接入方式。银企直联通过因特网或专线连接方式,实现了银行和企业计算机系统的有机融合和平滑对接。同时,银企直联可以为企业在财务系统中开发和定制个性化功能提供支持,具有信息同步、高效简便、个性服务和安全可靠的鲜明特色。银企直联能够做到与企业计算机系统的对接,方便的完成企业系统的与银行有关的交易。Bank-enterprise direct connection is a new online banking system that connects directly to the corporate financial system. Bank-enterprise direct connection has realized the organic integration and smooth docking of banks and corporate computer systems through the Internet or dedicated line connection. At the same time, Bank-enterprise Direct Link can provide support for enterprises to develop and customize personalized functions in the financial system, with distinctive features of information synchronization, high efficiency and simplicity, personalized service, and safety and reliability. The bank-enterprise direct connection can be connected with the enterprise computer system and facilitate the completion of bank-related transactions in the enterprise system.
企业需要到对应的银行开启银企直联账号。当企业通过财务系统与银行进行财务数据交互时,需要在企业设置一个与银行端前置机匹配的企业端前置机,并在该企业端上插入对应的UKey,然后才能与对应的银行端前置机进行交互,这样,如果一个企业与不同的银行建立银企直联,则需要设置多个企业端前置机,与不同的银行进行交互时,选择不同的企业端前置机。即,传统的企业端前置机一个银行只能对接一个前置机,操作完成之后需要另外换一个前置机,并不能同时在一个前置机上对多家银行进行操作。The enterprise needs to open the bank-enterprise direct account at the corresponding bank. When an enterprise performs financial data interaction with a bank through the financial system, it is necessary to set up an enterprise-side front-end machine that matches the bank-side front-end machine in the enterprise, and insert the corresponding UKey on the enterprise side before it can communicate with the corresponding bank-side The front-end machine interacts. In this way, if an enterprise establishes a bank-enterprise direct connection with different banks, it is necessary to set up multiple enterprise-end front-end machines. When interacting with different banks, select different enterprise-end front-end machines. That is, the traditional front-end bank of an enterprise can only connect one front-end bank. After the operation is completed, another front-end bank needs to be replaced, and multiple banks cannot be operated on one front-end bank at the same time.
技术问题technical problem
本申请的主要目的为提供一种方便企业与不同的银行进行财务数据交互时,无需转换企业端前置机等操作的财务数据交互方法、装置、计算机设备和存储介质。The main purpose of this application is to provide a financial data interaction method, device, computer equipment, and storage medium that facilitates the interaction of financial data between enterprises and different banks, without the need to convert the operation of the front end of the enterprise.
技术解决方案Technical solutions
为了实现上述发明目的,本申请提出一种财务数据交互方法,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述方法,包括:In order to achieve the above-mentioned object of the invention, the present application proposes a method for financial data interaction, which uses an enterprise-end front-end to implement financial-data interaction between the enterprise-end financial system and the bank, wherein the enterprise-end front-end is provided with multiple UKey interfaces, The enterprise-end front-end processor corresponding to a plurality of the UKey interfaces is configured to complete financial data interaction with a plurality of bank-end front-end processors of different types of banks; the method includes:
监听所述企业端前置机的应用服务器是否发送银企直联任务;Monitoring whether the application server of the front end of the enterprise sends a bank-enterprise direct connection task;
若是,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;If yes, obtain the task ID of the bank-enterprise direct link task, and place the task ID in the corresponding cache queue;
当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;When the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct task from the application server according to the task ID;
解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;Analyze the bank-enterprise direct link task to obtain configuration information of the bank-side front-end processor corresponding to the bank-enterprise direct link task;
根据所述配置信息将所述银企直联任务发送给所述银行端前置机;Sending the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information;
将所述银行端前置机返回的结果报文发送给所述应用服务器。And sending a result message returned by the bank-side front end to the application server.
本申请还提供一种财务数据交互装置,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述装置,包括:This application also provides a financial data interaction device, which uses an enterprise-end front-end to implement financial data interaction between the enterprise-side financial system and the bank-side, wherein the enterprise-end front-end is provided with multiple UKey interfaces, and the enterprise-end front-end The set-up corresponds to a plurality of the UKey interfaces configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks; the device includes:
监听单元,用于监听所述企业端前置机的应用服务器是否发送银企直联任务;A monitoring unit, configured to monitor whether an application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task;
缓存单元,用于若监听单元监听到所述应用服务器发送的银企直联任务,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;A cache unit, configured to: if the monitoring unit monitors the bank-enterprise direct link task sent by the application server, obtain a task ID of the bank-enterprise direct link task, and place the task ID in a corresponding cache queue;
获取单元,用于当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;An obtaining unit, configured to, when the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct task from the application server according to the task ID;
解析单元,用于解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;An analysis unit, configured to analyze the bank-enterprise direct link task to obtain configuration information of a bank-side front-end processor corresponding to the bank-enterprise direct link task;
发送单元,用于根据所述配置信息将所述银企直联任务发送给所述银行端前置机;A sending unit, configured to send the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information;
转发单元,用于将所述银行端前置机返回的结果报文发送给所述应用服务器。The forwarding unit is configured to send a result message returned by the bank-side front end to the application server.
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述任一项所述方法的步骤。The present application further provides a computer device including a memory and a processor, where the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, implements the steps of any of the foregoing methods.
本申请还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述任一项所述的方法的步骤。The present application also provides a computer non-volatile readable storage medium having computer-readable instructions stored thereon, which are executed by a processor to implement the steps of the method according to any one of the foregoing.
有益效果Beneficial effect
本申请的财务数据交互方法、装置、计算机设备和存储介质,因为在企业端前置机上设置了多个UKey接口,并进行了对应的配置,所以企业端前置机能够与多个不同种类的银行进行银企直联功能,以保证各个银行账户的正常使用。为了保证企业端前置机的运行稳定,以及运行的效率,则将在企业端前置机中设置缓存队列和线程池的配置,以有条不紊地进行各种任务的执行;进一步地,缓存队列中只缓存任务ID,当轮到该任务的时候,再根据任务ID到应用服务器中调取具体的银企直联任务,以节省缓存空间,进一步地提高企业端前置机的运行速率和运行稳定性。The financial data interaction method, device, computer equipment and storage medium of this application, because multiple UKey interfaces are set on the enterprise-end front-end processor and corresponding configurations are performed, the enterprise-end front-end processor can communicate with multiple different types of The bank performs the bank-enterprise direct connection function to ensure the normal use of each bank account. In order to ensure the stable operation and efficiency of the enterprise-side front-end processor, the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached. When it is the task's turn, the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1 为本发明一实施例的财务数据交互方法的流程示意图;FIG. 1 is a schematic flowchart of a financial data interaction method according to an embodiment of the present invention;
图2 为本发明一实施例的财务数据交互方法的步骤S2的具体流程示意图;FIG. 2 is a detailed flowchart of step S2 of a financial data interaction method according to an embodiment of the present invention; FIG.
图3 为本发明一实施例的财务数据交互方法的流程示意图;3 is a schematic flowchart of a financial data interaction method according to an embodiment of the present invention;
图4 为本发明一实施例的财务数据交互装置的结构示意框图;4 is a schematic structural block diagram of a financial data interaction device according to an embodiment of the present invention;
图5 为本发明一实施例的缓存单元的结构示意框图;5 is a schematic block diagram of a structure of a cache unit according to an embodiment of the present invention;
图6 为本发明一实施例的财务数据交互装置的结构示意框图;FIG. 6 is a schematic structural block diagram of a financial data interaction device according to an embodiment of the present invention; FIG.
图7 为本发明一实施例的监听单元的结构示意框图;7 is a schematic block diagram of a structure of a monitoring unit according to an embodiment of the present invention;
图8 为本发明一实施例的计算机设备的结构示意框图。FIG. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention.
本发明的最佳实施方式Best Mode of the Invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
参照图1,本申请实施例提供一种财务数据交互方法,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互。Referring to FIG. 1, an embodiment of the present application provides a method for financial data interaction, which uses an enterprise-end front-end machine to implement financial-data interaction between an enterprise-side financial system and a bank-side, wherein the enterprise-end front-end machine is provided with multiple UKey interfaces. The enterprise front-end processor corresponds to a plurality of the UKey interfaces and is configured to complete financial data interaction with a plurality of different bank-end front-end processors.
上述的企业端前置机是指设置在企业端的前置机,是企业端财务系统与银行端进行银企直联时的中间设备。上述企业端前置机被配置为可以与多个不同银行种类的银行端前置机完成数据交互,配置过程为,当企业安装企业端前置机时,企业端前置机有一个管理员界面,在预设的界面内输入指定的配置信息,该配置信息包括企业ID、企业端前置机编号、银行服务器IP、银行端口、银行的银企直联编号、银行端前置机的版本号,银行大类等企业财务系统与银行完成银企直联的必要参数,还会配置线程数大小配置等,以实现多线程任务的处理;然后将配置结果发送给企业端前置机对应的应用服务器。也就是,配置申请通过的银企直联的账号及其相关信息,当企业需要登录各银企直联的账户获取在其对应银行的数据时(交易数据、查询数据等),只需要在企业端前置机上插入对应的UKey(一种通过USB直接与计算机相连、具有密码验证功能、可靠高速的小型存储设备)即可,实现一个企业端前置机与多个不同类银行的银行端前置机连接,企业统一集中管理用户的银行UKey,无需做银行的切换操作。通过企业端前置机可以方便地获取企业的每个银企直联账户的账户信息、交易流水信息、余额信息,并且可以进行相关的支付、归集、调拨等相关操作。上述银行大类是指不同的银行,比如工商银行与建设银行属于两个不同的银行大类等,即使用不同前置机的银行被认为是不同的银行大类。The above-mentioned enterprise-side front-end machine refers to the front-end machine set on the enterprise side, and is an intermediate device when the enterprise-side financial system is directly connected with the bank-bank-enterprise. The foregoing enterprise-side front-end machine is configured to complete data interaction with a plurality of different types of bank-side front-end machines. The configuration process is that when an enterprise-side front-end machine is installed, the enterprise-side front-end machine has an administrator interface. Enter the specified configuration information in the preset interface. The configuration information includes the enterprise ID, the enterprise front-end processor number, the bank server IP, the bank port, the bank-enterprise direct connection number of the bank, and the bank-end front-end processor version number. , Banks and other corporate financial systems and banks complete the necessary parameters for direct bank-enterprise integration, and configure the number of threads to configure multi-threaded tasks; then send the configuration results to the application corresponding to the enterprise front-end processor server. That is, configure the bank-enterprise direct account number and related information that are applied for. When an enterprise needs to log in to each bank-enterprise direct account to obtain data (transaction data, query data, etc.) in its corresponding bank, it only needs to be in the enterprise. The corresponding UKey (a small storage device directly connected to the computer via USB, with password verification function, and reliable and high speed) can be inserted into the front-end machine, which can realize an enterprise-side front-end machine and a number of different types of banks. Set-up connection, the enterprise centrally and centrally manages the user's bank UKey without the need for bank switching operations. The front-end of the enterprise can easily obtain the account information, transaction flow information, and balance information of each bank-enterprise direct account of the enterprise, and can perform related operations such as payment, collection, and transfer. The above major banks refer to different banks. For example, ICBC and China Construction Bank belong to two different major banks, that is, banks using different front-end processors are considered to be different major banks.
上述财务数据交互方法,包括步骤:The above financial data interaction method includes steps:
S1、监听所述企业端前置机的应用服务器是否发送银企直联任务;S1. Monitor whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task;
S2若是,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;S2: If yes, obtain the task ID of the bank-enterprise direct task, and place the task ID in the corresponding cache queue;
S3、当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;S3. When the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct connection task from the application server according to the task ID;
S4、解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;S4: Analyze the bank-enterprise direct link task to obtain configuration information of the bank-side front-end processor corresponding to the bank-enterprise direct link task;
S5、根据所述配置信息将所述银企直联任务发送给所述银行端前置机;S5. Send the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information;
S6、将所述银行端前置机返回的结果报文发送给所述应用服务器。S6. Send a result message returned by the bank-side front end to the application server.
如上述步骤S1所述,上述应用服务器是指给企业提供企业端前置机的第三方的应用服务器,其作为企业端前置机的管理后台,企业发布的任务会先进入到上述应用服务器,然后由应用服务器发送给企业端前置机。上述企业发布的任务是企业通过财务系统发出的对银行账户以及资金的管理和调度等各项业务操作的任务。上述的银企直联任务即为企业通过财务系统发起一个请求,该请求发送给上述应用服务器,应用服务器根据这个请求向企业端前置机发起的对应的任务。As described in step S1 above, the application server refers to a third-party application server that provides the enterprise-side front-end processor to the enterprise. As the management background of the enterprise-side front-end processor, tasks issued by the enterprise will first enter the application server. It is then sent by the application server to the enterprise front end. The tasks issued by the above-mentioned enterprises are tasks of various business operations such as the management and scheduling of bank accounts and funds issued by the enterprise through the financial system. The above-mentioned bank-enterprise direct link task is that the enterprise initiates a request through the financial system, the request is sent to the application server, and the application server initiates the corresponding task to the enterprise-end front-end processor according to this request.
如上述步骤S2所述,上述银企直联任务是以报文的形式存在的,上述任务ID只是一个标识,并没有任务内容,以防止将银企直联任务的报文直接放到企业端前置机中,占用企业端前置机的运行空间,而降低运行速率。因为上述企业端前置机可以连接多个银行端前置机,所以各种不同的银企直联任务会较多,直接将各种银企直联任务的报文堆积到企业端前置机的缓存中,会大大地降低企业端前置机的运行效率,甚至崩溃。所以,本实施例中只是将任务ID放入到企业端前置机的缓存中,大大地降低了企业端前置机对缓存空间的要求,提高运行环境质量。As described in step S2 above, the above-mentioned bank-enterprise direct link task exists in the form of a message. The above-mentioned task ID is only an identifier and has no task content, so as to prevent the message of the bank-enterprise direct link task from being directly placed on the enterprise side The front-end machine occupies the running space of the enterprise-end front-end machine, which reduces the operating speed. Because the above-mentioned enterprise-side front-end machine can be connected to multiple bank-side front-end machines, there will be more direct bank-enterprise tasks of various types, and the packets of various bank-enterprise direct-connection tasks will be directly stacked on the enterprise-side front-end machine. In the cache, it will greatly reduce the operating efficiency of the front end of the enterprise side, and even crash. Therefore, in this embodiment, the task ID is only placed in the cache of the enterprise-end front-end processor, which greatly reduces the cache space requirement of the enterprise-end front-end processor and improves the quality of the operating environment.
如上述步骤S3所述,上述线程池是一种多线程处理形式,处理过程中将任务添加到队列,然后在创建线程后自动启动这些任务。线程池线程都是后台线程。每个线程都使用默认的堆栈大小,以默认的优先级运行,并处于多线程单元中。如果某个线程在托管代码中空闲(如正在等待某个事件),则线程池将插入另一个辅助线程来使所有处理器保持繁忙。如果所有线程池线程都始终保持繁忙,但队列中包含挂起的工作,则线程池将在一段时间后创建另一个辅助线程,但线程的数目永远不会超过最大值。超过最大值的线程可以排队,但他们要等到其它线程完成后才启动。本申请中,线程池中始终保持指定数量的线程工作,当某个线程空闲时,则从上述缓存队列中获取任务,因为缓存队列中只是任务ID,所以会根据任务ID到上述应用服务器中调取对应的银企直联任务。上述线程池中的线程数量可以配置企业端前置机的时候配置,如配置5个,10个,20个等,可以根据具体的需求进行配置。As described in step S3 above, the above thread pool is a form of multi-threaded processing. Tasks are added to the queue during processing, and then these tasks are automatically started after the threads are created. Thread pool threads are background threads. Each thread uses the default stack size, runs at the default priority, and is in a multithreaded apartment. If a thread is idle in managed code (such as waiting for an event), the thread pool inserts another worker thread to keep all processors busy. If all thread pool threads remain busy all the time, but the queue contains pending work, the thread pool will create another worker thread after a period of time, but the number of threads will never exceed the maximum. Threads that exceed the maximum can be queued, but they will not start until other threads have completed. In this application, a specified number of threads are always maintained in the thread pool. When a thread is idle, the task is obtained from the above cache queue. Because the cache queue is only a task ID, it is adjusted to the application server according to the task ID. Take the corresponding bank-enterprise direct mission. The number of threads in the above thread pool can be configured when the enterprise-side front-end processor is configured, such as 5, 10, 20, etc., which can be configured according to specific needs.
如上述步骤S4和S5所述,因为上述银企直联任务是有针对性的,比如调用a类银行对应的银行账户的流水账单,那么配置信息中会包含有该a类银行对应的银行端前置机的编号、a类银行对应的银行服务器IP等,这些信息都是安装企业端前置机时配置好并发给企业端前置机对应的应用服务器中的信息。所以,上述应用服务器会根据企业的请求,自动将这些信息写入到银企直联任务中,以便于企业端前置机准确地连接对应的银行端前置机。As described in the above steps S4 and S5, because the above-mentioned bank-enterprise direct connection task is targeted, such as calling the bank statement of the bank account corresponding to the type a bank, the configuration information will include the bank end corresponding to the type a bank The serial number of the front-end processor and the IP of the bank server corresponding to the type a bank are all information in the application server that is configured when the front-end processor of the enterprise is installed and sent to the corresponding front-end server of the enterprise. Therefore, the above application server will automatically write this information into the bank-enterprise direct connection task according to the request of the enterprise, so that the enterprise-end front-end processor can accurately connect to the corresponding bank-end front-end processor.
如上述步骤S6所述,当银行端前置机接收到银企直联任务后,会转发给对应的银行服务器,银行服务器会调取对应的数据生成结果报文,并发送给第一银行前置机,以返回给企业端前置机,企业端前置机在转发给应用服务器,应用服务器将所述结果报文最终反馈给企业的财务软件系统。As described in step S6 above, when the front end of the bank receives the direct bank-enterprise task, it will forward it to the corresponding bank server, and the bank server will retrieve the corresponding data generation result message and send it to the first bank. The machine is set up to return to the enterprise-end front-end machine, and the enterprise-end front-end machine is forwarding to the application server, and the application server finally feeds back the result message to the financial software system of the enterprise.
参照图2,在一个实施例中,上述获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中的步骤S2,包括:Referring to FIG. 2, in one embodiment, the step S2 of obtaining the task ID of the bank-enterprise direct link task and putting the task ID into a corresponding cache queue includes:
S21、获取所述银企直联任务的任务ID;S21: Obtain a task ID of the bank-enterprise direct link task;
S22、判断所述任务ID的属性,其中属性包括交易属性、查询属性;S22. Determine the attributes of the task ID, where the attributes include transaction attributes and query attributes;
S23、根据判断结果将所述任务ID放入到对应属性的缓存队列中。S23. Put the task ID into a cache queue of a corresponding attribute according to the determination result.
如上述步骤S21、S22、S23所述,任务ID的属性一般由企业端的财务系统发出的请求而定,具体可包括交易属性、查询属性,查询属性即为查询企业的银行流水、账户余额、支付状态等请求对应的属性,而交易属性即为支付、转账等请求对应的属性。企业端前置机中设置对应交易属性的交易缓存队列,以及对应查询属性的查询缓存队列,同样设置有对应交易缓存队列的交易线程池,对应查询缓存队列的查询线程池。两个缓存队列中的各任务ID按预设的优先级进行排序处理,比如,支付的级别高于查询银行流水的级别等。具体地,每个任务会设置有一个类型标识,类型标识可分为1-8个级别,为1的话等级最高,代表紧急任务,优先处理。各种银企直联任务对应不同的类型标识,其对应的任务ID则具有同样的类型标识。As described in the above steps S21, S22, and S23, the attributes of the task ID are generally determined by the request issued by the financial system of the enterprise. They can include transaction attributes and query attributes. The query attributes are the query of the company's bank flow, account balance, and payment. The attributes corresponding to requests such as status, and the transaction attributes are the attributes corresponding to requests such as payment and transfer. In the front end of the enterprise, a transaction cache queue corresponding to the transaction attribute and a query cache queue corresponding to the query attribute are also provided. A transaction thread pool corresponding to the transaction cache queue and a query thread pool corresponding to the query cache queue are also set. Each task ID in the two cache queues is sorted and processed according to a preset priority, for example, the level of payment is higher than the level of querying the bank flow. Specifically, each task is provided with a type identifier, and the type identifier can be divided into 1-8 levels, and the highest level is 1, which represents emergency tasks and is given priority processing. Various bank-enterprise direct tasks correspond to different type identifiers, and their corresponding task IDs have the same type identifier.
参照图3,在一个实施例中,所上述监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤S1之前,包括:Referring to FIG. 3, in an embodiment, before the step S1 of monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task, the method includes:
S101、判断所述企业端前置机上是否插入对应各种类银行的UKey设备;S101. Determine whether a UKey device corresponding to various types of banks is inserted into the enterprise-end front-end processor;
S102、若否,则报警。S102. If not, an alarm is issued.
如上述步骤S101、S102所述,采集各UKey接口插入的UKey设备的对应其银行种类的标识,然后将所述标识与配置企业端前置机时配置的代表各类银行的标识进行比对,如果采集到的各标识全面覆盖配置企业端前置机时配置的代表各类银行的标识时,则判定企业端前置机上插入对应各种类银行的UKey设备,可以执行后续如步骤S1等步骤,否者,将未被覆盖的标识对应的银行种类提取出来,并发送给企业的相关人员以报警,此时企业的相关人员可以进行相应的处理,将忘记插入的UKey设备或插入处松动而导致UKey设备接触不良的重新插入等,以保证企业与各银行之间的交互。在另一实施例中,还可以判断获取到的UKey设备的标识与配置企业端前置机时配置的代表各类银行的标识(不重复)的数量是否相同,因为一个银行只会发一个UKey给企业,所以当数量相同时候,基本可以判定企业端前置机上插入对应各种类银行的UKey设备,此种判断方法虽然存在缺陷,但是判断速度会更快。As described in steps S101 and S102 above, collect the identifier of the UKey device corresponding to the type of bank inserted in each UKey interface, and then compare the identifier with the identifier representing various types of banks configured when the front end of the enterprise is configured. If the collected logos completely cover the logos representing various types of banks configured when the enterprise-end front-end is configured, it is determined that UKey devices corresponding to various types of banks are inserted into the enterprise-end front-end, and subsequent steps such as step S1 can be performed. If not, extract the type of bank corresponding to the uncovered logo and send it to the relevant personnel of the enterprise to report the alarm. At this time, the relevant personnel of the enterprise can perform corresponding processing and forget the inserted UKey device or the insertion place will be loose. Re-insertion of UKey equipment caused by poor contact to ensure the interaction between the enterprise and the banks. In another embodiment, it is also possible to determine whether the number of the obtained UKey device identification is the same as the identification number (not duplicate) representing various types of banks configured when the enterprise front end is configured, because a bank will only issue one UKey For enterprises, when the number is the same, it can basically be judged that UKey equipment corresponding to various types of banks is inserted into the front end of the enterprise. Although this judgment method has defects, the judgment speed will be faster.
在一个实施例中,上述财务数据交互方法还包括:发送心跳检测包,检测与所述应用服务器的连接状态;若连接状态为断开,则发出警报信息。In one embodiment, the financial data interaction method further includes: sending a heartbeat detection packet to detect a connection status with the application server; and if the connection status is disconnected, sending an alarm message.
理论上,企业端前置机和应用服务器应该长期在线,但是因为是电子产品,难免会出现故障或者升级等处理,此时企业端前置机与应用服务器可能断掉连接,那么通过心跳检测的方式检测企业端前置机和应用服务器的连接状态,当两者连接失败,则需要发出警报信息。发出警报信息包括两种,第一种,发送邮件等信息给企业的相关人员,和/或发送给提供企业端前置机的第三方的相关人员;第二种,发送指定的信息给与其连接的银行端前置机,并由银行端前置机发送给银行的相关管理系统,以告知银行端的工作人员,银行端的工作人员可以人工告知企业端相应人员发生了断连接的故障等。上述发送心跳检测包,可以保障企业端的财务人了解企业端前置机和应用服务器是否断开连接,从而及时处理原本需要银企直联完成的事物。Theoretically, the enterprise front-end machine and the application server should be online for a long time, but because it is an electronic product, it will inevitably fail or upgrade. At this time, the enterprise front-end machine and the application server may lose the connection. This method detects the connection status between the enterprise front end and the application server. When the connection between the two fails, an alarm message needs to be issued. There are two types of alarm messages. The first is to send information such as emails to relevant personnel of the enterprise, and / or to the relevant personnel of the third party who provides the front end of the enterprise. The second is to send specified information to connect with it. The bank-side front-end machine is sent to the bank's relevant management system by the bank-side front-end machine to inform the bank-side staff. The bank-side staff can manually notify the corresponding staff of the enterprise-side that a disconnection failure has occurred. The above-mentioned sending of the heartbeat detection packet can ensure that the financial person at the enterprise side knows whether the front-end processor of the enterprise side and the application server are disconnected, so as to timely process things that should be completed directly by the bank and enterprise.
在一个实施例中,上述监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤S1,包括:In one embodiment, the above-mentioned step S1 of monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task includes:
S11、通过长连接的方式监听所述企业端前置机的应用服务器是否发送银企直联任务。S11. Monitor whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task through a long connection.
如上述步骤S11所述,因为企业端前置机接收到的银企直联任务可能是连续的,所以使用长连接的方式监听服务,使每个操作完后都不断开,下次处理时直接发送数据包就可以,不用建立TCP(Transmission Control Protocol 传输控制协议)连接,以保持处理任务的效率。本实施例中,企业端前置机与应用服务器采用BIO(block input output)同步阻塞模式进行长连接。不同的银企直联任务不能够同时进行,所以需要按照指令顺序进行,一个指令执行完才能执行下一个指令,不能异步执行,所以本申请中企业端前置机采用BIO同步阻塞模式与应用服务器进行长连接。As described in step S11 above, because the bank-enterprise direct connection task received by the front-end server of the enterprise may be continuous, the service is monitored by using a long connection method, so that each operation is not disconnected, and the next time it is processed directly It is sufficient to send data packets without establishing a TCP (Transmission Control Protocol) connection to maintain the efficiency of processing tasks. In this embodiment, the front end of the enterprise side and the application server use the block input output (BIO) synchronous blocking mode for a long connection. Different bank-enterprise direct tasks cannot be performed at the same time, so they need to be performed in accordance with the order of instructions. One instruction can be executed before the next instruction can be executed. It cannot be executed asynchronously. Therefore, in this application, the front end of the enterprise uses the BIO synchronous blocking mode and the application server Make a long connection.
在一个实施例,上述企业端前置机与应用服务器相互发送的报文,采用Protocol Buffers进行序列化。In one embodiment, the messages sent by the enterprise front end and the application server are serialized using Protocol Buffers.
Protocol Buffers 是一种轻便高效的结构化数据存储格式,可以用于结构化数据串行化,或者说序列化。它很适合做数据存储或 RPC 数据交换格式。可用于通讯协议、数据存储等领域的语言无关、平台无关、可扩展的序列化结构数据格式,简单说来 Protobuf 的主要优点就是:简单,快。本申请采用GOOGLE(谷歌)的Protocol Buffers进行序列化,可以提高报文封装和发送的效率。Protocol Buffers It is a lightweight and efficient structured data storage format, which can be used for serialization of structured data, or serialization. It is very suitable for data storage or RPC data exchange format. Language-independent, platform-independent, and extensible serialization structure data format that can be used in communication protocols, data storage, etc., simply The main advantages of Protobuf are: simple and fast. This application uses GOOGLE's Protocol Buffers for serialization, which can improve the efficiency of message packaging and sending.
本申请实施例的财务数据交互方法,因为在企业端前置机上设置了多个UKey接口,并进行了对应的配置,所以企业端前置机能够与多个不同种类的银行进行银企直联功能,以保证各个银行账户的正常使用。为了保证企业端前置机的运行稳定,以及运行的效率,则将在企业端前置机中设置缓存队列和线程池的配置,以有条不紊地进行各种任务的执行;进一步地,缓存队列中只缓存任务ID,当轮到该任务的时候,再根据任务ID到应用服务器中调取具体的银企直联任务,以节省缓存空间,进一步地提高企业端前置机的运行速率和运行稳定性。In the financial data interaction method of the embodiment of the present application, since multiple UKey interfaces are set on the enterprise-end front-end unit and corresponding configurations are performed, the enterprise-side front-end unit can directly connect with banks of different types with different types of banks Function to ensure the normal use of each bank account. In order to ensure the stable operation and efficiency of the enterprise-side front-end processor, the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached. When it is the task's turn, the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
参照图4,本申请实施例提供一种财务数据交互装置,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互。Referring to FIG. 4, an embodiment of the present application provides a financial data interaction device, which uses an enterprise-end front-end processor to implement financial-data interaction between an enterprise-end financial system and a bank-side, wherein the enterprise-end front-end processor is provided with multiple UKey interfaces. The enterprise front-end processor corresponds to a plurality of the UKey interfaces and is configured to complete financial data interaction with a plurality of different bank-end front-end processors.
上述的企业端前置机是指设置在企业端的前置机,是企业端财务系统与银行端进行银企直联时的中间设备。上述企业端前置机被配置为可以与多个不同银行种类的银行端前置机完成数据交互,配置过程为,当企业安装企业端前置机时,企业端前置机有一个管理员界面,在预设的界面内输入指定的配置信息,该配置信息包括企业ID、企业端前置机编号、银行服务器IP、银行端口、银行的银企直联编号、银行端前置机的版本号,银行大类等企业财务系统与银行完成银企直联的必要参数,还会配置线程数大小配置等,以实现多线程任务的处理;然后将配置结果发送给企业端前置机对应的应用服务器。也就是,配置申请通过的银企直联的账号及其相关信息,当企业需要登录各银企直联的账户获取在其对应银行的数据时(交易数据、查询数据等),只需要在企业端前置机上插入对应的UKey即可,实现一个企业端前置机与多个不同类银行的银行端前置机连接,企业统一集中管理用户的银行UKey,无需做银行的切换操作。通过企业端前置机可以方便地获取企业的每个银企直联账户的账户信息、交易流水信息、余额信息,并且可以进行相关的支付、归集、调拨等相关操作。上述银行大类是指不同的银行,比如工商银行与建设银行属于两个不同的银行大类等,即使用不同前置机的银行被认为是不同的银行大类。The above-mentioned enterprise-side front-end machine refers to the front-end machine set on the enterprise side, and is an intermediate device when the enterprise-side financial system is directly connected with the bank-bank-enterprise. The foregoing enterprise-side front-end machine is configured to complete data interaction with a plurality of different types of bank-side front-end machines. The configuration process is that when an enterprise-side front-end machine is installed, the enterprise-side front-end machine has an administrator interface. Enter the specified configuration information in the preset interface. The configuration information includes the enterprise ID, the enterprise front-end processor number, the bank server IP, the bank port, the bank-enterprise direct connection number of the bank, and the bank-end front-end processor version number. , Banks and other corporate financial systems and banks complete the necessary parameters for direct bank-enterprise integration, and configure the number of threads to configure multi-threaded tasks; then send the configuration results to the application corresponding to the enterprise front-end processor server. That is, configure the bank-enterprise direct account number and related information that are applied for. When an enterprise needs to log in to each bank-enterprise direct account to obtain data (transaction data, query data, etc.) in its corresponding bank, it only needs to be in the enterprise. The corresponding UKey can be inserted into the front-end machine, and an enterprise-side front-end machine can be connected to multiple front-end machines of different types of banks. The enterprise centrally manages the user's bank UKey, without the need for bank switching operations. The front-end of the enterprise can easily obtain the account information, transaction flow information, and balance information of each bank-enterprise direct account of the enterprise, and can perform related operations such as payment, collection, and transfer. The above major banks refer to different banks. For example, ICBC and China Construction Bank belong to two different major banks, that is, banks using different front-end processors are considered to be different major banks.
上述财务数据交互装置,包括步骤:The above financial data interaction device includes steps:
监听单元10,用于监听所述企业端前置机的应用服务器是否发送银企直联任务;The monitoring unit 10 is configured to monitor whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task;
缓存单元20,用于若监听单元监听到所述应用服务器发送的银企直联任务,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;The cache unit 20 is configured to: if the monitoring unit monitors the bank-enterprise direct link task sent by the application server, obtain a task ID of the bank-enterprise direct link task, and place the task ID in a corresponding cache queue ;
获取单元30,用于当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;An obtaining unit 30, configured to obtain a corresponding bank-enterprise direct task from the application server according to the task ID when the thread pool corresponding to the cache queue acquires a task from the cache queue;
解析单元40,用于解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;An analysis unit 40 is configured to analyze the bank-enterprise direct link task to obtain configuration information of a bank-side front-end processor corresponding to the bank-enterprise direct link task;
发送单元50,用于根据所述配置信息将所述银企直联任务发送给所述银行端前置机;A sending unit 50, configured to send the bank-enterprise direct connection task to the bank-side front-end processor according to the configuration information;
转发单元60,用于将所述银行端前置机返回的结果报文发送给所述应用服务器。The forwarding unit 60 is configured to send a result message returned by the bank-end front end to the application server.
在上述监听单元10中,上述应用服务器是指给企业提供企业端前置机的第三方的应用服务器,其作为企业端前置机的管理后台,企业发布的任务会先进入到上述应用服务器,然后由应用服务器发送给企业端前置机。上述企业发布的任务是企业通过财务系统发出的对银行账户以及资金的管理和调度等各项业务操作的任务。上述的银企直联任务即为企业通过财务系统发起一个请求,该请求发送给上述应用服务器,应用服务器根据这个请求向企业端前置机发起的对应的任务。In the monitoring unit 10, the application server refers to a third-party application server that provides an enterprise-side front-end machine to an enterprise. As an application background of the enterprise-side front-end machine, tasks issued by the enterprise will first enter the application server. It is then sent by the application server to the enterprise front end. The tasks issued by the above-mentioned enterprises are tasks of various business operations such as the management and scheduling of bank accounts and funds issued by the enterprise through the financial system. The above-mentioned bank-enterprise direct link task is that the enterprise initiates a request through the financial system, the request is sent to the application server, and the application server initiates the corresponding task to the enterprise-end front-end processor according to this request.
在上述缓存单元20中,上述银企直联任务是以报文的形式存在的,上述任务ID只是一个标识,并没有任务内容,以防止将银企直联任务的报文直接放到企业端前置机中,占用企业端前置机的运行空间,而降低运行速率。因为上述企业端前置机可以连接多个银行端前置机,所以各种不同的银企直联任务会较多,直接将各种银企直联任务的报文堆积到企业端前置机的缓存中,会大大地降低企业端前置机的运行效率,甚至崩溃。所以,本实施例中只是将任务ID放入到企业端前置机的缓存中,大大地降低了企业端前置机对缓存空间的要求,提高运行环境质量。In the buffer unit 20, the bank-enterprise direct link task exists in the form of a message, and the task ID is only an identifier, and there is no task content to prevent the message of the bank-enterprise direct link task from being directly placed on the enterprise side. The front-end machine occupies the running space of the enterprise-end front-end machine, which reduces the operating speed. Because the above-mentioned enterprise-side front-end machine can be connected to multiple bank-side front-end machines, there will be more direct bank-enterprise tasks of various types, and the packets of various bank-enterprise direct-connection tasks will be directly stacked on the enterprise-side front-end machine In the cache, it will greatly reduce the operating efficiency of the front end of the enterprise side, and even crash. Therefore, in this embodiment, the task ID is only placed in the cache of the enterprise-end front-end processor, which greatly reduces the cache space requirement of the enterprise-end front-end processor and improves the quality of the operating environment.
在上述获取单元30中,上述线程池是一种多线程处理形式,处理过程中将任务添加到队列,然后在创建线程后自动启动这些任务。线程池线程都是后台线程。每个线程都使用默认的堆栈大小,以默认的优先级运行,并处于多线程单元中。如果某个线程在托管代码中空闲(如正在等待某个事件),则线程池将插入另一个辅助线程来使所有处理器保持繁忙。如果所有线程池线程都始终保持繁忙,但队列中包含挂起的工作,则线程池将在一段时间后创建另一个辅助线程,但线程的数目永远不会超过最大值。超过最大值的线程可以排队,但他们要等到其它线程完成后才启动。本申请中,线程池中始终保持指定数量的线程工作,当某个线程空闲时,则从上述缓存队列中获取任务,因为缓存队列中只是任务ID,所以会根据任务ID到上述应用服务器中调取对应的银企直联任务。上述线程池中的线程数量可以配置企业端前置机的时候配置,如配置5个,10个,20个等,可以根据具体的需求进行配置。In the above obtaining unit 30, the above thread pool is a multi-threaded processing form, and tasks are added to the queue during the processing, and then these tasks are automatically started after the threads are created. Thread pool threads are background threads. Each thread uses the default stack size, runs at the default priority, and is in a multithreaded apartment. If a thread is idle in managed code (such as waiting for an event), the thread pool inserts another worker thread to keep all processors busy. If all thread pool threads remain busy all the time, but the queue contains pending work, the thread pool will create another worker thread after a period of time, but the number of threads will never exceed the maximum. Threads that exceed the maximum can be queued, but they will not start until other threads have completed. In this application, a specified number of threads are always maintained in the thread pool. When a thread is idle, the task is obtained from the above cache queue. Because the cache queue is only a task ID, it is adjusted to the application server according to the task ID. Take the corresponding bank-enterprise direct mission. The number of threads in the above thread pool can be configured when the enterprise-side front-end processor is configured, such as 5, 10, 20, etc., which can be configured according to specific needs.
在上述解析单元40和发送单元50中,因为上述银企直联任务是有针对性的,比如调用a类银行对应的银行账户的流水账单,那么配置信息中会包含有该a类银行对应的银行端前置机的编号、a类银行对应的银行服务器IP等,这些信息都是安装企业端前置机时配置好并发给企业端前置机对应的应用服务器中的信息。所以,上述应用服务器会根据企业的请求,自动将这些信息写入到银企直联任务中,以便于企业端前置机准确地连接对应的银行端前置机。In the above parsing unit 40 and sending unit 50, because the above-mentioned bank-enterprise direct link task is targeted, such as calling the current account of a bank account corresponding to a type A bank, the configuration information will include the corresponding The number of the bank-side front-end machine, the bank server IP corresponding to a type A bank, and so on, all of this information is configured when the enterprise-side front-end machine is installed and sent to the application server corresponding to the enterprise-side front-end machine. Therefore, the above application server will automatically write this information into the bank-enterprise direct connection task according to the request of the enterprise, so that the enterprise-end front-end processor can accurately connect to the corresponding bank-end front-end processor.
在上述转发单元60中,当银行端前置机接收到银企直联任务后,会转发给对应的银行服务器,银行服务器会调取对应的数据生成结果报文,并发送给第一银行前置机,以返回给企业端前置机,企业端前置机在转发给应用服务器,应用服务器将所述结果报文最终反馈给企业的财务软件系统。In the forwarding unit 60, when the front end of the bank receives the direct bank-enterprise task, it will forward it to the corresponding bank server, and the bank server will retrieve the corresponding data generation result message and send it to the first bank. The machine is set up to return to the enterprise-end front-end machine, and the enterprise-end front-end machine is forwarding to the application server, and the application server finally feeds back the result message to the financial software system of the enterprise.
参照图5,在一个实施例中,上述缓存单元20中,包括:Referring to FIG. 5, in an embodiment, the cache unit 20 includes:
获取模块21、用于获取所述银企直联任务的任务ID;An obtaining module 21, configured to obtain a task ID of the bank-enterprise direct link task;
判断模块22、用于判断所述任务ID的属性,其中属性包括交易属性、查询属性;A judging module 22, configured to judge attributes of the task ID, where the attributes include transaction attributes and query attributes;
缓存模块23、用于根据判断结果将所述任务ID放入到对应属性的缓存队列中。The cache module 23 is configured to place the task ID into a cache queue of a corresponding attribute according to a determination result.
在上述获取模块21、判断模块22、缓存模块23中,任务ID的属性一般由企业端的财务系统发出的请求而定,具体可包括交易属性、查询属性,查询属性即为查询企业的银行流水、账户余额、支付状态等请求对应的属性,而交易属性即为支付、转账等请求对应的属性。企业端前置机中设置对应交易属性的交易缓存队列,以及对应查询属性的查询缓存队列,同样设置有对应交易缓存队列的交易线程池,对应查询缓存队列的查询线程池。两个缓存队列中的各任务ID按预设的优先级进行排序处理,比如,支付的级别高于查询银行流水的级别等。具体地,每个任务会设置有一个类型标识,类型标识可分为1-8个级别,为1的话等级最高,代表紧急任务,优先处理。各种银企直联任务对应不同的类型标识,其对应的任务ID则具有同样的类型标识。In the acquisition module 21, judgment module 22, and cache module 23 described above, the attribute of the task ID is generally determined by the request issued by the financial system of the enterprise, and may specifically include the transaction attribute and the query attribute. The query attribute is the bank flow of the query enterprise, Account balance, payment status, and other corresponding attributes are requested, while transaction attributes are those corresponding to requests such as payments and transfers. In the front end of the enterprise, a transaction cache queue corresponding to the transaction attribute and a query cache queue corresponding to the query attribute are also provided. A transaction thread pool corresponding to the transaction cache queue and a query thread pool corresponding to the query cache queue are also set. Each task ID in the two cache queues is sorted and processed according to a preset priority, for example, the level of payment is higher than the level of querying the bank flow. Specifically, each task is provided with a type identifier, and the type identifier can be divided into 1-8 levels, and the highest level is 1, which represents emergency tasks and is given priority processing. Various bank-enterprise direct tasks correspond to different type identifiers, and their corresponding task IDs have the same type identifier.
参照图6,在一个实施例中,上述财务数据交互装置,还包括:Referring to FIG. 6, in one embodiment, the foregoing financial data interaction device further includes:
判断单元101、用于判断所述企业端前置机上是否插入对应各种类银行的UKey设备;A judging unit 101, configured to judge whether a UKey device corresponding to various types of banks is inserted into the enterprise-end front-end processor;
第一报警单元102、用于若判定所述企业端前置机上未插入对应各种类银行的UKey设备,则报警。The first alarm unit 102 is configured to alarm if it is determined that UKey devices corresponding to various types of banks are not plugged into the front end of the enterprise.
在上述判断单元101、报警单元102中,采集各UKey接口插入的UKey设备的对应其银行种类的标识,然后将所述标识与配置企业端前置机时配置的代表各类银行的标识进行比对,如果采集到的各标识全面覆盖配置企业端前置机时配置的代表各类银行的标识时,则判定企业端前置机上插入对应各种类银行的UKey设备,否者,将未被覆盖的标识对应的银行种类提取出来,并发送给企业的相关人员以报警,此时企业的相关人员可以进行相应的处理,将忘记插入的UKey设备或插入处松动而导致UKey设备接触不良的重新插入等,以保证企业与各银行之间的交互。在另一实施例中,还可以判断获取到的UKey设备的标识与配置企业端前置机时配置的代表各类银行的标识(不重复)的数量是否相同,因为一个银行只会发一个UKey给企业,所以当数量相同时候,基本可以判定企业端前置机上插入对应各种类银行的UKey设备,此种判断方法虽然存在缺陷,但是判断速度会更快。In the above-mentioned judgment unit 101 and alarm unit 102, the identifiers corresponding to the types of banks of the UKey devices inserted in each UKey interface are collected, and then the identifiers are compared with the identifiers representing various types of banks configured when the enterprise-side front-end processor is configured. Yes, if the collected logos fully cover the logos representing various types of banks configured when the enterprise-end front end is configured, it is determined that UKey devices corresponding to various types of banks are inserted into the enterprise-end front end. Otherwise, it will not be The type of bank corresponding to the covered identifier is extracted and sent to the relevant personnel of the enterprise to report the alarm. At this time, the relevant personnel of the enterprise can take corresponding measures to forget the inserted UKey device or the insertion place is loose, which will cause the UKey device to have poor contact. Plug in, etc. to ensure the interaction between the business and the banks. In another embodiment, it is also possible to determine whether the number of the obtained UKey device identification is the same as the identification number (not duplicate) representing various types of banks configured when the enterprise front end is configured, because a bank will only issue one UKey For enterprises, when the number is the same, it can basically be judged that UKey equipment corresponding to various types of banks is inserted into the front end of the enterprise. Although this judgment method has defects, the judgment speed will be faster.
在一个实施例中,上述财务数据交互装置还包括:In one embodiment, the foregoing financial data interaction device further includes:
心跳发送单元,用于发送心跳检测包,检测与所述应用服务器的连接状态;A heartbeat sending unit, configured to send a heartbeat detection packet to detect a connection status with the application server;
第二报警单元,用于若连接状态为断开,则发出警报信息。The second alarm unit is configured to issue an alarm message if the connection state is disconnected.
理论上,企业端前置机和应用服务器应该长期在线,但是因为是电子产品,难免会出现故障或者升级等处理,此时企业端前置机与应用服务器可能断掉连接,那么通过心跳检测的方式检测企业端前置机和应用服务器的连接状态,当两者连接失败,则需要发出警报信息。发出警报信息包括两种,第一种,发送邮件等信息给企业的相关人员,和/或发送给提供企业端前置机的第三方的相关人员;第二种,发送指定的信息给与其连接的银行端前置机,并由银行端前置机发送给银行的相关管理系统,以告知银行端的工作人员,银行端的工作人员可以人工告知企业端相应人员发生了断连接的故障等。上述发送心跳检测包,可以保障企业端的财务人了解企业端前置机和应用服务器是否断开连接,从而及时处理原本需要银企直联完成的事物。Theoretically, the enterprise front-end machine and the application server should be online for a long time, but because it is an electronic product, it will inevitably fail or upgrade. At this time, the enterprise front-end machine and the application server may lose the connection. This method detects the connection status between the enterprise front end and the application server. When the connection between the two fails, an alarm message needs to be issued. There are two types of alarm messages. The first is to send information such as emails to relevant personnel of the enterprise, and / or to the relevant personnel of the third party who provides the front end of the enterprise. The second is to send specified information to connect with it. The bank-side front-end machine is sent to the bank's relevant management system by the bank-side front-end machine to inform the bank-side staff. The bank-side staff can manually notify the corresponding staff of the enterprise-side that a disconnection failure has occurred. The above-mentioned sending of the heartbeat detection packet can ensure that the financial person at the enterprise side knows whether the front-end processor of the enterprise side and the application server are disconnected, so as to timely process things that should be completed directly by the bank and enterprise.
参照图7,在一个实施例中,上述监听单元10,包括:Referring to FIG. 7, in one embodiment, the monitoring unit 10 includes:
长连接监听模块11、通过长连接的方式监听所述企业端前置机的应用服务器是否发送银企直联任务。The long-connection monitoring module 11 monitors whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task through a long connection.
在上述长连接监听模块11中,因为企业端前置机接收到的银企直联任务可能是连续的,所以使用长连接的方式监听服务,使每个操作完后都不断开,下次处理时直接发送数据包就可以,不用建立TCP连接,以保持处理任务的效率。本实施例中,企业端前置机与应用服务器采用BIO同步阻塞模式进行长连接。不同的银企直联任务不能够同时进行,所以需要按照指令顺序进行,一个指令执行完才能执行下一个指令,不能异步执行,所以本申请中企业端前置机采用BIO同步阻塞模式与应用服务器进行长连接。In the above-mentioned long connection monitoring module 11, because the bank-enterprise direct connection task received by the front end of the enterprise may be continuous, the service is monitored using the long connection method, so that it will not be disconnected after each operation and processed next time. You can send data packets directly without establishing a TCP connection to maintain the efficiency of processing tasks. In this embodiment, the front end of the enterprise side and the application server use the BIO synchronous blocking mode for a long connection. Different bank-enterprise direct tasks cannot be performed at the same time, so they need to be performed in accordance with the order of instructions. One instruction can be executed before the next instruction can be executed. It cannot be executed asynchronously. Therefore, in this application, the front end of the enterprise uses the BIO synchronous blocking mode and the application server Make a long connection.
在一个实施例,上述财务数据交互装置,还包括:In one embodiment, the foregoing financial data interaction device further includes:
序列化单元,用于将上述企业端前置机与应用服务器相互发送的报文,采用Protocol Buffers进行序列化。A serialization unit is used to serialize the packets sent by the foregoing enterprise-end front-end machine and the application server to each other using Protocol Buffers.
Protocol Buffers 是一种轻便高效的结构化数据存储格式,可以用于结构化数据串行化,或者说序列化。它很适合做数据存储或 RPC 数据交换格式。可用于通讯协议、数据存储等领域的语言无关、平台无关、可扩展的序列化结构数据格式,简单说来 Protobuf 的主要优点就是:简单,快。本申请采用GOOGLE的Protocol Buffers进行序列化,可以提高报文封装和发送的效率。Protocol Buffers It is a lightweight and efficient structured data storage format, which can be used for serialization of structured data, or serialization. It is very suitable for data storage or RPC data exchange format. Language-independent, platform-independent, and extensible serialization structure data format that can be used in communication protocols, data storage, etc., simply The main advantages of Protobuf are: simple and fast. This application uses GOOGLE's Protocol Buffers for serialization, which can improve the efficiency of packet encapsulation and transmission.
本申请实施例的财务数据交互装置,因为在企业端前置机上设置了多个UKey接口,并进行了对应的配置,所以企业端前置机能够与多个不同种类的银行进行银企直联功能,以保证各个银行账户的正常使用。为了保证企业端前置机的运行稳定,以及运行的效率,则将在企业端前置机中设置缓存队列和线程池的配置,以有条不紊地进行各种任务的执行;进一步地,缓存队列中只缓存任务ID,当轮到该任务的时候,再根据任务ID到应用服务器中调取具体的银企直联任务,以节省缓存空间,进一步地提高企业端前置机的运行速率和运行稳定性。In the financial data interaction device in the embodiment of the present application, since multiple UKey interfaces are set on the enterprise-end front-end processor and corresponding configurations are performed, the enterprise-end front-end processor can directly connect with banks of different types with different types of banks. Function to ensure the normal use of each bank account. In order to ensure the stable operation and efficiency of the enterprise-side front-end processor, the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached. When it is the task's turn, the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor Sex.
参照图8,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储财务数据交互方法程序等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种财务数据交互方法。Referring to FIG. 8, an embodiment of the present application further provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the computer design processor is used 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-readable instructions, and a database. The memory provides an environment for operating systems and computer-readable instructions in a non-volatile storage medium. The database of the computer equipment is used to store financial data interaction method programs and the like. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable instructions are executed by a processor to implement a method of financial data interaction.
上述处理器执行上述财务数据交互方法,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互,所述方法的步骤为:监听所述企业端前置机的应用服务器是否发送银企直联任务;若是,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;根据所述配置信息将所述银企直联任务发送给所述银行端前置机;将所述银行端前置机返回的结果报文发送给所述应用服务器。The processor executes the financial data interaction method, and uses an enterprise-end front-end processor to implement financial-data interaction between the enterprise-end financial system and the bank-side. The enterprise-end front-end processor is provided with multiple UKey interfaces. Corresponding to a plurality of the UKey interfaces are configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks, and the steps of the method are: monitoring whether an application server of the enterprise-end front-end machine sends a bank If the task is directly connected to the enterprise, if yes, obtain the task ID of the bank-enterprise directly connected task and put the task ID into the corresponding cache queue; when the thread pool corresponding to the cache queue is obtained from the cache queue At the time of the task, the corresponding bank-enterprise direct link task is obtained from the application server according to the task ID; the bank-enterprise direct link task is analyzed to obtain the bank-side front-end processor corresponding to the bank-enterprise direct link task. Configuration information; sending the bank-enterprise direct connection task to the bank-side front-end processor according to the configuration information; and sending a result message returned by the bank-side front-end processor to the application Service is.
在一个实施例中,上述获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中的步骤,包括:获取所述银企直联任务的任务ID;判断所述任务ID的属性,其中属性包括交易属性、查询属性;根据判断结果将所述任务ID放入到对应属性的缓存队列中。In one embodiment, the step of obtaining the task ID of the bank-enterprise direct link task and putting the task ID into a corresponding cache queue includes: obtaining the task ID of the bank-enterprise direct link task; Determine the attributes of the task ID, where the attributes include transaction attributes and query attributes; and place the task ID in a cache queue of the corresponding attributes according to the determination result.
在一个实施例中,上述监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤之前,包括:判断所述企业端前置机上是否插入对应各种类银行的UKey设备;若否,则报警。In one embodiment, before the step of monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task, the method includes: judging whether or not UKey equipment corresponding to various types of banks is inserted into the enterprise-end front-end processor; If not, an alarm is issued.
在一个实施例中,上述财务数据交互方法还包括:发送心跳检测包,检测与所述应用服务器的连接状态;若连接状态为断开,则发出警报信息。In one embodiment, the financial data interaction method further includes: sending a heartbeat detection packet to detect a connection status with the application server; and if the connection status is disconnected, sending an alarm message.
在一个实施例中,上述监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤,包括:通过长连接的方式监听所述企业端前置机的应用服务器是否发送银企直联任务。In one embodiment, the step of monitoring whether the application server of the enterprise-side front-end processor sends a bank-enterprise direct connection task includes: monitoring whether the application server of the enterprise-side front-end processor sends a bank-enterprise through a long connection. Direct missions.
在一个实施例中,上述企业端前置机与所述应用服务器采用BIO同步阻塞模式进行长连接。In one embodiment, the enterprise-end front-end unit and the application server adopt a BIO synchronous blocking mode for a long connection.
在一个实施例中,上述企业端前置机与应用服务器相互发送的报文,采用Protocol Buffers进行序列化。In one embodiment, the packets sent by the enterprise-end front-end unit and the application server to each other are serialized using Protocol Buffers.
本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
本申请实施例的计算机设备,因为在企业端前置机上设置了多个UKey接口,并进行了对应的配置,所以企业端前置机能够与多个不同种类的银行进行银企直联功能,以保证各个银行账户的正常使用。为了保证企业端前置机的运行稳定,以及运行的效率,则将在企业端前置机中设置缓存队列和线程池的配置,以有条不紊地进行各种任务的执行;进一步地,缓存队列中只缓存任务ID,当轮到该任务的时候,再根据任务ID到应用服务器中调取具体的银企直联任务,以节省缓存空间,进一步地提高企业端前置机的运行速率和运行稳定性。In the computer equipment in the embodiment of the present application, because multiple UKey interfaces are set on the enterprise-end front-end processor and corresponding configurations are performed, the enterprise-end front-end processor can perform bank-enterprise direct connection functions with multiple different types of banks. To ensure the normal use of each bank account. In order to ensure the stable operation and efficiency of the enterprise-side front-end processor, the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached. When it is the task's turn, the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
本申请一实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现一种财务数据交互方法,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述方法,包括:监听所述企业端前置机的应用服务器是否发送银企直联任务;若是,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;根据所述配置信息将所述银企直联任务发送给所述银行端前置机;将所述银行端前置机返回的结果报文发送给所述应用服务器。An embodiment of the present application further provides a computer non-volatile readable storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by a processor, a method for interacting financial data is implemented. Machine to realize the financial data interaction between the enterprise-side financial system and the bank, wherein the enterprise-end front-end machine is provided with multiple UKey interfaces, and the enterprise-side front-end machine corresponds to the plurality of UKey interfaces and is configured to be able to communicate with multiple Different types of banks' front-end processors complete financial data interaction; the method includes: monitoring whether the application server of the enterprise-end front-end processors sends bank-enterprise direct link tasks; if so, obtaining the bank-enterprise direct link tasks The task ID and put the task ID into the corresponding cache queue; when the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain a corresponding one from the application server according to the task ID The bank-enterprise direct link task; analyzing the bank-enterprise direct link task to obtain configuration information of a bank-side front-end machine corresponding to the bank-enterprise direct link task; according to the configuration The bank information is sent to the task Direct bank FEP end; the end result of the bank FEP returns the packet to the application server.
上述财务数据交互方法,因为在企业端前置机上设置了多个UKey接口,并进行了对应的配置,所以企业端前置机能够与多个不同种类的银行进行银企直联功能,以保证各个银行账户的正常使用。为了保证企业端前置机的运行稳定,以及运行的效率,则将在企业端前置机中设置缓存队列和线程池的配置,以有条不紊地进行各种任务的执行;进一步地,缓存队列中只缓存任务ID,当轮到该任务的时候,再根据任务ID到应用服务器中调取具体的银企直联任务,以节省缓存空间,进一步地提高企业端前置机的运行速率和运行稳定性。In the above financial data interaction method, because multiple UKey interfaces are set on the enterprise-end front-end machine and corresponding configurations are performed, the enterprise-side front-end machine can perform direct bank-enterprise functions with multiple different types of banks to ensure Normal use of each bank account. In order to ensure the stable operation and efficiency of the enterprise-side front-end processor, the cache queue and thread pool configuration will be set in the enterprise-side front-end processor to perform various tasks in an orderly manner; further, the cache queue Only the task ID is cached. When it is the task's turn, the specific bank-enterprise direct connection task is retrieved from the application server according to the task ID to save cache space and further improve the operation speed and stable operation of the enterprise front-end processor. Sex.
在一个实施例中,上述处理器获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中的步骤,包括:获取所述银企直联任务的任务ID;判断所述任务ID的属性,其中属性包括交易属性、查询属性;根据判断结果将所述任务ID放入到对应属性的缓存队列中。In one embodiment, the step of the processor acquiring the task ID of the bank-enterprise direct link task and placing the task ID in a corresponding cache queue includes: acquiring the task of the bank-enterprise direct link task. ID; judging the attributes of the task ID, wherein the attributes include transaction attributes and query attributes; and placing the task ID in a cache queue of the corresponding attribute according to the judgment result.
在一个实施例中,上述处理器监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤之前,包括:判断所述企业端前置机上是否插入对应各种类银行的UKey设备;若否,则报警。In one embodiment, before the step of the processor monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task, the method includes: determining whether a UKey corresponding to various types of banks is inserted into the enterprise-end front-end processor. Equipment; if not, alarm.
在一个实施例中,上述处理器还控制企业端前置机发送心跳检测包,检测与所述应用服务器的连接状态;若连接状态为断开,则发出警报信息。In one embodiment, the processor further controls the front end of the enterprise to send a heartbeat detection packet to detect the connection status with the application server; if the connection status is disconnected, an alarm message is issued.
在一个实施例中,上述处理器监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤,包括:通过长连接的方式监听所述企业端前置机的应用服务器是否发送银企直联任务。In one embodiment, the step of the processor monitoring whether the application server of the enterprise-side front-end processor sends a bank-enterprise direct connection task includes: monitoring whether the application server of the enterprise-side front-end processor sends through a long connection. Bank-enterprise direct link mission.
在一个实施例中,上述处理器控制企业端前置机与所述应用服务器采用BIO同步阻塞模式进行长连接。In one embodiment, the processor controls the enterprise-end front end and the application server to use the BIO synchronous blocking mode for a long connection.
在一个实施例中,上述处理器控制企业端前置机与应用服务器相互发送的报文,采用Protocol Buffers进行序列化。In one embodiment, the processor controls the packets sent by the enterprise front end and the application server to each other, and uses Protocol Buffers for serialization.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by using computer-readable instructions to instruct related hardware. The computer-readable instructions can be stored in a nonvolatile computer In the readable storage medium, the computer-readable instructions, when executed, may include the processes of the embodiments of the methods described above. Wherein, any reference to the storage, storage, database, or other media provided in this application and used in the embodiments may include non-volatile and / or volatile storage. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the description of the application and the drawings, or directly or indirectly used in other related The technical fields are equally included in the patent protection scope of this application.

Claims (20)

  1. 一种财务数据交互方法,其特征在于,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述方法,包括:A financial data interaction method is characterized in that an enterprise-side front-end machine is used to implement financial data interaction between an enterprise-side financial system and a bank-side. The enterprise-side front-end machine is provided with multiple UKey interfaces. The device corresponding to multiple UKey interfaces is configured to complete financial data interaction with multiple front-end banks of different types of banks; the method includes:
    监听所述企业端前置机的应用服务器是否发送银企直联任务;Monitoring whether the application server of the front end of the enterprise sends a bank-enterprise direct connection task;
    若是,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;If yes, obtain the task ID of the bank-enterprise direct link task, and place the task ID in the corresponding cache queue;
    当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;When the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct task from the application server according to the task ID;
    解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;Analyze the bank-enterprise direct link task to obtain configuration information of the bank-side front-end processor corresponding to the bank-enterprise direct link task;
    根据所述配置信息将所述银企直联任务发送给所述银行端前置机;Sending the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information;
    将所述银行端前置机返回的结果报文发送给所述应用服务器。And sending a result message returned by the bank-side front end to the application server.
  2. 根据权利要求1所述的财务数据交互方法,其特征在于,所述获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中的步骤,包括:The method for interactive financial data according to claim 1, wherein the step of obtaining a task ID of the bank-enterprise direct link task and placing the task ID in a corresponding cache queue comprises:
    获取所述银企直联任务的任务ID;Obtaining a task ID of the bank-enterprise direct task;
    判断所述任务ID的属性,其中属性包括交易属性、查询属性;Determining the attributes of the task ID, where the attributes include transaction attributes and query attributes;
    根据判断结果将所述任务ID放入到对应属性的缓存队列中。The task ID is put into a cache queue of a corresponding attribute according to a determination result.
  3. 根据权利要求1所述的财务数据交互方法,其特征在于,所述监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤之前,包括:The method for interactive financial data according to claim 1, wherein before the step of monitoring whether an application server of the enterprise front-end processor sends a bank-enterprise direct connection task, comprises:
    判断所述企业端前置机上是否插入对应各种类银行的UKey设备;Determining whether UKey equipment corresponding to various types of banks is inserted into the front-end of the enterprise end;
    若否,则报警。If not, an alarm is issued.
  4. 根据权利要求1所述的财务数据交互方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    发送心跳检测包,检测与所述应用服务器的连接状态;Sending a heartbeat detection packet to detect a connection status with the application server;
    若连接状态为断开,则发出警报信息。If the connection status is disconnected, an alarm message is issued.
  5. 根据权利要求4所述的财务数据交互方法,其特征在于,所述监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤,包括:The method for interactive financial data according to claim 4, wherein the step of monitoring whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task comprises:
    通过长连接的方式监听所述企业端前置机的应用服务器是否发送银企直联任务。Whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task through a long connection.
  6. 根据权利要求5所述的财务数据交互方法,其特征在于,所述企业端前置机与所述应用服务器采用BIO同步阻塞模式进行长连接。The method for interactive financial data according to claim 5, wherein the front end of the enterprise side and the application server adopt a BIO synchronous blocking mode for a long connection.
  7. 根据权利要求1所述的财务数据交互方法,其特征在于,所述企业端前置机与应用服务器相互发送的报文,采用Protocol Buffers进行序列化。The method for interactive financial data according to claim 1, wherein the messages sent by the enterprise-end front end and the application server are serialized using Protocol Buffers.
  8. 一种财务数据交互装置,其特征在于,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述装置,包括:A financial data interaction device, characterized in that an enterprise-end front-end machine is used to implement financial data interaction between an enterprise-end financial system and a bank-side, wherein the enterprise-end front-end machine is provided with multiple UKey interfaces, and the enterprise-end front-end machine The set-up corresponds to a plurality of the UKey interfaces configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks; the device includes:
    监听单元,用于监听所述企业端前置机的应用服务器是否发送银企直联任务;A monitoring unit, configured to monitor whether an application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task;
    缓存单元,用于若监听单元监听到所述应用服务器发送的银企直联任务,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;A cache unit, configured to: if the monitoring unit monitors the bank-enterprise direct link task sent by the application server, obtain a task ID of the bank-enterprise direct link task, and place the task ID in a corresponding cache queue;
    获取单元,用于当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;An obtaining unit, configured to, when the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct task from the application server according to the task ID;
    解析单元,用于解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;An analysis unit, configured to analyze the bank-enterprise direct link task to obtain configuration information of a bank-side front-end processor corresponding to the bank-enterprise direct link task;
    发送单元,用于根据所述配置信息将所述银企直联任务发送给所述银行端前置机;A sending unit, configured to send the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information;
    转发单元,用于将所述银行端前置机返回的结果报文发送给所述应用服务器。The forwarding unit is configured to send a result message returned by the bank-side front end to the application server.
  9. 根据权利要求8所述的财务数据交互装置,其特征在于,所述缓存单元,包括:The financial data interaction device according to claim 8, wherein the cache unit comprises:
    获取模块、用于获取所述银企直联任务的任务ID;An acquisition module for acquiring a task ID of the bank-enterprise direct link task;
    判断模块、用于判断所述任务ID的属性,其中属性包括交易属性、查询属性;A judging module, configured to judge attributes of the task ID, wherein the attributes include transaction attributes and query attributes;
    缓存模块、用于根据判断结果将所述任务ID放入到对应属性的缓存队列中。The cache module is configured to put the task ID into a cache queue of a corresponding attribute according to a judgment result.
  10. 根据权利要求8所述的财务数据交互装置,其特征在于,所述财务数据交互装置,还包括:The financial data interaction device according to claim 8, wherein the financial data interaction device further comprises:
    判断单元、用于判断所述企业端前置机上是否插入对应各种类银行的UKey设备;A judging unit, configured to judge whether a UKey device corresponding to various types of banks is inserted into the front end of the enterprise;
    第一报警单元、用于若判定所述企业端前置机上未插入对应各种类银行的UKey设备,则报警。The first alarm unit is configured to alarm if it is determined that UKey equipment corresponding to various types of banks is not inserted into the front-end of the enterprise side.
  11. 根据权利要求8所述的财务数据交互装置,其特征在于,所述财务数据交互装置还包括:The financial data interaction device according to claim 8, wherein the financial data interaction device further comprises:
    心跳发送单元,用于发送心跳检测包,检测与所述应用服务器的连接状态;A heartbeat sending unit, configured to send a heartbeat detection packet to detect a connection status with the application server;
    第二报警单元,用于若连接状态为断开,则发出警报信息。The second alarm unit is configured to issue an alarm message if the connection state is disconnected.
  12. 根据权利要求11所述的财务数据交互装置,其特征在于,所述监听单元,包括:The financial data interaction device according to claim 11, wherein the monitoring unit comprises:
    长连接监听模块,用于通过长连接的方式监听所述企业端前置机的应用服务器是否发送银企直联任务。The long-connection monitoring module is configured to monitor whether the application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task through a long connection.
  13. 根据权利要求12所述的财务数据交互装置,其特征在于,所述企业端前置机与所述应用服务器采用BIO同步阻塞模式进行长连接。The financial data interaction device according to claim 12, wherein the enterprise-end front-end unit and the application server adopt a BIO synchronous blocking mode for a long connection.
  14. 根据权利要求8所述的财务数据交互装置,其特征在于,所述财务数据交互装置,还包括:The financial data interaction device according to claim 8, wherein the financial data interaction device further comprises:
    序列化单元,用于将所述企业端前置机与应用服务器相互发送的报文,采用Protocol Buffers进行序列化。A serialization unit is configured to serialize a message sent by the enterprise-end front-end unit and the application server to each other using Protocol Buffers.
  15. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现财务数据交互方法,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述方法,包括:A computer device includes a memory and a processor. The memory stores computer-readable instructions, and is characterized in that the processor implements a financial data interaction method when the processor executes the computer-readable instructions. The financial system on the enterprise side interacts with the financial data on the bank side, wherein the front-end unit of the enterprise side is provided with multiple UKey interfaces, and the front-end unit of the enterprise side is configured to be able to communicate with multiple different banks. Different types of bank-end front-end machines complete financial data interaction; the method includes:
    监听所述企业端前置机的应用服务器是否发送银企直联任务;Monitoring whether the application server of the front end of the enterprise sends a bank-enterprise direct connection task;
    若是,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;If yes, obtain the task ID of the bank-enterprise direct link task, and place the task ID in the corresponding cache queue;
    当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;When the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct task from the application server according to the task ID;
    解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;Analyze the bank-enterprise direct link task to obtain configuration information of the bank-side front-end processor corresponding to the bank-enterprise direct link task;
    根据所述配置信息将所述银企直联任务发送给所述银行端前置机;Sending the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information;
    将所述银行端前置机返回的结果报文发送给所述应用服务器。And sending a result message returned by the bank-side front end to the application server.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中的步骤,包括:The computer device according to claim 15, wherein the step of obtaining a task ID of the bank-enterprise direct link task and placing the task ID in a corresponding cache queue comprises:
    获取所述银企直联任务的任务ID;Obtaining a task ID of the bank-enterprise direct task;
    判断所述任务ID的属性,其中属性包括交易属性、查询属性;Determining the attributes of the task ID, where the attributes include transaction attributes and query attributes;
    根据判断结果将所述任务ID放入到对应属性的缓存队列中。The task ID is put into a cache queue of a corresponding attribute according to a determination result.
  17. 根据权利要求15所述的计算机设备,其特征在于,所述监听所述企业端前置机的应用服务器是否发送银企直联任务的步骤之前,包括:The computer device according to claim 15, wherein before the step of monitoring whether an application server of the enterprise-end front-end processor sends a bank-enterprise direct connection task, comprises:
    判断所述企业端前置机上是否插入对应各种类银行的UKey设备;Determining whether UKey equipment corresponding to various types of banks is inserted into the front-end of the enterprise end;
    若否,则报警。If not, an alarm is issued.
  18. 根据权利要求15所述的财务数据交互方法,其特征在于,所述方法还包括:The method according to claim 15, wherein the method further comprises:
    发送心跳检测包,检测与所述应用服务器的连接状态;Sending a heartbeat detection packet to detect a connection status with the application server;
    若连接状态为断开,则发出警报信息。If the connection status is disconnected, an alarm message is issued.
  19. 一种计算机非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现财务数据交互方法,利用企业端前置机实现企业端财务系统与银行端的财务数据交互,其中,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述方法,包括:A computer non-volatile readable storage medium storing computer-readable instructions thereon, characterized in that when the computer-readable instructions are executed by a processor, a financial data interaction method is implemented, and an enterprise-side front-end processor is used to implement an enterprise Financial system interacts with the financial data of the bank, wherein the front end of the enterprise side is provided with multiple UKey interfaces, and the front end of the enterprise side corresponds to the plurality of UKey interfaces and is configured to be able to interact with multiple different bank types Bank-end front-end machine completes financial data interaction; the method includes:
    监听所述企业端前置机的应用服务器是否发送银企直联任务;Monitoring whether the application server of the front end of the enterprise sends a bank-enterprise direct connection task;
    若是,则获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中;If yes, obtain the task ID of the bank-enterprise direct link task, and place the task ID in the corresponding cache queue;
    当所述缓存队列对应的线程池从所述缓存队列获取任务时,根据所述任务ID到所述应用服务器获取对应的所述银企直联任务;When the thread pool corresponding to the cache queue obtains a task from the cache queue, obtain the corresponding bank-enterprise direct task from the application server according to the task ID;
    解析所述银企直联任务,得到与所述银企直联任务对应的银行端前置机的配置信息;Analyze the bank-enterprise direct link task to obtain configuration information of the bank-side front-end processor corresponding to the bank-enterprise direct link task;
    根据所述配置信息将所述银企直联任务发送给所述银行端前置机;Sending the bank-enterprise direct connection task to the bank-end front-end processor according to the configuration information;
    将所述银行端前置机返回的结果报文发送给所述应用服务器。And sending a result message returned by the bank-side front end to the application server.
  20. 根据权利要求19所述的计算机非易失性可读存储介质,其特征在于,所述获取所述银企直联任务的任务ID,并将所述任务ID放入到对应的缓存队列中的步骤,包括:The computer non-volatile readable storage medium according to claim 19, wherein the acquiring the task ID of the bank-enterprise direct task and putting the task ID into a corresponding cache queue Steps, including:
    获取所述银企直联任务的任务ID;Obtaining a task ID of the bank-enterprise direct task;
    判断所述任务ID的属性,其中属性包括交易属性、查询属性;Determining the attributes of the task ID, where the attributes include transaction attributes and query attributes;
    根据判断结果将所述任务ID放入到对应属性的缓存队列中。The task ID is put into a cache queue of a corresponding attribute according to a determination result.
PCT/CN2018/108417 2018-07-02 2018-09-28 Financial data interaction method, apparatus computer device and storage medium WO2020006903A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810707876.8 2018-07-02
CN201810707876.8A CN109062982B (en) 2018-07-02 2018-07-02 Financial data interaction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020006903A1 true WO2020006903A1 (en) 2020-01-09

Family

ID=64818222

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108417 WO2020006903A1 (en) 2018-07-02 2018-09-28 Financial data interaction method, apparatus computer device and storage medium

Country Status (2)

Country Link
CN (1) CN109062982B (en)
WO (1) WO2020006903A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596710A (en) * 2020-12-21 2021-04-02 上海钒钛智能科技有限公司 Front-end system
CN112685196A (en) * 2020-12-24 2021-04-20 平安普惠企业管理有限公司 Thread pool management method, device, equipment and medium suitable for distributed technology

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110503415A (en) * 2019-08-22 2019-11-26 浪潮软件集团有限公司 A kind of Internet bank of tertiary-structure network beats money safety protecting method
CN111459753B (en) * 2020-03-26 2022-09-30 平安科技(深圳)有限公司 Point-of-sale terminal data processing method, device, computer equipment and storage medium
CN115987917A (en) * 2023-01-07 2023-04-18 北京沐融信息科技股份有限公司 Asynchronous transaction synchronization conversion method and system based on message queue

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1681260A (en) * 2004-06-30 2005-10-12 中国银行股份有限公司 Processing system between enterprise and bank service abutting joint
CN101334887A (en) * 2008-08-07 2008-12-31 金蝶软件(中国)有限公司 Financial data-handling process and bank enterprise platform device
CN101877105A (en) * 2010-04-08 2010-11-03 苏州德融嘉信信用管理技术有限公司 Bank-enterprise express system and application method thereof
CN102156944A (en) * 2010-02-11 2011-08-17 中国工商银行股份有限公司 Data processing method and system for realizing bank-enterprise interconnection
CN102546833A (en) * 2012-03-05 2012-07-04 浪潮集团山东通用软件有限公司 Bank enterprise interconnection uniform access platform
CN103078911A (en) * 2012-12-27 2013-05-01 中国建设银行股份有限公司 Communication system for directly connecting bank and enterprise and communication method of communication system
CN106846144A (en) * 2017-01-08 2017-06-13 世纪禾光科技发展(北京)有限公司 Method and system of the MT940 messages in the direct-connected middle application of bank
CN107516204A (en) * 2017-08-31 2017-12-26 四川长虹电器股份有限公司 Internet bank docking system and docking calculation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521778A (en) * 2011-12-08 2012-06-27 携程计算机技术(上海)有限公司 System for directly exchanging financial data by enterprises and banks
CN103679960A (en) * 2012-09-06 2014-03-26 联多科技(北京)有限公司 Cash currency unified financial platform
US10304044B2 (en) * 2013-06-05 2019-05-28 American Express Travel Related Services Company, Inc. Multi-factor mobile user authentication

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1681260A (en) * 2004-06-30 2005-10-12 中国银行股份有限公司 Processing system between enterprise and bank service abutting joint
CN101334887A (en) * 2008-08-07 2008-12-31 金蝶软件(中国)有限公司 Financial data-handling process and bank enterprise platform device
CN102156944A (en) * 2010-02-11 2011-08-17 中国工商银行股份有限公司 Data processing method and system for realizing bank-enterprise interconnection
CN101877105A (en) * 2010-04-08 2010-11-03 苏州德融嘉信信用管理技术有限公司 Bank-enterprise express system and application method thereof
CN102546833A (en) * 2012-03-05 2012-07-04 浪潮集团山东通用软件有限公司 Bank enterprise interconnection uniform access platform
CN103078911A (en) * 2012-12-27 2013-05-01 中国建设银行股份有限公司 Communication system for directly connecting bank and enterprise and communication method of communication system
CN106846144A (en) * 2017-01-08 2017-06-13 世纪禾光科技发展(北京)有限公司 Method and system of the MT940 messages in the direct-connected middle application of bank
CN107516204A (en) * 2017-08-31 2017-12-26 四川长虹电器股份有限公司 Internet bank docking system and docking calculation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596710A (en) * 2020-12-21 2021-04-02 上海钒钛智能科技有限公司 Front-end system
CN112596710B (en) * 2020-12-21 2024-05-14 上海钒钛智能科技有限公司 Front-end system
CN112685196A (en) * 2020-12-24 2021-04-20 平安普惠企业管理有限公司 Thread pool management method, device, equipment and medium suitable for distributed technology
CN112685196B (en) * 2020-12-24 2023-12-08 湖北华中电力科技开发有限责任公司 Thread pool management method, device, equipment and medium suitable for distributed technology

Also Published As

Publication number Publication date
CN109062982A (en) 2018-12-21
CN109062982B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
WO2020006903A1 (en) Financial data interaction method, apparatus computer device and storage medium
WO2016101599A1 (en) Business process management notification service processing method and business process management engine
WO2020006902A1 (en) Batch payment method and apparatus, computer device, and storage medium
RU2648966C2 (en) Apparatus and method for processing multiple open api
WO2020006893A1 (en) Receipt acquisition method, apparatus, computer device, and storage medium
WO2020006895A1 (en) Account checking method and apparatus, computer device and storage medium
US9961125B2 (en) Messaging API over HTTP protocol to establish context for data exchange
CN110851248B (en) Asynchronous task data processing method and device and computer readable storage medium
US20130297801A1 (en) Managing multiple proxy servers in a multi-tenant application system environment
CN103095819A (en) Data information pushing method and data information pushing system
CN111258627B (en) Interface document generation method and device
US11593188B2 (en) Method and apparatus for providing asynchronicity to microservice application programming interfaces
WO2021169275A1 (en) Sdn network device access method and apparatus, computer device, and storage medium
CN103198007A (en) Multi-process log output method and system
CN113157411B (en) Celery-based reliable configurable task system and device
WO2020006901A1 (en) Fund collection method and apparatus, computer device, and storage medium
WO2020006896A1 (en) Balance monitoring method, apparatus, computer device, and storage medium
CN111240862A (en) Universal interface platform and data conversion method
CN111131499A (en) Concurrent and asynchronous task processing method and device thereof
CN103905484B (en) Handle the method and device of hypertext transfer protocol requests
CN114371935A (en) Gateway processing method, gateway, device and medium
EP2979196B1 (en) System and method for network provisioning
CN117294763A (en) Cloud desktop terminal management method for forwarding terminal request information based on proxy service
WO2021093671A1 (en) Task processing method, system, apparatus and device, and computer readable storage medium
CN110381143A (en) Operation, which is submitted, executes method, apparatus, equipment and computer storage medium

Legal Events

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

Ref document number: 18925264

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18925264

Country of ref document: EP

Kind code of ref document: A1