CN108462758B - Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium - Google Patents

Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN108462758B
CN108462758B CN201810282150.4A CN201810282150A CN108462758B CN 108462758 B CN108462758 B CN 108462758B CN 201810282150 A CN201810282150 A CN 201810282150A CN 108462758 B CN108462758 B CN 108462758B
Authority
CN
China
Prior art keywords
enterprise
task
bank
target
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810282150.4A
Other languages
Chinese (zh)
Other versions
CN108462758A (en
Inventor
姚志盛
何辉
蒋为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810282150.4A priority Critical patent/CN108462758B/en
Priority to PCT/CN2018/092855 priority patent/WO2019192085A1/en
Publication of CN108462758A publication Critical patent/CN108462758A/en
Application granted granted Critical
Publication of CN108462758B publication Critical patent/CN108462758B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a bank-enterprise direct connection communication method, a bank-enterprise direct connection communication device, bank-enterprise direct connection communication equipment and a computer readable storage medium, which can send a request message to a bank system by adopting different methods according to different business types when an enterprise financial system sends a business request to the bank system, so that an enterprise does not need to develop a docking program for each bank and each business independently, convenience is provided for bank-enterprise direct connection communication of the enterprise, and meanwhile, the cost of enterprise direct connection communication is reduced.

Description

Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a bank-enterprise direct connection communication method, a bank-enterprise direct connection communication device, bank-enterprise direct connection communication equipment and a computer readable storage medium.
Background
The bank-enterprise direct connection is a seamless connection access mode of a bank system and an enterprise financial software system, and the bank and a clearing center of an enterprise, a financial company or enterprise ERP (enterprise resource planning) realize smooth butt joint and organic fusion through online special line connection; the enterprise can directly complete the management and calling of bank accounts and funds through the interface of the financial system, and convenience is provided for the enterprise.
At present, banks are provided with bank-enterprise direct connection interfaces, but protocols used by bank-enterprise direct connection interfaces of all the banks are different, and the interface input and output parameters are different, so that for enterprises, when the banks are in butt joint with all the bank interfaces, a set of butt joint programs need to be developed independently for each bank to perform business processing, and the codes of the butt joint programs are complex, so that more manpower and material resources need to be invested for development and maintenance, and the use cost is increased; meanwhile, different banks have different docking programs, so that the use of enterprises is inconvenient.
Disclosure of Invention
The invention mainly aims to provide a bank-enterprise direct connection communication method, a bank-enterprise direct connection communication device, bank-enterprise direct connection communication equipment and a computer readable storage medium, and aims to solve the technical problems of low adaptability and inconvenience in use of a bank-enterprise direct connection program.
In order to achieve the purpose, the invention provides a bank-enterprise direct connection communication method, which comprises the following steps:
when an enterprise operation message sent by an enterprise terminal is received, determining a target service type and a target bank terminal according to the enterprise operation message, and judging whether the target service needs to execute a corresponding preposed task;
if the target service needs to execute a preposed task, performing preposed task processing according to the task requirement of the preposed task, and calling a preset service interface when the preposed task processing is completed so as to send a corresponding service request message to the target bank end through the preset service interface;
and if the target service does not need to execute a preposed task, acquiring a preset general communication template, filling service request data in the enterprise operation message into the preset general communication template to obtain a general request message, and sending the general request message to the target bank terminal.
Optionally, if the target service needs to execute a pre-task, performing pre-task processing according to a task requirement of the pre-task, and calling a preset service interface when the pre-task processing is completed, so as to send a corresponding service request packet to the target bank end through the preset service interface, includes:
if the target service needs to execute a preposed task, adding corresponding task information in a preset temporary table, and sending a preposed task prompt to the enterprise terminal according to the task information and the task requirement of the preposed task so as to enable the enterprise terminal to execute the preposed task;
if the pre-response message sent by the enterprise terminal is received within the preset processing time, analyzing the pre-response message through an annotation reflection technology, and determining a task processing result;
when the processing result is that the task passes, deleting the task information, and assembling a service request message according to the processing result and the enterprise operation message;
and calling a preset service interface of the target bank end, and sending the service request message to the target bank end through the preset service interface.
Optionally, if the pre-response message sent by the enterprise terminal is received within the preset processing time, the pre-response message is parsed by an annotation reflection technique, and the step of determining the task processing result includes:
if a pre-response message sent by the enterprise terminal is received within a preset processing time, adding a preset annotation class to the pre-response message, and acquiring a corresponding annotation value through reflection;
acquiring a universal message template of the enterprise terminal, assigning values to the universal message template according to the annotation values, and acquiring a universal response message;
and determining the task processing result according to the general response message.
Optionally, after the step of adding corresponding task information to a preset temporary table and sending a pre-task reminder to the enterprise end according to the task information and a task requirement of the pre-task to enable the enterprise end to execute the pre-task if the target service needs to execute the pre-task, the method further includes:
and if the preposed response message sent by the enterprise terminal is not received within the preset processing time, sending a task overdue reminder to the enterprise terminal.
Optionally, after the step of obtaining a preset general communication template and filling the service request data in the enterprise operation message into the preset general communication template to obtain a general request packet if the target service does not need to execute a pre-task, sending the general request packet to the target bank end, the method further includes:
and when receiving a request response message returned by the target bank end, analyzing the request response message information, and returning a corresponding general response message to the enterprise end according to an analysis result.
Optionally, the step of, when receiving the request response message returned by the target bank end, analyzing the request response message information, and returning a corresponding general response message to the enterprise end according to an analysis result includes:
when a request response message returned by the target bank end is received, acquiring a bank code, a protocol type and a protocol version in the request response message, and determining a message format of the request response message according to the bank code, the protocol type and the protocol version;
fragmenting the request response message according to the message format to obtain effective data fragments, and extracting effective data from the effective data fragments;
acquiring a universal message template of the enterprise terminal, and filling the effective data into the universal message template to acquire a universal response message;
and determining and returning the general response message to the enterprise terminal.
Optionally, when receiving an enterprise operation message sent by an enterprise terminal, the step of determining a target service type and a target bank terminal according to the enterprise operation message, and determining whether the target service needs to execute a corresponding pre-task includes:
when an enterprise operation message sent by an enterprise terminal is received, determining a target business type and a target bank terminal according to the enterprise operation message, and inquiring a corresponding preset business flow table according to the target business type and the target bank terminal so as to judge whether the target business needs to execute a corresponding preposed task according to the preset business flow table.
In addition, in order to achieve the above object, the present invention further provides a bank-enterprise direct connection communication device, including:
the task judging module is used for determining a target service type and a target bank terminal according to the enterprise operation message when receiving the enterprise operation message sent by the enterprise terminal, and judging whether the target service needs to execute a corresponding preposed task;
the first sending module is used for processing a preposed task according to the task requirement of the preposed task if the target service needs to execute the preposed task, and calling a preset service interface when the preposed task is processed, so as to send a corresponding service request message to the target bank end through the preset service interface;
and the second sending module is used for acquiring a preset general communication template if the target service does not need to execute a preposed task, filling service request data in the enterprise operation message into the preset general communication template to obtain a general request message, and sending the general request message to the target bank terminal.
In addition, in order to achieve the above object, the present invention further provides a bank-enterprise direct connection communication device, which includes a processor, a memory, and a bank-enterprise direct connection communication program stored on the memory and executable by the processor, wherein when the bank-enterprise direct connection communication program is executed by the processor, the steps of the bank-enterprise direct connection communication method are implemented.
In addition, in order to achieve the above object, the present invention further provides a computer-readable storage medium, wherein a bank-enterprise direct connection communication program is stored on the computer-readable storage medium, and when the bank-enterprise direct connection communication program is executed by a processor, the steps of the bank-enterprise direct connection communication method are implemented.
When the enterprise financial system sends a business request to the bank system, the invention adopts different methods to send the request message to the bank system according to different business types, so that the enterprise does not need to independently develop a docking program for each bank and each business, thereby providing convenience for the bank-enterprise direct connection communication of the enterprise and simultaneously reducing the cost of the enterprise direct connection communication.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a bank-enterprise direct connection communication device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first exemplary embodiment of a bank-enterprise direct connection communication method according to the present invention;
fig. 3 is a schematic view of a detailed flow of the process of fig. 2, in which if the target service needs to execute a pre-task, the pre-task is processed according to a task requirement of the pre-task, and a preset service interface is called when the pre-task is completed, so as to send a corresponding service request message to the target bank end through the preset service interface;
FIG. 4 is a flowchart illustrating a second embodiment of a bank-enterprise direct connection communication method according to the present invention;
fig. 5 is a functional block diagram of a first embodiment of a bank-enterprise direct-connection communication device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The bank-enterprise direct connection communication method is applied to bank-enterprise direct connection communication equipment. Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a bank-enterprise direct-connection communication device according to an embodiment of the present invention. In an embodiment of the present invention, the bank-enterprise direct-connection communication device may include a processor 1001 (e.g., a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (e.g., a magnetic disk memory), and optionally, the memory 1005 may be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 does not constitute a limitation of a bank-to-peer communication device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Memory 1005, which is one type of computer-readable storage medium in fig. 1, may include an operating system, a network communication module, and a bank and direct communication program. The network communication module is mainly used for connecting the enterprise terminal and the bank terminal and carrying out data communication with the enterprise terminal and the bank terminal; the processor 1001 may call the bank-enterprise direct connection communication program stored in the memory 1005, and execute the bank-enterprise direct connection communication method provided by the embodiment of the present invention.
The embodiment of the invention provides a bank-enterprise direct connection communication method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a bank-enterprise direct connection communication method according to the present invention.
In this embodiment, the bank-enterprise direct connection communication method includes the following steps:
step S10, when receiving an enterprise operation message sent by an enterprise terminal, determining a target service type and a target bank terminal according to the enterprise operation message, and judging whether the target service needs to execute a corresponding preposed task;
at present, banks are provided with bank-enterprise direct connection interfaces, but protocols used by bank-enterprise direct connection interfaces of all the banks are different, and the interface input and output parameters are different, so that for enterprises, when the banks are in butt joint with all the bank interfaces, a set of butt joint programs need to be developed independently for each bank to perform business processing, and the codes of the butt joint programs are complex, so that more manpower and material resources need to be invested for development and maintenance, and the use cost is increased; meanwhile, different banks have different docking programs, so that the use of enterprises is inconvenient. In order to solve the problems of low adaptability and inconvenient use of the bank-enterprise direct connection program, the embodiment provides a bank-enterprise direct connection communication method, and when an enterprise financial system sends an operation request to a bank system, corresponding request messages are sent to the bank system by adopting different methods according to the requested service, so that the enterprise does not need to develop a docking program for each bank independently, and convenience is provided for the enterprise.
Specifically, the bank-enterprise direct connection communication method of the embodiment is implemented by a bank-enterprise direct connection communication device, which may also be referred to as a communication adaptation system (or an adapter, etc.). One end of the communication adaptation system is connected with an enterprise end (which can be the enterprise end of a plurality of different enterprises), and the other end is connected with a bank end (which can be the bank end of a plurality of different banks). When the staff of the enterprise needs to operate the bank account, the staff can log in the enterprise financial system through the enterprise terminal and click the corresponding operation option (or input the related operation instruction) to trigger the corresponding operation instruction, and the enterprise terminal sends the corresponding enterprise operation message to the communication adaptation system according to the operation instruction; the operation message may include a code bankcode of the target bank, a service function related to the operation, and certainly may also include other information, such as an enterprise code entid, an enterprise signature, and the like. When receiving an operation message sent by an enterprise terminal, a communication adaptation system firstly determines a target service type (such as transfer, pipelining query and the like) corresponding to the operation according to a service function therein, and determines a target bank according to a bank code bankcode; when the target service type and the target bank are determined, the communication adaptation system judges whether the processing task needs to execute a preposed task in the target bank; the preposed task is generally set in the flow of a permanent service, that is, for a certain type of permanent service, a bank end is often provided with a special service interface, and the service interface is usually provided with a preposed task (including sign-in, signature and the like), and after an enterprise end needs to execute the corresponding preposed task first, the bank end can respond to a service request sent through the service interface; of course, in practice, the required pre-tasking may be different for different banks, different businesses. Further, for the judgment of whether the pre-posed task needs to be executed, the business processing flow table of each bank can be pre-stored in the communication adaptation system, and the business processing flow table is inquired when a new processing task is received, so that whether the pre-posed task needs to be executed is judged; or the communication adaptation system sends service query information to the corresponding target bank end when receiving the enterprise operation message so as to determine whether the target service needs to execute the preposed task. Of course, other determination methods may be used in the implementation. When it is determined that the pre-tasking needs to be performed, the process proceeds to step S20; if the pre-job is not required to be executed, the process proceeds to step S30.
Step S20, if the target service needs to execute a pre-task, performing pre-task processing according to the task requirement of the pre-task, and calling a preset service interface when the pre-task processing is completed, so as to send a corresponding service request message to the target bank end through the preset service interface;
in this embodiment, when determining that the processing task needs to perform the pre-task, the communication adaptation system first needs to perform processing according to a task requirement of the pre-task. The preposed task can be that the current bank end requires identity verification before calling a service interface, and the communication adaptation system sends signature information of an enterprise end and the communication adaptation system to a target bank end so that the target bank end can confirm the identities of the enterprise end and the communication adaptation system according to the signature information; the prepositive task can also be that a target bank end requires that operation data of an enterprise end is encrypted by a public key provided by the operation data, and then the communication adaptation system sends a corresponding public key acquisition request to the target bank end so as to acquire a corresponding encrypted public key from the bank end, and then obtains a service request message by encrypting the public key pair; of course, in specific implementations, there may be other requirements for pre-tasking corresponding to different banks and different businesses. When the processing of the preposed task is completed, the communication adapter receives corresponding processing completion information, and at the moment, the communication adapter system calls a preset service interface provided by a target bank terminal according to the processing completion information; simultaneously extracting the service parameters from the enterprise operation message and forming a corresponding service request message (interface access parameter); and then, the service request message is sent to the template bank end through the service interface so as to enable the target bank end to execute corresponding operation.
Step S30, if the target service does not need to execute a pre-task, acquiring a preset general communication template, and filling the service request data in the enterprise operation message into the preset general communication template to obtain a general request message, so as to send the general request message to the target bank end.
In this embodiment, when the communication adaptation system determines that the processing task does not need to perform the pre-task, it indicates that the target bank does not have a corresponding dedicated service interface for the processing task, and the communication adaptation system cannot send a service request message to the target bank end in a parameter transfer manner. At the moment, the communication adaptation system firstly acquires a universal communication template of the target bank end; the universal communication template can be pre-stored in the communication adaptation system, or can be acquired by the communication adaptation system requesting the target bank side. Of course, there may be different generic communication templates for different banks and different businesses. When the universal communication template is obtained, the communication adaptation system analyzes the enterprise operation message, extracts service request data, fills the service request data into the universal communication template, and generates a universal request message; after the service request message is obtained, the universal service interface is called to send the universal request message to the target bank end, so that the target bank end executes corresponding operation.
In this embodiment, when an enterprise operation message sent by an enterprise terminal is received, a target service type and a target bank terminal are determined according to the enterprise operation message, and whether the target service needs to execute a corresponding pre-task is determined; if the target service needs to execute a preposed task, performing preposed task processing according to the task requirement of the preposed task, and calling a preset service interface when the preposed task processing is completed so as to send a corresponding service request message to the target bank end through the preset service interface; and if the target service does not need to execute a preposed task, acquiring a preset general communication template, filling service request data in the enterprise operation message into the preset general communication template to obtain a general request message, and sending the general request message to the target bank terminal. Through the mode, when the enterprise financial system sends a business request to the bank system, the request message is sent to the bank system by adopting different methods according to different business types, so that the enterprise does not need to independently develop a docking program for each bank and each business, convenience is provided for the bank-enterprise direct connection communication of the enterprise, and meanwhile, the cost of the enterprise direct connection communication is reduced.
Referring to fig. 3, fig. 3 is a schematic view of a detailed flow of fig. 2, where if the target service needs to execute a pre-task, the pre-task is processed according to a task requirement of the pre-task, and a preset service interface is called when the pre-task is completed, so as to send a corresponding service request message to the target bank end through the preset service interface.
Based on the embodiment described in fig. 2, in this embodiment, step S20 includes:
step S21, if the target service needs to execute a pre-task, adding corresponding task information in a preset temporary table, and sending a pre-task reminder to the enterprise terminal according to the task information and the task requirement of the pre-task, so that the enterprise terminal executes the pre-task;
in a specific implementation, the pre-task at the target bank end may be required to be completed by the enterprise end, for example, the enterprise end checks in to the target bank end; because the processing of the preposed task is finished at the enterprise end, the process may last for a period of time, and at this time, the communication adaptation system adds corresponding task information in a preset temporary table to record the preposed task; the most difference between the temporary table and the permanent table is that the data in the table does not exist forever, and when a task is finished, the corresponding data in the temporary table is cleared. After the task information is recorded, the communication adaptation system sends corresponding preposed task reminders to the enterprise terminal according to the task information and the task requirements of the preposed tasks, so that the enterprise terminal executes the preposed tasks.
Step S22, if the pre-response message sent by the enterprise terminal is received within the preset processing time, the pre-response message is analyzed through an annotation reflection technology, and a task processing result is determined;
in this embodiment, when the current task needs to be completed by the enterprise side, the pre-response message of the target bank side is directly returned to the enterprise side. Since the system communication protocol between the target bank end and the enterprise end may be different, the enterprise end may not be able to directly identify the pre-response message of the target bank end, and therefore, if the enterprise end receives the pre-response message, the enterprise end sends the pre-response message to the communication adaptation system to determine the content of the pre-response message. Certainly, in order to ensure the processing progress of the task, the communication adaptation system starts timing after sending the task reminder to the enterprise terminal, and if the pre-response message sent by the enterprise terminal is not received within the preset processing time, the enterprise terminal is considered to fail to carry out the pre-task on time, and the communication adaptation system sends the task overdue reminder to the enterprise terminal. And if the communication adaptation system receives the preposed response message of the enterprise end in the preset processing time, the preposed response message is analyzed through an annotation reflection technology, and a task processing result is determined. Specifically, an annotation class is predefined in the communication adaptation system (the annotation class may be defined based on an input operation of a person); when a preposed response message sent by an enterprise end is received, the annotation class is added and inserted into the preposed response message (Bank DTO), and then a corresponding annotation value is obtained through reflection; then the communication adaptation system acquires a universal message template (universal DTO template) of the enterprise terminal, and assigns values to the universal message template according to the annotation values, so as to acquire a universal response message. When the general response message is obtained, the processing state of the preposed task can be obtained according to the general message.
Step S23, when the processing result is that the task passes, deleting the task information, and assembling a service request message according to the processing result and the enterprise operation message;
in this embodiment, when it is determined that the pre-task is completed (passed), the communication adaptation system may delete the task information in the temporary table, and assemble a service request packet according to the processing result and the enterprise operation message. Of course, when the completion of the pre-task is determined, the communication adaptation system may also return the general response message to the enterprise side for the enterprise side to determine the processing state of the pre-task.
Step S24, calling a preset service interface of the target bank end, and sending the service request message to the target bank end through the preset service interface.
When the service request message is formed, the communication adaptation system provides and calls a corresponding service interface for the template bank end, and sends the service request message to the target bank end through the service interface to execute corresponding operation.
Through the above manner, the communication adaptation system of the embodiment can complete the prepositive task of the target bank end together with the enterprise end; meanwhile, the communication adaptation system can realize the conversion from the bank message to the enterprise message in an annotation reflection mode, thereby reducing the workload of an enterprise end and providing convenience for enterprises.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of the bank-enterprise direct connection communication method according to the present invention.
Based on the embodiment described in fig. 2 or fig. 3, in this embodiment, after step S30, the method further includes:
and step S40, when receiving the request response message returned by the target bank end, analyzing the request response message information, and returning a corresponding general response message to the enterprise end according to the analysis result.
In this embodiment, if the target service does not need to execute the pre-task, after the communication adaptation system sends the general request message to the target bank end, the target bank end returns a corresponding request response message to the general request message so as to notify the service processing state. However, because the system communication protocol between the target bank end and the enterprise end may be different, the enterprise end may not be able to directly identify the request response packet of the target bank end, and therefore the communication adaptation system needs to convert the request response packet into a format that the enterprise end can identify. Specifically, the communication adaptation system firstly judges whether the message is a response message of a preposed task according to a target bank code and a service function in a request response message; if not, the general response analysis is carried out on the response message. At this time, the communication adaptation system acquires parameter information such as a target bank code, a communication protocol type protocol, a protocol version and the like in the request response message, and then determines the format of the request response message according to the parameters.
In this embodiment, when the format of the request response packet is determined, the communication adaptation system fragments the request response packet according to the format of the request response packet to extract valid data for the convenience of parsing. For example, the fragmentation condition of the response message may include:
length-fixing + xmlData (wherein the length-fixing can be 0 length);
② http. \\ n \ n + xmlData (namely variable length + xmlData, which can be intercepted by special character \ n \ n);
thirdly, carrying out fragmentation according to one of the messages;
fourthly, firstly carrying out primary segmentation according to \ n \ n in the message, and then carrying out secondary segmentation according to | (water) and | (water) in the message.
Certainly, for a message encrypted by a protocol (for example, encrypted by a public key and a private key), fragmentation and data extraction can be performed after the message is decrypted.
In this embodiment, when the valid data is extracted, the universal message template of the enterprise end is obtained, and the extracted valid data is filled into the universal message template to form the universal response message. For the general response message, in order to facilitate the quick identification of the enterprise terminal, the general response message may include a message header and a message body, where the message header is used to identify the service processing state, and the message body is specific service data; when receiving the general response message, the enterprise end can firstly confirm the state information according to the message header and then determine whether the business data in the message needs to be read according to the state information. Of course, the generation of the above general response message may also be realized by the above annotation reflection.
In this embodiment, when the general response message is obtained, the communication adaptation system may return the general response message to the enterprise terminal, so that the enterprise terminal determines a service processing result according to the general response message.
In addition, the embodiment of the invention also provides a bank-enterprise direct connection communication device.
Referring to fig. 5, fig. 5 is a functional module diagram of a first embodiment of the bank-enterprise direct connection communication device according to the present invention.
In this embodiment, the bank-enterprise direct connection communication device includes:
the task determining module 10 is configured to, when receiving an enterprise operation message sent by an enterprise terminal, determine a target service type and a target bank terminal according to the enterprise operation message, and determine whether the target service needs to execute a corresponding pre-task;
the first sending module 20 is configured to, if the target service needs to execute a pre-task, perform pre-task processing according to a task requirement of the pre-task, and call a preset service interface when the pre-task processing is completed, so as to send a corresponding service request packet to the target bank end through the preset service interface;
a second sending module 30, configured to obtain a preset general communication template if the target service does not need to execute a pre-task, and fill service request data in the enterprise operation message into the preset general communication template to obtain a general request packet, so as to send the general request packet to the target bank end.
Further, the first sending module 10 includes:
a prompt sending unit, configured to add corresponding task information to a preset temporary table if the target service needs to execute a pre-task, and send a pre-task prompt to the enterprise end according to the task information and a task requirement of the pre-task, so that the enterprise end executes the pre-task;
the message analysis unit is used for analyzing the preposed response message through an annotation reflection technology and determining a task processing result if the preposed response message sent by the enterprise terminal is received within the preset processing time;
the message assembling unit is used for deleting the task information when the processing result is that the task passes and assembling a service request message according to the processing result and the enterprise operation message;
and the message sending unit is used for calling a preset service interface of the target bank end and sending the service request message to the target bank end through the preset service interface.
Further, the message parsing unit includes:
the annotation value acquisition subunit is used for adding a preset annotation class to the preposed response message sent by the enterprise terminal if the preposed response message is received within preset processing time, and acquiring a corresponding annotation value through reflection;
the template assignment subunit is used for acquiring a universal message template of the enterprise terminal, assigning the universal message template according to the annotation value and acquiring a universal response message;
and the result determining subunit is used for determining the task processing result according to the general response message.
Further, the message parsing unit further includes:
and the overdue reminding unit is used for sending task overdue reminding to the enterprise terminal if the preposed response message sent by the enterprise terminal is not received in the preset processing time.
Further, the bank-enterprise direct connection communication device further comprises:
and the message returning module is used for analyzing the information of the request response message when receiving the request response message returned by the target bank terminal and returning a corresponding general response message to the enterprise terminal according to an analysis result.
Further, the message returning module comprises:
the format determining unit is used for acquiring the bank code, the protocol type and the protocol version in the request response message when receiving the request response message returned by the target bank end, and determining the message format of the request response message according to the bank code, the protocol type and the protocol version;
the data extraction unit is used for fragmenting the request response message according to the message format to obtain an effective data fragment and extracting effective data from the effective data fragment;
the template filling unit is used for acquiring a universal message template of the enterprise terminal, filling the effective data into the universal message template and acquiring a universal response message;
and the message returning unit is used for determining and returning the general response message to the enterprise terminal.
Further, the task determining module 10 is further configured to, when receiving an enterprise operation message sent by an enterprise terminal, determine a target service type and a target bank terminal according to the enterprise operation message, and query a corresponding preset service flow table according to the target service type and the target bank terminal, so as to determine whether the target service needs to execute a corresponding pre-task according to the preset service flow table.
Each module in the bank-enterprise direct connection communication device corresponds to each step in the bank-enterprise direct connection communication method embodiment, and the functions and implementation processes thereof are not described herein again.
In addition, the embodiment of the invention also provides a computer readable storage medium.
The bank-enterprise direct connection communication program is stored on the computer readable storage medium, and when being executed by the processor, the bank-enterprise direct connection communication program realizes the steps of the bank-enterprise direct connection communication method.
The method implemented when the bank-enterprise direct connection communication program is executed may refer to each embodiment of the bank-enterprise direct connection communication method of the present invention, and details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A bank-enterprise direct connection communication method is characterized by comprising the following steps:
when an enterprise operation message sent by an enterprise terminal is received, determining a target service type and a target bank terminal according to the enterprise operation message, and judging whether the target service needs to execute a corresponding preposed task;
if the target service needs to execute a preposed task, performing preposed task processing according to the task requirement of the preposed task, and calling a preset service interface when the preposed task processing is completed so as to send a corresponding service request message to the target bank end through the preset service interface;
and if the target service does not need to execute a preposed task, acquiring a preset general communication template, filling service request data in the enterprise operation message into the preset general communication template to obtain a general request message, and sending the general request message to the target bank terminal.
2. The bank-enterprise direct-connection communication method as claimed in claim 1, wherein if the target business needs to execute a pre-task, the method comprises the steps of performing pre-task processing according to a task requirement of the pre-task, and calling a preset business interface when the pre-task processing is completed, so as to send a corresponding business request message to the target bank end through the preset business interface, and comprises the following steps:
if the target service needs to execute a preposed task, adding corresponding task information in a preset temporary table, and sending a preposed task prompt to the enterprise terminal according to the task information and the task requirement of the preposed task so as to enable the enterprise terminal to execute the preposed task;
if the pre-response message sent by the enterprise terminal is received within the preset processing time, analyzing the pre-response message through an annotation reflection technology, and determining a task processing result;
when the processing result is that the task passes, deleting the task information, and assembling a service request message according to the processing result and the enterprise operation message;
and calling a preset service interface of the target bank end, and sending the service request message to the target bank end through the preset service interface.
3. The bank-enterprise direct connection communication method as claimed in claim 2, wherein if the pre-response message sent by the enterprise terminal is received within a preset processing time, the pre-response message is analyzed through an annotation reflection technology, and the step of determining the task processing result comprises the following steps:
if a pre-response message sent by the enterprise terminal is received within a preset processing time, adding a preset annotation class to the pre-response message, and acquiring a corresponding annotation value through reflection;
acquiring a universal message template of the enterprise terminal, assigning values to the universal message template according to the annotation values, and acquiring a universal response message;
and determining the task processing result according to the general response message.
4. The bank-enterprise direct connection communication method according to claim 2, wherein if the target business needs to execute a pre-task, adding corresponding task information in a preset temporary table, and sending a pre-task reminder to the enterprise terminal according to the task information and a task requirement of the pre-task, so that the enterprise terminal executes the pre-task, further comprising:
and if the preposed response message sent by the enterprise terminal is not received within the preset processing time, sending a task overdue reminder to the enterprise terminal.
5. The bank-enterprise direct-connection communication method according to claim 1, wherein after the step of obtaining a preset general communication template and filling service request data in the enterprise operation message into the preset general communication template to obtain a general request message to send the general request message to the target bank end if the target service does not need to execute a pre-task, the method further comprises:
and when receiving a request response message returned by the target bank end, analyzing the request response message information, and returning a corresponding general response message to the enterprise end according to an analysis result.
6. The bank-enterprise direct-connection communication method as claimed in claim 5, wherein the step of analyzing the request response message information when receiving the request response message returned by the target bank end, and returning the corresponding general response message to the enterprise end according to the analysis result comprises:
when a request response message returned by the target bank end is received, acquiring a bank code, a protocol type and a protocol version in the request response message, and determining a message format of the request response message according to the bank code, the protocol type and the protocol version;
fragmenting the request response message according to the message format to obtain effective data fragments, and extracting effective data from the effective data fragments;
acquiring a universal message template of the enterprise terminal, and filling the effective data into the universal message template to acquire a universal response message;
and determining and returning the general response message to the enterprise terminal.
7. The bank-enterprise direct connection communication method as claimed in any one of claims 1 to 6, wherein the step of determining a target business type and a target bank end according to an enterprise operation message sent by the enterprise end when receiving the enterprise operation message, and judging whether the target business needs to execute a corresponding pre-task comprises:
when an enterprise operation message sent by an enterprise terminal is received, determining a target business type and a target bank terminal according to the enterprise operation message, and inquiring a corresponding preset business flow table according to the target business type and the target bank terminal so as to judge whether the target business needs to execute a corresponding preposed task according to the preset business flow table.
8. A bank-enterprise direct connection communication device, characterized in that the bank-enterprise direct connection communication device comprises:
the task judging module is used for determining a target service type and a target bank terminal according to the enterprise operation message when receiving the enterprise operation message sent by the enterprise terminal, and judging whether the target service needs to execute a corresponding preposed task;
the first sending module is used for processing a preposed task according to the task requirement of the preposed task if the target service needs to execute the preposed task, and calling a preset service interface when the preposed task is processed, so as to send a corresponding service request message to the target bank end through the preset service interface;
and the second sending module is used for acquiring a preset general communication template if the target service does not need to execute a preposed task, filling service request data in the enterprise operation message into the preset general communication template to obtain a general request message, and sending the general request message to the target bank terminal.
9. A bank-enterprise inline communications device, comprising a processor, a memory, and a bank-enterprise inline communications program stored on the memory and executable by the processor, wherein the bank-enterprise inline communications program, when executed by the processor, implements the steps of the bank-enterprise inline communications method as recited in any one of claims 1 to 7.
10. A computer-readable storage medium, having a bank-enterprise peering communication program stored thereon, wherein the bank-enterprise peering communication program, when executed by a processor, implements the steps of the bank-enterprise peering communication method as recited in any one of claims 1 to 7.
CN201810282150.4A 2018-04-02 2018-04-02 Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium Active CN108462758B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810282150.4A CN108462758B (en) 2018-04-02 2018-04-02 Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium
PCT/CN2018/092855 WO2019192085A1 (en) 2018-04-02 2018-06-26 Method, apparatus and device for direct-connected communication between bank and enterprise, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810282150.4A CN108462758B (en) 2018-04-02 2018-04-02 Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108462758A CN108462758A (en) 2018-08-28
CN108462758B true CN108462758B (en) 2021-02-05

Family

ID=63237045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810282150.4A Active CN108462758B (en) 2018-04-02 2018-04-02 Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN108462758B (en)
WO (1) WO2019192085A1 (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783249B (en) * 2018-12-13 2024-04-30 中国平安财产保险股份有限公司 Platform access method and device, terminal and computer readable storage medium
CN109831411A (en) * 2018-12-24 2019-05-31 江西华兴信息产业有限公司 A kind of scheduling adaptation method and equipment
CN110113318A (en) * 2019-04-16 2019-08-09 深圳壹账通智能科技有限公司 Front-end system data processing method, device, computer equipment and storage medium
CN111211997B (en) * 2019-12-30 2023-01-20 中国银行股份有限公司 Message processing method, device and system
CN110879787B (en) * 2019-12-31 2024-01-30 中国银行股份有限公司 Client testing method and system
CN111754324B (en) * 2020-06-24 2023-08-22 中国银行股份有限公司 Cloud ERP bank-enterprise docking processing method, system and processing ends
CN111901384B (en) * 2020-06-29 2023-10-24 成都质数斯达克科技有限公司 System, method, electronic device and readable storage medium for processing message
CN113014556B (en) * 2021-02-10 2021-10-26 中国银河资产管理有限责任公司 Bank-enterprise communication system, communication method and electronic terminal
CN113205340A (en) * 2021-04-02 2021-08-03 万翼科技有限公司 Data processing method and related device for bank-enterprise direct connection platform
CN113238817A (en) * 2021-05-20 2021-08-10 上海销氪信息科技有限公司 Interface transparent transmission method and device, electronic equipment and storage medium
CN113300895A (en) * 2021-06-09 2021-08-24 车智互联(北京)科技有限公司 Cable processing method and system and computing device
CN113746904A (en) * 2021-08-04 2021-12-03 南京星云数字技术有限公司 Service request processing method, system and computer readable storage medium
CN113673979B (en) * 2021-08-24 2022-07-08 国家电投香港财资管理有限公司 Overseas department store management system
CN113794721A (en) * 2021-09-15 2021-12-14 深圳市共治物联科技有限公司 Government organization, financial institution and enterprise security direct connection method
CN114553824B (en) * 2021-12-31 2024-04-19 深圳市梦网科技发展有限公司 Maintenance method, system, terminal equipment and medium for enterprise channel number
CN114884743B (en) * 2022-06-07 2024-07-05 中国工商银行股份有限公司 Service processing method, device, equipment, storage medium and program product
CN115330533A (en) * 2022-10-14 2022-11-11 好享家舒适智能家居股份有限公司 Multi-bank pipelining acquisition method for intelligent engineering
CN116091015A (en) * 2023-04-07 2023-05-09 中瑞方胜人力资源科技(北京)有限公司 Payroll system, payroll method, electronic device, and storage medium
CN116346961B (en) * 2023-05-30 2023-09-05 成方金融科技有限公司 Financial message processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334887A (en) * 2008-08-07 2008-12-31 金蝶软件(中国)有限公司 Financial data-handling process and bank enterprise platform device
CN104079632A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Third-party service processing method and device
CN107516204A (en) * 2017-08-31 2017-12-26 四川长虹电器股份有限公司 Internet bank docking system and docking calculation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002318890A (en) * 2001-04-23 2002-10-31 Fujitsu Ltd Method and program for supporting enterprise management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101334887A (en) * 2008-08-07 2008-12-31 金蝶软件(中国)有限公司 Financial data-handling process and bank enterprise platform device
CN104079632A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Third-party service processing method and device
CN107516204A (en) * 2017-08-31 2017-12-26 四川长虹电器股份有限公司 Internet bank docking system and docking calculation

Also Published As

Publication number Publication date
CN108462758A (en) 2018-08-28
WO2019192085A1 (en) 2019-10-10

Similar Documents

Publication Publication Date Title
CN108462758B (en) Bank-enterprise direct connection communication method, device, equipment and computer readable storage medium
US10834031B2 (en) Information exchange method, client, and apparatus
CN105530175B (en) Message processing method, device and system
US10795629B2 (en) Text and custom format information processing method, client, server, and computer-readable storage medium
US20170161721A1 (en) Method and system for opening account based on euicc
CN104468531A (en) Authorization method, device and system for sensitive data
CN109889469B (en) Short message verification method, device, storage medium, short message verification system and terminal
CN111143207B (en) Method for checking model training notice and training log at mobile terminal
CN107438054B (en) Method and system for realizing menu information control based on public platform
CN110503559B (en) Block chain-based clearing method, device, equipment and computer storage medium
US20180376335A1 (en) Method and device for realizing wireless access point connection authentication
CN111651347B (en) Jump verification method, device, equipment and storage medium of test system
CN111628896A (en) IT operation and maintenance management method, device, equipment and computer storage medium
CN110333851B (en) Code decoupling method and related equipment
CN111294288A (en) Traffic identification method and device, application program interface gateway and storage medium
CN106528066B (en) Business process operation method and device
CN103997437A (en) Cloud server registration function testing method
CN114385382A (en) Light application access method and device, computer equipment and storage medium
CN109586979B (en) Message transmission method and device
CN109062848B (en) Purchase management method and device based on ESB bus platform and bus platform
KR101748615B1 (en) Mobile simple payment support device based on the connection information and operating method thereof
CN109040331B (en) Electronic business card processing method and device, computing equipment and storage medium
CN109471723B (en) Method and system for verifying processing result of task
JP4345893B2 (en) Method and apparatus for e-commerce message using short message service
CN106936816B (en) Method and system for inquiring and positioning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant