WO2020006893A1 - Receipt acquisition method, apparatus, computer device, and storage medium - Google Patents

Receipt acquisition method, apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2020006893A1
WO2020006893A1 PCT/CN2018/107676 CN2018107676W WO2020006893A1 WO 2020006893 A1 WO2020006893 A1 WO 2020006893A1 CN 2018107676 W CN2018107676 W CN 2018107676W WO 2020006893 A1 WO2020006893 A1 WO 2020006893A1
Authority
WO
WIPO (PCT)
Prior art keywords
enterprise
bank
receipt
end machine
machine
Prior art date
Application number
PCT/CN2018/107676
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 WO2020006893A1 publication Critical patent/WO2020006893A1/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/047Payment circuits using payment protocols involving electronic receipts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/108Remote banking, e.g. home banking

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 obtaining a receipt.
  • 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 receipts of various bank accounts of an enterprise are often used, and then the bank-enterprise direct link function needs to be used to obtain the receipts of the corresponding bank account.
  • an enterprise When an enterprise obtains a receipt from the bank through the financial system, it needs to set up an enterprise-side front-end machine that matches the bank-side front-end machine, and insert the corresponding UKey on the enterprise side, and then it can communicate with the corresponding bank-side front-end. Set up the machine to interact. In this way, if an enterprise establishes a direct bank-enterprise connection with different banks to obtain receipts for different bank accounts, multiple enterprise-end front-end machines need to be set up. When interacting with different banks, choose different ones. Enterprise front end. That is, the traditional enterprise-side front-end machine can only connect one front-end machine. After the operation is completed, another front-end machine needs to be replaced, and multiple banks cannot be operated on one front-end machine at the same time. Account receipt is more troublesome.
  • the main purpose of this application is to provide a receipt obtaining method, device, computer equipment, and storage medium that can easily and quickly obtain receipts for different bank accounts.
  • the present application proposes a method for obtaining a receipt, which uses an enterprise-end front-end machine set on the enterprise side to perform financial data interaction with a bank-side.
  • the enterprise-side front-end machine is provided with multiple UKey interfaces.
  • An enterprise-side front-end processor corresponding to a plurality of the UKey interfaces is configured to complete financial data interaction with a plurality of bank-side front-end processors of different types of banks; the method includes:
  • the application also provides a receipt obtaining device, which uses an enterprise-side front-end machine set on the enterprise side to perform financial data interaction with the bank side.
  • the enterprise-side front-end machine is provided with multiple UKey interfaces, and the enterprise-side front-end machine Corresponding to the plurality of UKey interfaces is configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks; the device includes:
  • a sending unit configured to send to the enterprise-end front-end processor a plurality of bank account corresponding inquiry tasks, wherein the plurality of bank accounts includes at least two bank accounts of a large bank type;
  • the task sending unit is configured to use the enterprise-end front-end machine to send the order receipt inquiry task for different bank accounts to the corresponding bank front-end machine, so as to inquire the corresponding receipt in the bank server of the corresponding bank front-end machine;
  • the receiving unit is configured to receive a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
  • 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 method, device, computer equipment and storage medium for obtaining the receipt in this application because the enterprise-end front-end machine can perform the bank-enterprise direct connection function with a plurality of different types of banks, so multiple UKey interfaces are set on the enterprise-side front-end machine.
  • the enterprise-end front-end machine can perform the bank-enterprise direct connection function with a plurality of different types of banks, so multiple UKey interfaces are set on the enterprise-side front-end machine.
  • FIG. 1 is a schematic flowchart of a method for obtaining a receipt according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a method for obtaining a receipt according to an embodiment of the present application
  • FIG. 3 is a schematic block diagram of a structure of a receipt receipt apparatus according to an embodiment of the present application.
  • FIG. 4 is a schematic block diagram of a sending unit according to an embodiment of the present application.
  • FIG. 5 is a schematic block diagram of a structure of a receipt receipt apparatus according to an embodiment of the present application.
  • FIG. 6 is a schematic block diagram of a structure of a receipt receipt apparatus according to an embodiment of the present application.
  • FIG. 7 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
  • an embodiment of the present application provides a method for obtaining a receipt, which uses an enterprise-side front-end machine set on an enterprise side to perform financial data interaction with a bank-side.
  • the enterprise-side front-end machine is provided with multiple UKey interfaces.
  • the enterprise front end 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 types.
  • 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 method for obtaining a receipt includes the steps:
  • the above-mentioned receipt is a bank flow account statement, also referred to as a bank account transaction statement.
  • a bank flow account statement also referred to as a bank account transaction statement.
  • the above-mentioned inquiry query task is to obtain a running bill statement within a specified time period of a designated bank account, or a running bill to a certain bank account. Enterprises that use the front end of the enterprise will set up multiple different bank accounts, and these bank accounts are distributed in different types of banks.
  • the process of sending a return receipt query task includes: after selecting a bank account for which a return receipt is to be queried in a list, the receiving enterprise configures the return receipt content of each bank account, for example, for the return of a bank account.
  • the single content configuration is: a bank account and b customer's all transaction record statements within a specified period of time, etc.
  • the order inquiry task of the selected bank account can then be sent to the enterprise front-end processor at the same time or according to a preset priority rule.
  • query receipts for different bank accounts can be automatically generated at different times, and then automatically sent to the above-mentioned front end of the enterprise. For example, a reply to the specified configuration content of account a is generated at 10 o'clock every day. At 12 o'clock, a receipt for the specified configuration content of the d account is generated.
  • step S2 because the above-mentioned enterprise-side front-end machine is connected to different bank front-end machines, after obtaining multiple receipt inquiry tasks, it will first analyze the bank information corresponding to each inquiry receipt task in order to facilitate the return The single query task is correctly sent to the corresponding bank front-end machine. When the single-query task is sent to the corresponding bank front-end machine, the corresponding UKey information will also be obtained to facilitate the bank's normal order-back query processing.
  • step S3 the receipts corresponding to the inquiry receipt tasks are obtained.
  • step S1 of sending the inquiry query tasks corresponding to a plurality of bank accounts to the front-end processor of the enterprise includes:
  • the ID query task ID is only an identifier, and the ID uniquely corresponds to one of the ID query tasks.
  • the ID query task ID has no task content to prevent the receipt query task from being directly placed on
  • the front-end of the enterprise side affects the running space of the front-end of the enterprise side and reduces its operating speed. Because the enterprise-end front-end unit of this application can be connected to multiple bank-side front-end units, there will be many different tasks, and directly stacking various tasks into the cache of the front-end unit will greatly reduce the enterprise-side front-end units. Set up the operating efficiency and even crash. In this application, only the task ID of the return order is placed, which greatly reduces the cache space requirement of the front end of the enterprise and improves the quality of the operating environment.
  • the preset cache queue generally includes a transaction cache queue and a query cache queue.
  • Different cache queues store task IDs of corresponding attributes, and correspondingly set a transaction thread pool and a query thread pool.
  • the front-end server of the enterprise obtains the ID query task ID, it first determines the attributes of the ID query task ID.
  • the attributes include transaction attributes and query attributes. Because the ID query task ID belongs to the query class, it is placed in the Query cache queue.
  • 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 tasks sent are all back-to-order query tasks
  • the order in which the task IDs corresponding to each task are stored in the query cache queue also has a sequential order
  • the reasons for the sequential order include: the enterprise side has different queries
  • the priority of the bank account return order task is preset. For example, if the X bank account is the main bank account on the enterprise side, the priority of the task of querying the return order query ID of the X bank account is set to a higher priority such as 1 or Priority of 2 and so on.
  • the return order query task ID fed back by the enterprise-end front-end processor refers to that the query thread pool corresponding to the above query cache queue is free, and then the return order query task is obtained from the query cache queue, because At this time, the query cache queue is only the ID query task ID, so the enterprise side will return the ID query task ID to the application server, and the application server will generate or retrieve the corresponding ID query task according to the ID query task ID. And then send it to the enterprise front end.
  • step S1 of sending the inquiry query tasks corresponding to multiple bank accounts to the enterprise front-end processor 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 method for obtaining receipts further includes:
  • 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 receiving and 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 sending the inquiry query tasks corresponding to a plurality of bank accounts to the front-end processor of the enterprise includes:
  • step S13 because the bank-enterprise direct connection task sent to the enterprise front-end machine may be continuous, the service is monitored 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 application server and the enterprise-end front end adopt a block input output (BIO) synchronous blocking mode for a long connection.
  • BIO block input output
  • Different order return query 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, the BIO synchronous blocking mode is used in this application to enable the application server and the enterprise front-end processor. 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.
  • step S3 of receiving a receipt of each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines the method includes:
  • steps S4 to S6 above because the forms of receipts of different banks are different, for research and development efficiency and management convenience, only one form of receipts will be set in this application, so after obtaining various forms of receipts, it will The required data is extracted from the receipt according to the preset fields, and then the obtained data is inserted into the above receipt table to obtain a uniform receipt and the like.
  • the above printing includes printing into a paper file by a printer, or printing to an electronic equivalent file in a format such as PDF through a virtual printer, and saving it to a designated storage space.
  • the enterprise-end front-end machine can perform bank-enterprise direct connection functions with a plurality of different types of banks, multiple UKey interfaces are set on the enterprise-side front-end machine to ensure that each bank The normal use of accounts; when initiating the receipt query task, there is no need to manually log in to different bank accounts to perform the receipt query, but it is automatically completed through the financial system, which can automatically query the receipt of different bank accounts, which greatly improves
  • the efficiency of obtaining receipts for different types of bank accounts saves human resources, and it only needs to be configured once. In the process of obtaining receipts, there will be no artificial problems such as entering bank account errors.
  • an embodiment of the present application provides a receipt receipt device, which uses an enterprise-side front-end machine set on an enterprise side to perform financial data interaction with a bank-side.
  • the enterprise-side front-end machine is provided with multiple UKey interfaces.
  • the enterprise front end 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 types.
  • 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 receipt obtaining device includes:
  • the sending unit 10 is configured to send a plurality of bank account receipt inquiry tasks to the enterprise-end front-end processor, wherein the plurality of bank accounts includes at least two bank accounts of a large bank type;
  • the task sending unit 20 is configured to use the enterprise-end front-end machine to send the task of querying receipts for different bank accounts to the corresponding bank front-end machine, so as to query the corresponding return-order form to the bank server of the corresponding bank front-end machine ;
  • the receiving unit 30 is configured to receive a receipt for each of the bank accounts obtained by the enterprise-end front-end processor from each of the bank front-end processors.
  • the above-mentioned receipt is a bank account statement, also called a bank account transaction statement.
  • a bank account statement also called a bank account transaction statement.
  • the above-mentioned inquiry query task is to obtain a running bill statement within a specified time period of a designated bank account, or a running bill to a certain bank account.
  • Enterprises that use the front end of the enterprise will set up multiple different bank accounts, and these bank accounts are distributed in different types of banks.
  • the process of sending a return receipt query task includes: after selecting a bank account for which a return receipt is to be queried in a list, the receiving enterprise configures the return receipt content of each bank account, for example, for the return of a bank account.
  • the single content configuration is: a bank account and b customer's all transaction record statements within a specified period of time, etc.
  • the order inquiry task of the selected bank account can then be sent to the enterprise front-end processor at the same time or according to a preset priority rule.
  • query receipts for different bank accounts can be automatically generated at different times, and then automatically sent to the above-mentioned front end of the enterprise. For example, a reply to the specified configuration content of account a is generated at 10 o'clock every day. At 12 o'clock, a receipt for the specified configuration content of the d account is generated.
  • the enterprise-side front-end machine since the above-mentioned enterprise-side front-end machine is connected to different bank front-end machines, after obtaining multiple receipt inquiry tasks, it will first analyze the bank information corresponding to each inquiry receipt task in order to facilitate Send the receipt inquiry task correctly to the corresponding bank front-end machine.
  • the corresponding UKey information When sending the corresponding receipt inquiry task to the corresponding bank front-end machine, the corresponding UKey information will also be obtained to facilitate the normal receipt inquiry processing of the bank. .
  • the receipts corresponding to the inquiry receipt tasks are obtained.
  • the sending unit 10 includes:
  • a sending module 11 is configured to send a plurality of receipt query task IDs corresponding to a plurality of receipt query tasks of the bank account to the enterprise-end front-end machine, wherein the enterprise-end front-end machine sends a plurality of the receipts
  • the query task ID is stored in a preset cache queue
  • the receiving feedback module 12 is configured to receive an ID query task ID fed back by the front-end server of the enterprise, obtain a corresponding query query task based on the ID query task ID, and send it to the front-end server of the enterprise.
  • the ID of the receipt query task is only an identifier, and the ID uniquely corresponds to one of the receipt query tasks.
  • the ID query task ID has no task content to prevent the receipt query task from being directly placed in
  • the front-end of the enterprise side affects the running space of the front-end of the enterprise side and reduces its operating speed. Because the enterprise-end front-end unit of this application can be connected to multiple bank-side front-end units, there will be many different tasks, and directly stacking various tasks into the cache of the front-end unit will greatly reduce the enterprise-side front-end units. Set up the operating efficiency and even crash. In this application, only the task ID of the return order is placed, which greatly reduces the cache space requirement of the front end of the enterprise and improves the quality of the operating environment.
  • the preset cache queue generally includes a transaction cache queue and a query cache queue.
  • Different cache queues store task IDs of corresponding attributes, and correspondingly set a transaction thread pool and a query thread pool.
  • the front-end server of the enterprise obtains the ID query task ID, it first determines the attributes of the ID query task ID.
  • the attributes include transaction attributes and query attributes. Because the ID query task ID belongs to the query class, it is placed in the Query cache queue.
  • 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 tasks sent are all back-to-order query tasks
  • the order in which the task IDs corresponding to each task are stored in the query cache queue also has a sequential order
  • the reasons for the sequential order include: the enterprise side has different queries
  • the priority of the bank account return order task is preset. For example, if the X bank account is the main bank account on the enterprise side, the priority of the task of querying the return order query ID of the X bank account is set to a higher priority such as 1 or Priority of 2 and so on.
  • the return order query task ID fed back by the front end of the enterprise refers to that the query thread pool corresponding to the query cache queue is free, then the query cache queue is obtained to obtain the return order query task, and Because the query cache queue is only the ID query task ID at this time, the enterprise side will return the ID query task ID to the above application server, and the application server will generate or retrieve the corresponding receipt query based on the ID query task ID. The task is then sent to the enterprise front end.
  • the foregoing receipt obtaining device further includes:
  • a judging unit 101 configured to judge whether a UKey device corresponding to various types of banks is inserted into the front end of the enterprise;
  • the first alarm unit 102 is configured to report an alarm if it is determined that UKey devices corresponding to various types of banks are not inserted 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 and the identifiers representing various types of banks configured when the enterprise-side front-end processor is configured are collected.
  • the collected logo fully covers 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 and other steps. Otherwise, the bank type corresponding to the uncovered identifier is extracted and sent to the relevant personnel of the enterprise for alarm.
  • the relevant personnel of the enterprise can perform corresponding processing and will forget the inserted UKey device or Loose insertions cause re-insertion of UKey devices with poor contact, etc., to ensure the interaction between the company and the banks.
  • this judgment method has defects, the judgment speed will be faster.
  • the above-mentioned receipt obtaining device further includes:
  • the heartbeat detection unit is configured to receive a heartbeat detection packet sent by the enterprise-end front-end unit, and detect a connection state with the enterprise-side front-end unit; if the connection state is disconnected, an alarm message is issued.
  • 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 receiving and 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 sending unit 10 includes:
  • the long connection module is configured to send the order return query task to the enterprise-end front-end processor through a long connection.
  • the bank-enterprise direct connection task sent to the enterprise front-end machine may be continuous, use a long connection to monitor the service, so that after each operation is not disconnected, you can directly send a data packet during the next processing.
  • Establish a TCP (Transmission Control Protocol) connection to maintain the efficiency of processing tasks.
  • the application server and the enterprise-end front end adopt a block input output (BIO) synchronous blocking mode for a long connection.
  • BIO block input output
  • Different order return query 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, the BIO synchronous blocking mode is used in this application to enable the application server and the enterprise front-end processor. Make a long connection.
  • the above-mentioned receipt obtaining device further includes:
  • a serialization unit is used to serialize the messages sent by the application server and the enterprise front end 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 message packaging and sending.
  • the foregoing receipt obtaining device further includes:
  • An obtaining unit 40 configured to obtain corresponding data in the receipt according to a preset field
  • An inserting unit 50 configured to insert the acquired data into a preset receipt form
  • the printing unit 60 is configured to obtain a print command and print the receipt form of the inserted data.
  • the receipt form of each bank is different, for the purpose of research and development efficiency and management convenience, only one form of receipt form is set in this application, so various different forms are obtained.
  • the required data will be extracted from the receipt according to the preset fields, and then the obtained data will be inserted into the above receipt form to obtain a uniform receipt.
  • the above printing includes printing into a paper file by a printer, or printing to an electronic equivalent file in a format such as PDF through a virtual printer, and saving it to a designated storage space.
  • the enterprise-end front-end machine can perform bank-enterprise direct connection functions with a plurality of different types of banks, multiple UKey interfaces are set on the enterprise-side front-end machine to ensure that each bank The normal use of accounts; when initiating the receipt query task, there is no need to manually log in to different bank accounts to perform the receipt query, but it is automatically completed through the financial system, which can automatically query the receipt of different bank accounts, which greatly improves
  • the efficiency of obtaining receipts for different types of bank accounts saves human resources, and it only needs to be configured once. In the process of obtaining receipts, there will be no artificial problems such as entering bank account errors.
  • 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 the receipt obtaining method program 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 the receipt obtaining method of any of the foregoing embodiments.
  • An embodiment of the present application further provides a computer non-volatile readable storage medium having computer readable instructions stored thereon.
  • the computer readable instructions are executed by a processor, the method for obtaining a receipt in any of the foregoing embodiments is implemented.
  • 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)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Disclosed in the present application are a receipt acquisition method, an apparatus, a computer device, and a storage medium: an enterprise end front-end machine may carry out a corporate-to-bank connectivity function with a plurality of banks of different types, and the enterprise end front-end machine is provided thereon with a plurality of UKey interfaces, thus guaranteeing the normal use of each bank account; a receipt query task is initiated without needing to manually log into different bank accounts for receipt querying but rather by automatically completed by means of a financial system, thus improving the efficiency of receipt acquisition for accounts at different major categories of banks.

Description

回单获取方法、装置、计算机设备和存储介质Method, device, computer equipment and storage medium for obtaining receipt
本申请要求于2018年7月2日提交中国专利局、申请号为2018107099923,申请名称为“回单获取方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed with the Chinese Patent Office on July 2, 2018, with an application number of 2018107099923, and the application name is "Receipt Receipt Method, Device, Computer Equipment, and Storage Medium", 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 obtaining a receipt.
背景技术Background technique
银企直联是一种新的网上银行***与企业的财务***在线直接联接的接入方式。银企直联通过因特网或专线连接方式,实现了银行和企业计算机***的有机融合和平滑对接。同时,银企直联可以为企业在财务***中开发和定制个性化功能提供支持,具有信息同步、高效简便、个***和安全可靠的鲜明特色。银企直联能够做到与企业计算机***的对接,方便的完成企业***的与银行有关的交易。企业的各银行账户的回单,时常需要使用,那么需要利用银企直联功能,以获取到对应的银行账户的回单。当企业通过财务***到银行获取回单时,需要在企业设置一个与银行端前置机匹配的企业端前置机,并在该企业端上***对应的UKey,然后才能与对应的银行端前置机进行交互,这样,如果一个企业与不同的银行建立银企直联以获取不同银行账户的回单,则需要设置多个企业端前置机,与不同的银行进行交互时,选择不同的企业端前置机。即,传统的企业端前置机一个银行只能对接一个前置机,操作完成之后需要另外换一个前置机,并不能同时在一个前置机上对多家银行进行操作,所以在获取不同银行账户的回单时,比较麻烦。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. The receipts of various bank accounts of an enterprise are often used, and then the bank-enterprise direct link function needs to be used to obtain the receipts of the corresponding bank account. When an enterprise obtains a receipt from the bank through the financial system, it needs to set up an enterprise-side front-end machine that matches the bank-side front-end machine, and insert the corresponding UKey on the enterprise side, and then it can communicate with the corresponding bank-side front-end. Set up the machine to interact. In this way, if an enterprise establishes a direct bank-enterprise connection with different banks to obtain receipts for different bank accounts, multiple enterprise-end front-end machines need to be set up. When interacting with different banks, choose different ones. Enterprise front end. That is, the traditional enterprise-side front-end machine can only connect one front-end machine. After the operation is completed, another front-end machine needs to be replaced, and multiple banks cannot be operated on one front-end machine at the same time. Account receipt is more troublesome.
技术问题technical problem
本申请的主要目的为提供一种可以简单、快速地获取不同银行账户的回单的回单获取方法、装置、计算机设备和存储介质。The main purpose of this application is to provide a receipt obtaining method, device, computer equipment, and storage medium that can easily and quickly obtain receipts for different bank accounts.
技术解决方案Technical solutions
为了实现上述发明目的,本申请提出一种回单获取方法,利用企业端设置的企业端前置机与银行端进行财务数据交互,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述方法,包括:In order to achieve the above-mentioned object of the invention, the present application proposes a method for obtaining a receipt, which uses an enterprise-end front-end machine set on the enterprise side to perform financial data interaction with a bank-side. The enterprise-side front-end machine is provided with multiple UKey interfaces. An enterprise-side front-end processor corresponding to a plurality of the UKey interfaces is configured to complete financial data interaction with a plurality of bank-side front-end processors of different types of banks; the method includes:
向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;Sending a receipt inquiry task corresponding to multiple bank accounts to the enterprise-end front-end processor, wherein the multiple bank accounts include at least two bank accounts of a large bank type;
利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;Using the enterprise-end front-end machine to send the order receipt query task for different bank accounts to the corresponding bank front-end machine, so as to query the corresponding bank-back order to the bank server of the corresponding bank front-end machine;
接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。Receiving a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
本申请还提供一种回单获取装置,利用企业端设置的企业端前置机与银行端进行财务数据交互,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述装置,包括:The application also provides a receipt obtaining device, which uses an enterprise-side front-end machine set on the enterprise side to perform financial data interaction with the bank side. The enterprise-side front-end machine is provided with multiple UKey interfaces, and the enterprise-side front-end machine Corresponding to the plurality of UKey interfaces is configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks; the device includes:
发送单元,用于向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;A sending unit, configured to send to the enterprise-end front-end processor a plurality of bank account corresponding inquiry tasks, wherein the plurality of bank accounts includes at least two bank accounts of a large bank type;
针对任务发送单元,用于利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;The task sending unit is configured to use the enterprise-end front-end machine to send the order receipt inquiry task for different bank accounts to the corresponding bank front-end machine, so as to inquire the corresponding receipt in the bank server of the corresponding bank front-end machine;
接收单元,用于接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。The receiving unit is configured to receive a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述任一项所述方法的步骤。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接口,以保证各个银行账户的正常使用;当发起回单查询任务时,无需手动地登录不同的银行账户进行回单查询,而是通过财务***自动完成,即可以自动查询不同的银行账户的回单,大大地提高了对不同大类银行的账户的回单获取的效率,节约人力资源,而且只需要配置一次即可,在获取回单过程中,不会出现人为的如输入银行账号错误等问题。The method, device, computer equipment and storage medium for obtaining the receipt in this application, because the enterprise-end front-end machine can perform the bank-enterprise direct connection function with a plurality of different types of banks, so multiple UKey interfaces are set on the enterprise-side front-end machine. In order to ensure the normal use of each bank account; when initiating the receipt inquiry task, there is no need to manually log in to different bank accounts to perform the inquiry. Instead, it is automatically completed through the financial system, which can automatically query the receipt of different bank accounts. , Which greatly improves the efficiency of obtaining receipts for different types of bank accounts, saving human resources, and only needs to be configured once. In the process of obtaining receipts, there will be no artificial problems such as entering bank account errors. .
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1 为本申请一实施例的回单获取方法的流程示意图;FIG. 1 is a schematic flowchart of a method for obtaining a receipt according to an embodiment of the present application; FIG.
图2 为本申请一实施例的回单获取方法的流程示意图;2 is a schematic flowchart of a method for obtaining a receipt according to an embodiment of the present application;
图3 为本申请一实施例的回单获取装置的结构示意框图;FIG. 3 is a schematic block diagram of a structure of a receipt receipt apparatus according to an embodiment of the present application; FIG.
图4 为本申请一实施例的发送单元的结构示意框图;4 is a schematic block diagram of a sending unit according to an embodiment of the present application;
图5 为本申请一实施例的回单获取装置的结构示意框图;5 is a schematic block diagram of a structure of a receipt receipt apparatus according to an embodiment of the present application;
图6 为本申请一实施例的回单获取装置的结构示意框图;FIG. 6 is a schematic block diagram of a structure of a receipt receipt apparatus according to an embodiment of the present application; FIG.
图7 为本申请一实施例的计算机设备的结构示意框图。FIG. 7 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
本发明的最佳实施方式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 obtaining a receipt, which uses an enterprise-side front-end machine set on an enterprise side to perform financial data interaction with a bank-side. The enterprise-side front-end machine is provided with multiple UKey interfaces. The enterprise front end 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 types.
上述的企业端前置机是指设置在企业端的前置机,是企业端财务***与银行端进行银企直联时的中间设备。上述企业端前置机被配置为可以与多个不同银行种类的银行端前置机完成数据交互,配置过程为,当企业安装企业端前置机时,企业端前置机有一个管理员界面,在预设的界面内输入指定的配置信息,该配置信息包括企业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 method for obtaining a receipt includes the steps:
S1、向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;S1. Sending a receipt inquiry task corresponding to a plurality of bank accounts to the enterprise-end front-end processor, wherein the plurality of bank accounts include at least two bank accounts of a large bank type;
S2、利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;S2. Use the enterprise-end front-end machine to send the receipt inquiry task for different bank accounts to the corresponding bank front-end machine to query the corresponding receipt in the bank server of the corresponding bank front-end machine;
S3、接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。S3. Receive a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
如上述步骤S1所述,上述回单即为银行流水账单,也称银行账户交易对账单。指的是客户在一段时间内与银行发生的存取款业务交易清单。上述回单查询任务即为获取指定银行账户的指定时间段内的流水账单任务,或者与某一个银行账户之间的流水账单等。用到企业端前置的企业都会设置有多个不同的银行账户,这些银行账户分布于不同的银行大类。因为上述企业端前置机可以***多个UKey,那么在查询多个银行账户的回单时,只要提前将各银行账户对应的UKey全部***到企业端前置机上即可,无需每查询一个银行账户的回单,对应的***一个UKey的操作等,又因为是一次性将各银行对应的UKey全部***到企业端前置机上,则无需担心UKey插错的问题。在本实施例中,发送回单查询任务的过程包括:在一个列表中选择需要查询回单的银行账户后,接收企业对每一个银行账户的回单内容配置,比如,针对a银行账户的回单内容配置是:a银行账户与b客户在指定时间段内的全部交易记录对账单等,当全部回单内容配置结束后,接收一个“开始获取”的命令后,即可生成针对多个被选择的银行账户的回单查询任务,然后可以同时或按照预设的优先规则发送给企业端前置机。本申请中,可以在不同的时间自动生成针对不同银行账户的回单查询任务,然后自动发送给上述企业端前置机等,如,在每天10点的时候生成a账户的指定配置内容的回单,在12点的时候生成d账户的指定配置内容的回单等。As described in step S1 above, the above-mentioned receipt is a bank flow account statement, also referred to as a bank account transaction statement. Refers to the list of deposit and withdrawal business transactions that customers have with banks over a period of time. The above-mentioned inquiry query task is to obtain a running bill statement within a specified time period of a designated bank account, or a running bill to a certain bank account. Enterprises that use the front end of the enterprise will set up multiple different bank accounts, and these bank accounts are distributed in different types of banks. Because the above-mentioned enterprise-side front-end machine can insert multiple UKeys, when querying the receipts of multiple bank accounts, all the UKeys corresponding to each bank account must be inserted into the enterprise-side front-end machine in advance, without having to query each bank The account receipt, the corresponding operation of inserting a UKey, and so on, and because the UKey corresponding to each bank are all inserted into the front end of the enterprise at one time, there is no need to worry about the problem of incorrect UKey insertion. In this embodiment, the process of sending a return receipt query task includes: after selecting a bank account for which a return receipt is to be queried in a list, the receiving enterprise configures the return receipt content of each bank account, for example, for the return of a bank account. The single content configuration is: a bank account and b customer's all transaction record statements within a specified period of time, etc. After the configuration of all the receipt details is completed, after receiving a "start acquisition" command, it can generate The order inquiry task of the selected bank account can then be sent to the enterprise front-end processor at the same time or according to a preset priority rule. In this application, query receipts for different bank accounts can be automatically generated at different times, and then automatically sent to the above-mentioned front end of the enterprise. For example, a reply to the specified configuration content of account a is generated at 10 o'clock every day. At 12 o'clock, a receipt for the specified configuration content of the d account is generated.
如上述步骤S2所述,因为上述企业端前置机连接有不同的银行前置机,获取到多个回单查询任务后,会先分析各回单查询任务对应的银行信息等,以便于将回单查询任务正确地发送给对应的银行前置机,在发送给对应的银行前置机回单查询任务的时候,还会获取对应的UKey信息,以便于银行端正常的回单查询处理。As described in step S2 above, because the above-mentioned enterprise-side front-end machine is connected to different bank front-end machines, after obtaining multiple receipt inquiry tasks, it will first analyze the bank information corresponding to each inquiry receipt task in order to facilitate the return The single query task is correctly sent to the corresponding bank front-end machine. When the single-query task is sent to the corresponding bank front-end machine, the corresponding UKey information will also be obtained to facilitate the bank's normal order-back query processing.
如上述步骤S3所述,即获取到针对各回单查询任务对应的回单。As described in step S3 above, the receipts corresponding to the inquiry receipt tasks are obtained.
在一个实施例中,上述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤S1,包括:In one embodiment, the above-mentioned step S1 of sending the inquiry query tasks corresponding to a plurality of bank accounts to the front-end processor of the enterprise includes:
S11、向所述企业端前置机发送多个所述银行账户的回单查询任务对应的回单查询任务ID,其中,所述企业端前置机将多个所述回单查询任务ID存入到预设的缓存队列中;S11. Send a plurality of receipt query task IDs corresponding to the plurality of receipt query tasks of the bank account to the enterprise-end front-end machine, where the enterprise-end front-end machine stores a plurality of the receipt-request task IDs. Into the preset cache queue;
S12、接收所述企业端前置机反馈的回单查询任务ID,根据所述回单查询任务ID获取对应的回单查询任务,并发给所述企业端前置机。S12. Receive a receipt query task ID fed back by the enterprise-end front-end processor, obtain a corresponding receipt query task according to the receipt-back query task ID, and send the query response task to the enterprise-end front-end processor.
如上述步骤S11所述,上述的回单查询任务ID只是一个标识,该标识唯一对应一个所述回单查询任务,回单查询任务ID并没有任务内容,以防止将回单查询任务直接放到企业端前置机中,影响企业端前置机的运行空间,而降低其运行速度。因为本申请的企业端前置机可以连接多个银行端前置机,所以各种不同的任务会较多,直接将各种任务堆积到前置机的缓存中,会大大地降低企业端前置机的运行效率,甚至崩溃。本申请中,只放入回单查询任务ID,则大大地降低了企业端前置机对缓存空间的要求,提高运行环境质量。本实施例中,预设的缓存队列一般包括交易缓存队列和查询缓存队列,不同的缓存队列存放对应属性的任务ID,对应的设置交易线程池和查询线程池。企业端前置机在获取到回单查询任务ID时,先判断所述回单查询任务ID的属性,其中属性包括交易属性、查询属性,因为回单查询任务ID属于查询类,所以放入到查询缓存队列中。两个缓存队列中的各任务ID按预设的优先级进行排序处理,比如,支付的级别高于查询银行流水的级别等。具体地,每个任务会设置有一个类型标识,类型标识可分为1-8个级别,为1的话等级最高,代表紧急任务,优先处理。各种银企直联任务对应不同的类型标识,其对应的任务ID则具有同样的类型标识。本申请中,虽然发出的任务都是回单查询任务,但是各任务对应的任务ID存入到查询缓存队列中的顺序也会存在先后的顺序,造成先后顺序的原因包括:企业端对查询不同银行账户的回单的任务预设了优先级,比如,X银行账户是企业端的主要银行账户,则将查询该X银行账户的回单查询任务ID的优先级设定为靠前的如1或2的优先级等。As described in step S11, the ID query task ID is only an identifier, and the ID uniquely corresponds to one of the ID query tasks. The ID query task ID has no task content to prevent the receipt query task from being directly placed on The front-end of the enterprise side affects the running space of the front-end of the enterprise side and reduces its operating speed. Because the enterprise-end front-end unit of this application can be connected to multiple bank-side front-end units, there will be many different tasks, and directly stacking various tasks into the cache of the front-end unit will greatly reduce the enterprise-side front-end units. Set up the operating efficiency and even crash. In this application, only the task ID of the return order is placed, which greatly reduces the cache space requirement of the front end of the enterprise and improves the quality of the operating environment. In this embodiment, the preset cache queue generally includes a transaction cache queue and a query cache queue. Different cache queues store task IDs of corresponding attributes, and correspondingly set a transaction thread pool and a query thread pool. When the front-end server of the enterprise obtains the ID query task ID, it first determines the attributes of the ID query task ID. The attributes include transaction attributes and query attributes. Because the ID query task ID belongs to the query class, it is placed in the Query cache queue. 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. In this application, although the tasks sent are all back-to-order query tasks, the order in which the task IDs corresponding to each task are stored in the query cache queue also has a sequential order, and the reasons for the sequential order include: the enterprise side has different queries The priority of the bank account return order task is preset. For example, if the X bank account is the main bank account on the enterprise side, the priority of the task of querying the return order query ID of the X bank account is set to a higher priority such as 1 or Priority of 2 and so on.
如上述步骤S12所述,上述企业端前置机反馈的回单查询任务ID是指,对应上述查询缓存队列的查询线程池中有空闲,则到查询缓存队列中获取回单查询任务,又因为此时查询缓存队列中只是回单查询任务ID,所以企业端前置机会将回单查询任务ID返回给上述应用服务器,应用服务器会根据回单查询任务ID生成或调取对应的回单查询任务,然后发送给企业端前置机。As described in step S12 above, the return order query task ID fed back by the enterprise-end front-end processor refers to that the query thread pool corresponding to the above query cache queue is free, and then the return order query task is obtained from the query cache queue, because At this time, the query cache queue is only the ID query task ID, so the enterprise side will return the ID query task ID to the application server, and the application server will generate or retrieve the corresponding ID query task according to the ID query task ID. And then send it to the enterprise front end.
在一个实施例中,上述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤S1之前,包括:In one embodiment, before step S1 of sending the inquiry query tasks corresponding to multiple bank accounts to the enterprise front-end processor, 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 method for obtaining receipts further includes:
接收所述企业端前置机发送的心跳检测包,检测与所述企业端前置机的连接状态;若连接状态为断开,则发出警报信息。Receiving a heartbeat detection packet sent by the enterprise-end front-end unit to detect a connection state with the enterprise-side front-end unit; if the connection state is disconnected, an alarm message is issued.
理论上,企业端前置机和应用服务器应该长期在线,但是因为是电子产品,难免会出现故障或者升级等处理,此时企业端前置机与应用服务器可能断掉连接,那么通过心跳检测的方式检测企业端前置机和应用服务器的连接状态,当两者连接失败,则需要发出警报信息。发出警报信息包括两种,第一种,发送邮件等信息给企业的相关人员,和/或发送给提供企业端前置机的第三方的相关人员;第二种,发送指定的信息给与其连接的银行端前置机,并由银行端前置机发送给银行的相关管理***,以告知银行端的工作人员,银行端的工作人员可以人工告知企业端相应人员发生了断连接的故障等。上述接收发送心跳检测包,可以保障企业端的财务人了解企业端前置机和应用服务器是否断开连接,从而及时处理原本需要银企直联完成的事物。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 receiving and 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 sending the inquiry query tasks corresponding to a plurality of bank accounts to the front-end processor of the enterprise includes:
S13、通过长连接的方式向所述企业端前置机发送所述回单查询任务。S13. Send the order return inquiry task to the enterprise-end front-end processor through a long connection.
如上述步骤S13所述,因为向企业端前置机发送的银企直联任务可能是连续的,所以使用长连接的方式监听服务,使每个操作完后都不断开,下次处理时直接发送数据包就可以,不用建立TCP(Transmission Control Protocol 传输控制协议)连接,以保持处理任务的效率。本实施例中,应用服务器与企业端前置机采用BIO(block input output)同步阻塞模式进行长连接。不同的回单查询任务不能够同时进行,所以需要按照指令顺序进行,一个指令执行完才能执行下一个指令,不能异步执行,所以本申请中采用BIO同步阻塞模式使应用服务器与企业端前置机进行长连接。As described in step S13 above, because the bank-enterprise direct connection task sent to the enterprise front-end machine may be continuous, the service is monitored 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 application server and the enterprise-end front end adopt a block input output (BIO) synchronous blocking mode for a long connection. Different order return query 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, the BIO synchronous blocking mode is used in this application to enable the application server and the enterprise front-end processor. 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.
参照图2,在一个实施例中,上述接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单的步骤S3之后,包括:Referring to FIG. 2, in an embodiment, after step S3 of receiving a receipt of each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines, the method includes:
S4、根据预设的字段,获取所述回单中对应的数据;S4. Acquire corresponding data in the receipt according to a preset field;
S5、将获取的数据***到预设的回单表中;S5. Insert the acquired data into a preset receipt form;
S6、获取打印命令,打印所述***数据的回单表。S6. Obtain a print command to print the receipt form of the inserted data.
如上述步骤S4至S6所述,因为各银行的回单格式不同,为了研发效率以及管理方便,本申请中只会设置一种回单表,所以获取到各种不同格式的回单后,会根据预设的字段将需要的数据从回单中抽取出来,然后在将获取的数据***到上述回单表中,以得到格式统一的回单等。上述打印包括通过打印机打印成纸质文件,也可以通过虚拟的打印机打印成PDF等格式的电子当文件,并保存到指定的存储空间。As described in steps S4 to S6 above, because the forms of receipts of different banks are different, for research and development efficiency and management convenience, only one form of receipts will be set in this application, so after obtaining various forms of receipts, it will The required data is extracted from the receipt according to the preset fields, and then the obtained data is inserted into the above receipt table to obtain a uniform receipt and the like. The above printing includes printing into a paper file by a printer, or printing to an electronic equivalent file in a format such as PDF through a virtual printer, and saving it to a designated storage space.
本申请实施例的的回单获取方法,因为企业端前置机能够与多个不同种类的银行进行银企直联功能,所以在企业端前置机上设置了多个UKey接口,以保证各个银行账户的正常使用;当发起回单查询任务时,无需手动地登录不同的银行账户进行回单查询,而是通过财务***自动完成,即可以自动查询不同的银行账户的回单,大大地提高了对不同大类银行的账户的回单获取的效率,节约人力资源,而且只需要配置一次即可,在获取回单过程中,不会出现人为的如输入银行账号错误等问题。In the method for obtaining receipts in the embodiments of the present application, since the enterprise-end front-end machine can perform bank-enterprise direct connection functions with a plurality of different types of banks, multiple UKey interfaces are set on the enterprise-side front-end machine to ensure that each bank The normal use of accounts; when initiating the receipt query task, there is no need to manually log in to different bank accounts to perform the receipt query, but it is automatically completed through the financial system, which can automatically query the receipt of different bank accounts, which greatly improves The efficiency of obtaining receipts for different types of bank accounts saves human resources, and it only needs to be configured once. In the process of obtaining receipts, there will be no artificial problems such as entering bank account errors.
参照图3,本申请实施例提供一种回单获取装置,利用企业端设置的企业端前置机与银行端进行财务数据交互,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互。Referring to FIG. 3, an embodiment of the present application provides a receipt receipt device, which uses an enterprise-side front-end machine set on an enterprise side to perform financial data interaction with a bank-side. The enterprise-side front-end machine is provided with multiple UKey interfaces. The enterprise front end 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 types.
上述的企业端前置机是指设置在企业端的前置机,是企业端财务***与银行端进行银企直联时的中间设备。上述企业端前置机被配置为可以与多个不同银行种类的银行端前置机完成数据交互,配置过程为,当企业安装企业端前置机时,企业端前置机有一个管理员界面,在预设的界面内输入指定的配置信息,该配置信息包括企业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 receipt obtaining device includes:
发送单元10,用于向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;The sending unit 10 is configured to send a plurality of bank account receipt inquiry tasks to the enterprise-end front-end processor, wherein the plurality of bank accounts includes at least two bank accounts of a large bank type;
针对任务发送单元20,用于利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;The task sending unit 20 is configured to use the enterprise-end front-end machine to send the task of querying receipts for different bank accounts to the corresponding bank front-end machine, so as to query the corresponding return-order form to the bank server of the corresponding bank front-end machine ;
接收单元30,用于接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。The receiving unit 30 is configured to receive a receipt for each of the bank accounts obtained by the enterprise-end front-end processor from each of the bank front-end processors.
在上述发送单元10中,上述回单即为银行流水账单,也称银行账户交易对账单。指的是客户在一段时间内与银行发生的存取款业务交易清单。上述回单查询任务即为获取指定银行账户的指定时间段内的流水账单任务,或者与某一个银行账户之间的流水账单等。用到企业端前置的企业都会设置有多个不同的银行账户,这些银行账户分布于不同的银行大类。因为上述企业端前置机可以***多个UKey,那么在查询多个银行账户的回单时,只要提前将各银行账户对应的UKey全部***到企业端前置机上即可,无需每查询一个银行账户的回单,对应的***一个UKey的操作等,又因为是一次性将各银行对应的UKey全部***到企业端前置机上,则无需担心UKey插错的问题。在本实施例中,发送回单查询任务的过程包括:在一个列表中选择需要查询回单的银行账户后,接收企业对每一个银行账户的回单内容配置,比如,针对a银行账户的回单内容配置是:a银行账户与b客户在指定时间段内的全部交易记录对账单等,当全部回单内容配置结束后,接收一个“开始获取”的命令后,即可生成针对多个被选择的银行账户的回单查询任务,然后可以同时或按照预设的优先规则发送给企业端前置机。本申请中,可以在不同的时间自动生成针对不同银行账户的回单查询任务,然后自动发送给上述企业端前置机等,如,在每天10点的时候生成a账户的指定配置内容的回单,在12点的时候生成d账户的指定配置内容的回单等。In the above-mentioned sending unit 10, the above-mentioned receipt is a bank account statement, also called a bank account transaction statement. Refers to the list of deposit and withdrawal business transactions that customers have with banks over a period of time. The above-mentioned inquiry query task is to obtain a running bill statement within a specified time period of a designated bank account, or a running bill to a certain bank account. Enterprises that use the front end of the enterprise will set up multiple different bank accounts, and these bank accounts are distributed in different types of banks. Because the above-mentioned enterprise-side front-end machine can insert multiple UKeys, when querying the receipts of multiple bank accounts, all the UKeys corresponding to each bank account must be inserted into the enterprise-side front-end machine in advance, without having to query each bank The account receipt, the corresponding operation of inserting a UKey, and so on, and because the UKey corresponding to each bank are all inserted into the front end of the enterprise at one time, there is no need to worry about the problem of incorrect UKey insertion. In this embodiment, the process of sending a return receipt query task includes: after selecting a bank account for which a return receipt is to be queried in a list, the receiving enterprise configures the return receipt content of each bank account, for example, for the return of a bank account. The single content configuration is: a bank account and b customer's all transaction record statements within a specified period of time, etc. After the configuration of all the receipt details is completed, after receiving a "start acquisition" command, it can generate The order inquiry task of the selected bank account can then be sent to the enterprise front-end processor at the same time or according to a preset priority rule. In this application, query receipts for different bank accounts can be automatically generated at different times, and then automatically sent to the above-mentioned front end of the enterprise. For example, a reply to the specified configuration content of account a is generated at 10 o'clock every day. At 12 o'clock, a receipt for the specified configuration content of the d account is generated.
在上述针对任务发送单元20中,因为上述企业端前置机连接有不同的银行前置机,获取到多个回单查询任务后,会先分析各回单查询任务对应的银行信息等,以便于将回单查询任务正确地发送给对应的银行前置机,在发送给对应的银行前置机回单查询任务的时候,还会获取对应的UKey信息,以便于银行端正常的回单查询处理。In the above-mentioned task sending unit 20, because the above-mentioned enterprise-side front-end machine is connected to different bank front-end machines, after obtaining multiple receipt inquiry tasks, it will first analyze the bank information corresponding to each inquiry receipt task in order to facilitate Send the receipt inquiry task correctly to the corresponding bank front-end machine. When sending the corresponding receipt inquiry task to the corresponding bank front-end machine, the corresponding UKey information will also be obtained to facilitate the normal receipt inquiry processing of the bank. .
在上述接收单元30中,即获取到针对各回单查询任务对应的回单。In the receiving unit 30 described above, the receipts corresponding to the inquiry receipt tasks are obtained.
参照图4,在一个实施例中,上述发送单元10,包括:Referring to FIG. 4, in an embodiment, the sending unit 10 includes:
发送模块11,用于向所述企业端前置机发送多个所述银行账户的回单查询任务对应的回单查询任务ID,其中,所述企业端前置机将多个所述回单查询任务ID存入到预设的缓存队列中;A sending module 11 is configured to send a plurality of receipt query task IDs corresponding to a plurality of receipt query tasks of the bank account to the enterprise-end front-end machine, wherein the enterprise-end front-end machine sends a plurality of the receipts The query task ID is stored in a preset cache queue;
接收反馈模块12,用于接收所述企业端前置机反馈的回单查询任务ID,根据所述回单查询任务ID获取对应的回单查询任务,并发给所述企业端前置机。The receiving feedback module 12 is configured to receive an ID query task ID fed back by the front-end server of the enterprise, obtain a corresponding query query task based on the ID query task ID, and send it to the front-end server of the enterprise.
在上述发送模块11中,上述的回单查询任务ID只是一个标识,该标识唯一对应一个所述回单查询任务,回单查询任务ID并没有任务内容,以防止将回单查询任务直接放到企业端前置机中,影响企业端前置机的运行空间,而降低其运行速度。因为本申请的企业端前置机可以连接多个银行端前置机,所以各种不同的任务会较多,直接将各种任务堆积到前置机的缓存中,会大大地降低企业端前置机的运行效率,甚至崩溃。本申请中,只放入回单查询任务ID,则大大地降低了企业端前置机对缓存空间的要求,提高运行环境质量。本实施例中,预设的缓存队列一般包括交易缓存队列和查询缓存队列,不同的缓存队列存放对应属性的任务ID,对应的设置交易线程池和查询线程池。企业端前置机在获取到回单查询任务ID时,先判断所述回单查询任务ID的属性,其中属性包括交易属性、查询属性,因为回单查询任务ID属于查询类,所以放入到查询缓存队列中。两个缓存队列中的各任务ID按预设的优先级进行排序处理,比如,支付的级别高于查询银行流水的级别等。具体地,每个任务会设置有一个类型标识,类型标识可分为1-8个级别,为1的话等级最高,代表紧急任务,优先处理。各种银企直联任务对应不同的类型标识,其对应的任务ID则具有同样的类型标识。本申请中,虽然发出的任务都是回单查询任务,但是各任务对应的任务ID存入到查询缓存队列中的顺序也会存在先后的顺序,造成先后顺序的原因包括:企业端对查询不同银行账户的回单的任务预设了优先级,比如,X银行账户是企业端的主要银行账户,则将查询该X银行账户的回单查询任务ID的优先级设定为靠前的如1或2的优先级等。In the above sending module 11, the ID of the receipt query task is only an identifier, and the ID uniquely corresponds to one of the receipt query tasks. The ID query task ID has no task content to prevent the receipt query task from being directly placed in The front-end of the enterprise side affects the running space of the front-end of the enterprise side and reduces its operating speed. Because the enterprise-end front-end unit of this application can be connected to multiple bank-side front-end units, there will be many different tasks, and directly stacking various tasks into the cache of the front-end unit will greatly reduce the enterprise-side front-end units. Set up the operating efficiency and even crash. In this application, only the task ID of the return order is placed, which greatly reduces the cache space requirement of the front end of the enterprise and improves the quality of the operating environment. In this embodiment, the preset cache queue generally includes a transaction cache queue and a query cache queue. Different cache queues store task IDs of corresponding attributes, and correspondingly set a transaction thread pool and a query thread pool. When the front-end server of the enterprise obtains the ID query task ID, it first determines the attributes of the ID query task ID. The attributes include transaction attributes and query attributes. Because the ID query task ID belongs to the query class, it is placed in the Query cache queue. 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. In this application, although the tasks sent are all back-to-order query tasks, the order in which the task IDs corresponding to each task are stored in the query cache queue also has a sequential order, and the reasons for the sequential order include: the enterprise side has different queries The priority of the bank account return order task is preset. For example, if the X bank account is the main bank account on the enterprise side, the priority of the task of querying the return order query ID of the X bank account is set to a higher priority such as 1 or Priority of 2 and so on.
在上述接收反馈模块12中,上述企业端前置机反馈的回单查询任务ID是指,对应上述查询缓存队列的查询线程池中有空闲,则到查询缓存队列中获取回单查询任务,又因为此时查询缓存队列中只是回单查询任务ID,所以企业端前置机会将回单查询任务ID返回给上述应用服务器,应用服务器会根据回单查询任务ID生成或调取对应的回单查询任务,然后发送给企业端前置机。In the above-mentioned receiving feedback module 12, the return order query task ID fed back by the front end of the enterprise refers to that the query thread pool corresponding to the query cache queue is free, then the query cache queue is obtained to obtain the return order query task, and Because the query cache queue is only the ID query task ID at this time, the enterprise side will return the ID query task ID to the above application server, and the application server will generate or retrieve the corresponding receipt query based on the ID query task ID. The task is then sent to the enterprise front end.
参照图5,在一个实施例中,上述回单获取装置,还包括:Referring to FIG. 5, in one embodiment, the foregoing receipt obtaining 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 front end of the enterprise;
第一报警单元102,用于若判定所述企业端前置机上未***对应各种类银行的UKey设备,则报警。The first alarm unit 102 is configured to report an alarm if it is determined that UKey devices corresponding to various types of banks are not inserted into the front end of the enterprise.
在上述判断单元101和第一报警单元102中,采集各UKey接口***的UKey设备的对应其银行种类的标识,然后将所述标识与配置企业端前置机时配置的代表各类银行的标识进行比对,如果采集到的各标识全面覆盖配置企业端前置机时配置的代表各类银行的标识时,则判定企业端前置机上***对应各种类银行的UKey设备,可以执行后续如步骤S1等步骤,否者,将未被覆盖的标识对应的银行种类提取出来,并发送给企业的相关人员以报警,此时企业的相关人员可以进行相应的处理,将忘记***的UKey设备或***处松动而导致UKey设备接触不良的重新***等,以保证企业与各银行之间的交互。在另一实施例中,还可以判断获取到的UKey设备的标识与配置企业端前置机时配置的代表各类银行的标识(不重复)的数量是否相同,因为一个银行只会发一个UKey给企业,所以当数量相同时候,基本可以判定企业端前置机上***对应各种类银行的UKey设备,此种判断方法虽然存在缺陷,但是判断速度会更快。In the above-mentioned judging unit 101 and first 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 and the identifiers representing various types of banks configured when the enterprise-side front-end processor is configured are collected. For comparison, if the collected logo fully covers 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 and other steps. Otherwise, the bank type corresponding to the uncovered identifier is extracted and sent to the relevant personnel of the enterprise for alarm. At this time, the relevant personnel of the enterprise can perform corresponding processing and will forget the inserted UKey device or Loose insertions cause re-insertion of UKey devices with poor contact, etc., to ensure the interaction between the company 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 above-mentioned receipt obtaining device further includes:
心跳检测单元,用于接收所述企业端前置机发送的心跳检测包,检测与所述企业端前置机的连接状态;若连接状态为断开,则发出警报信息。The heartbeat detection unit is configured to receive a heartbeat detection packet sent by the enterprise-end front-end unit, and detect a connection state with the enterprise-side front-end unit; if the connection state is disconnected, an alarm message is issued.
理论上,企业端前置机和应用服务器应该长期在线,但是因为是电子产品,难免会出现故障或者升级等处理,此时企业端前置机与应用服务器可能断掉连接,那么通过心跳检测的方式检测企业端前置机和应用服务器的连接状态,当两者连接失败,则需要发出警报信息。发出警报信息包括两种,第一种,发送邮件等信息给企业的相关人员,和/或发送给提供企业端前置机的第三方的相关人员;第二种,发送指定的信息给与其连接的银行端前置机,并由银行端前置机发送给银行的相关管理***,以告知银行端的工作人员,银行端的工作人员可以人工告知企业端相应人员发生了断连接的故障等。上述接收发送心跳检测包,可以保障企业端的财务人了解企业端前置机和应用服务器是否断开连接,从而及时处理原本需要银企直联完成的事物。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 receiving and 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.
在一个实施例中,上述发送单元10,包括:In one embodiment, the sending unit 10 includes:
长连接模块,用于通过长连接的方式向所述企业端前置机发送所述回单查询任务。The long connection module is configured to send the order return query task to the enterprise-end front-end processor through a long connection.
因为向企业端前置机发送的银企直联任务可能是连续的,所以使用长连接的方式监听服务,使每个操作完后都不断开,下次处理时直接发送数据包就可以,不用建立TCP(Transmission Control Protocol 传输控制协议)连接,以保持处理任务的效率。本实施例中,应用服务器与企业端前置机采用BIO(block input output)同步阻塞模式进行长连接。不同的回单查询任务不能够同时进行,所以需要按照指令顺序进行,一个指令执行完才能执行下一个指令,不能异步执行,所以本申请中采用BIO同步阻塞模式使应用服务器与企业端前置机进行长连接。Because the bank-enterprise direct connection task sent to the enterprise front-end machine may be continuous, use a long connection to monitor the service, so that after each operation is not disconnected, you can directly send a data packet during the next processing. Establish a TCP (Transmission Control Protocol) connection to maintain the efficiency of processing tasks. In this embodiment, the application server and the enterprise-end front end adopt a block input output (BIO) synchronous blocking mode for a long connection. Different order return query 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, the BIO synchronous blocking mode is used in this application to enable the application server and the enterprise front-end processor. Make a long connection.
在一个实施例中,上述回单获取装置还包括:In one embodiment, the above-mentioned receipt obtaining device further includes:
序列化单元,用于将上述应用服务器与企业端前置机相互发送的报文,采用Protocol Buffers进行序列化。A serialization unit is used to serialize the messages sent by the application server and the enterprise front end 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 message packaging and sending.
参照图6,在一个实施例中,上述回单获取装置,还包括:Referring to FIG. 6, in one embodiment, the foregoing receipt obtaining device further includes:
获取单元40,用于根据预设的字段,获取所述回单中对应的数据;An obtaining unit 40, configured to obtain corresponding data in the receipt according to a preset field;
***单元50,用于将获取的数据***到预设的回单表中;An inserting unit 50, configured to insert the acquired data into a preset receipt form;
打印单元60,用于获取打印命令,打印所述***数据的回单表。The printing unit 60 is configured to obtain a print command and print the receipt form of the inserted data.
在上述获取单元40、***单元50和打印单元60中,因为各银行的回单格式不同,为了研发效率以及管理方便,本申请中只会设置一种回单表,所以获取到各种不同格式的回单后,会根据预设的字段将需要的数据从回单中抽取出来,然后在将获取的数据***到上述回单表中,以得到格式统一的回单等。上述打印包括通过打印机打印成纸质文件,也可以通过虚拟的打印机打印成PDF等格式的电子当文件,并保存到指定的存储空间。In the above-mentioned obtaining unit 40, inserting unit 50, and printing unit 60, because the receipt form of each bank is different, for the purpose of research and development efficiency and management convenience, only one form of receipt form is set in this application, so various different forms are obtained. After the receipt, the required data will be extracted from the receipt according to the preset fields, and then the obtained data will be inserted into the above receipt form to obtain a uniform receipt. The above printing includes printing into a paper file by a printer, or printing to an electronic equivalent file in a format such as PDF through a virtual printer, and saving it to a designated storage space.
本申请实施例的的回单获取装置,因为企业端前置机能够与多个不同种类的银行进行银企直联功能,所以在企业端前置机上设置了多个UKey接口,以保证各个银行账户的正常使用;当发起回单查询任务时,无需手动地登录不同的银行账户进行回单查询,而是通过财务***自动完成,即可以自动查询不同的银行账户的回单,大大地提高了对不同大类银行的账户的回单获取的效率,节约人力资源,而且只需要配置一次即可,在获取回单过程中,不会出现人为的如输入银行账号错误等问题。In the apparatus for obtaining receipts in the embodiment of the present application, since the enterprise-end front-end machine can perform bank-enterprise direct connection functions with a plurality of different types of banks, multiple UKey interfaces are set on the enterprise-side front-end machine to ensure that each bank The normal use of accounts; when initiating the receipt query task, there is no need to manually log in to different bank accounts to perform the receipt query, but it is automatically completed through the financial system, which can automatically query the receipt of different bank accounts, which greatly improves The efficiency of obtaining receipts for different types of bank accounts saves human resources, and it only needs to be configured once. In the process of obtaining receipts, there will be no artificial problems such as entering bank account errors.
参照图7,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图7所示。该计算机设备包括通过***总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作***、计算机可读指令和数据库。该内存器为非易失性存储介质中的操作***和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储回单获取方法程序等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现上述任一实施例的回单获取方法。Referring to FIG. 7, 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 the receipt obtaining method program 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 the receipt obtaining method of any of the foregoing embodiments.
本申请一实施例还提供一种计算机非易失性可读存储介质,其上存储有计算机可读指令,计算机可读指令被处理器执行时实现上述任一实施例中的回单获取方法。An embodiment of the present application further provides a computer non-volatile readable storage medium having computer readable instructions stored thereon. When the computer readable instructions are executed by a processor, the method for obtaining a receipt in any of the foregoing embodiments is implemented.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(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 method for obtaining receipts, which is characterized in that financial data is exchanged with a bank by an enterprise-side front-end machine set on an enterprise side, and the enterprise-side front-end machine is provided with multiple UKey interfaces, and the enterprise-side front-end machine Corresponding to the plurality of 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:
    向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;Sending a receipt inquiry task corresponding to multiple bank accounts to the enterprise-end front-end processor, wherein the multiple bank accounts include at least two bank accounts of a large bank type;
    利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;Using the enterprise-end front-end machine to send the order receipt query task for different bank accounts to the corresponding bank front-end machine, so as to query the corresponding bank-back order to the bank server of the corresponding bank front-end machine;
    接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。Receiving a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
  2. 根据权利要求1所述的回单获取方法,其特征在于,所述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤,包括:The method for obtaining receipts according to claim 1, wherein the step of sending a receipt inquiry task corresponding to a plurality of bank accounts to the enterprise-end front-end machine comprises:
    向所述企业端前置机发送多个所述银行账户的回单查询任务对应的回单查询任务ID,其中,所述企业端前置机将多个所述回单查询任务ID存入到预设的缓存队列中;Sending a plurality of receipt inquiry task IDs corresponding to the receipt inquiry tasks of the bank account to the enterprise-end front-end machine, wherein the enterprise-side front-end machine stores a plurality of the receipt inquiry task IDs into In a preset cache queue;
    接收所述企业端前置机反馈的回单查询任务ID,根据所述回单查询任务ID获取对应的回单查询任务,并发给所述企业端前置机。Receiving the receipt query task ID fed back by the enterprise-end front-end machine, obtaining a corresponding receipt query task according to the receipt-back query task ID, and sending it to the enterprise-side front-end machine.
  3. 根据权利要求1所述的回单获取方法,其特征在于,所述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤之前,包括:The method for obtaining a receipt according to claim 1, wherein before the step of sending a plurality of receipt inquiry tasks corresponding to a bank account to the enterprise front end machine, the method includes:
    判断所述企业端前置机上是否***对应各种类银行的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 for obtaining a receipt according to claim 1, wherein the method further comprises:
    接收所述企业端前置机发送的心跳检测包,检测与所述企业端前置机的连接状态;若连接状态为断开,则发出警报信息。Receiving a heartbeat detection packet sent by the enterprise-end front-end unit to detect a connection state with the enterprise-side front-end unit; if the connection state is disconnected, an alarm message is issued.
  5. 根据权利要求1所述的回单获取方法,其特征在于,所述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤,包括:The method for obtaining receipts according to claim 1, wherein the step of sending a receipt inquiry task corresponding to a plurality of bank accounts to the enterprise-end front-end machine comprises:
    通过长连接的方式向所述企业端前置机发送所述回单查询任务。And sending the inquiry query task to the enterprise-end front-end processor in a long-connection manner.
  6. 根据权利要求1所述的回单获取方法,其特征在于,所述接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单的步骤之后,包括:The method for obtaining receipts according to claim 1, wherein after the step of receiving receipts for each of the bank accounts obtained by the enterprise-end front-end machine from each of the bank front-end machines, comprising: :
    根据预设的字段,获取所述回单中对应的数据;Obtaining corresponding data in the receipt according to a preset field;
    将获取的数据***到预设的回单表中。The acquired data is inserted into a preset receipt form.
  7. 根据权利要求6所述的回单获取方法,其特征在于,所述将获取的数据***到预设的回单表中的步骤之后,包括:The method for obtaining a receipt according to claim 6, wherein after the step of inserting the acquired data into a preset receipt form, the method includes:
    获取打印命令,打印所述***数据的回单表。Obtain a print command to print the receipt form for the inserted data.
  8. 一种回单获取装置,其特征在于,利用企业端设置的企业端前置机与银行端进行财务数据交互,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述装置,包括:A receipt obtaining device is characterized in that financial data is exchanged with a bank by an enterprise-side front-end machine set on an enterprise side, and the enterprise-side front-end machine is provided with multiple UKey interfaces, and the enterprise-side front-end machine Corresponding to the plurality of UKey interfaces is configured to complete financial data interaction with a plurality of bank-end front-end machines of different types of banks; the device includes:
    发送单元,用于向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;A sending unit, configured to send to the enterprise-end front-end processor a plurality of bank account corresponding inquiry tasks, wherein the plurality of bank accounts includes at least two bank accounts of a large bank type;
    针对任务发送单元,用于利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;The task sending unit is configured to use the enterprise-end front-end machine to send the order receipt inquiry task for different bank accounts to the corresponding bank front-end machine, so as to inquire the corresponding receipt in the bank server of the corresponding bank front-end machine;
    接收单元,用于接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。The receiving unit is configured to receive a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
  9. 根据权利要求8所述的回单获取装置,其特征在于,所述发送单元,包括:The apparatus according to claim 8, wherein the sending unit comprises:
    发送模块,用于向所述企业端前置机发送多个所述银行账户的回单查询任务对应的回单查询任务ID,其中,所述企业端前置机将多个所述回单查询任务ID存入到预设的缓存队列中;A sending module, configured to send a plurality of receipt query task IDs corresponding to a plurality of receipt query tasks of the bank account to the enterprise-end front-end machine, wherein the enterprise-end front-end machine queries a plurality of the receipts The task ID is stored in a preset cache queue;
    接收反馈模块,用于接收所述企业端前置机反馈的回单查询任务ID,根据所述回单查询任务ID获取对应的回单查询任务,并发给所述企业端前置机。The receiving feedback module is configured to receive an ID query task ID fed back by the front-end server of the enterprise, obtain a corresponding query query task based on the ID-back query task ID, and send the task to the front-end of the enterprise.
  10. 根据权利要求8所述的回单获取装置,其特征在于,所述回单获取装置还包括:The apparatus for acquiring receipts according to claim 8, further comprising:
    判断单元,用于判断所述企业端前置机上是否***对应各种类银行的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 devices corresponding to various types of banks are not inserted into the front-end of the enterprise side.
  11. 根据权利要求8所述的回单获取装置,其特征在于,所述回单获取装置还包括:The apparatus for acquiring receipts according to claim 8, further comprising:
    心跳检测单元,用于接收所述企业端前置机发送的心跳检测包,检测与所述企业端前置机的连接状态;若连接状态为断开,则发出警报信息。The heartbeat detection unit is configured to receive a heartbeat detection packet sent by the enterprise-end front-end unit, and detect a connection state with the enterprise-side front-end unit; if the connection state is disconnected, an alarm message is issued.
  12. 根据权利要求8所述的回单获取装置,其特征在于,所述发送单元,包括:The apparatus according to claim 8, wherein the sending unit comprises:
    长连接模块,用于通过长连接的方式向所述企业端前置机发送所述回单查询任务。The long connection module is configured to send the order return query task to the enterprise-end front-end processor through a long connection.
  13. 根据权利要求8所述的回单获取装置,其特征在于,所述回单获取装置还包括:The apparatus for acquiring receipts according to claim 8, further comprising:
    获取单元,用于根据预设的字段,获取所述回单中对应的数据;An obtaining unit, configured to obtain corresponding data in the receipt according to a preset field;
    ***单元,用于将获取的数据***到预设的回单表中。An inserting unit is configured to insert the acquired data into a preset receipt form.
  14. 根据权利要求13所述的回单获取装置,其特征在于,所述回单获取装置还包括:The apparatus for obtaining receipts according to claim 13, wherein the apparatus for obtaining receipts further comprises:
    打印单元,用于获取打印命令,打印所述***数据的回单表。The printing unit is configured to obtain a print command and print the receipt form of the inserted data.
  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 method for obtaining a receipt when executing the computer-readable instructions, and uses an enterprise terminal set by an enterprise terminal. The front-end machine performs financial data interaction with the bank. The enterprise-side front-end machine is provided with multiple UKey interfaces. The enterprise-side front-end machine corresponds to the plurality of UKey interfaces and is configured to communicate with multiple different types of banks. The bank front-end machine completes financial data interaction; the method includes:
    向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;Sending a receipt inquiry task corresponding to multiple bank accounts to the enterprise-end front-end processor, wherein the multiple bank accounts include at least two bank accounts of a large bank type;
    利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;Using the enterprise-end front-end machine to send the order receipt query task for different bank accounts to the corresponding bank front-end machine, so as to query the corresponding bank-back order to the bank server of the corresponding bank front-end machine;
    接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。Receiving a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤,包括:The computer device according to claim 15, wherein the step of sending a plurality of bank account receipt inquiry tasks to the enterprise-end front-end processor comprises:
    向所述企业端前置机发送多个所述银行账户的回单查询任务对应的回单查询任务ID,其中,所述企业端前置机将多个所述回单查询任务ID存入到预设的缓存队列中;Sending a plurality of receipt inquiry task IDs corresponding to the receipt inquiry tasks of the bank account to the enterprise-end front-end machine, wherein the enterprise-side front-end machine stores a plurality of the receipt inquiry task IDs into In a preset cache queue;
    接收所述企业端前置机反馈的回单查询任务ID,根据所述回单查询任务ID获取对应的回单查询任务,并发给所述企业端前置机。Receiving the receipt query task ID fed back by the enterprise-end front-end machine, obtaining a corresponding receipt query task according to the receipt-back query task ID, and sending it to the enterprise-side front-end machine.
  17. 根据权利要求15所述的计算机设备,其特征在于,所述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤之前,包括:The computer device according to claim 15, characterized in that before the step of sending a plurality of billing inquiry tasks corresponding to bank accounts to the enterprise-end front-end machine, the method 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 computer device according to claim 15, wherein the method further comprises:
    接收所述企业端前置机发送的心跳检测包,检测与所述企业端前置机的连接状态;若连接状态为断开,则发出警报信息。Receiving a heartbeat detection packet sent by the enterprise-end front-end unit to detect a connection state with the enterprise-side front-end unit; if the connection state is disconnected, an alarm message is issued.
  19. 一种计算机非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现回单获取方法,利用企业端设置的企业端前置机与银行端进行财务数据交互,所述企业端前置机上设置有多个UKey接口,所述企业端前置机对应多个所述UKey接口被配置为可以与多个不同银行种类的银行端前置机完成财务数据交互;所述方法,包括:A computer non-volatile readable storage medium storing computer-readable instructions thereon, which is characterized in that when the computer-readable instructions are executed by a processor, a method for obtaining a receipt is used, and an enterprise-end The set-up machine performs financial data interaction with the bank. The enterprise-end front-end machine is provided with multiple UKey interfaces. The enterprise-side front-end machine corresponds to the plurality of UKey interfaces and is configured to be able to communicate with a plurality of different types of banks. The front-end processor completes financial data interaction; the method includes:
    向所述企业端前置机发送多个银行账户对应的回单查询任务,其中,所述多个银行账户至少包括两个银行大类的银行账户;Sending a receipt inquiry task corresponding to multiple bank accounts to the enterprise-end front-end processor, wherein the multiple bank accounts include at least two bank accounts of a large bank type;
    利用所述企业端前置机将针对不同银行账户的回单查询任务发送给对应的银行前置机,以到对应银行前置机的银行服务器查询对应的回单;Using the enterprise-end front-end machine to send the order receipt query task for different bank accounts to the corresponding bank front-end machine, so as to query the corresponding bank-back order to the bank server of the corresponding bank front-end machine;
    接收所述企业端前置机从各所述银行前置机获取到的各所述银行账户的回单。Receiving a receipt for each of the bank accounts obtained by the enterprise front-end machine from each of the bank front-end machines.
  20. 根据权利要求19所述的计算机非易失性可读存储介质,其特征在于,所述向所述企业端前置机发送多个银行账户对应的回单查询任务的步骤,包括:The computer non-volatile readable storage medium according to claim 19, wherein the step of sending to the enterprise-end front-end processor a plurality of billing inquiry tasks corresponding to bank accounts comprises:
    向所述企业端前置机发送多个所述银行账户的回单查询任务对应的回单查询任务ID,其中,所述企业端前置机将多个所述回单查询任务ID存入到预设的缓存队列中;Sending a plurality of receipt inquiry task IDs corresponding to the receipt inquiry tasks of the bank account to the enterprise-end front-end machine, wherein the enterprise-side front-end machine stores a plurality of the receipt inquiry task IDs into In a preset cache queue;
    接收所述企业端前置机反馈的回单查询任务ID,根据所述回单查询任务ID获取对应的回单查询任务,并发给所述企业端前置机。Receiving the receipt query task ID fed back by the enterprise-end front-end machine, obtaining a corresponding receipt query task according to the receipt-back query task ID, and sending it to the enterprise-side front-end machine.
PCT/CN2018/107676 2018-07-02 2018-09-26 Receipt acquisition method, apparatus, computer device, and storage medium WO2020006893A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810709992.3 2018-07-02
CN201810709992.3A CN109064144A (en) 2018-07-02 2018-07-02 Receipt acquisition methods, device, computer equipment and storage medium

Publications (1)

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

Family

ID=64818396

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/107676 WO2020006893A1 (en) 2018-07-02 2018-09-26 Receipt acquisition method, apparatus, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN109064144A (en)
WO (1) WO2020006893A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231673A (en) * 2020-03-31 2021-01-15 北京来也网络科技有限公司 Bank bill obtaining method, device, equipment and storage medium combining RPA and AI
CN112966012A (en) * 2021-03-30 2021-06-15 杭州每刻科技有限公司 Method and system for integrating and inquiring bank electronic receipt
CN115936637B (en) * 2023-03-10 2023-05-02 云账户技术(天津)有限公司 Electronic receipt pull method, system, electronic device and readable storage medium

Citations (2)

* 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
CN106528272A (en) * 2016-10-18 2017-03-22 北京用友薪福社云科技有限公司 Data processing apparatus and method, and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530175B (en) * 2016-01-29 2020-03-20 腾讯科技(深圳)有限公司 Message processing method, device and system
CN107516204A (en) * 2017-08-31 2017-12-26 四川长虹电器股份有限公司 Internet bank docking system and docking calculation

Patent Citations (2)

* 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
CN106528272A (en) * 2016-10-18 2017-03-22 北京用友薪福社云科技有限公司 Data processing apparatus and method, and terminal

Also Published As

Publication number Publication date
CN109064144A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
US11216814B1 (en) System and method for facilitating programmatic verification of transactions
WO2020006903A1 (en) Financial data interaction method, apparatus computer device and storage medium
WO2020006902A1 (en) Batch payment method and apparatus, computer device, and storage medium
WO2020006895A1 (en) Account checking method and apparatus, computer device and storage medium
WO2016101599A1 (en) Business process management notification service processing method and business process management engine
WO2020006893A1 (en) Receipt acquisition method, apparatus, computer device, and storage medium
CN110458559B (en) Transaction data processing method, device, server and storage medium
CN112039701B (en) Interface call monitoring method, device, equipment and storage medium
WO2020125265A1 (en) Container service monitoring method, system and computer readable storage medium
CN104182683B (en) A kind of monitoring method of online transaction, apparatus and system
CN102317913B (en) A kind of transaction recovery method and transaction recovery device
WO2020259515A1 (en) Method and device for obtaining calling chain of tcp application
EP3118804B1 (en) Self-service terminal service emergency method and site server
CN103198007A (en) Multi-process log output method and system
WO2020006896A1 (en) Balance monitoring method, apparatus, computer device, and storage medium
CN111240812A (en) Task execution method and device
CN111240862A (en) Universal interface platform and data conversion method
WO2020006901A1 (en) Fund collection method and apparatus, computer device, and storage medium
CN104731660B (en) data distributing method, device and system
WO2011143967A1 (en) System and method for implementing graphic user interfaces
WO2020006904A1 (en) Method and device for financial transfer, computer apparatus, and storage medium
CN115643271A (en) Method, device, server and medium for synchronizing multi-application data on cloud
CN115086311A (en) Management system of enterprise cross-system service based on cloud service bus
CN107977284A (en) A kind of data processing method, device, server and medium
CN114331445A (en) API (application programming interface), method, storage medium and electronic equipment for accessing massive users

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: 18925059

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: 18925059

Country of ref document: EP

Kind code of ref document: A1