Host data exchange processing method, device, equipment and storage medium

By dividing the data file into two parts: business parameter information and attribute information, the automatic inspection and processing of files is realized, which solves the problem of inefficiency in processing batch files by the bank host system, improves processing efficiency and reliability, and reduces manual verification costs.

CN113343635BActive Publication Date: 2025-03-04INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110605582.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2025-03-04
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

The bank host system is inefficient when processing batch files, which causes operation and maintenance personnel to always pay attention to the file processing progress and program operation accuracy, and the possible problems that may arise when running batch services in large quantities cannot obtain monitoring alarms in a timely manner, which increases the cost of manual verification.

Method used

By dividing the data file into a first format file and a second format file, the first format file is used to represent business parameter information, and the second format file is used to represent the attribute information of business parameter information, checking and processing of the file is realized. The specific steps include obtaining the data file, determining whether the first format file complies with the second format file, marking the check mark, and processing according to preset processing rules.

Benefits of technology

Automatic file inspection of the host system is realized, the efficiency and reliability of batch processing are improved, the cost of manual intervention is reduced, and the accuracy and timeliness of batch processing are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113343635B_ABST
    Figure CN113343635B_ABST
Patent Text Reader

Abstract

This article belongs to the field of financial technology, and specifically relates to a host data exchange processing method, device, equipment and storage medium. The method includes: obtaining at least one group of data files, each group of data files includes a first format file and a second format file, the first format file is used to represent business parameter information, and the second format file is attribute information of the business parameter information; judging whether the first format file conforms to the second format file, and marking a corresponding check mark; processing the data file according to preset processing rules and the check mark of the data file. This article can realize automatic file checking of the host system, improve the processing efficiency of different data files, and increase the accuracy of system operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article belongs to the field of financial technology, and specifically relates to a host data exchange processing method, device, equipment and storage medium. Background Art

[0002] With the rapid development of information technology, people are more and more inclined to complete various financial services without leaving home. For example, in terms of living expenses, water, electricity and coal are paid on behalf of others through the bank's agency business; in terms of transfer and remittance, salary payment and batch remittance are carried out on behalf of others. Bank customers sign a withholding agreement through the counter or electronic banking channel, and the corresponding institution initiates the deduction, which is uploaded to the bank system in the form of batch files to complete the deduction of relevant fees. Therefore, with the increasing number of withholding businesses, the interaction and data exchange scenarios of the bank host system for batch files are becoming more and more complicated. During batch operation, operation and maintenance personnel need to pay attention to the processing progress of the files and the correctness of the program operation. For a large number of batch operations, possible problems cannot be monitored and alarmed in time, and the integrity confirmation of batch operations needs to be determined in the business verification process after the business is completed. Therefore, the efficiency of the bank host in processing batch file business is reduced, and the cost of manual verification in the later stage will also increase. How to make batch file processing in the field of financial operation and maintenance more efficient and reliable and reduce the cost of manual intervention has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] In view of the above problems in the prior art, the purpose of this article is to provide a host data exchange processing method, device, equipment and storage medium, which can improve the efficiency of batch processing and reduce costs.

[0004] In order to solve the above technical problems, the specific technical solutions of this article are as follows:

[0005] In one aspect, a host data exchange processing method is provided, the method comprising:

[0006] Acquire at least one group of data files, each group of the data files includes a first format file and a second format file, the first format file is used to represent the service parameter information, and the second format file is the attribute information of the service parameter information;

[0007] Determine whether the first format file is consistent with the second format file, and mark a corresponding check mark;

[0008] The data file is processed according to preset processing rules and the check mark of the data file.

[0009] Further, the obtaining of at least one set of data files includes:

[0010] Identify the upstream business to be processed;

[0011] Determining preset path information of the data file according to the upstream business to be processed;

[0012] At least one set of data files is obtained from a server according to the preset path information of the data files.

[0013] Further, obtaining at least one set of data files from a server according to the preset path information of the data files includes:

[0014] Determine the scenario type of the upstream business to be processed according to the user inspection instruction;

[0015] At least one set of data files is obtained from a server according to the scene type and the preset path information of the data files.

[0016] Optionally, the scenario type includes a time zone or region where the upstream business is located.

[0017] Further, the determining whether the first format file complies with the second format file and marking a corresponding check mark includes:

[0018] Determining attribute information in the second format file and parameter information in the first format file;

[0019] Determining whether the parameter information is consistent with the attribute information;

[0020] When the parameter information is consistent with the attribute information, the check mark of the first format file is a first mark;

[0021] When the parameter information is inconsistent with the attribute information, the check mark of the first format file is the second mark.

[0022] Further, the data file is processed according to a preset processing rule and a check mark of the data file, including:

[0023] Identify the upstream business to be processed;

[0024] Determine a preset processing rule according to the upstream business to be processed;

[0025] The data file is processed according to preset processing rules and the check mark of the data file.

[0026] Furthermore, the preset processing rule includes a first processing rule, and the first processing rule includes:

[0027] Traversing the first format file and its check mark;

[0028] When the first format file is all the first mark, the data file is processed;

[0029] When the first format file has a second mark, an alert is issued to the operation and maintenance personnel, so that the operation and maintenance personnel confirm with the upstream business to be processed whether the first format file corresponding to the second mark can be updated;

[0030] When the operation and maintenance personnel confirms that the first format file corresponding to the second mark can be updated, the updated first format file is obtained, and the data file is updated according to the updated first format file, so that the host completes processing of the updated data file;

[0031] When the operation and maintenance personnel confirms that the first format file corresponding to the second mark cannot be updated, the processing of the data file is stopped.

[0032] Furthermore, the preset processing rule includes a second processing rule, and the second processing rule includes:

[0033] Traversing the first format file and its check mark;

[0034] When the first format file is all the first mark, processing the data file;

[0035] When the first format file has the second mark, the processing of the data file is stopped.

[0036] Furthermore, the determining whether the first format file complies with the second format file and marking a corresponding check mark further includes:

[0037] Determine whether the file name of the second format file is consistent with a preset file name, where the preset file name is the file name corresponding to the upstream service to be processed;

[0038] If there is any inconsistency, a warning is issued to the operation and maintenance personnel so that the operation and maintenance personnel can confirm whether the acquired data file is correct;

[0039] If correct, the check mark of the first format file is the first mark.

[0040] On the other hand, the present invention also provides a host data exchange processing device, the device comprising:

[0041] A data file acquisition module, used to acquire at least one group of data files, each group of data files includes a first format file and a second format file, the first format file is used to represent business parameter information, and the second format file is attribute information of the business parameter information;

[0042] A checking module, used for judging whether the first format file is consistent with the second format file, and marking a corresponding checking mark;

[0043] The processing module is used to process the data file according to preset processing rules and the check mark of the data file.

[0044] On the other hand, this document also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described above when executing the computer program.

[0045] Finally, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0046] By adopting the above technical scheme, a host data exchange processing method, device, equipment and storage medium described in this article divides the data file into a first format file for representing business parameter information and a second format file for representing attribute information of the business parameter information, thereby realizing file inspection before the data file is processed, and processing the data file according to the availability of the data file and the preset processing rules of different data files, thereby realizing automatic file inspection by the host system, improving the processing efficiency of different data files, and increasing the accuracy of system operation.

[0047] In order to make the above and other purposes, features and advantages of this article more obvious and easy to understand, the following specifically cites preferred embodiments and describes them in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of this article or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of this article. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 A schematic diagram of an implementation environment of the method provided in the embodiments of this article is shown;

[0050] Figure 2 A schematic diagram of the steps of a host data exchange processing method provided by an embodiment of this invention is shown;

[0051] Figure 3 A schematic diagram of the steps of obtaining data files in the embodiment of this article is shown;

[0052] Figure 4A schematic diagram of the data file checking steps in the embodiment of this article is shown;

[0053] Figure 5 A schematic diagram of data file processing steps in the embodiment of this article is shown;

[0054] Figure 6 A schematic diagram of the first processing rule in the embodiment of this article is shown;

[0055] Figure 7 A schematic diagram of the second processing rule in the embodiment of this article is shown;

[0056] Figure 8 A schematic diagram of the structure of a host data exchange processing device provided in an embodiment of this invention is shown;

[0057] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of this invention is shown.

[0058] Description of the accompanying symbols:

[0059] 10. Upstream business;

[0060] 20. Server;

[0061] 30. Host;

[0062] 100. Data file acquisition module;

[0063] 200, inspection module;

[0064] 300, processing module;

[0065] 902. Computer equipment;

[0066] 904, processor;

[0067] 906. Memory;

[0068] 908, driving mechanism;

[0069] 910, input / output module;

[0070] 912. Input device;

[0071] 914. Output device;

[0072] 916. Presentation equipment;

[0073] 918. Graphical user interface;

[0074] 920, network interface;

[0075] 922, communication link;

[0076] 924. Communication bus. DETAILED DESCRIPTION

[0077] The following will be combined with the drawings in the embodiments of this article to clearly and completely describe the technical solutions in the embodiments of this article. Obviously, the described embodiments are only part of the embodiments of this article, not all of the embodiments. Based on the embodiments of this article, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this article.

[0078] It should be noted that the terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0079] In the prior art, banks and other financial institutions are processing more and more batch businesses. For example, in terms of living expenses, water, electricity, and coal are paid on behalf of others through the bank's agency business; in terms of transfer and remittance, operations such as salary payment and batch remittance are carried out. Bank customers sign a withholding agreement through the counter or electronic banking channel, and the corresponding institution initiates the deduction, which is uploaded to the bank system in the form of batch files to complete the deduction of relevant fees. Therefore, with the increasing number of withholding businesses, the interaction and data exchange scenarios of the bank's host system for batch files are becoming more and more complicated. In the existing system, operation and maintenance personnel need to pay attention to the processing progress of the files and the correctness of the program operation at all times. When running a large number of batch businesses, problems that may arise cannot be monitored and alarmed in time, and the integrity confirmation of batch businesses needs to be determined in the business verification process after the business is completed. Therefore, the efficiency of the bank host in processing batch file business is reduced, and the cost of manual verification in the later stage will also increase.

[0080] In order to solve the above problems, the present specification provides a host data exchange processing method, which can improve the efficiency and reliability of batch processing. Figure 1As shown, it is a schematic diagram of the implementation environment of the method, which specifically includes: an upstream business 10, a server 20 and a host 30. The upstream business 10 is used to receive batch processing tasks, generate batch processing files, and upload them to the server 20. The upstream business 10 can be a front-end business system, receive batch processing tasks issued by users, and generate corresponding batch processing files according to different generation rules. The batch processing files can be attribute files and parameter files. The attribute files can check the presence of the parameter files, that is, the integrity of the parameter files. The host 30 can obtain the batch processing files from the server 20 according to the configuration files preset by the operation and maintenance personnel, and then process the batch processing files according to the set processing rules. For example, first check the presence of the parameter files according to the attribute files, and then process the batch processing files according to the presence of the parameter files combined with the processing rules of different upstream businesses, thereby realizing the early judgment of the integrity of the batch processing files, and at the same time, it can also improve the processing progress and reliability of the batch processing according to different processing rules.

[0081] Specifically, the embodiments of this document provide a host data exchange processing method, which can improve the efficiency of batch processing and reduce costs. Figure 2 This is a schematic diagram of the steps of a host data exchange processing method provided in the embodiments of this article. This specification provides the method operation steps described in the embodiments or flowcharts, but based on conventional or non-creative labor, more or fewer operation steps may be included. The order of steps listed in the embodiments is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or device product is executed, it can be executed in the order or in parallel according to the method shown in the embodiments or drawings. Specifically, Figure 2 As shown, the method may include:

[0082] S101: Acquire at least one group of data files, each group of data files including a first format file and a second format file, the first format file is used to represent service parameter information, and the second format file is attribute information of the service parameter information;

[0083] S102: Determine whether the first format file is consistent with the second format file, and mark a corresponding check mark;

[0084] S103: Processing the data file according to a preset processing rule and the check mark of the data file.

[0085] In the embodiment of the present specification, batch files uploaded to the host are saved in the form of a first format file and a second format file, wherein the first format file represents parameter information of the batch file, and the second format file is used to represent attribute information of the parameter information, so as to check whether the parameter information in the first format file requires the second format file, thereby marking different first format files with corresponding check marks, and then processing the data files (i.e., batch files) based on preset processing rules and check marks, thereby realizing fast batch processing, and ensuring that the integrity of the batch data is judged in time before processing, so as to implement corresponding processing strategies, improve the reliability of batch processing, avoid affecting the batch timeliness, and ensure safe and stable production operation.

[0086] It can be understood that the first format file and the second format file are files generated separately by upstream business operation personnel, thereby ensuring the independence of the two files, and then ensuring that the reliability of the first format file is checked through the second format file, and the above two files are uploaded to the preset location of the server at the same time, so as to facilitate the host to download the corresponding format file from the server. The second format file is the theoretical attribute information of the first format file. Therefore, the second format file can be used to timely determine whether the first format file is fully uploaded and whether the upload is all correct, thereby improving the reliability and timeliness of subsequent batch processing.

[0087] In a further embodiment, the first format file and the second format file may have the same file name, so that the second format file used to check the first format file can be determined by the file name, thereby improving the efficiency of the check. Alternatively, the same batch of files can be stored in the same folder, so that by determining the location of the server folder, the corresponding first format file and the second format file can be directly extracted.

[0088] In some other embodiments, a mapping relationship between the first format file and the second format file may be established, and then the first format file and the second format file may be classified and stored. During inspection, the corresponding first format file may be extracted through the second format file, thereby realizing rapid inspection of data files. The specific setting method is not limited in the embodiments of this specification.

[0089] Exemplarily, for the financial business field, the first format file can be the data parameters for the host to process specific accounts, such as the agency payroll business. The first format file can include information such as name, card number, salary amount, salary type, etc. As an option, the first format file can be a filename.bin file; the second format file is used to check the integrity of the data parameters in the first format file. For example, the second format file can be the file name, total number of people, total amount, generation date, upstream business identification code, etc. of the first format file. As an option, the second format file can be a filename.chk file. In this way, the host verifies the extracted first format file by reading the content of the second format file to determine whether the first format file is completely consistent with the content of the second format file, and makes corresponding check marks for the check results to facilitate subsequent processing. Compared with the prior art that only has one custom format file, this article can timely judge the integrity and accuracy of batch files, thereby improving the efficiency of batch processing and reducing the time of invalid processing.

[0090] In actual work, the second format file can also be used to check whether there is any duplicate file upload. Since the second format file is unique when the file is generated, when the server stores the same second format file, it means that the upstream business has duplicate uploads. The operation and maintenance personnel can be notified in time to handle it, or one of the second format files can be directly deleted, thereby avoiding duplicate file uploads, and then avoiding duplicate processing of batch files, thereby improving the accuracy of batch processing.

[0091] In the embodiments of the present specification, for different upstream businesses, the data volume of the batch file is different, so the first format file may include multiple parameter files, and the multiple parameter files may correspond to only one second format file, which can improve the efficiency of generating batch files for upstream businesses. By checking the completeness and accuracy of multiple parameter files through one second format file, the efficiency of using the second format files can be improved.

[0092] In the embodiments of this specification, Figure 3 As shown, obtaining at least one set of data files includes:

[0093] S201: Determine the upstream business to be processed;

[0094] S202: Determine preset path information of the data file according to the upstream business to be processed;

[0095] S203: Acquire at least one set of data files from a server according to the preset path information of the data files.

[0096] It can be understood that for different upstream services, the storage path of the data files is different, that is, the batch files of different upstream services are uploaded to the corresponding locations in the server, which facilitates the host's acquisition and improves the efficiency of batch file acquisition. For example, the path information may include the server IP address, etc.

[0097] In actual work, the preset path information is the environment parameter of the host system. When processing for different operation and maintenance personnel, the environment parameters also include account information, account password and other parameters to achieve permission control for batch processing and improve the security of batch processing.

[0098] In addition, during actual batch processing, it is processed according to different upstream businesses, and certain time windows are set for different upstream businesses for processing, such as according to a certain frequency and processing duration. Of course, there may be other window settings, which are not limited in this manual.

[0099] In the embodiments of the present specification, the same upstream service may have different corresponding processing strategies due to different distribution scenarios. If the upstream service is processed uniformly, the complexity of the processing will increase and the resource consumption of the host system will increase. Therefore, the same upstream service may be processed in batches according to the scenario. Optionally, obtaining at least one set of data files from the server according to the preset path information of the data files includes:

[0100] Determine the scenario type of the upstream business to be processed according to the user inspection instruction;

[0101] At least one set of data files is obtained from a server according to the scene type and the preset path information of the data files.

[0102] It can be understood that the scenario type can be a block range divided by the same upstream business according to certain scenario division principles, and all block ranges together constitute the entire business scope of the upstream business. The scenario type can be divided according to the importance of upstream businesses in different ranges. In this way, different processing strategies can be adopted according to upstream businesses of different importance, reducing the operation complexity of the host.

[0103] In actual work, the scenario type includes the time zone or region where the upstream business is located. The data files are divided into multiple batches according to the operation status of the upstream business in different time zones or regions, thereby realizing the division of scenario types. In some other embodiments, the types can also be divided according to users, such as personal users, public users, etc. Exemplarily, the specific batches of the scenario type can be domestic time zone personal user batches, domestic time zone public user batches, European and African time zone London region batches, European and African time zone Paris region batches, Asia-Pacific time zone Malaysia batches, American time zone Canada region batches, American time zone United States region batches, etc. Of course, there can be other scenario definition methods for different upstream businesses, which are not limited in the embodiments of this specification.

[0104] In the embodiments of this specification, Figure 4 As shown, the step of judging whether the first format file complies with the second format file and marking a corresponding check mark includes:

[0105] S301: Determine attribute information in the second format file and parameter information in the first format file;

[0106] S302: Determine whether the parameter information is consistent with the attribute information;

[0107] S303: When the parameter information is consistent with the attribute information, the check mark of the first format file is a first mark;

[0108] S304: When the parameter information is inconsistent with the attribute information, the check mark of the first format file is a second mark.

[0109] As described above, the attribute information can check whether the parameter information is complete and correct. When the first format file is one file, only one file needs to be checked, and the corresponding check mark is marked on the one file. When the first format file is multiple files, multiple files need to be checked in sequence, and each file needs to be marked with a corresponding check mark. When making the check mark, a corresponding mark can be made on the file name of the first format file, such as the first mark is 1 and the second mark is 0. Through the file name of the first format file, it can be quickly determined whether the file is ready. 1 means ready, that is, the parameter information is consistent with the attribute information, and the file can be subsequently processed. 0 means not ready, that is, the parameter information is inconsistent with the attribute information, and the file cannot be subsequently processed. The marked data file is temporarily stored in the cache area of ​​the host system (such as the file array set by the host system).

[0110] In some other embodiments, there may be other marking methods, such as setting a temporary storage area (such as a file array) to store the checked data files in the temporary storage area, wherein the temporary storage area is provided with a check file area, a first marking area, and a second marking area, wherein the check file area is used to store second format files, the first marking area is used to store first format files marked with a first mark, and the second marking area is used to store first format files marked with a second mark. In this way, the host only needs to determine whether there are files and the number of files in the first marking area and the second marking area to determine the inspection result of the data file. Of course, there may be other marking methods, which are not limited in this specification.

[0111] In a further embodiment, when a first format file with a second mark is detected, the operation and maintenance personnel may also issue a warning so that the operation and maintenance personnel can respond according to the actual situation, such as logging into the file server to check whether the corresponding file exists. If so, it indicates that the subsequent correct file is delivered in time, and the second mark is modified to the first mark to ensure that all the first format files corresponding to the second format files are in place, thereby achieving the efficiency and reliability of batch processing; when the operation and maintenance personnel log into the file server to check that the corresponding file still does not exist, the second mark is maintained.

[0112] In the embodiments of this specification, Figure 5 As shown, the data file is processed according to the preset processing rules and the check mark of the data file, including:

[0113] S401: Determine the upstream business to be processed;

[0114] S402: Determine a preset processing rule according to the upstream business to be processed;

[0115] S403: Processing the data file according to a preset processing rule and the check mark of the data file.

[0116] It can be understood that different processing rules are used for different upstream businesses, so as to achieve targeted processing of batch businesses and realize personalized processing. For example, different processing rules can be set for payroll services and utility bill payment services. Payroll services require that the number of workers, total wages, and workers' names must be consistent before processing, while utility bill payment services are based on users. As long as the user information is consistent, payment services can be provided. Therefore, the processing rules for payroll services and utility bill payment services are obviously different. In this way, by setting two targeted processing rules, different businesses can be processed quickly, thereby improving processing efficiency.

