WO2019192085A1 - 银企直联通信方法、装置、设备及计算机可读存储介质 - Google Patents
银企直联通信方法、装置、设备及计算机可读存储介质 Download PDFInfo
- Publication number
- WO2019192085A1 WO2019192085A1 PCT/CN2018/092855 CN2018092855W WO2019192085A1 WO 2019192085 A1 WO2019192085 A1 WO 2019192085A1 CN 2018092855 W CN2018092855 W CN 2018092855W WO 2019192085 A1 WO2019192085 A1 WO 2019192085A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- task
- enterprise
- message
- preset
- bank
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Definitions
- the present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium.
- Bank-enterprise direct-linking is a seamless connection method between the banking system and the enterprise financial software system.
- the bank and the enterprise's settlement center, financial company or enterprise ERP can be smoothly connected and organically integrated; the enterprise can pass the financial
- the interface of the system can directly manage and call the bank account and funds, which provides convenience for the enterprise.
- the main purpose of the present application is to provide a silver enterprise direct communication communication method, device, device and computer readable storage medium, which aims to solve the technical problem that the silver enterprise direct connection procedure has low adaptability and is inconvenient to use.
- the present application provides a method for direct communication of a bank enterprise, and the method for direct communication of a bank enterprise includes the following steps:
- the pre-task processing is performed according to the task requirement of the pre-task task, and the preset service interface is invoked when the pre-task processing is completed, to pass the preset service.
- the interface sends a corresponding service request message to the target bank.
- the preset universal communication template is obtained, and the service request data in the enterprise operation message is filled into the preset universal communication template to obtain a general request message, so as to The universal request message is sent to the target bank.
- the step of sending the corresponding service request message to the target bank by using the preset service interface includes:
- the target service needs to perform the pre-task task
- the corresponding task information is added to the preset temporary table, and the pre-task reminder is sent to the enterprise end according to the task information and the task request of the pre-task, so that The enterprise end executes the predecessor task;
- the pre-response message sent by the enterprise end is received within a preset processing time, the pre-response message is parsed by an annotation reflection technology to determine a task processing result;
- the preset service interface of the target bank is invoked, and the service request message is sent to the target bank by using a preset service interface.
- the pre-response message is parsed by the annotation reflection technology, and the step of determining the task processing result includes:
- the preset annotation class is added to the pre-response message, and the corresponding annotation value is obtained by reflection;
- the task processing result is determined according to the universal response message.
- the method further includes:
- the task is sent an overdue reminder to the enterprise end.
- the method further includes:
- the step of parsing the request response message information and returning a corresponding general response message to the enterprise end according to the parsing result when receiving the request response message returned by the target bank end include:
- determining, according to the enterprise operation message, the target service type and the target banking end, and determining whether the target service needs to perform the corresponding pre-task task comprises: :
- the preset service flow table determines whether the target service needs to perform a corresponding pre-task.
- the present application further provides a bank-enterprise direct communication device, where the bank-enterprise direct communication device includes:
- the task judging module is configured to determine, according to the enterprise operation message, a target service type and a target bank end, and determine whether the target service needs to execute a corresponding pre-task, when receiving the enterprise operation message sent by the enterprise end;
- a first sending module configured to perform pre-task processing according to the task requirement of the pre-task, and invoke a preset service interface when the pre-task processing is completed, if the target service needs to perform a pre-task Sending, by using the preset service interface, a corresponding service request message to the target bank end;
- a second sending module configured to: if the target service does not need to perform a pre-task, acquire a preset universal communication template, and fill the service request data in the enterprise operation message to the preset universal communication template, to obtain A general request message to send the general request message to the target bank.
- the present application further provides a bank-connected communication device, which includes a processor, a memory, and is stored on the memory and executable by the processor.
- the bank-enterprise direct communication readable instruction wherein the silver enterprise direct communication communication readable instruction is executed by the processor, implements the steps of the silver enterprise direct communication method as described above.
- the present application further provides a computer readable storage medium, where the computer readable storage medium stores a direct communication communication readable instruction, wherein the silver enterprise direct communication readable instruction is When the processor executes, the steps of the direct communication communication method as described above are implemented.
- the application sends a request message to the banking system according to different types of services, so that the enterprise does not need to separately develop a docking program for each bank and each business.
- the direct banking communication provided convenience, while also reducing the cost of direct communication.
- FIG. 1 is a schematic structural diagram of hardware of a direct communication communication device related to a bank enterprise according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of a first embodiment of a method for direct communication of a bank-enterprise enterprise according to the present application
- the pre-task processing is performed according to the task requirement of the pre-task, and the preset service interface is invoked when the pre-task processing is completed, a refinement flow diagram of sending a corresponding service request message to the target bank by using the preset service interface;
- FIG. 4 is a schematic flowchart of a second embodiment of a method for directly communicating communication between banks and enterprises according to the present application
- FIG. 5 is a schematic diagram of functional modules of a first embodiment of a silver enterprise direct communication device according to the present application.
- FIG. 1 is a schematic structural diagram of hardware of a direct communication communication device related to a bank enterprise according to an embodiment of the present application.
- the silver enterprise direct communication device may include a processor 1001 (for example, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
- the communication bus 1002 is configured to implement connection communication between the components;
- the user interface 1003 may include a display, an input unit such as a keyboard;
- the network interface 1004 may optionally include a standard wired interface and a wireless interface.
- memory 1005 can be high-speed RAM memory or stable memory (non-volatile Alternatively, the memory 1005 may alternatively be a storage device independent of the processor 1001 described above. It will be understood by those skilled in the art that the hardware structure shown in FIG. 1 does not constitute a limitation on the direct communication communication device, and may include more or less components than those illustrated, or combine some components, or different. Assembly of parts.
- the memory 1005 as a computer readable storage medium in FIG. 1 may include an operating system, a network communication module, and a bank-readable communication readable instruction.
- the network communication module is mainly used for connecting the enterprise end and the bank end, and performs data communication with the enterprise end and the bank end; and the processor 1001 can call the silver enterprise direct communication communication readable instruction stored in the memory 1005, and execute the embodiment of the present application.
- the bank-enterprise direct communication method is mainly used for connecting the enterprise end and the bank end, and performs data communication with the enterprise end and the bank end; and the processor 1001 can call the silver enterprise direct communication communication readable instruction stored in the memory 1005, and execute the embodiment of the present application.
- the bank-enterprise direct communication method is mainly used for connecting the enterprise end and the bank end, and performs data communication with the enterprise end and the bank end; and the processor 1001 can call the silver enterprise direct communication communication readable instruction stored in the memory 1005, and execute the embodiment of the present application.
- the embodiment of the present application provides a direct communication communication method for a bank.
- FIG. 2 is a schematic flowchart diagram of a first embodiment of a method for direct communication of a bank-enterprise enterprise according to the present application.
- the method for direct communication of the bank enterprise includes the following steps:
- step S10 when the enterprise operation message sent by the enterprise end is received, the target service type and the target bank end are determined according to the enterprise operation message, and it is determined whether the target service needs to perform a corresponding pre-task;
- the direct communication communication method of the enterprise is implemented by a bank-enterprise direct communication device, and the bank-enterprise direct communication device can also be called a communication adaptation system (or an adapter, etc.).
- One end of the communication adaptation system is connected to the enterprise end (which may be the enterprise end of a plurality of different enterprises), and the other end is connected to the bank end (which may be the bank end of a plurality of different banks).
- the enterprise staff When the enterprise staff needs to operate the bank account, they can log in to the enterprise financial system through the enterprise terminal, and click the corresponding operation option (or input relevant operation instructions) to trigger the corresponding operation instruction, and the enterprise terminal according to the The operation instruction will send a corresponding enterprise operation message to the communication adaptation system; wherein the operation message may include the code bankcode of the target bank, the business function function involved in the operation, and of course other information, such as the enterprise code entid , corporate signatures and other content.
- the communication adaptation system When receiving the operation message sent by the enterprise, the communication adaptation system first determines the target service type (such as transfer, pipeline query, etc.) corresponding to the operation according to the service function function therein, and determines the target bank according to the bank code bankcode; When determining the target service type and the target bank, the communication adaptation system will determine whether the processing task needs to perform a predecessor task in the target bank; wherein the predecessor task is generally set in the process of the permanent service, that is, for a certain type of common Business, the bank side will often be set up with a dedicated business interface, and this business interface will usually be set with pre-task tasks (including sign-in, signature, etc.), the enterprise side needs to perform the corresponding pre-configuration tasks, the bank will only The service request sent through the service interface performs response processing; of course, in practice, the required pre-tasks may be different for different banks and different services.
- the target service type such as transfer, pipeline query, etc.
- the business processing flow table of each bank may be pre-stored in the communication adaptation system, and the service processing flow table may be queried when receiving the new processing task, thereby determining whether execution is required.
- the pre-task; or the communication adaptation system sends the service query information to the corresponding target bank when receiving the enterprise operation message to determine whether the target service needs to perform the pre-task.
- other methods of judging may also be used in the specific implementation.
- Step S20 If the target service needs to perform a pre-task task, perform pre-task processing according to the task requirement of the pre-task task, and invoke a preset service interface when the pre-task processing is completed, to pass the The preset service interface sends a corresponding service request message to the target bank;
- the communication adaptation system when the communication adaptation system determines that the processing task needs to perform a pre-task task, it first needs to perform processing according to the task requirement of the pre-task task.
- the pre-task task may be that the banking terminal first needs to perform identity verification before the service interface is invoked, and the communication adaptation system sends the signature information of the enterprise end and the communication adaptation system to the target bank for the The target bank end confirms the identity of the enterprise end and the communication adaptation system according to the signature information;
- the predecessor task may also be that the target banking end requires the operation data of the enterprise end to be encrypted by the public key provided by the target bank, and the communication adaptation system will target the target The bank sends a corresponding public key acquisition request to obtain a corresponding encrypted public key from the bank, and then obtains a service request message by encrypting the public key pair; of course, in a specific implementation, corresponding to different banks and different services There may be other requirements for the predecessor task.
- the communication adapter When the processing of the pre-task is completed, the communication adapter will receive the corresponding processing completion information. At this time, the communication adaptation system will call the preset service interface provided by the target bank according to the processing completion information; and simultaneously extract the information in the enterprise operation message. The service parameter is formed into a corresponding service request message (the interface is entered into the parameter); then the service request message is sent to the template bank through the service interface, so that the target bank performs the corresponding operation.
- Step S30 If the target service does not need to execute the pre-configuration task, obtain a preset universal communication template, and fill the service request data in the enterprise operation message to the preset universal communication template to obtain a general request message. And sending the general request message to the target bank.
- the communication adaptation system when the communication adaptation system determines that the processing task does not need to perform a pre-task 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 pass the parameter to the target.
- the bank sends a service request message.
- the communication adaptation system first acquires the universal communication template of the target bank; wherein the universal communication template may be pre-stored in the communication adaptation system, or may be requested by the communication adaptation system to the target bank. .
- the universal communication template may be pre-stored in the communication adaptation system, or may be requested by the communication adaptation system to the target bank.
- the communication adaptation system parses the enterprise operation message, extracts the service request data, and fills the service request data into the universal communication template to generate a general request message; after obtaining the service request message
- the general request message can be sent to the target bank by calling a common service interface, so that the target bank performs the corresponding operation.
- the target service when receiving the enterprise operation message sent by the enterprise, determining the target service type and the target bank according to the enterprise operation message, and determining whether the target service needs to perform a corresponding pre-task; If the target service needs to perform the pre-task task, the pre-task processing is performed according to the task requirement of the pre-task task, and the preset service interface is invoked when the pre-task processing is completed, to The target bank sends a corresponding service request message; if the target service does not need to execute the pre-configuration task, the preset universal communication template is obtained, and the service request data in the enterprise operation message is filled to the preset The universal communication template obtains a general request message to send the general request message to the target bank.
- the embodiment sends a request message to the banking system according to different service types, so that the enterprise does not need to separately develop each bank and each service.
- the docking program provides convenience for the company's direct communication with banks and enterprises, and also reduces the cost of direct communication.
- FIG. 3 is a schematic diagram of the pre-task processing performed according to the task requirement of the pre-task, and the pre-task processing is performed when the pre-task processing is completed.
- a service flow interface is configured to send a detailed process flow diagram of the corresponding service request message to the target bank end by using the preset service interface.
- step S20 includes:
- step S21 if the target service needs to perform a pre-task task, the corresponding task information is added to the preset temporary table, and the pre-task reminder is sent to the enterprise end according to the task information and the task requirement of the pre-task task. So that the enterprise side performs the pre-task;
- the predecessor task of the target bank may be required to be completed by the enterprise, for example, the enterprise side checks in to the target bank; since the processing of the predecessor is completed on the enterprise side, the process may last for a period of time.
- the time communication adaptation system will add the corresponding task information in the preset temporary table to record the predecessor task; wherein the biggest difference between the temporary table and the permanent table is that the data in the table does not exist forever.
- the communication adaptation system sends a corresponding pre-task reminder to the enterprise end according to the task information and the task requirements of the pre-task, so that the enterprise end performs the pre-task task.
- Step S22 If the pre-response message sent by the enterprise end is received within a preset processing time, the pre-response message is parsed by an annotation reflection technology to determine a task processing result.
- the pre-response message of the target bank is directly returned to the enterprise. Because the system communication protocol between the target bank and the enterprise may be different, the enterprise may not directly identify the pre-reaction message of the target bank. Therefore, if the enterprise receives the pre-reaction message, it will A response message is sent to the communication adaptation system to determine its content.
- the communication adaptation system starts timing after sending the task reminder to the enterprise end, and if the pre-response message sent by the enterprise end is not received within the preset processing time, the enterprise is considered If the terminal fails to perform the predecessor task on time, the communication adaptation system will send a task overdue reminder to the enterprise.
- the communication adaptation system receives the pre-reaction message of the enterprise in the preset processing time, the pre-response message is parsed by the annotation reflection technology to determine the task processing result.
- the communication adaptation system is pre-defined with an annotation class (the annotation class may be defined based on a human input operation); when receiving the pre-response message sent by the enterprise end, the annotation class is added and inserted into the In the pre-response message (BankDTO), the corresponding annotation value is obtained by reflection; then the communication adaptation system will acquire the common message template (general DTO template) of the enterprise, and assign the general message template according to the annotation value, thereby Get a generic response message. When the general response message is obtained, the pre-task processing status can be known according to the general message.
- the annotation class may be defined based on a human input operation
- 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;
- the communication adaptation system can delete the task information in the temporary table, and assemble the service request message according to the processing result and the enterprise operation message.
- the communication adaptation system can also return the generic response message to the enterprise for determining the processing status of the pre-task.
- Step S24 The preset service interface of the target bank is invoked, and the service request message is sent to the target bank by using a preset service interface.
- the communication adaptation system will call the template bank to provide a corresponding service interface, and send the service request message to the target bank to perform the corresponding operation through the service interface.
- the communication adaptation system of the embodiment can complete the predecessor task of the target bank with the enterprise end; at the same time, the communication adaptation system can realize the conversion of the bank message to the enterprise message by means of annotation reflection, thereby reducing the enterprise.
- the workload of the end provides convenience for the enterprise.
- FIG. 4 is a schematic flowchart of a second embodiment of a method for directly communicating communication between banks and enterprises.
- the method further includes:
- Step S40 when receiving the request response message returned by the target bank, parsing the request response message information, and returning a corresponding general response message to the enterprise end according to the parsing result.
- the target bank end returns a corresponding request response message to the target bank.
- the communication adaptation system needs to convert it into a format that the enterprise can recognize. Specifically, the communication adaptation system first determines whether the message is a response message of the pre-configuration task according to the target bank code bankcode and the service function function in the request response message; if not, a general response to the response message is performed. Analysis. At this time, the communication adaptation system acquires parameter information such as the target bank code bankcode, the communication protocol type protocol, and the protocol version version in the request response message, and then determines the format of the request response message according to the parameters.
- the communication adaptation system when determining the format of the request response message, will slice the request response message according to the format of the request response message for the convenience of parsing, and extract valid data.
- the fragmentation of the response message can include:
- the message can also be decrypted before fragmentation and data extraction.
- the general message template of the enterprise end is obtained, and the extracted valid data is filled into the general message template to form a general response message.
- the packet header and the packet body may be included in the packet, and the packet header is used to identify the service processing status, and the packet body is specific service data.
- the enterprise end receives the general response packet.
- the status information may be first confirmed according to the message header, and then according to the status information, it is determined whether the service data needs to be read.
- the generation of the above-mentioned general response message may also be implemented by the above-mentioned annotation reflection.
- the communication adaptation system can return the universal response message to the enterprise end, so that the enterprise end determines the service processing result according to the universal response message.
- the embodiment of the present application further provides a silver enterprise direct communication device.
- FIG. 5 is a schematic diagram of functional modules of a first embodiment of a silver enterprise direct communication device according to the present application.
- the silver enterprise direct communication device includes:
- the task judging module 10 is configured to determine, according to the enterprise operation message, a target service type and a target bank end, and determine whether the target service needs to execute a corresponding pre-task, when receiving the enterprise operation message sent by the enterprise end;
- the first sending module 20 is configured to perform pre-task processing according to the task requirement of the pre-task, and invoke a preset service interface when the pre-task processing is completed, if the target service needs to perform a pre-task task. Transmitting, by using the preset service interface, a corresponding service request message to the target bank end;
- the second sending module 30 is configured to: if the target service does not need to perform a pre-task, acquire a preset universal communication template, and fill the service request data in the enterprise operation message to the preset universal communication template, A general request message is obtained to send the general request message to the target bank.
- the first sending module 10 includes:
- a reminder sending unit configured to add a corresponding task information to the preset temporary table, and send the corresponding task information to the enterprise terminal according to the task information and the task request of the pre-task before the target service needs to perform the pre-task task Setting a task reminder to enable the enterprise end to execute the pre-task;
- a message parsing unit configured to parse the pre-response message by using an annotation reflection technology to determine a task processing result if the pre-response message sent by the enterprise end is received within a preset processing time;
- a message assembling unit configured to delete the task information when the processing result is a task, and assemble a service request message according to the processing result and the enterprise operation message;
- the message sending unit is configured to invoke the preset service interface of the target bank, and send the service request message to the target bank by using a preset service interface.
- the message parsing unit includes:
- An annotation value obtaining sub-unit configured to add a preset annotation class to the pre-response message if a pre-response message sent by the enterprise end is received within a preset processing time, and obtain a corresponding annotation by reflection value;
- a template assignment sub-unit configured to obtain a general message template of the common enterprise end, and assign a value to the universal message template according to the annotation value to obtain a general response message;
- a result determining subunit configured to determine the task processing result according to the universal response message.
- the message parsing unit further includes:
- the overdue reminding unit is configured to send a task overdue reminder to the enterprise end if the prea response message sent by the enterprise end is not received within the preset processing time.
- bank-enterprise direct communication device further includes:
- the message returning module is configured to parse the request response message information when receiving the request response message returned by the target bank, and return a corresponding general response message to the enterprise end according to the parsing result.
- the message returning module includes:
- a format determining unit configured to acquire a bank code, a protocol type, and a protocol version in the request response message when receiving the request response message returned by the target bank, and according to the bank code, protocol type, and protocol The version determines a message format of the request response message;
- a data extracting unit configured to slice the request response message according to the packet format, obtain a valid data piece, and extract valid data in the valid data piece;
- a template filling unit configured to obtain a general message template of the universal enterprise end, and populate the universal message template with the valid data to obtain a general response message;
- a message returning unit configured to return the universal response message determination to the enterprise end.
- the task judging module 10 is further configured to: when receiving the enterprise operation message sent by the enterprise end, determine the target service type and the target bank end according to the enterprise operation message, and according to the target service type and the target bank The terminal queries the corresponding preset service flow table to determine whether the target service needs to perform a corresponding pre-task according to the preset service flow table.
- Each of the modules in the above-mentioned bank-enterprise direct communication device corresponds to each step in the foregoing method for directly communicating with the bank, and the functions and implementation processes thereof are not described herein again.
- the embodiment of the present application further provides a computer readable storage medium, which may be a non-volatile readable storage medium.
- the computer readable storage medium of the present application stores a silver enterprise direct communication communication readable instruction, wherein when the silver enterprise direct communication readable instruction is executed by the processor, the steps of the silver enterprise direct communication communication method are implemented.
- bank-enterprise direct communication readable instructions For the method implemented by the bank-enterprise direct communication readable instructions, reference may be made to the embodiments of the method for direct communication of the bank-enterprise communication, and details are not described herein again.
- the technical solution of the present application which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in the various embodiments of the present application.
- a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
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
本申请提供了一种银企直联通信方法、装置、设备及计算机可读存储介质,可在企业财务系统向银行系统发送业务请求时,根据业务类型的不同采用不同的方法向银行系统发送请求报文,使得企业不需要对每个银行、每个业务单独开发对接程序,为企业的银企直联通信提供了方便,同时还降低了企业直联通信的成本。
Description
本申请要求于2018年4月2日提交中国专利局、申请号为201810282150.4、发明名称为“银企直联通信方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及数据处理技术领域,尤其涉及一种银企直联通信方法、装置、设备、及计算机可读存储介质。
背景技术
银企直联是一种银行系统与企业财务软件系统的无缝连接接入方式,通过网上专线连接使银行和企业的结算中心、财务公司或企业ERP实现平滑对接、有机融合;企业可通过财务系统的界面,就可直接完成对银行账户和资金的管理和调用,为企业提供了方便。
目前很多银行都提供有银企直连接口,但是各个银行的银企直连接口所使用协议存在一定区别,接口入参和出参也是各不一样,这对企业而言,在与各个银行接口对接时,就需要为每个银行单独开发一套对接程序以进行业务处理,而往往这些对接程序的代码复杂,需要投入较多的人力和物力进行开发和维护,提高了使用的成本;同时由于不同银行有不同的对接程序,也不方便企业进行使用。
发明内容
本申请的主要目的在于提供一种银企直联通信方法、装置、设备及计算机可读存储介质,旨在解决银企直联程序适配性低,使用不方便的技术问题。
为实现上述目的,本申请提供一种银企直联通信方法,所述银企直联通信方法包括以下步骤:
在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;
若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;
若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
可选地,所述若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文的步骤包括:
若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务;
若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果;
当所述处理结果为任务通过时,删除所述任务信息,并根据所述处理结果和企业操作消息组装业务请求报文;
调用所述目标银行端的预设业务接口,并通过预设业务接口向所述目标银行端发送所述业务请求报文。
可选地,所述若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果的步骤包括:
若在预设处理时间内接收到所述企业端发送的前置响应消息,则将预设注解类添加至所述前置响应消息,并通过反射获取对应的注解值;
获取通用所述企业端的通用消息模板,并根据所述注解值对所述通用消息模板进行赋值,获得通用响应消息;
根据所述通用响应消息确定所述任务处理结果。
可选地,所述若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务的步骤之后,还包括:
若未在预设处理时间内接收到所述企业端发送的前置响应消息,则向所述企业端发送任务超期提醒。
可选地,所述若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端的步骤之后,还包括:
在接收到所述目标银行端返回的请求响应报文时,对所述请求响应报文信息进行解析,并根据解析结果向所述企业端返回对应的通用响应消息。
可选地,所述在接收到所述目标银行端返回的请求响应报文时,对所述请求响应报文信息进行解析,并根据解析结果向所述企业端返回对应的通用响应消息的步骤包括:
在接收到所述目标银行端返回的请求响应报文时,获取所述请求响应消息中的银行代码、协议类型和协议版本,并根据所述银行代码、协议类型和协议版本确定所述请求响应报文的报文格式;
根据所述报文格式对所述请求响应报文进行分片,获取有效数据片,并在所述有效数据片中提取有效数据;
获取通用所述企业端的通用消息模板,并将所述有效数据填充至所述通用消息模板,获得通用响应消息;
将所述通用响应消息确定返回至所述企业端。
可选地,所述在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务的步骤包括:
在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并根据所述目标业务类型和目标银行端查询对应的预设业务流程表,以根据所述预设业务流程表判断所述目标业务是否需要执行对应的前置任务。
此外,为实现上述目的,本申请还提供一种银企直联通信装置,所述银企直联通信装置包括:
任务判断模块,用于在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;
第一发送模块,用于若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;
第二发送模块,用于若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
此外,为实现上述目的,本申请还提供一种银企直联通信设备,所述银企直联通信设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的银企直联通信可读指令,其中所述银企直联通信可读指令被所述处理器执行时,实现如上述的银企直联通信方法的步骤。
此外,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有银企直联通信可读指令,其中所述银企直联通信可读指令被处理器执行时,实现如上述的银企直联通信方法的步骤。
本申请在企业财务系统向银行系统发送业务请求时,根据业务类型的不同采用不同的方法向银行系统发送请求报文,使得企业不需要对每个银行、每个业务单独开发对接程序,为企业的银企直联通信提供了方便,同时还降低了企业直联通信的成本。
附图说明
图1为本申请实施例方案中涉及的银企直联通信设备硬件结构示意图;
图2为本申请银企直联通信方法第一实施例的流程示意图;
图3为图2所述若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文的细化流程示意图;
图4为本申请银企直联通信方法第二实施例的流程示意图;
图5为本申请银企直联通信装置第一实施例的功能模块示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例涉及的银企直联通信方法应用于银企直联通信设备。参照图1,图1为本申请实施例方案中涉及的银企直联通信设备硬件结构示意图。本申请实施例中,银企直联通信设备可以包括处理器1001(例如CPU),通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信;用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard);网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口);存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile
memory),例如磁盘存储器,存储器1005可选的还可以是独立于前述处理器1001的存储装置。本领域技术人员可以理解,图1中示出的硬件结构并不构成对银企直联通信设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。图1中作为一种计算机可读存储介质的存储器1005可以包括操作系统、网络通信模块以及银企直联通信可读指令。网络通信模块主要用于连接企业端和银行端,与企业端、银行端进行数据通信;而处理器1001可以调用存储器1005中存储的银企直联通信可读指令,并执行本申请实施例提供的银企直联通信方法。
本申请实施例提供了一种银企直联通信方法。
参照图2,图2为本申请银企直联通信方法第一实施例的流程示意图。
本实施例中,所述银企直联通信方法包括以下步骤:
步骤S10,在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;
本实施例的银企直联通信方法通过银企直联通信设备实现,该银企直联通信设备也可称为通信适配系统(或是适配器等)。通信适配系统的一端与企业端(可以是多个不同企业的企业端)连接,另一端则与银行端(可以是多个不同银行的银行端)连接。当企业的工作人员在需要对银行账户进行操作时,可通过企业终端登录至企业财务系统,并点击相应的操作选项(或输入相关操作指令),以触发相应的操作指令,企业终端则根据该操作指令将向通信适配系统发送对应的企业操作消息;其中,该操作消息中可包括有目标银行的代码bankcode、本次操作涉及的业务功能function,当然还可以包括其它信息,如企业代码entid、企业签名等内容。通信适配系统在接收到企业端发送的操作消息时,首先会根据其中的业务功能function确定本次操作对应的目标业务类型(如转账、流水查询等),并根据银行代码bankcode确定目标银行;当确定目标业务类型和目标银行时,通信适配系统将判断该处理任务在目标银行中是否需要执行前置任务;其中前置任务一般是设置在常设业务的流程中,即对于某一类常用业务,银行端往往会设置有专用的业务接口,而这个业务接口通常会设置有前置任务(包括签到、签名等),企业端需要先执行完相应的前置任务后,银行端才会对通过该业务接口发送的业务请求进行响应处理;当然在实际中,对于不同银行、不同的业务,所要求的前置任务可能会不同。进一步的,对于该是否需要执行前置任务的判断,可以通信适配系统中预存有各银行的业务处理流程表,在接收到新处理任务时再查询该业务处理流程表,从而判断是否需要执行前置任务;也可以是由通信适配系统在接收到该企业操作消息时,向对应的目标银行端发送业务查询信息,以确定该目标业务是否需要执行前置任务。当然在具体实施中也可以是采用其它的判断方法。当判断需要执行前置任务时,将进入步骤S20;若不需要执行前置任务,则进入步骤S30。
步骤S20,若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;
本实施例中,通信适配系统在判断该处理任务需要进行前置任务时,则首先需要根据该前置任务的任务要求进行处理。其中,该前置任务可以是目前银行端要求在进行业务接口调用前首先需要进行身份验证,则通信适配系统将向目标银行端发送企业端和通信适配系统的签名信息,以供所述目标银行端根据该签名信息确认企业端和通信适配系统的身份;该前置任务还可以是目标银行端要求企业端的操作数据以其提供的公钥进行加密,则通信适配系统将向目标银行端发送对应的公钥获取请求,以从银行端获取对应的加密公钥,再通过该公钥对加密得到业务请求报文;当然在具体实施中,对于不同银行、不同的业务所对应的前置任务可能会有其它的要求。在前置任务的处理完成时,通信适配器将接收到相应的处理完成信息,此时通信适配系统将根据处理完成信息调用目标银行端提供的预设业务接口;同时在企业操作消息中抽取其中的业务参数,并组成对应的业务请求报文(接口入参);然后即通过该业务接口将该业务请求报文发送至模板银行端,以使目标银行端执行对应的操作。
步骤S30,若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
本实施例中,通信适配系统在判断该处理任务不需要进行前置任务时,则说明目标银行对于该处理任务并没有对应的专用业务接口,通信适配系统无法通过参数传递的方式向目标银行端发送业务请求报文。此时通信适配系统首先将会获取该目标银行端的通用通信模板;其中该通用通信模板可以是预先存储在通信适配系统中的,也可以是由通信适配系统向目标银行端请求获取的。当然,对于不同的银行和不同的业务,可能会有不同的通用通信模板。在获取到通用通信模板时,通信适配系统将对企业操作消息进行解析,提取出业务请求数据,并将业务请求数据填充至通用通信模板中,生成通用请求报文;获得业务请求报文后,可通过调用通用的业务接口将该通用请求报文发送至目标银行端,以使目标银行端执行对应的操作。
本实施例中,在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。通过以上方式,本实施例在企业财务系统向银行系统发送业务请求时,根据业务类型的不同采用不同的方法向银行系统发送请求报文,使得企业不需要对每个银行、每个业务单独开发对接程序,为企业的银企直联通信提供了方便,同时还降低了企业直联通信的成本。
参照图3,图3为图2所述若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文的细化流程示意图。
基于上述图2所述实施例,本实施例中,步骤S20包括:
步骤S21,若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务;
在具体实施中,目标银行端的前置任务可能是需要企业端完成,例如由企业端向目标银行端进行签到;由于前置任务的处理要在企业端完成,该过程可能会持续一段时间,此时通信适配系统将会在预设临时表中添加对应的任务信息,以对该前置任务进行记录;其中,临时表跟永久表最大的区别就是表中的数据不会永远的存在,当一个任务处理结束的时候,这个临时表中的对应数据会被清除。在记录好任务信息后,通信适配系统将根据该任务信息和前置任务的任务要求向企业端发送对应的前置任务提醒,以使企业端执行该前置任务。
步骤S22,若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果;
本实施例中,当前置任务是需要企业端完成时,则目标银行端的前置响应消息是直接返回至企业端。而由于目标银行端和企业端之间的系统通信协议可能存在区别,则企业端可能无法直接识别目标银行端的前置响应消息,因此企业端若收到该前置响应消息时,会将该前置响应消息发送至通信适配系统,以确定其内容。当然,为了保证该任务的处理进度,通信适配系统在向企业端发送任务提醒后即开始计时,如果未能在预设处理时间内接收到企业端发送的前置响应消息,则会认为企业端未能按时进行前置任务,通信适配系统将会向企业端发送任务超期提醒。而如果通信适配系统在预设处理时间内接收到了企业端的前置响应消息,则会通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果。具体的,通信适配系统中预先定义有注解类(该注解类可以是基于人的输入操作进行定义);在接收到企业端发送的前置响应消息时,会将该注解类添加安插到在该前置响应消息中(BankDTO)中,然后通过反射获取对应的注解值;然后通信适配系统将获取企业端的通用消息模板(通用DTO模板),并根据注解值对通用消息模板进行赋值,从而获得通用响应消息。在获得通用响应消息时,即可根据通用消息获知前置任务处理状态。
步骤S23,当所述处理结果为任务通过时,删除所述任务信息,并根据所述处理结果和企业操作消息组装业务请求报文;
本实施例中,当确定前置任务完成(通过)时,通信适配系统即可将临时表中的任务信息删除,并根据处理结果和企业操作消息组装业务请求报文。当然,在确定前置任务完成时,通信适配系统还可将该通用响应消息返回至企业端,以供其确定前置任务的处理状态。
步骤S24,调用所述目标银行端的预设业务接口,并通过预设业务接口向所述目标银行端发送所述业务请求报文。
在业务请求报文组成完成时,通信适配系统将并调用模板银行端提供对应的业务接口,并通过该业务接口将该业务请求报文发送至目标银行端执行对应的操作。
通过以上方式,本实施例的通信适配系统可与企业端共同完成目标银行端的前置任务;同时通信适配系统可通过注解反射的方式实现银行报文到企业报文的转换,降低了企业端的工作量,为企业提供了方便。
参照图4,图4为本申请银企直联通信方法第二实施例的流程示意图。
基于上述图2或图3所述实施例,本实施例中,步骤S30之后,还包括:
步骤S40,在接收到所述目标银行端返回的请求响应报文时,对所述请求响应报文信息进行解析,并根据解析结果向所述企业端返回对应的通用响应消息。
本实施例中,若所述目标业务不需要执行前置任务,则通信适配系统在向目标银行端发送了通用请求报文后,目标银行端将会向其返回对应的请求响应报文,以通知业务处理状态。而由于目标银行端和企业端之间的系统通信协议可能存在区别,企业端可能无法直接识别目标银行端的请求响应报文,因此通信适配系统需要将其转换成企业端能识别的格式。具体的,通信适配系统首先会根据请求响应报文中的目标银行代码bankcode和业务功能function判断该报文是否为前置任务的响应报文;若不是,则会对该响应消息进行通用响应解析。此时通信适配系统将获取请求响应报文中的目标银行代码bankcode、通信协议类型protocol和协议版本version等参数信息,然后根据这些参数确定请求响应报文的格式。
本实施例中,在确定请求响应报文的格式时,通信适配系统为了解析的方便,将根据请求响应报文的格式对请求响应报文进行分片,提取出有效数据。例如,响应消息的分片情况可以包括:
①定长+xmlData(其中定长可以为0长度);
②http...\n\n+xmlData(即变长+xmlData,可通过特殊字符\n\n截取);
③根据报文中的丨进行分片;
④先根据报文中的\n\n进行一次切分,再根据|∷|进行二次切分。
当然,对于协议加密(例如公私钥加密)的报文,还可以对其进行解密后再进行分片和数据提取。
本实施例中,在提取出有效数据时,将获取企业端的通用报文模板,并将提取的有效数据填充至通用报文模板,形成通用响应报文。对于通用响应报文,为了方便企业端快速识别,可以包括报文头和报文体,报文头用于标识业务处理状态,报文体则是具体的业务数据;企业端在接收到该通用响应报文时,可首先根据报文头确认状态信息,再根据该状态信息确定是否需要读取其中的业务数据。当然,对于上述的通用响应报文的生成也可以是通过上述注解反射的方式实现的。
本实施例中,在得到通用响应消息时,通信适配系统即可将该通用响应报文返回至企业端,以供企业端根据该通用响应报文确定业务处理结果。
此外,本申请实施例还提供一种银企直联通信装置。
参照图5,图5为本申请银企直联通信装置第一实施例的功能模块示意图。
本实施例中,所述银企直联通信装置包括:
任务判断模块10,用于在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;
第一发送模块20,用于若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;
第二发送模块30,用于若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
进一步的,所述第一发送模块10包括:
提醒发送单元,用于若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务;
消息解析单元,用于若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果;
报文组装单元,用于当所述处理结果为任务通过时,删除所述任务信息,并根据所述处理结果和企业操作消息组装业务请求报文;
报文发送单元,用于调用所述目标银行端的预设业务接口,并通过预设业务接口向所述目标银行端发送所述业务请求报文。
进一步的,所述消息解析单元包括:
注解值获取子单元,用于若在预设处理时间内接收到所述企业端发送的前置响应消息,则将预设注解类添加至所述前置响应消息,并通过反射获取对应的注解值;
模板赋值子单元,用于获取通用所述企业端的通用消息模板,并根据所述注解值对所述通用消息模板进行赋值,获得通用响应消息;
结果确定子单元,用于根据所述通用响应消息确定所述任务处理结果。
进一步的,所述消息解析单元还包括:
超期提醒单元,用于若未在预设处理时间内接收到所述企业端发送的前置响应消息,则向所述企业端发送任务超期提醒。
进一步的,所述银企直联通信装置还包括:
消息返回模块,用于在接收到所述目标银行端返回的请求响应报文时,对所述请求响应报文信息进行解析,并根据解析结果向所述企业端返回对应的通用响应消息。
进一步的,所述消息返回模块包括:
格式确定单元,用于在接收到所述目标银行端返回的请求响应报文时,获取所述请求响应消息中的银行代码、协议类型和协议版本,并根据所述银行代码、协议类型和协议版本确定所述请求响应报文的报文格式;
数据提取单元,用于根据所述报文格式对所述请求响应报文进行分片,获取有效数据片,并在所述有效数据片中提取有效数据;
模板填充单元,用于获取通用所述企业端的通用消息模板,并将所述有效数据填充至所述通用消息模板,获得通用响应消息;
消息返回单元,用于将所述通用响应消息确定返回至所述企业端。
进一步的,所述任务判断模块10,还用于在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并根据所述目标业务类型和目标银行端查询对应的预设业务流程表,以根据所述预设业务流程表判断所述目标业务是否需要执行对应的前置任务。
其中,上述银企直联通信装置中各个模块与上述银企直联通信方法实施例中各步骤相对应,其功能和实现过程在此处不再赘述。
此外,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质可以为非易失性可读存储介质。
本申请计算机可读存储介质上存储有银企直联通信可读指令,其中所述银企直联通信可读指令被处理器执行时,实现如上述的银企直联通信方法的步骤。
其中,银企直联通信可读指令被执行时所实现的方法可参照本申请银企直联通信方法的各个实施例,此处不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
Claims (20)
- 一种银企直联通信方法,其特征在于,所述银企直联通信方法包括以下步骤:在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
- 如权利要求1所述的银企直联通信方法,其特征在于,所述若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文的步骤包括:若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务;若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果;当所述处理结果为任务通过时,删除所述任务信息,并根据所述处理结果和企业操作消息组装业务请求报文;调用所述目标银行端的预设业务接口,并通过预设业务接口向所述目标银行端发送所述业务请求报文。
- 如权利要求2所述的银企直联通信方法,其特征在于,所述若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果的步骤包括:若在预设处理时间内接收到所述企业端发送的前置响应消息,则将预设注解类添加至所述前置响应消息,并通过反射获取对应的注解值;获取通用所述企业端的通用消息模板,并根据所述注解值对所述通用消息模板进行赋值,获得通用响应消息;根据所述通用响应消息确定所述任务处理结果。
- 如权利要求2所述的银企直联通信方法,其特征在于,所述若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务的步骤之后,还包括:若未在预设处理时间内接收到所述企业端发送的前置响应消息,则向所述企业端发送任务超期提醒。
- 如权利要求1所述的银企直联通信方法,其特征在于,所述若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端的步骤之后,还包括:在接收到所述目标银行端返回的请求响应报文时,对所述请求响应报文信息进行解析,并根据解析结果向所述企业端返回对应的通用响应消息。
- 如权利要求5所述的银企直联通信方法,其特征在于,所述在接收到所述目标银行端返回的请求响应报文时,对所述请求响应报文信息进行解析,并根据解析结果向所述企业端返回对应的通用响应消息的步骤包括:在接收到所述目标银行端返回的请求响应报文时,获取所述请求响应消息中的银行代码、协议类型和协议版本,并根据所述银行代码、协议类型和协议版本确定所述请求响应报文的报文格式;根据所述报文格式对所述请求响应报文进行分片,获取有效数据片,并在所述有效数据片中提取有效数据;获取通用所述企业端的通用消息模板,并将所述有效数据填充至所述通用消息模板,获得通用响应消息;将所述通用响应消息确定返回至所述企业端。
- 如权利要求1所述的银企直联通信方法,其特征在于,所述在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务的步骤包括:在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并根据所述目标业务类型和目标银行端查询对应的预设业务流程表,以根据所述预设业务流程表判断所述目标业务是否需要执行对应的前置任务。
- 一种银企直联通信装置,其特征在于,所述银企直联通信装置包括:任务判断模块,用于在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;第一发送模块,用于若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;第二发送模块,用于若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
- 如权利要求8所述的银企直联通信装置,其特征在于,所述第一发送模块包括:提醒发送单元,用于若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务;消息解析单元,用于若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果;报文组装单元,用于当所述处理结果为任务通过时,删除所述任务信息,并根据所述处理结果和企业操作消息组装业务请求报文;报文发送单元,用于调用所述目标银行端的预设业务接口,并通过预设业务接口向所述目标银行端发送所述业务请求报文。
- 如权利要求9所述的银企直联通信装置,其特征在于,所述消息解析单元包括:注解值获取子单元,用于若在预设处理时间内接收到所述企业端发送的前置响应消息,则将预设注解类添加至所述前置响应消息,并通过反射获取对应的注解值;模板赋值子单元,用于获取通用所述企业端的通用消息模板,并根据所述注解值对所述通用消息模板进行赋值,获得通用响应消息;结果确定子单元,用于根据所述通用响应消息确定所述任务处理结果。
- 如权利要求9所述的银企直联通信装置,其特征在于,所述消息解析单元还包括:超期提醒单元,用于若未在预设处理时间内接收到所述企业端发送的前置响应消息,则向所述企业端发送任务超期提醒。
- 如权利要求8所述的银企直联通信装置,其特征在于,所述银企直联通信装置还包括:消息返回模块,用于在接收到所述目标银行端返回的请求响应报文时,对所述请求响应报文信息进行解析,并根据解析结果向所述企业端返回对应的通用响应消息。
- 一种银企直联通信设备,其特征在于,所述银企直联通信设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的银企直联通信可读指令,所述银企直联通信可读指令被所述处理器执行时,实现以下步骤:在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
- 如权利要求13所述的银企直联通信设备,其特征在于,所述若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文的步骤包括:若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务;若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果;当所述处理结果为任务通过时,删除所述任务信息,并根据所述处理结果和企业操作消息组装业务请求报文;调用所述目标银行端的预设业务接口,并通过预设业务接口向所述目标银行端发送所述业务请求报文。
- 如权利要求14所述的银企直联通信设备,其特征在于,所述若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果的步骤包括:若在预设处理时间内接收到所述企业端发送的前置响应消息,则将预设注解类添加至所述前置响应消息,并通过反射获取对应的注解值;获取通用所述企业端的通用消息模板,并根据所述注解值对所述通用消息模板进行赋值,获得通用响应消息;根据所述通用响应消息确定所述任务处理结果。
- 如权利要求13所述的银企直联通信设备,其特征在于,所述银企直联通信可读指令被所述处理器执行时,还实现以下步骤:若未在预设处理时间内接收到所述企业端发送的前置响应消息,则向所述企业端发送任务超期提醒。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有银企直联通信可读指令,其中所述银企直联通信可读指令被处理器执行时,实现以下步骤:在接收到企业端发送的企业操作消息时,根据所述企业操作消息确定目标业务类型和目标银行端,并判断所述目标业务是否需要执行对应的前置任务;若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文;若所述目标业务不需要执行前置任务,则获取预设通用通信模板,并将所述企业操作消息中的业务请求数据填充至所述预设通用通信模板,得到通用请求报文,以将所述通用请求报文发送至所述目标银行端。
- 如权利要求17所述的计算机可读存储介质,其特征在于,所述若所述目标业务需要执行前置任务,则根据所述前置任务的任务要求进行前置任务处理,并在所述前置任务处理完成时调用预设业务接口,以通过所述预设业务接口向所述目标银行端发送对应的业务请求报文的步骤包括:若所述目标业务需要执行前置任务,则在预设临时表中添加对应的任务信息,并根据所述任务信息和前置任务的任务要求向所述企业端发送前置任务提醒,以使所述企业端执行所述前置任务;若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果;当所述处理结果为任务通过时,删除所述任务信息,并根据所述处理结果和企业操作消息组装业务请求报文;调用所述目标银行端的预设业务接口,并通过预设业务接口向所述目标银行端发送所述业务请求报文。
- 如权利要求18所述的计算机可读存储介质,其特征在于,所述若在预设处理时间内接收到所述企业端发送的前置响应消息,则通过注解反射技术对所述前置响应消息进行解析,确定任务处理结果的步骤包括:若在预设处理时间内接收到所述企业端发送的前置响应消息,则将预设注解类添加至所述前置响应消息,并通过反射获取对应的注解值;获取通用所述企业端的通用消息模板,并根据所述注解值对所述通用消息模板进行赋值,获得通用响应消息;根据所述通用响应消息确定所述任务处理结果。
- 如权利要求17所述的计算机可读存储介质,其特征在于,所述银企直联通信可读指令被所述处理器执行时,还实现以下步骤:若未在预设处理时间内接收到所述企业端发送的前置响应消息,则向所述企业端发送任务超期提醒。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810282150.4 | 2018-04-02 | ||
CN201810282150.4A CN108462758B (zh) | 2018-04-02 | 2018-04-02 | 银企直联通信方法、装置、设备及计算机可读存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019192085A1 true WO2019192085A1 (zh) | 2019-10-10 |
Family
ID=63237045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/092855 WO2019192085A1 (zh) | 2018-04-02 | 2018-06-26 | 银企直联通信方法、装置、设备及计算机可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108462758B (zh) |
WO (1) | WO2019192085A1 (zh) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110879787A (zh) * | 2019-12-31 | 2020-03-13 | 中国银行股份有限公司 | 一种客户端测试方法及系统 |
CN111211997A (zh) * | 2019-12-30 | 2020-05-29 | 中国银行股份有限公司 | 一种报文处理方法、装置及系统 |
CN111754324A (zh) * | 2020-06-24 | 2020-10-09 | 中国银行股份有限公司 | 云erp银企对接处理方法、系统及各处理端 |
CN113794721A (zh) * | 2021-09-15 | 2021-12-14 | 深圳市共治物联科技有限公司 | 一种政府机关及金融机构与企业安全直连方法 |
CN114553824A (zh) * | 2021-12-31 | 2022-05-27 | 深圳市梦网科技发展有限公司 | 企业通道号的维护方法、系统、终端设备及介质 |
CN115330533A (zh) * | 2022-10-14 | 2022-11-11 | 好享家舒适智能家居股份有限公司 | 一种用于智慧工程的多银行流水获取方法 |
CN116346961A (zh) * | 2023-05-30 | 2023-06-27 | 成方金融科技有限公司 | 金融报文处理方法、装置、电子设备及存储介质 |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783249B (zh) * | 2018-12-13 | 2024-04-30 | 中国平安财产保险股份有限公司 | 平台接入方法及装置、终端和计算机可读存储介质 |
CN109831411A (zh) * | 2018-12-24 | 2019-05-31 | 江西华兴信息产业有限公司 | 一种调度适配方法及设备 |
CN110113318A (zh) * | 2019-04-16 | 2019-08-09 | 深圳壹账通智能科技有限公司 | 前置系统数据处理方法、装置、计算机设备和存储介质 |
CN111901384B (zh) * | 2020-06-29 | 2023-10-24 | 成都质数斯达克科技有限公司 | 处理报文的系统、方法、电子设备以及可读存储介质 |
CN113014556B (zh) * | 2021-02-10 | 2021-10-26 | 中国银河资产管理有限责任公司 | 银企通讯系统、通讯方法以及电子终端 |
CN113205340A (zh) * | 2021-04-02 | 2021-08-03 | 万翼科技有限公司 | 银企直连平台的数据处理方法及相关装置 |
CN113238817A (zh) * | 2021-05-20 | 2021-08-10 | 上海销氪信息科技有限公司 | 一种接口透传方法、装置、电子设备和存储介质 |
CN113300895A (zh) * | 2021-06-09 | 2021-08-24 | 车智互联(北京)科技有限公司 | 一种线索处理方法、系统及计算设备 |
CN113746904A (zh) * | 2021-08-04 | 2021-12-03 | 南京星云数字技术有限公司 | 业务请求处理方法、系统以及计算机可读存储介质 |
CN113673979B (zh) * | 2021-08-24 | 2022-07-08 | 国家电投香港财资管理有限公司 | 一种境外司库管理系统 |
CN114884743B (zh) * | 2022-06-07 | 2024-07-05 | 中国工商银行股份有限公司 | 业务处理方法、装置、设备、存储介质和程序产品 |
CN116091015A (zh) * | 2023-04-07 | 2023-05-09 | 中瑞方胜人力资源科技(北京)有限公司 | 工资发放系统、方法、电子设备及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020156733A1 (en) * | 2001-04-23 | 2002-10-24 | Fujitsu Limited | Business management support method and business management support program |
CN101334887A (zh) * | 2008-08-07 | 2008-12-31 | 金蝶软件(中国)有限公司 | 一种金融数据处理的方法和银企平台装置 |
CN104079632A (zh) * | 2014-06-09 | 2014-10-01 | 中国建设银行股份有限公司 | 一种第三方业务的处理方法及设备 |
CN107516204A (zh) * | 2017-08-31 | 2017-12-26 | 四川长虹电器股份有限公司 | 互联网银企对接系统及对接方法 |
-
2018
- 2018-04-02 CN CN201810282150.4A patent/CN108462758B/zh active Active
- 2018-06-26 WO PCT/CN2018/092855 patent/WO2019192085A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020156733A1 (en) * | 2001-04-23 | 2002-10-24 | Fujitsu Limited | Business management support method and business management support program |
CN101334887A (zh) * | 2008-08-07 | 2008-12-31 | 金蝶软件(中国)有限公司 | 一种金融数据处理的方法和银企平台装置 |
CN104079632A (zh) * | 2014-06-09 | 2014-10-01 | 中国建设银行股份有限公司 | 一种第三方业务的处理方法及设备 |
CN107516204A (zh) * | 2017-08-31 | 2017-12-26 | 四川长虹电器股份有限公司 | 互联网银企对接系统及对接方法 |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111211997A (zh) * | 2019-12-30 | 2020-05-29 | 中国银行股份有限公司 | 一种报文处理方法、装置及系统 |
CN111211997B (zh) * | 2019-12-30 | 2023-01-20 | 中国银行股份有限公司 | 一种报文处理方法、装置及系统 |
CN110879787A (zh) * | 2019-12-31 | 2020-03-13 | 中国银行股份有限公司 | 一种客户端测试方法及系统 |
CN110879787B (zh) * | 2019-12-31 | 2024-01-30 | 中国银行股份有限公司 | 一种客户端测试方法及系统 |
CN111754324A (zh) * | 2020-06-24 | 2020-10-09 | 中国银行股份有限公司 | 云erp银企对接处理方法、系统及各处理端 |
CN111754324B (zh) * | 2020-06-24 | 2023-08-22 | 中国银行股份有限公司 | 云erp银企对接处理方法、系统及各处理端 |
CN113794721A (zh) * | 2021-09-15 | 2021-12-14 | 深圳市共治物联科技有限公司 | 一种政府机关及金融机构与企业安全直连方法 |
CN114553824A (zh) * | 2021-12-31 | 2022-05-27 | 深圳市梦网科技发展有限公司 | 企业通道号的维护方法、系统、终端设备及介质 |
CN114553824B (zh) * | 2021-12-31 | 2024-04-19 | 深圳市梦网科技发展有限公司 | 企业通道号的维护方法、系统、终端设备及介质 |
CN115330533A (zh) * | 2022-10-14 | 2022-11-11 | 好享家舒适智能家居股份有限公司 | 一种用于智慧工程的多银行流水获取方法 |
CN116346961A (zh) * | 2023-05-30 | 2023-06-27 | 成方金融科技有限公司 | 金融报文处理方法、装置、电子设备及存储介质 |
CN116346961B (zh) * | 2023-05-30 | 2023-09-05 | 成方金融科技有限公司 | 金融报文处理方法、装置、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN108462758B (zh) | 2021-02-05 |
CN108462758A (zh) | 2018-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019192085A1 (zh) | 银企直联通信方法、装置、设备及计算机可读存储介质 | |
WO2019174375A1 (zh) | 接口测试方法、装置、设备及计算机可读存储介质 | |
WO2019100604A1 (zh) | 账户查询方法、装置、设备及计算机可读存储介质 | |
WO2019227557A1 (zh) | 密钥管理方法、设备、存储介质及装置 | |
WO2019196213A1 (zh) | 接口测试方法、装置、设备及计算机可读存储介质 | |
WO2020224247A1 (zh) | 基于区块链的数据溯源方法、装置、设备及可读存储介质 | |
WO2018107610A1 (zh) | 业务数据处理方法、系统、设备及计算机可读存储介质 | |
WO2019037396A1 (zh) | 账户清结算方法、装置、设备及存储介质 | |
WO2018228050A1 (zh) | 防止敏感信息泄露的方法、装置及存储介质 | |
WO2019205280A1 (zh) | 服务器的测试方法、装置、设备及计算机可读存储介质 | |
WO2019104877A1 (zh) | 通过网站对接购买保险的方法、装置、设备及介质 | |
WO2019161597A1 (zh) | 基于即时通讯的信息发送方法、装置、设备和存储介质 | |
WO2019109520A1 (zh) | 视频面签派工方法、装置、设备及可读存储介质 | |
WO2015196960A1 (en) | Method and system for checking security of url for mobile terminal | |
WO2019104876A1 (zh) | 保险产品的推送方法、系统、终端、客户终端及存储介质 | |
WO2019075973A1 (zh) | 应用程序的测试方法及装置 | |
WO2015131803A1 (en) | Application recommending method and system | |
WO2019161615A1 (zh) | 账单录入方法、系统、光学字符识别服务器和存储介质 | |
WO2019169814A1 (zh) | 自动生成中文注释的方法、装置、设备及存储介质 | |
WO2018227880A1 (zh) | 数据比对方法、装置、设备及可读存储介质 | |
WO2019109521A1 (zh) | 视频面签身份审核方法、装置、设备及可读存储介质 | |
WO2019037454A1 (zh) | 保费缴纳方法、装置、设备及可读存储介质 | |
WO2019100531A1 (zh) | 数字签名生成、验证方法及其设备和存储介质 | |
WO2018023926A1 (zh) | 电视与移动终端的互动方法及系统 | |
WO2019085301A1 (zh) | 座机未接来电的反馈方法、装置、设备及可读存储介质 |
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: 18913578 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/01/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18913578 Country of ref document: EP Kind code of ref document: A1 |