File interaction method and device, computer device and storage medium
By automating file exchanges between banks and third-party companies through local servers, the inconvenience caused by traditional manual operations has been resolved, enabling efficient and convenient file transfer.
Patent Information
- Application Number
- CN202410344822.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2044-03-25
AI Technical Summary
The manual interaction required for document exchange between banks and third-party companies is inconvenient.
File exchange between banks and third-party companies is achieved through a local server. The file formats of the sender and receiver are used for parsing and processing, and files are automatically downloaded and sent, reducing manual operations.
It improves the convenience of document exchange between banks and third-party companies, reduces manual operations, and improves the efficiency and accuracy of the exchange.
Smart Images

Figure CN118200314B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, and in particular to a file interaction method and device, computer equipment and a storage medium. BACKGROUND
[0002] With the development of banking technology, in order to improve the competitiveness of bank financial services, it is necessary to realize the interaction between banks and third-party enterprises.
[0003] In the traditional technology, the interaction between banks and third-party enterprises requires human intervention, and the interaction is not convenient due to manual operation. SUMMARY
[0004] Therefore, it is necessary to provide a file interaction method and device, computer equipment and a storage medium capable of improving the convenience of interaction.
[0005] In a first aspect, the present application provides a file interaction method, comprising:
[0006] Obtaining the transfer-out party file name format and the transfer-out party server information corresponding to the target project, and downloading the corresponding target file from the transfer-out party server to the local server based on the transfer-out party server information and the transfer-out party file name format;
[0007] Analyzing the target file using the transfer-out party file format to obtain transfer-out party information, and obtaining the total transfer-out information corresponding to the target project based on the transfer-out party information;
[0008] Processing the transfer-out party information and the total transfer-out information using the transfer-in party file format to obtain a transfer-out information file;
[0009] Obtaining the transfer-in party server information corresponding to the target project, and sending the transfer-out information file to the transfer-in party server based on the transfer-in party server information;
[0010] Obtaining the transfer-in party file name format corresponding to the target project, and downloading the transfer-in file corresponding to the transfer-out information file from the transfer-in party server based on the transfer-in party file name format and the transfer-in party server information;
[0011] Analyzing the transfer-in file using the transfer-in party file format to obtain transfer-in party information, and obtaining the total transfer-in information corresponding to the target project based on the transfer-in party information;
[0012] Processing the transfer-in party information and the total transfer-in information using the transfer-out party file format to obtain a transfer-in information file, and sending the transfer-in information file to the transfer-out party server based on the transfer-out party server information.
[0013] In one embodiment, downloading the corresponding target file from the sending server to the local server based on the sending server information and the sending file name format includes:
[0014] From the corresponding directory of the sending server determined by the sending server information, obtain the file to be downloaded that has the same file name format as the sending server in the corresponding directory of the sending server. If the file to be downloaded is a file that has not been downloaded in the past, use the file to be downloaded as the target file and download the target file to the local server.
[0015] In one embodiment, the sending server information includes the sending server address, sending server port, sending account, sending password, and sending server remote directory information.
[0016] In one embodiment, the originating file format includes an originating file type, originating field names, originating field types, and originating field positions; parsing the target file using the originating file format to obtain originating information, and based on the originating information, obtaining the total originating information corresponding to the target project, includes:
[0017] The target file is split into fields using the aforementioned transferor file format, and the transferor information is obtained from the split fields; wherein, the transferor information includes the transferor's name, the number of virtual resources transferred, the transferor's card number, and the transferor's ID number;
[0018] The transferor information is integrated to obtain the total transfer information corresponding to the target project; wherein, the total transfer information includes the total number of transfers and the total number of virtual resources transferred.
[0019] In one embodiment, processing the sender information and the total sender information using the sender file format to obtain a sender information file includes:
[0020] Using the transferor information and the total transfer information, a transfer information file with the same file format as the transferee is generated.
[0021] In one embodiment, the transferor file format includes a transferor file type, transferor field name, transferor field type, and transferor field position; parsing the transferor file using the transferor file format to obtain transferor information, and obtaining the total transfer information corresponding to the target project based on the transferor information, includes:
[0022] The receiving file is split into fields using the receiving file format, and the receiving information is obtained from the split fields; wherein, the receiving information includes whether the transfer was successful or failed.
[0023] The transferee information is integrated to obtain the total transfer information corresponding to the target project; wherein, the total transfer information includes at least one of the following: total number of successful transfers, total number of successful virtual resources, total number of failed transfers, or total number of failed virtual resources.
[0024] Secondly, this application also provides a document interaction device, including:
[0025] The target file download module is used to obtain the file name format of the transferor and the transferor server information corresponding to the target project, and download the corresponding target file from the transferor server to the local server based on the transferor server information and the transferor file name format.
[0026] The target file parsing module is used to parse the target file using the transferor's file format to obtain transferor information, and based on the transferor information, to obtain the total transfer information corresponding to the target project;
[0027] The transfer information file acquisition module is used to process the transferor information and the total transfer information using the transferee file format to obtain the transfer information file;
[0028] The transfer information file sending module is used to obtain the transferee server information corresponding to the target project, and send the transfer information file to the transferee server based on the transferee server information;
[0029] The file download module is used to obtain the file name format of the receiving party corresponding to the target project, and download the receiving file corresponding to the transferring information file from the receiving party server based on the file name format and the receiving party server information;
[0030] The file parsing module is used to parse the file using the file format of the receiving party to obtain the receiving party information, and based on the receiving party information, to obtain the total receiving information corresponding to the target project.
[0031] The transfer-in information file sending module is used to process the transfer-in information and the total transfer-in information using the transferor file format to obtain a transfer-in information file, and to send the transfer-in information file to the transferor server based on the transferor server information.
[0032] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of any of the methods described above.
[0033] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of any of the methods described above.
[0034] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of any of the methods described above.
[0035] The aforementioned file exchange method, apparatus, computer equipment, and storage medium, based on the sender server information and sender file name format corresponding to the target project, download the corresponding target file from the sender server to the local server; obtain the sender information and the total sender information corresponding to the target project based on the target file; process the sender information and the total sender information using the receiver file format to obtain a sender information file; and send the sender information file to the receiver server. Similarly, based on the receiver file name format and receiver server information corresponding to the target project, download the corresponding receiver file from the receiver server; obtain the receiver information and the total receiver information corresponding to the target project based on the receiver file; process the receiver information and the total receiver information using the sender file format to obtain a receiver information file; and send the receiver information file to the sender server. Compared to the inconvenience of interaction caused by manual operation in traditional technologies, this application realizes the interaction between the sender server and the receiver server through the local server, eliminating the need for manual operation and improving the convenience of interaction. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a diagram illustrating the application environment of a file interaction method in one embodiment.
[0038] Figure 2 This is a flowchart illustrating the file interaction method provided in the embodiments of this application;
[0039] Figure 3This is a flowchart illustrating the process of obtaining the total transfer information corresponding to the target project in one embodiment.
[0040] Figure 4 This is a flowchart illustrating the process of obtaining the total transfer-in information corresponding to a target project in one embodiment.
[0041] Figure 5 This is a structural block diagram of a file interaction device provided in the embodiments of this application;
[0042] Figure 6 This is an internal structural diagram of a computer device provided in an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0044] The file interaction method provided in this application embodiment can be applied to, for example, Figure 1 The application environment shown. Figure 1 It includes the sending server, the local server, and the receiving server; the sending server interacts with the receiving server through the local server.
[0045] This embodiment provides a file interaction method. This embodiment uses the application of this method to a computer device as an example for illustration. It can be understood that this method can also be applied to a server, and can also be applied to a system including a computer device and a server, and can be implemented through the interaction between the computer device and the server.
[0046] Figure 2 This is a flowchart illustrating the file interaction method provided in the embodiments of this application. The method is applied in a computer device. In one embodiment, such as... Figure 2 As shown, it includes the following steps:
[0047] S201: Obtain the file name format and server information of the transferor corresponding to the target project. Based on the server information and file name format, download the corresponding target file from the transferor server to the local server.
[0048] The target projects refer to those involving the transfer of virtual resources between third-party companies and banks. It is understood that the transferring party (the server sending the transfer) can be a third-party company, and the receiving party (the server receiving the transfer) can be a bank; the specifics are not limited. It is worth noting that there can be multiple target projects, and a single target project can correspond to multiple target files.
[0049] The filename format of the sending server is the filename format corresponding to the target project stored on the sending server. The sending server information is the information required for the local server to log in to the sending server and determine the directory where the target file is located.
[0050] In some embodiments, obtaining the filename format of the sender and the server information of the sender corresponding to the target project includes:
[0051] Obtain the filename format of the sender corresponding to the target project from the project information table, and obtain the server information of the sender corresponding to the target project from the transmission parameter table.
[0052] Specifically, the project information table is shown in Table 1 below, and the transmission parameter table is shown in Table 2 below.
[0053] Table 1:
[0054]
[0055] In the project information table, each row represents a project. The project number and project name indicate the project information, the transferor number and transferor system account indicate the transferor information, and the start / stop status reflects the status of the corresponding project.
[0056] Table 2:
[0057]
[0058] The sending server address and port are used to identify the sending server, the sending account and password are used to log in to the sending server, and the remote directory information of the sending server is used to identify the directory corresponding to the target project. The receiving server address and port are used to identify the receiving server, the receiving account and password are used to log in to the receiving server, and the remote directory information of the receiving server is used to identify the directory where the target project is placed.
[0059] It should be understood that Tables 1 and 2 are merely examples and do not constitute a limitation on the project information table and the transmission parameter table.
[0060] S202, use the transferor's file format to parse the target file to obtain the transferor information, and based on the transferor information, obtain the total transfer information corresponding to the target project.
[0061] The "Transferor File Format" indicates the file type and field information of the transferor files. The transferor files include the target file. The transferor information contains details about the virtual resources being transferred out internally by the transferor. The total transfer information contains details about all virtual resources being transferred out by the transferor.
[0062] S203, using the receiving party's file format to process the transferring party's information and the total transferring party information to obtain the transferring party information file.
[0063] The receiving file format indicates the file type and field information of the receiving file. The receiving file includes the file being transferred in. The export information file is a file containing the exporter's export information, with the same format as the receiving file.
[0064] In some embodiments, the file formats of the sending and receiving parties are obtained through a file format configuration table. Specifically, the file format configuration table is shown in Table 3 below: Table 3:
[0065]
[0066] Both the receiving and sending files must be of file type including at least one of either a delimiter or a fixed length. Each file may contain multiple fields; only one field is shown in Table 3. The padding method and padding value indicate the padding method and padding value for the corresponding fields.
[0067] It should be understood that Table 3 is merely an example and does not constitute a limitation on the file format configuration table.
[0068] S204, Obtain the transferee server information corresponding to the target project, and send the transfer-out information file to the transferee server based on the transferee server information.
[0069] The receiving server information includes the necessary information for the local server to log in to the receiving server and determine the directory where the transfer-out information files are placed. This information includes the receiving server address, port, account, password, and remote directory information.
[0070] In some embodiments, obtaining the receiving server information corresponding to the target project, and sending the transfer-out information file to the receiving server based on the receiving server information, includes:
[0071] The transfer parameter table is used to obtain the receiving server information corresponding to the target project. Based on the receiving server information, the corresponding placement directory in the receiving server is determined, and the transfer information file is placed in the placement directory.
[0072] S205: Obtain the filename format of the receiving party corresponding to the target project. Based on the filename format of the receiving party and the server information of the receiving party, download the receiving file corresponding to the transferring information file from the server.
[0073] The filename format of the receiving party is the same as the filename format of the filename corresponding to the transfer-out information file stored on the receiving party's server.
[0074] In some embodiments, the receiving file name format corresponding to the target project is obtained, and based on the receiving file name format and the receiving server information, the receiving file corresponding to the transferring information file is downloaded from the receiving server, including:
[0075] Obtain the filename format of the receiving file corresponding to the target project from the project information table. From the receiving server's location directory determined by the receiving server information, obtain the receiving file that matches the receiving filename format in the receiving server's location directory and download the receiving file to the local server.
[0076] It is worth noting that the step between S204 and S205 implicitly involves the receiving party performing a virtual resource transfer operation based on the transfer-out information file.
[0077] S206: Parse the transfer-in file using the transferee file format to obtain transferee information, and based on the transferee information, obtain the total transfer-in information corresponding to the target project.
[0078] The recipient information corresponds to the virtual resources transferred in by the recipient and is linked to the transferor information. The total transfer-in information corresponds to the total virtual resources transferred in by the recipient.
[0079] S207: Process the transferee information and total transfer-in information using the transferor file format to obtain the transfer-in information file, and send the transfer-in information file to the transferor server based on the transferor server information.
[0080] In some embodiments, the transferee information and total transfer-in information are processed using the transferor file format to obtain a transfer-in information file, and the transfer-in information file is sent to the transferor server based on the transferor server information, including:
[0081] Using the transferee information and total transfer-in information, generate a transfer-in information file with the same format as the transferor's file;
[0082] Based on the information of the sending server, determine the corresponding directory on the sending server and place the transfer information file in the corresponding directory.
[0083] The file interaction method provided in this embodiment downloads the corresponding target file from the sending server to the local server based on the sending server information and the sending file name format corresponding to the target project. Based on the target file, it obtains the sending server information and the total sending information corresponding to the target project. It then processes the sending server information and the total sending information using the receiving server file format to obtain a sending information file, which is then sent to the receiving server. Similarly, based on the receiving server file name format and the receiving server information corresponding to the target project, it downloads the receiving file corresponding to the sending information file from the receiving server. Based on the receiving file, it obtains the receiving server information and the total receiving information corresponding to the target project. It then processes the receiving server information and the total receiving information using the sending server file format to obtain a receiving information file, which is then sent to the sending server. Compared to the inconvenience caused by manual operation in traditional technologies, this embodiment achieves interaction between the sending server and the receiving server through the local server, eliminating the need for manual operation and improving the convenience of interaction.
[0084] In one embodiment, downloading the corresponding target file from the sending server to the local server based on the sending server information and the sending file name format includes:
[0085] From the corresponding directory of the sending server as determined by the sending server information, retrieve the file to be downloaded that matches the filename format of the sending server. If the file to be downloaded is a previously undownloaded file, use it as the target file and download it to the local server.
[0086] In this embodiment, the method for obtaining the target file is clearly defined, which improves the efficiency of interaction.
[0087] In one embodiment, the sending server information includes the sending server address, sending server port, sending account, sending password, and sending server remote directory information.
[0088] In this embodiment, the content of the sending server information is clearly defined to enable interaction between the local server and the sending server.
[0089] In one embodiment, the transferor file format includes the transferor file type, transferor field name, transferor field type, and transferor field position. A flowchart illustrating the process of parsing the target file using the transferor file format to obtain transferor information, and then retrieving the total transfer information corresponding to the target project based on this transferor information, is shown below. Figure 3 As shown, it includes the following:
[0090] S301, use the transferor's file format to split the target file into fields, and obtain the transferor information from the split fields; the transferor information includes the transferor's name, the number of virtual resources transferred, the transferor's card number, and the transferor's ID number.
[0091] In some embodiments, the transferor information is stored in a file detail table on a local server. Specifically, the file detail table is shown in Table 4 below: Table 4:
[0092]
[0093] The processing status includes at least one of "transfer successful" or "transfer failed". The associated identifier is used to identify the transferor information corresponding to the target project.
[0094] It should be understood that Table 4 is merely an example and does not constitute a limitation on the document details table.
[0095] S302, integrate the transferor information to obtain the total transfer information corresponding to the target project; wherein, the total transfer information includes the total number of transfers and the total number of virtual resources transferred.
[0096] The total number of transfers refers to all transfers made by the transferor under the target file. The total number of virtual resources transferred out refers to the total number of virtual resources transferred out by the transferor under the target file.
[0097] In this embodiment, obtaining the sender information and total sender information based on the target file enables quick acquisition of useful information and improves the efficiency of subsequent interactions.
[0098] In one embodiment, the transferor information and total transfer information are processed using a transferee file format to obtain a transfer information file, including:
[0099] Using the transferor information and total transfer information, generate a transfer information file that is consistent with the transferee's file format.
[0100] In this embodiment, the file format of the outgoing information file is consistent with that of the receiving file, ensuring that the outgoing information file can be received by the receiving server and improving the accuracy of the interaction.
[0101] In one embodiment, the transferee file format includes transferee file type, transferee field name, transferee field type, and transferee field position. A flowchart illustrating the process of parsing the transferee file using the transferee file format to obtain transferee information, and then obtaining the total transferee information corresponding to the target project based on the transferee information, is shown below. Figure 4 As shown, it includes the following:
[0102] S401, use the receiving file format to split the fields of the receiving file, and obtain the receiving information from the split fields; where the receiving information includes whether the transfer was successful or failed.
[0103] In some embodiments, the recipient information is stored in a file details table on a local server.
[0104] S402, integrate the transferee information to obtain the total transfer information corresponding to the target project; wherein, the total transfer information includes at least one of the following: the total number of successful transfers, the total number of successful virtual resources, the total number of failed transfers, or the total number of failed virtual resources.
[0105] The total number of successful transfers is the total number of successful transfers by the receiving party under the target file. The total number of successful virtual resources is the total number of virtual resources successfully transferred by the receiving party under the target file. The total number of failed transfers is the total number of failed transfers by the receiving party under the target file. The total number of failed virtual resources is the total number of virtual resources that were not successfully transferred by the receiving party under the target file.
[0106] In some embodiments, the total transfer information is stored in a file summary table on a local server. Specifically, the file summary table is shown in Table 5 below: Table 5:
[0107]
[0108] The association identifier is used to establish the association between the document summary table and the corresponding document detail table.
[0109] It should be understood that Table 5 is merely an example and does not constitute a limitation on the document summary table.
[0110] In this embodiment, obtaining the transferee information and total transfer information based on the transfer file enables quick acquisition of useful information, improves interaction efficiency, and ensures interaction accuracy.
[0111] Here, a specific embodiment of the file interaction method provided in this application is described in detail. This file interaction method realizes the interaction between the sending server and the receiving server through a local server. The local server stores a project information table, a transmission parameter table, a file format configuration table, a file details table, and a file summary table; the specific table contents can be found in the above embodiment. This file interaction method includes tasks 1-7. The local server also stores a task status table to record the execution status and latest execution time of tasks 1-7, where the execution status includes not executed, executing, and completed. The implementation flow of this file interaction method includes:
[0112] Task 1: Given that Task 1 is in execution, determine the target project for interaction. Obtain the sender's filename format corresponding to the target project from the project information table, and obtain the sender's server information corresponding to the target project from the transmission parameter table. The sender's server information includes the sender's server address, port, account, password, and remote directory information. From the corresponding directory of the sender's server determined by the sender's server information, retrieve the file to be downloaded that matches the sender's filename format. If the file to be downloaded exists in the file summary table, it indicates that the file to be downloaded has been downloaded previously. If the file to be downloaded has not been downloaded previously, use the file to be downloaded as the target file, download the target file to the local server, and write the target file's filename, project number, and download time into the file summary table.
[0113] Task 2: With Task 1 in completed state and Task 2 in progress state, the target file is split into fields using the sender's file format. The sender's file format includes sender file type, sender field name, sender field type, and sender field position. The sender information is extracted from the split fields, including sender name, number of virtual resources transferred, sender card number, and sender ID number. This information is written to the file details table. The sender information is then integrated to obtain the total transfer information for the target project, including the total number of transfers and the total number of virtual resources transferred. The total transfer information and the time corresponding to obtaining the total transfer information are written to the file summary table.
[0114] Task 3: With Task 2 in completed status and Task 3 in progress status, generate a transfer information file with the same format as the receiving file using the transferor information and total transfer information. The receiving file format includes the receiving file type, receiving field names, receiving field types, and receiving field positions. Obtain the receiving server information corresponding to the target project through the transmission parameter table. The receiving server information includes the receiving server address, receiving server port, receiving account, receiving password, and receiving server remote directory information. Determine the corresponding placement directory on the receiving server based on the receiving server information, place the transfer information file in the placement directory, and write the time corresponding to the placement of the transfer information file into the file summary table.
[0115] Task 4: If the execution status of Task 3 is "completed" and the execution status of Task 4 is "in execution", obtain the file name format of the target project corresponding to the transferee file through the project information table, obtain the transfer file with the same file name format from the placement directory of the transferee server determined by the transferee server information, download the transfer file to the local server, and write the download time of the transfer file into the file summary table.
[0116] Task 5: With Task 4 in completed status and Task 5 in progress status, split the fields of the receiving file using the receiving file format, and extract the receiving information from the split fields. This receiving information includes whether the transfer was successful or failed. Write the receiving information into the file details table. Integrate the receiving information to obtain the total receiving information for the target project. This total receiving information includes at least one of the following: total number of successful transfers, total number of successful virtual resources, total number of failed transfers, or total number of failed virtual resources. Write the total receiving information and the time corresponding to obtaining the total receiving information into the file summary table.
[0117] Task 6: If the execution status of Task 5 is "completed" and the execution status of Task 6 is "in execution", generate a transfer information file with the same file format as the transferor using the transferee information and total transfer information; write the time corresponding to the generation of the transfer information file into the file summary table.
[0118] Task 7: If the execution status of Task 6 is "completed" and the execution status of Task 7 is "in execution", determine the corresponding directory in the transferor server based on the transferor server information, and place the transfer-in information file in the corresponding directory; write the time corresponding to the placement of the transfer-in information file into the file summary table.
[0119] It should be understood that the interval between tasks can be set, and the execution status of each task can be manually changed.
[0120] The file interaction method provided in this embodiment realizes the interaction between the sending server and the receiving server through a local server, which does not require manual operation, thus improving the convenience of interaction. Each task can be configured independently, and the task dependencies can be flexibly adjusted. Each task can be resubmitted and processed in sequence by modifying its execution status, which can reduce the pressure on operation and maintenance. The completion time of each task for each file is recorded, so the file processing status can be queried, which can improve the interaction efficiency. Considering the differences in file formats between the receiving server and the sending server, the accuracy of interaction is improved through a file format configuration table.
[0121] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0122] Based on the same inventive concept, this application also provides a file interaction device for implementing the file interaction method described above. The solution provided by this device is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more file interaction device embodiments provided below can be found in the limitations of the file interaction method described above, and will not be repeated here.
[0123] See Figure 5 , Figure 5 This is a structural block diagram of a file interaction device provided in an embodiment of this application. The device 500 includes: a target file download module 501, a target file parsing module 502, a transfer information file acquisition module 503, a transfer information file sending module 504, a transfer-in file download module 505, a transfer-in file parsing module 506, and a transfer-in information file sending module 507, wherein:
[0124] The target file download module 501 is used to obtain the file name format of the transferor and the transferor server information corresponding to the target project, and download the corresponding target file from the transferor server to the local server based on the transferor server information and the transferor file name format.
[0125] The target file parsing module 502 is used to parse the target file using the transferor file format, obtain the transferor information, and obtain the total transfer information corresponding to the target project based on the transferor information.
[0126] The transfer information file acquisition module 503 is used to process the transferor information and total transfer information using the transferee file format to obtain the transfer information file;
[0127] The transfer information file sending module 504 is used to obtain the transferee server information corresponding to the target project and send the transfer information file to the transferee server based on the transferee server information.
[0128] The import file download module 505 is used to obtain the import file name format corresponding to the target project, and download the import file corresponding to the export information file from the import server based on the import file name format and import server information.
[0129] The file parsing module 506 is used to parse the file into the recipient file using the recipient file format, obtain the recipient information, and obtain the total recipient information corresponding to the target project based on the recipient information.
[0130] The transfer-in information file sending module 507 is used to process the transfer-in information and total transfer-in information using the transferor's file format to obtain the transfer-in information file, and send the transfer-in information file to the transferor's server based on the transferor's server information.
[0131] The file interaction device provided in this embodiment downloads the corresponding target file from the sending server to the local server based on the sending server information and the sending file name format corresponding to the target project. Based on the target file, it obtains the sending server information and the total sending information corresponding to the target project. It then processes the sending server information and the total sending information using the receiving server file format to obtain a sending information file, which is then sent to the receiving server. Conversely, based on the receiving server file name format and the receiving server information corresponding to the target project, it downloads the receiving file corresponding to the sending information file from the receiving server. Based on the receiving file, it obtains the receiving server information and the total receiving information corresponding to the target project. It then processes the receiving server information and the total receiving information using the sending server file format to obtain a receiving information file, which is then sent to the sending server. Compared to the inconvenience caused by manual operation in traditional technologies, this embodiment achieves interaction between the sending server and the receiving server through the local server, eliminating the need for manual operation and improving the convenience of interaction.
[0132] Optionally, the target file download module 501 includes:
[0133] The target file download unit is used to obtain the file to be downloaded from the corresponding directory of the transferor server as determined by the transferor server information, which has the same file name format as the transferor server. If the file to be downloaded is a file that has not been downloaded in the past, the file to be downloaded is used as the target file and downloaded to the local server.
[0134] Optionally, the transferor server information includes the transferor server address, transferor server port, transferor account, transferor password, and transferor server remote directory information.
[0135] Optionally, the sender file format includes the sender file type, sender field name, sender field type, and sender field position; the target file parsing module 502 includes:
[0136] The transferor information acquisition unit is used to split the target file into fields using the transferor file format and obtain the transferor information from the split fields; wherein, the transferor information includes the transferor's name, the number of virtual resources transferred, the transferor's card number and the transferor's ID number;
[0137] The total transfer information acquisition unit is used to integrate the transferor information to obtain the total transfer information corresponding to the target project; the total transfer information includes the total number of transfers and the total number of virtual resources transferred.
[0138] Optionally, the export information file acquisition module 503 includes:
[0139] The transfer information file generation unit is used to generate a transfer information file with the same file format as the transferee, using the transferor information and the total transfer information.
[0140] Optionally, the importer file format includes the importer file type, importer field name, importer field type, and importer field position; the importer file parsing module 506 includes:
[0141] The transferee information acquisition unit is used to split the fields of the transferee file using the transferee file format and obtain the transferee information from the split fields; wherein, the transferee information includes whether the transfer was successful or failed.
[0142] The total transfer information acquisition unit is used to integrate the transferee information to obtain the total transfer information corresponding to the target project; wherein, the total transfer information includes at least one of the following: the total number of successful transfers, the total number of successful virtual resources, the total number of failed transfers, or the total number of failed virtual resources.
[0143] Each module in the aforementioned file interaction device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can invoke and execute the operations corresponding to each module.
[0144] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a file interaction method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0145] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0146] In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the file interaction method provided in the above embodiment.
[0147] Obtain the file name format and server information of the transferor corresponding to the target project. Based on the server information and file name format, download the corresponding target file from the transferor server to the local server.
[0148] The target file is parsed using the transferor's file format to obtain the transferor information. Based on the transferor information, the total transfer information corresponding to the target project is obtained.
[0149] The transferor information and total transfer information are processed using the transferee file format to obtain the transfer information file;
[0150] Obtain the transferee server information corresponding to the target project, and send the transfer-out information file to the transferee server based on the transferee server information;
[0151] Obtain the file name format of the receiving party corresponding to the target project. Based on the file name format of the receiving party and the server information of the receiving party, download the receiving file corresponding to the transferring information file from the server.
[0152] The receiving file is parsed using the receiving file format to obtain the receiving information. Based on the receiving information, the total receiving information for the target project is obtained.
[0153] The transferee information and total transfer information are processed using the transferor file format to obtain the transfer information file. Based on the transferor server information, the transfer information file is sent to the transferor server.
[0154] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0155] From the corresponding directory of the sending server as determined by the sending server information, retrieve the file to be downloaded that matches the filename format of the sending server. If the file to be downloaded is a previously undownloaded file, use it as the target file and download it to the local server.
[0156] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0157] The sending server information includes the sending server address, sending server port, sending account, sending password, and remote directory information of the sending server.
[0158] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0159] The format of the sending file includes the sending file type, sending field name, sending field type, and sending field location;
[0160] The target file is split into fields using the transferor's file format, and the transferor information is obtained from the split fields; the transferor information includes the transferor's name, the number of virtual resources transferred, the transferor's card number, and the transferor's ID number;
[0161] The transferor information is integrated to obtain the total transfer information corresponding to the target project; the total transfer information includes the total number of transfers and the total number of virtual resources transferred.
[0162] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0163] Using the transferor information and total transfer information, generate a transfer information file that is consistent with the transferee's file format.
[0164] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0165] The recipient file format includes the recipient file type, recipient field name, recipient field type, and recipient field location;
[0166] The receiving file is split into fields using the receiving file format, and the receiving information is obtained from the split fields; the receiving information includes whether the transfer was successful or failed.
[0167] The transferee information is integrated to obtain the total transfer information corresponding to the target project; the total transfer information includes at least one of the following: the total number of successful transfers, the total number of successful virtual resources, the total number of failed transfers, or the total number of failed virtual resources.
[0168] The implementation principle and technical effects of the above embodiments are similar to those of the above method embodiments, and will not be repeated here.
[0169] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the file interaction method provided in the above embodiment:
[0170] Obtain the file name format and server information of the transferor corresponding to the target project. Based on the server information and file name format, download the corresponding target file from the transferor server to the local server.
[0171] The target file is parsed using the transferor's file format to obtain the transferor information. Based on the transferor information, the total transfer information corresponding to the target project is obtained.
[0172] The transferor information and total transfer information are processed using the transferee file format to obtain the transfer information file;
[0173] Obtain the transferee server information corresponding to the target project, and send the transfer-out information file to the transferee server based on the transferee server information;
[0174] Obtain the file name format of the receiving party corresponding to the target project. Based on the file name format of the receiving party and the server information of the receiving party, download the receiving file corresponding to the transferring information file from the server.
[0175] The receiving file is parsed using the receiving file format to obtain the receiving information. Based on the receiving information, the total receiving information for the target project is obtained.
[0176] The transferee information and total transfer information are processed using the transferor file format to obtain the transfer information file. Based on the transferor server information, the transfer information file is sent to the transferor server.
[0177] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0178] From the corresponding directory of the sending server as determined by the sending server information, retrieve the file to be downloaded that matches the filename format of the sending server. If the file to be downloaded is a previously undownloaded file, use it as the target file and download it to the local server.
[0179] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0180] The sending server information includes the sending server address, sending server port, sending account, sending password, and remote directory information of the sending server.
[0181] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0182] The format of the sending file includes the sending file type, sending field name, sending field type, and sending field location;
[0183] The target file is split into fields using the transferor's file format, and the transferor information is obtained from the split fields; the transferor information includes the transferor's name, the number of virtual resources transferred, the transferor's card number, and the transferor's ID number;
[0184] The transferor information is integrated to obtain the total transfer information corresponding to the target project; the total transfer information includes the total number of transfers and the total number of virtual resources transferred.
[0185] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0186] Using the transferor information and total transfer information, generate a transfer information file that is consistent with the transferee's file format.
[0187] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0188] The recipient file format includes the recipient file type, recipient field name, recipient field type, and recipient field location;
[0189] The receiving file is split into fields using the receiving file format, and the receiving information is obtained from the split fields; the receiving information includes whether the transfer was successful or failed.
[0190] The transferee information is integrated to obtain the total transfer information corresponding to the target project; the total transfer information includes at least one of the following: the total number of successful transfers, the total number of successful virtual resources, the total number of failed transfers, or the total number of failed virtual resources.
[0191] The implementation principle and technical effects of the above embodiments are similar to those of the above method embodiments, and will not be repeated here.
[0192] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the file interaction method provided in the above embodiments:
[0193] Obtain the file name format and server information of the transferor corresponding to the target project. Based on the server information and file name format, download the corresponding target file from the transferor server to the local server.
[0194] The target file is parsed using the transferor's file format to obtain the transferor information. Based on the transferor information, the total transfer information corresponding to the target project is obtained.
[0195] The transferor information and total transfer information are processed using the transferee file format to obtain the transfer information file;
[0196] Obtain the transferee server information corresponding to the target project, and send the transfer-out information file to the transferee server based on the transferee server information;
[0197] Obtain the file name format of the receiving party corresponding to the target project. Based on the file name format of the receiving party and the server information of the receiving party, download the receiving file corresponding to the transferring information file from the server.
[0198] The receiving file is parsed using the receiving file format to obtain the receiving information. Based on the receiving information, the total receiving information for the target project is obtained.
[0199] The transferee information and total transfer information are processed using the transferor file format to obtain the transfer information file. Based on the transferor server information, the transfer information file is sent to the transferor server.
[0200] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0201] From the corresponding directory of the sending server as determined by the sending server information, retrieve the file to be downloaded that matches the filename format of the sending server. If the file to be downloaded is a previously undownloaded file, use it as the target file and download it to the local server.
[0202] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0203] The sending server information includes the sending server address, sending server port, sending account, sending password, and remote directory information of the sending server.
[0204] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0205] The format of the sending file includes the sending file type, sending field name, sending field type, and sending field location;
[0206] The target file is split into fields using the transferor's file format, and the transferor information is obtained from the split fields; the transferor information includes the transferor's name, the number of virtual resources transferred, the transferor's card number, and the transferor's ID number;
[0207] The transferor information is integrated to obtain the total transfer information corresponding to the target project; the total transfer information includes the total number of transfers and the total number of virtual resources transferred.
[0208] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0209] Using the transferor information and total transfer information, generate a transfer information file that is consistent with the transferee's file format.
[0210] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0211] The recipient file format includes the recipient file type, recipient field name, recipient field type, and recipient field location;
[0212] The receiving file is split into fields using the receiving file format, and the receiving information is obtained from the split fields; the receiving information includes whether the transfer was successful or failed.
[0213] The transferee information is integrated to obtain the total transfer information corresponding to the target project; the total transfer information includes at least one of the following: the total number of successful transfers, the total number of successful virtual resources, the total number of failed transfers, or the total number of failed virtual resources.
[0214] The implementation principle and technical effects of the above embodiments are similar to those of the above method embodiments, and will not be repeated here.
[0215] It should be noted that the information (including but not limited to transferor information, transferee information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation access points for users to choose to authorize or refuse.
[0216] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0217] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0218] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A file interaction method characterized by, The method comprises: obtaining the target item corresponding to the export file name format and the export server information, and downloading the corresponding target file from the export server to the local server based on the export server information and the export file name format; parsing the target file by using the export file format to obtain the export information, and obtaining the total export information corresponding to the target item based on the export information; processing the export information and the total export information by using the import file format to obtain the export information file; obtaining the target item corresponding to the import server information, and sending the export information file to the import server based on the import server information; obtaining the target item corresponding to the import file name format, and downloading the import file corresponding to the export information file from the import server based on the import file name format and the import server information; parsing the import file by using the import file format to obtain the import information, and obtaining the total import information corresponding to the target item based on the import information; processing the import information and the total import information by using the export file format to obtain the import information file, and sending the import information file to the export server based on the export server information.
2. The method of claim 1, wherein, The method comprises: obtaining the target item corresponding to the export file name format and the export server information, and downloading the corresponding target file from the export server to the local server based on the export server information and the export file name format; 3. The method of claim 2, wherein, obtaining the target item corresponding to the export file name format and the export server information, and downloading the corresponding target file from the export server to the local server based on the export server information and the export file name format; 4. The method of claim 1, wherein, The export server information comprises the export server address, the export server port, the export account number, the export password, and the export server remote directory information. The export file format comprises the export file type, the export field name, the export field type, and the export field position; the method comprises: performing field splitting on the target file by using the export file format to obtain the export information from the split fields; wherein the export information comprises the export name, the export virtual resource quantity, the export card number, and the export ID number; 5. The method of claim 1, wherein, integrating the export information to obtain the total export information corresponding to the target item; wherein the total export information comprises the total number of exports and the total virtual resource quantity of exports. The method comprises: generating the export information file consistent with the import file format by using the export information and the total export information.
6. The method of claim 1, wherein, The transfer-in file format comprises a transfer-in file type, a transfer-in field name, a transfer-in field type and a transfer-in field position; the transfer-in file is parsed by using the transfer-in file format to obtain transfer-in information, and based on the transfer-in information, total transfer-in information corresponding to the target project is acquired, which comprises: The transfer-in file is field-split by using the transfer-in file format, and transfer-in information is acquired from the split fields; wherein the transfer-in information comprises transfer-in success or transfer-in failure; The transfer-in information is integrated to obtain total transfer-in information corresponding to the target project; wherein the total transfer-in information comprises at least one of total number of transfer-in success, total number of virtual resources of transfer-in success, total number of transfer-in failure or total number of virtual resources of transfer-in failure.
7. A file interaction device, characterized by The device comprises: A target file downloading module is configured to acquire a transfer-out file name format and transfer-out server information corresponding to a target project, and based on the transfer-out server information and the transfer-out file name format, download corresponding target files from a transfer-out server to a local server; A target file parsing module is configured to parse the target files by using a transfer-out file format to obtain transfer-out information, and based on the transfer-out information, acquire total transfer-out information corresponding to the target project; A transfer-out information file obtaining module is configured to process the transfer-out information and the total transfer-out information by using a transfer-in file format to obtain a transfer-out information file; A transfer-out information file sending module is configured to acquire transfer-in server information corresponding to the target project, and based on the transfer-in server information, send the transfer-out information file to a transfer-in server; A transfer-in file downloading module is configured to acquire a transfer-in file name format corresponding to the target project, and based on the transfer-in file name format and the transfer-in server information, download a transfer-in file corresponding to the transfer-out information file from the transfer-in server; A transfer-in file parsing module is configured to parse the transfer-in file by using the transfer-in file format to obtain transfer-in information, and based on the transfer-in information, acquire total transfer-in information corresponding to the target project; A transfer-in information file sending module is configured to process the transfer-in information and the total transfer-in information by using the transfer-out file format to obtain a transfer-in information file, and based on the transfer-out server information, send the transfer-in information file to the transfer-out server.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to realize the steps of the method in any one of claims 1 to 6.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 6.
Citation Information
Patent Citations
Data import method, device and equipment and computer storage medium
CN111767287A
Resource cross-platform sharing method and device, terminal equipment and storage medium
CN114218175A