[0117] In a further embodiment, since the same upstream business can be set with different scene types, different processing rules can also be set according to different scene types, such as setting different processing rules according to the importance of the scene type. The importance can be set in advance and set according to the actual situation, which is not limited in the embodiments of this specification. For example, for the water and electricity bill payment service, different regions are divided into different scenes according to the distribution of the number of users who have signed the withholding agreement, and different batches of processing are realized. The area with a large user distribution density has a high importance. When processing, the data file with the second mark can be focused on. When the first format file with the second mark appears, the processing is stopped. This can avoid repeated processing caused by processing errors and increase system energy consumption. For areas with a small user distribution density, a lower importance is set. When processing, the attention to the data file with the second mark can be reduced, and other normal files can be processed continuously, so that the above-mentioned unprocessed second-marked data files can be processed separately in the later processing. This can ensure the timeliness of batch processing, improve the utilization efficiency of the batch processing window, and minimize the occurrence of non-fault system shutdown.

[0118] In the embodiment of this specification, the preset processing rules include a first processing rule, such as Figure 6 As shown, the first processing rule includes:

[0119] S501: traverse the first format file and its check mark;

[0120] S502: When all the first format files are first marks, the data files are processed;

[0121] S503: When the first format file has a second mark, a warning is issued to the operation and maintenance personnel, so that the operation and maintenance personnel confirm with the upstream business to be processed whether the first format file corresponding to the second mark can be updated;

[0122] S504: When the operation and maintenance personnel confirms that the first format file corresponding to the second mark can be updated, the updated first format file is obtained, and the data file is updated according to the updated first format file, so that the host completes processing of the updated data file;

[0123] S505: When the operation and maintenance personnel confirms that the first format file corresponding to the second mark cannot be updated, the processing of the data file is stopped.

[0124] In actual work, this processing rule requires that all data files must be in place before batch processing can be performed. The file array is traversed and checked. If there is a record with a check flag of 0, that is, there is a situation where the file is not ready (as long as there is one file that is not ready), then the first format file that is not ready is determined, and a highlighted response message is prompted on the console, indicating that there is a file that is not ready yet. Whether to continue or not, the operation and maintenance personnel are required to respond. The operation and maintenance personnel can respond with "Y" or "N" according to the specific situation. The operation and maintenance personnel confirm whether the file can be delivered in time and provide operation feedback on the corresponding response sequence number: 1) If the upstream business does not upload the file, the response is " / xxx, N", and the program skips the receiving file processing; 2) If the upstream business can upload the file in time, after the upload is completed, the response is " / xxx, Y" to continue the batch; 3) If it cannot be uploaded before the next batch of processing tasks begins, the response is " / xxx, N", the program skips the receiving file processing, and notifies the upstream business to merge the content of the two sessions and upload the file in the next session.

[0125] Furthermore, the preset processing rules include a second processing rule, such as Figure 7 As shown, the second processing rule includes:

[0126] S601: traverse the first format file and its check mark;

[0127] S602: When all the first format files are first marks, process the data file;

[0128] S603: When the first format file has a second mark, stop processing the data file.

[0129] In actual work, this processing rule is aimed at not processing anything and not giving a response as long as one file has not arrived. For example, if the file array is traversed and checked, if it is found that the file is not ready, there is no need for the operation and maintenance personnel to respond, and the subsequent processing results are directly output as empty; if all files are ready, the original data file is written into the new subsequent processing.

[0130] In some other embodiments, when the frequency and number of batch files uploaded to the server are uncertain, the processing rules may further include:

[0131] Traversing the first format file and its check mark;

[0132] When there is a first format file with a first mark, the first format file is processed;

[0133] When the first format file of the second mark exists, the processing of the first format file is stopped.

[0134] The above steps can improve the timeliness of processing the in-place files. After all the files are in place, centralized processing combined with new in-place files will increase the load pressure of the host system, thereby reducing the service life of the host.

[0135] In the embodiment of the present specification, the determining whether the first format file is consistent with the second format file and marking a corresponding check mark further includes:

[0136] Determine whether the file name of the second format file is consistent with a preset file name, where the preset file name is the file name corresponding to the upstream service to be processed;

[0137] If there is any inconsistency, a warning is issued to the operation and maintenance personnel so that the operation and maintenance personnel can confirm whether the acquired data file is correct;

[0138] If correct, the check mark of the first format file is the first mark.

