CN115622995A - A file sending method and device - Google Patents
A file sending method and device Download PDFInfo
- Publication number
- CN115622995A CN115622995A CN202211246775.8A CN202211246775A CN115622995A CN 115622995 A CN115622995 A CN 115622995A CN 202211246775 A CN202211246775 A CN 202211246775A CN 115622995 A CN115622995 A CN 115622995A
- Authority
- CN
- China
- Prior art keywords
- file
- sending
- sent
- preset
- target path
- 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.)
- Pending
Links
Images
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/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供一种文件发送方法及装置,涉及数据处理技术领域,可用于金融领域或其他技术领域。所述方法包括:接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。所述装置执行上述方法。本发明实施例提供的文件发送方法及装置,能够使得金融数据之间同步传输,互不干扰,且能够传输至正确的目标地址。
The invention provides a file sending method and device, which relate to the technical field of data processing and can be used in the financial field or other technical fields. The method includes: receiving a configuration parameter sent by a configuration server; the configuration parameter includes a bank number and a local file storage path respectively corresponding to the digital content of the bank number; according to the digital content and a preset corresponding relationship, determine The file sending target path; the preset corresponding relationship includes the corresponding relationship between the preset digital content and the preset file sending target path; the file to be sent is obtained from the local file storage path, and the file to be sent is sent to the The destination path for sending the above-mentioned files. The apparatus performs the method described above. The file sending method and device provided by the embodiments of the present invention can enable synchronous transmission of financial data without interfering with each other, and can be transmitted to the correct target address.
Description
技术领域technical field
本发明涉及数据处理技术领域,具体涉及一种文件发送方法及装置。The invention relates to the technical field of data processing, in particular to a file sending method and device.
背景技术Background technique
随着金融全球化趋势的发展,需要对金融数据进行统一分配和统一管理,因此,确保金融数据之间同步传输,互不干扰,且能够传输至正确的目标地址,成为亟需解决的技术问题。With the development of the trend of financial globalization, unified distribution and unified management of financial data is required. Therefore, ensuring that financial data is transmitted synchronously without interfering with each other and can be transmitted to the correct target address has become a technical problem that needs to be solved urgently .
发明内容Contents of the invention
针对现有技术中的问题,本发明实施例提供一种文件发送方法及装置,能够至少部分地解决现有技术中存在的问题。In view of the problems in the prior art, the embodiments of the present invention provide a file sending method and device, which can at least partly solve the problems in the prior art.
一方面,本发明提出一种文件发送方法,包括:On the one hand, the present invention proposes a method for sending files, including:
接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;receiving configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;Determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The file to be sent is acquired from the local file storage path, and the file to be sent is sent to the file sending target path.
其中,所述银行号的数字内容为零;相应的,与所述银行号的数字内容分别对应的本地文件存储路径,包括:Wherein, the digital content of the bank number is zero; correspondingly, the local file storage paths respectively corresponding to the digital content of the bank number include:
与零对应的本地文件存储路径为用于统一存储全球一份文件的本地文件存储路径。The local file storage path corresponding to zero is a local file storage path for uniformly storing a global file.
其中,所述文件发送目标路径预置在数据下传平台系统中;相应的,所述发送所述待发送文件至所述文件发送目标路径,包括:Wherein, the file sending target path is preset in the data downloading platform system; correspondingly, the sending the file to be sent to the file sending target path includes:
调用文件传输中间件Connect:Direct发送所述待发送文件至所述数据下传平台系统中的所述文件发送目标路径。Call the file transfer middleware Connect:Direct to send the file to be sent to the file sending target path in the data download platform system.
其中,在所述发送所述待发送文件至所述文件发送目标路径的步骤之后,所述文件发送方法还包括:Wherein, after the step of sending the file to be sent to the file sending target path, the file sending method further includes:
生成文件发送日志信息,将所述文件发送日志信息记录在与所述银行号对应的银行号日志文件中。Generate file sending log information, and record the file sending log information in the bank number log file corresponding to the bank number.
一方面,本发明提出一种文件发送装置,包括:On the one hand, the present invention proposes a file sending device, including:
接收单元,用于接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;The receiving unit is used to receive configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
确定单元,用于根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;A determining unit, configured to determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
发送单元,用于从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。A sending unit, configured to obtain a file to be sent from the local file storage path, and send the file to be sent to the file sending target path.
其中,所述接收单元具体用于确定:Wherein, the receiving unit is specifically used to determine:
与零对应的本地文件存储路径为用于统一存储全球一份文件的本地文件存储路径。The local file storage path corresponding to zero is a local file storage path for uniformly storing a global file.
其中,所述文件发送目标路径预置在数据下传平台系统中;相应的,所述发送单元具体用于:Wherein, the file sending target path is preset in the data downloading platform system; correspondingly, the sending unit is specifically used for:
调用文件传输中间件Connect:Direct发送所述待发送文件至所述数据下传平台系统中的所述文件发送目标路径。Call the file transfer middleware Connect:Direct to send the file to be sent to the file sending target path in the data download platform system.
其中,所述文件发送装置还用于:Wherein, the file sending device is also used for:
生成文件发送日志信息,将所述文件发送日志信息记录在与所述银行号对应的银行号日志文件中。Generate file sending log information, and record the file sending log information in the bank number log file corresponding to the bank number.
再一方面,本发明实施例提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如下方法:In another aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the following method when executing the computer program:
接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;receiving configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;Determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The file to be sent is acquired from the local file storage path, and the file to be sent is sent to the file sending target path.
本发明实施例提供一种计算机可读存储介质,包括:An embodiment of the present invention provides a computer-readable storage medium, including:
所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如下方法:The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method is implemented:
接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;receiving configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;Determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The file to be sent is acquired from the local file storage path, and the file to be sent is sent to the file sending target path.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现如下方法:The embodiment of the present invention also provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the following method is implemented:
接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;receiving configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;Determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The file to be sent is acquired from the local file storage path, and the file to be sent is sent to the file sending target path.
本发明实施例提供的文件发送方法及装置,接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径,能够使得金融数据之间同步传输,互不干扰,且能够传输至正确的目标地址。The file sending method and device provided by the embodiments of the present invention receive the configuration parameters sent by the configuration server; the configuration parameters include the bank number, and the local file storage paths respectively corresponding to the digital content of the bank number; according to the digital content and the preset corresponding relationship, determine the file sending target path; the preset corresponding relationship includes the corresponding relationship between the preset digital content and the preset file sending target path; obtain the file to be sent from the local file storage path, and send The path from the file to be sent to the file sending destination can enable the synchronous transmission of financial data without interfering with each other, and can be transmitted to the correct destination address.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work. In the attached picture:
图1是本发明一实施例提供的文件发送方法的流程示意图。Fig. 1 is a schematic flowchart of a file sending method provided by an embodiment of the present invention.
图2是执行本发明实施例提供的文件发送方法相关设备的结构示意图。Fig. 2 is a schematic structural diagram of related equipment for executing the file sending method provided by the embodiment of the present invention.
图3是本发明另一实施例提供的文件发送方法的流程示意图。Fig. 3 is a schematic flowchart of a file sending method provided by another embodiment of the present invention.
图4是本发明一实施例提供的文件发送装置的结构示意图。Fig. 4 is a schematic structural diagram of a file sending device provided by an embodiment of the present invention.
图5为本发明实施例提供的计算机设备实体结构示意图。FIG. 5 is a schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
图1是本发明一实施例提供的文件发送方法的流程示意图,如图1所示,本发明实施例提供的文件发送方法,包括:Fig. 1 is a schematic flowchart of a file sending method provided by an embodiment of the present invention. As shown in Fig. 1, the file sending method provided by the embodiment of the present invention includes:
步骤S1:接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径。Step S1: receiving the configuration parameters sent by the configuration server; the configuration parameters include the bank number and the local file storage paths respectively corresponding to the digital content of the bank number.
步骤S2:根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系。Step S2: Determine the file sending destination path according to the digital content and the preset corresponding relationship; the preset corresponding relationship includes the corresponding relationship between the preset digital content and the preset file sending destination path.
步骤S3:从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。Step S3: Obtain the file to be sent from the local file storage path, and send the file to be sent to the file sending target path.
在上述步骤S1中,装置接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径。装置可以是执行该方法的计算机设备等,具体可以是银行跨境支付系统服务器。本申请技术方案中对数据的获取、存储、使用、处理等均符合国家法律法规的相关规定。In the above step S1, the device receives the configuration parameters sent by the configuration server; the configuration parameters include the bank number and the local file storage paths respectively corresponding to the digital content of the bank number. The device may be a computer device or the like for executing the method, specifically, it may be a bank cross-border payment system server. The acquisition, storage, use, and processing of data in the technical solution of this application all comply with the relevant provisions of national laws and regulations.
银行号可以由3位数字进行表示,以区分不同的商业银行机构,例如银行号002对应商业银行机构B、数字内容002对应存储在银行跨境支付系统服务器的本地文件存储路径M002;银行号003对应商业银行机构C、数字内容003对应存储在银行跨境支付系统服务器的本地文件存储路径M003。The bank number can be represented by 3 digits to distinguish different commercial banking institutions. For example, bank number 002 corresponds to commercial banking institution B, digital content 002 corresponds to the local file storage path M002 stored in the bank's cross-border payment system server; bank number 003 Corresponding to commercial banking institution C, the digital content 003 corresponds to the local file storage path M003 stored in the server of the bank's cross-border payment system.
银行号的数字内容为零;相应的,与所述银行号的数字内容分别对应的本地文件存储路径,包括:The digital content of the bank number is zero; correspondingly, the local file storage paths corresponding to the digital content of the bank number include:
与零对应的本地文件存储路径为用于统一存储全球一份文件的本地文件存储路径。即用银行号000表示全球一份文件,为本领域通用术语,表示除了有银行号的银行号文件之外的所有文件,全球一份文件对应的本地文件存储路径,记为M000。即将除了有银行号的银行号文件之外的所有文件都存储在银行跨境支付系统服务器的本地文件存储路径M000。The local file storage path corresponding to zero is a local file storage path for uniformly storing a global file. That is, the bank number 000 is used to represent a global file, which is a general term in this field, and it means all files except the bank number file with a bank number. The local file storage path corresponding to a global file is recorded as M000. That is to say, all files except the bank number file with the bank number are stored in the local file storage path M000 of the bank's cross-border payment system server.
在上述步骤S2中,装置根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系。预设数字内容002对应预设文件发送目标路径N002;预设数字内容003对应预设文件发送目标路径N003;预设数字内容000对应预设文件发送目标路径N000。In the above step S2, the device determines the file sending destination path according to the digital content and the preset corresponding relationship; the preset corresponding relationship includes the corresponding relationship between the preset digital content and the preset file sending destination path. The preset digital content 002 corresponds to the preset file sending destination path N002; the preset digital content 003 corresponds to the preset file sending destination path N003; the preset digital content 000 corresponds to the preset file sending destination path N000.
如果配置参数中的银行号为银行号003,则其对应的文件发送目标路径为N003。可以通过灵活配置预设对应关系,实现基于银行号的业务扩展。If the bank number in the configuration parameter is bank number 003, its corresponding file sending destination path is N003. Business expansion based on bank numbers can be realized through flexible configuration of preset correspondences.
在上述步骤S3中,装置从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。待发送文件可以是基于业务需要的文件,也可以通过用户选择来确定。文件发送目标路径预置在数据下传平台系统中,配置服务器、银行跨境支付系统服务器和数据下传平台系统之间的连接关系如图2所示。In the above step S3, the device obtains the file to be sent from the local file storage path, and sends the file to be sent to the file sending target path. The file to be sent may be a file based on business needs, or may be determined by user selection. The file sending target path is preset in the data downloading platform system, and the connection relationship between the configuration server, the bank’s cross-border payment system server and the data downloading platform system is shown in Figure 2.
如图3所示,所述发送所述待发送文件至所述文件发送目标路径,包括:As shown in Figure 3, the sending the file to be sent to the file sending target path includes:
调用文件传输中间件Connect:Direct发送所述待发送文件至所述数据下传平台系统中的所述文件发送目标路径。Connect:Direct即对应图3中的C:D,说明如下:Call the file transfer middleware Connect:Direct to send the file to be sent to the file sending target path in the data download platform system. Connect:Direct corresponds to C:D in Figure 3, as follows:
Connect:Direct(以下简称C:D)实现了信息在不同服务器平台间的链接,它可以完成不同类型的数据在联网系统的计算机之间的自由移动。它具有自动化、可靠性、资源有效利用、应用程序集成和易于使用等特点,实现了高性能的数据传送。Connect:Direct (hereinafter referred to as C:D) realizes the link of information between different server platforms, and it can complete the free movement of different types of data between computers in the networked system. It features automation, reliability, resource efficient utilization, application integration, and ease of use for high-performance data transfer.
DCDS,即数据下传平台系统,负责各系统数据接收及分发。DCDS, the data download platform system, is responsible for data reception and distribution of each system.
参照上述举例,从本地文件存储路径M003中获取待发送文件,发送待发送文件至文件发送目标路径N003。Referring to the above example, the file to be sent is obtained from the local file storage path M003, and the file to be sent is sent to the file sending target path N003.
进一步地,通过shell脚本调用文件传输中间件Connect:Direct发送所述待发送文件至所述数据下传平台系统中的所述文件发送目标路径。Shell脚本(shell script),是一种为shell编写的脚本程序。Further, the file transfer middleware Connect:Direct is invoked through a shell script to send the file to be sent to the file sending target path in the data download platform system. Shell script (shell script) is a script program written for the shell.
本发明实施例提供的文件发送方法,接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径,能够使得金融数据之间同步传输,互不干扰,且能够传输至正确的目标地址。The file sending method provided by the embodiment of the present invention receives the configuration parameters sent by the configuration server; the configuration parameters include the bank number and the local file storage path corresponding to the digital content of the bank number; according to the digital content and the preset Set up a corresponding relationship, determine the file sending target path; the preset corresponding relationship includes the corresponding relationship between the preset digital content and the preset file sending target path; obtain the file to be sent from the local file storage path, and send the The file to be sent to the file sending target path can make the financial data be transmitted synchronously without interfering with each other, and can be transmitted to the correct target address.
进一步地,所述银行号的数字内容为零;相应的,与所述银行号的数字内容分别对应的本地文件存储路径,包括:Further, the digital content of the bank number is zero; correspondingly, the local file storage paths respectively corresponding to the digital content of the bank number include:
与零对应的本地文件存储路径为用于统一存储全球一份文件的本地文件存储路径。可参照上述说明不再赘述。即也适用于不分银行号的全球一份文件传输,减少重复开发工作,提高了方法的通用性。The local file storage path corresponding to zero is a local file storage path for uniformly storing a global file. Reference may be made to the description above and no further details will be given. That is, it is also applicable to global file transfer regardless of bank number, reducing repeated development work and improving the versatility of the method.
进一步地,所述文件发送目标路径预置在数据下传平台系统中;相应的,所述发送所述待发送文件至所述文件发送目标路径,包括:Further, the file sending target path is preset in the data downloading platform system; correspondingly, the sending the file to be sent to the file sending target path includes:
调用文件传输中间件Connect:Direct发送所述待发送文件至所述数据下传平台系统中的所述文件发送目标路径。可以参照上述说明,不再赘述。Call the file transfer middleware Connect:Direct to send the file to be sent to the file sending target path in the data download platform system. Reference may be made to the above description, and details are not repeated here.
进一步地,在所述发送所述待发送文件至所述文件发送目标路径的步骤之后,所述文件发送方法还包括:Further, after the step of sending the file to be sent to the file sending target path, the file sending method further includes:
生成文件发送日志信息,将所述文件发送日志信息记录在与所述银行号对应的银行号日志文件中。即,将log信息输出至相应银行号log文件中。Generate file sending log information, and record the file sending log information in the bank number log file corresponding to the bank number. That is, the log information is output to the log file of the corresponding bank number.
该实施例能够有效监控实际文件传输情况。This embodiment can effectively monitor the actual file transmission situation.
需要说明的是,本发明实施例提供的文件发送方法可用于金融领域,也可用于除金融领域之外的任意技术领域,本发明实施例对文件发送方法的应用领域不做限定。It should be noted that the file sending method provided by the embodiment of the present invention can be used in the financial field, and can also be used in any technical field except the financial field, and the embodiment of the present invention does not limit the application field of the file sending method.
图4是本发明一实施例提供的文件发送装置的结构示意图,如图4所示,本发明实施例提供的文件发送装置,包括接收单元401、确定单元402和发送单元403,其中:Fig. 4 is a schematic structural diagram of a file sending device provided by an embodiment of the present invention. As shown in Fig. 4, the file sending device provided by an embodiment of the present invention includes a receiving
接收单元401用于接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;确定单元402用于根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;发送单元403用于从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The receiving
具体的,装置中的接收单元401用于接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;确定单元402用于根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;发送单元403用于从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。Specifically, the receiving
本发明实施例提供的文件发送装置,接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径,能够使得金融数据之间同步传输,互不干扰,且能够传输至正确的目标地址。The file sending device provided by the embodiment of the present invention receives the configuration parameters sent by the configuration server; the configuration parameters include the bank number and the local file storage path corresponding to the digital content of the bank number; according to the digital content and the preset Set up a corresponding relationship, determine the file sending target path; the preset corresponding relationship includes the corresponding relationship between the preset digital content and the preset file sending target path; obtain the file to be sent from the local file storage path, and send the The file to be sent to the file sending target path can make the financial data be transmitted synchronously without interfering with each other, and can be transmitted to the correct target address.
所述接收单元401具体用于确定:The receiving
与零对应的本地文件存储路径为用于统一存储全球一份文件的本地文件存储路径。The local file storage path corresponding to zero is a local file storage path for uniformly storing a global file.
所述文件发送目标路径预置在数据下传平台系统中;相应的,所述发送单元403具体用于:The file sending target path is preset in the data downloading platform system; correspondingly, the sending
调用文件传输中间件Connect:Direct发送所述待发送文件至所述数据下传平台系统中的所述文件发送目标路径。Call the file transfer middleware Connect:Direct to send the file to be sent to the file sending target path in the data download platform system.
所述文件发送装置还用于:The file sending device is also used for:
生成文件发送日志信息,将所述文件发送日志信息记录在与所述银行号对应的银行号日志文件中。Generate file sending log information, and record the file sending log information in the bank number log file corresponding to the bank number.
本发明实施例提供文件发送装置的实施例具体可以用于执行上述各方法实施例的处理流程,其功能在此不再赘述,可以参照上述方法实施例的详细描述。The embodiment of the file sending device provided by the embodiment of the present invention can be specifically used to execute the processing procedures of the foregoing method embodiments, and its functions will not be repeated here, and reference can be made to the detailed description of the foregoing method embodiments.
图5为本发明实施例提供的计算机设备实体结构示意图,如图5所示,所述计算机设备包括:存储器501、处理器502及存储在存储器501上并可在处理器502上运行的计算机程序,所述处理器502执行所述计算机程序时实现如下方法:Figure 5 is a schematic diagram of the physical structure of a computer device provided by an embodiment of the present invention. As shown in Figure 5, the computer device includes: a
接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;receiving configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;Determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The file to be sent is acquired from the local file storage path, and the file to be sent is sent to the file sending target path.
本实施例公开一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现如下方法:This embodiment discloses a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the following method is implemented:
接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;receiving configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;Determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The file to be sent is acquired from the local file storage path, and the file to be sent is sent to the file sending target path.
本实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如下方法:This embodiment provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method is implemented:
接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;receiving configuration parameters sent by the configuration server; the configuration parameters include bank numbers and local file storage paths corresponding to the digital contents of the bank numbers;
根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;Determine a file sending target path according to the digital content and a preset corresponding relationship; the preset corresponding relationship includes a corresponding relationship between the preset digital content and the preset file sending target path;
从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径。The file to be sent is acquired from the local file storage path, and the file to be sent is sent to the file sending target path.
本发明实施例中,接收配置服务器发送的配置参数;所述配置参数包括银行号,以及与所述银行号的数字内容分别对应的本地文件存储路径;根据所述数字内容和预设对应关系,确定文件发送目标路径;所述预设对应关系包括预设数字内容与预设文件发送目标路径之间的对应关系;从所述本地文件存储路径中获取待发送文件,发送所述待发送文件至所述文件发送目标路径,能够使得金融数据之间同步传输,互不干扰,且能够传输至正确的目标地址。In the embodiment of the present invention, the configuration parameters sent by the configuration server are received; the configuration parameters include the bank number and the local file storage paths respectively corresponding to the digital content of the bank number; according to the digital content and the preset corresponding relationship, Determine the file sending target path; the preset corresponding relationship includes the corresponding relationship between the preset digital content and the preset file sending target path; obtain the file to be sent from the local file storage path, and send the file to be sent to The file sending target path can enable the synchronous transmission of financial data without interfering with each other, and can be transmitted to the correct target address.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow diagram procedure or procedures and/or block diagram procedures or blocks.
在本说明书的描述中,参考术语“一个实施例”、“一个具体实施例”、“一些实施例”、“例如”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions referring to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "examples", "specific examples", or "some examples" etc. mean It means that a specific feature, structure, material or characteristic described in conjunction with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211246775.8A CN115622995A (en) | 2022-10-12 | 2022-10-12 | A file sending method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211246775.8A CN115622995A (en) | 2022-10-12 | 2022-10-12 | A file sending method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115622995A true CN115622995A (en) | 2023-01-17 |
Family
ID=84862653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211246775.8A Pending CN115622995A (en) | 2022-10-12 | 2022-10-12 | A file sending method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115622995A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984633A (en) * | 2014-06-04 | 2014-08-13 | 中国工商银行股份有限公司 | Automatic testing system for job downloading of bank host |
CN113114757A (en) * | 2021-04-09 | 2021-07-13 | 中国工商银行股份有限公司 | File transmission method, device and equipment |
CN113127268A (en) * | 2021-05-18 | 2021-07-16 | 中国银行股份有限公司 | Data transmission method and device for bank database |
CN113778563A (en) * | 2021-09-27 | 2021-12-10 | 中国银行股份有限公司 | Method and device for loading text file of bank peripheral system |
-
2022
- 2022-10-12 CN CN202211246775.8A patent/CN115622995A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984633A (en) * | 2014-06-04 | 2014-08-13 | 中国工商银行股份有限公司 | Automatic testing system for job downloading of bank host |
CN113114757A (en) * | 2021-04-09 | 2021-07-13 | 中国工商银行股份有限公司 | File transmission method, device and equipment |
CN113127268A (en) * | 2021-05-18 | 2021-07-16 | 中国银行股份有限公司 | Data transmission method and device for bank database |
CN113778563A (en) * | 2021-09-27 | 2021-12-10 | 中国银行股份有限公司 | Method and device for loading text file of bank peripheral system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2725690C1 (en) | Service processing method and device | |
JP7110343B2 (en) | Blockchain network transaction processing method, device, equipment and storage medium | |
WO2020233048A1 (en) | Customized software generation method and system, and electronic device and storage medium | |
CN112306645B (en) | Transaction processing method, device, equipment and medium for Ether house virtual machine | |
CN107391219B (en) | Function Compilation Method and device | |
CN108985742A (en) | Transaction processing method, device and block catenary system | |
CN109729121B (en) | Cloud storage system and method for realizing custom data processing in cloud storage system | |
CN112346794A (en) | Interface calling method, device, equipment and medium | |
CN112486814B (en) | System mobility testing method, mobility testing system, device and storage medium | |
CN112486719B (en) | Method and equipment for RPC interface call failure processing | |
CN111415146A (en) | Resource data processing method, device and equipment | |
JP2022101466A (en) | Transaction processing method of ethereum virtual machine, device, apparatus, program, and medium | |
CN114003510A (en) | Script testing method, device, equipment and medium based on Mock service | |
CN105867928A (en) | Method and device for connecting designated calculation model to designated distributed system | |
CN114020689B (en) | Data processing method, data processing device, electronic device and storage medium | |
CN111489139A (en) | Order payment method, device, equipment and medium based on big data | |
CN113254888B (en) | Method for acquiring hardware information, authorization control system and computing equipment | |
CN116483517B (en) | Virtual machine control method, device and system | |
CN114124497A (en) | A data verification system and method | |
CN115622995A (en) | A file sending method and device | |
CN110531967B (en) | Code generation method and code generation device | |
CN114968982A (en) | Business processing method and device for sub-database sub-table scenario | |
CN114531490A (en) | Endorsement request processing method, block chain system and electronic equipment | |
US20200065182A1 (en) | Leak protection of executables with debug information | |
CN113569182B (en) | Data processing method, device, storage medium and electronic device |
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 |