[0139] It can be understood that when the upstream business uploads a data file, but does not upload the second format file but only uploads the first format file, the server can automatically generate a second format file with a system file name based on the received file information, so that it can be ensured that the data files obtained by the host are data files with the first format file and the second format file. For example, the second format file with the system file name can be noftp.chk, and the content of noftp.chk is empty. The preset file name can be the upstream business name, or the file name of the first format file. Therefore, if the file name of noftp.chk is different from the preset file name, a warning needs to be issued to the operation and maintenance personnel to determine whether the upload is wrong, so as to facilitate subsequent batch processing.

[0140] Furthermore, when the upstream business does not upload the second format file and the first format file is the first mark, it indicates that the upstream business does not need the second format file and the first format file can be directly batch processed. In this way, the reliability of the batch processing is also guaranteed through secondary verification, thereby improving the service experience.

[0141] The host data exchange processing method provided by the embodiment of this specification can achieve the following beneficial effects:

[0142] 1) The system can automatically check files, and operation and maintenance personnel do not need to monitor the arrival and processing of files around the clock.

[0143] 2) For operations that require intervention, alarms are highlighted in real time, allowing maintenance personnel to quickly and accurately perform emergency operations to avoid affecting batch timeliness.

[0144] 3) For batch business involving batch files in different time zones, different processing rules can be selected to reduce the complexity of file operations and increase the accuracy of system operation.

[0145] Based on the same inventive concept, the embodiment of this specification also provides a host data exchange processing device, such as Figure 8 As shown, the device comprises:

[0146] The data file acquisition module 100 is used to acquire at least one group of data files, each group of data files includes a first format file and a second format file, the first format file is used to represent the business parameter information, and the second format file is the attribute information of the business parameter information;

[0147] A checking module 200, configured to determine whether the first format file complies with the second format file, and mark a corresponding checking mark;

[0148] The processing module 300 is used to process the data file according to a preset processing rule and the check mark of the data file.

[0149] The beneficial effects obtained by the above-mentioned device are consistent with the intended effects obtained by the above-mentioned method, and will not be described in detail in the embodiments of this specification.

[0150] It should be noted that the host data exchange processing method and device provided in the embodiments of this specification can be used in the financial field on the operation and maintenance platform, and can also be used in any field other than the financial field. The application field of the host data exchange processing method and device provided in the embodiments of this specification is not limited.

[0151] like Fig. 9As shown, a computer device provided in an embodiment of the present invention, the computer device 902 may include one or more processors 904, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 902 may also include any memory 906, which is used to store any kind of information such as code, settings, data, etc. Non-limitingly, for example, the memory 906 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any memory may use any technology to store information. Further, any memory may provide volatile or non-volatile retention of information. Further, any memory may represent a fixed or removable component of the computer device 902. In one case, when the processor 904 executes an associated instruction stored in any memory or a combination of memories, the computer device 902 may perform any operation of the associated instruction. The computer device 902 also includes one or more drive mechanisms 908 for interacting with any memory, such as a hard disk drive mechanism, an optical disk drive mechanism, etc.

[0152] The computer device 902 may also include an input / output module 910 (I / O) for receiving various inputs (via input devices 912) and for providing various outputs (via output devices 914). A specific output mechanism may include a presentation device 916 and an associated graphical user interface (GUI) 918. In other embodiments, the input / output module 910 (I / O), the input device 912, and the output device 914 may not be included, and the computer device 902 may be used as a computer device in a network. The computer device 902 may also include one or more network interfaces 920 for exchanging data with other devices via one or more communication links 922. One or more communication buses 924 couple the components described above together.

[0153] The communication link 922 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 922 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0154] Corresponds to Figure 2-Figure 7 The method in this article also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are executed.

[0155] The embodiment of the present invention also provides a computer readable instruction, wherein when the processor executes the instruction, the program therein causes the processor to execute the following Figures 2 to 7The method shown.

[0156] It should be understood that in the various embodiments of this document, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this document.

[0157] It should also be understood that in the embodiments of this article, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0158] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this article.

[0159] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0160] In the several embodiments provided herein, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.

[0161] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this article.

[0162] In addition, each functional unit in each embodiment of this invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.

[0163] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this article is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of this article. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0164] Specific embodiments are used in this article to illustrate the principles and implementation methods of this article. The description of the above embodiments is only used to help understand the methods and core ideas of this article. At the same time, for general technicians in this field, according to the ideas of this article, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on this article.

Claims

1. A host data exchange processing method, characterized in that: The method comprises: Acquire at least one group of data files, each group of data files includes a first format file and a second format file, the first format file is used to represent business parameter information, and the second format file is attribute information of the business parameter information; the first format file and the second format file are stored in a preset location of the server; Determining whether the first format file complies with the second format file and marking a corresponding check mark includes: Determining attribute information in the second format file and parameter information in the first format file; Determining whether the parameter information is consistent with the attribute information; When the parameter information is consistent with the attribute information, the check mark of the first format file is a first mark; When the parameter information is inconsistent with the attribute information, the check mark of the first format file is a second mark; Identify the upstream business to be processed; Determine a preset processing rule according to the upstream business to be processed; the preset processing rule includes a first processing rule and a second processing rule; The first processing rule includes: Traversing the first format file and its check mark; When the first format file is all the first mark, the data file is processed; When the first format file has a second mark, an alert is issued to the operation and maintenance personnel, so that the operation and maintenance personnel confirm with the upstream business to be processed whether the first format file corresponding to the second mark can be updated; When the operation and maintenance personnel confirms that the first format file corresponding to the second mark can be updated, the updated first format file is obtained, and the data file is updated according to the updated first format file, so that the host completes processing of the updated data file; When the operation and maintenance personnel confirms that the first format file corresponding to the second mark cannot be updated, the processing of the data file is stopped; The second processing rule includes: Traversing the first format file and its check mark; When the first format file is all the first mark, processing the data file; When the first format file has a second mark, stop processing the data file; The data file is processed according to preset processing rules and the check mark of the data file.

2. The method according to claim 1, characterized in that The obtaining of at least one set of data files comprises: Identify the upstream business to be processed; Determining preset path information of the data file according to the upstream business to be processed; At least one set of data files is obtained from a server according to the preset path information of the data files.

3. The method according to claim 2, characterized in that The obtaining at least one set of data files from the server according to the preset path information of the data files comprises: Determine the scenario type of the upstream business to be processed according to the user inspection instruction; At least one set of data files is obtained from a server according to the scene type and the preset path information of the data files.

4. The method according to claim 3, characterized in that The scenario type includes the time zone or region where the upstream business is located.

5. The method according to claim 2, characterized in that: The determining whether the first format file complies with the second format file and marking a corresponding check mark further includes: Determine whether the file name of the second format file is consistent with a preset file name, where the preset file name is the file name corresponding to the upstream service to be processed; If there is any inconsistency, a warning is issued to the operation and maintenance personnel so that the operation and maintenance personnel can confirm whether the acquired data file is correct; If correct, the check mark of the first format file is the first mark.

6. A host data exchange processing device, characterized in that: The device comprises: A data file acquisition module, used to acquire at least one group of data files, each group of data files includes a first format file and a second format file, the first format file is used to represent business parameter information, and the second format file is attribute information of the business parameter information; the first format file and the second format file are stored in a preset location of the server; A checking module, used to determine whether the first format file conforms to the second format file and mark a corresponding checking mark, including: determining attribute information in the second format file and parameter information in the first format file; Determining whether the parameter information is consistent with the attribute information; When the parameter information is consistent with the attribute information, the check mark of the first format file is a first mark; When the parameter information is inconsistent with the attribute information, the check mark of the first format file is a second mark; A processing module, used to determine the upstream business to be processed; Determine a preset processing rule according to the upstream business to be processed; the preset processing rule includes a first processing rule and a second processing rule; The first processing rule includes: Traversing the first format file and its check mark; When the first format file is all the first mark, the data file is processed; When the first format file has a second mark, an alert is issued to the operation and maintenance personnel, so that the operation and maintenance personnel confirm with the upstream business to be processed whether the first format file corresponding to the second mark can be updated; When the operation and maintenance personnel confirms that the first format file corresponding to the second mark can be updated, the updated first format file is obtained, and the data file is updated according to the updated first format file, so that the host completes processing of the updated data file; When the operation and maintenance personnel confirms that the first format file corresponding to the second mark cannot be updated, the processing of the data file is stopped; The second processing rule includes: Traversing the first format file and its check mark; When the first format file is all the first mark, processing the data file; When the first format file has a second mark, stop processing the data file; The data file is processed according to preset processing rules and the check mark of the data file.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Service processing method and device, equipment and storage medium

    CN112860706A