Method and system for downloading files according to divided areas
By configuring and updating the parameters of the divided area, a file download encapsulation module for job scheduling is generated, and a fixed job is used to call the module for file download, which solves the high time and labor costs in the existing technology when the system responds to business changes. problem, achieving improved system flexibility and efficiency.
Patent Information
- Application Number
- CN202111204068.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology has high time and labor costs when the system responds to business changes, and the system has low support capabilities for province-wide adjustments, resulting in high resource consumption in the file download process.
By configuring and updating the parameters of the divided area, a file download encapsulation module for job scheduling is generated, and a fixed job is used to call the module for file download, achieving dynamic adjustment and reuse, and avoiding repeated development and testing.
Save time and labor costs, enhance system responsiveness, simplify the file download process, and improve system flexibility and efficiency.
Smart Images

Figure CN113923210B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for downloading files according to divided areas. Background Art
[0002] For provincial files, the naming method is "business name + provincial bank number + file serial number". The download method is to use a download job to call a public FTP application for each file for transmission. When the provincial scope changes, such as adding a free trade zone, it is necessary to use the province as a unit for data management, and it is necessary to develop a new job similar to other provinces, specify the file name and transmission address of the transmission, and go through test verification and other steps before production. When it is put into production, the new job will be added to the scheduling management system to achieve the purpose of the system supporting the adjustment of the provincial scope.
[0003] There are the following disadvantages for various engineering activities such as new project establishment, development work, test verification, and scheduling management: high time cost. It takes a long time from project establishment, scheduling, development, test verification, and new scheduling management, which leads to low ability of the system to respond to business changes and reduced market competitiveness. High labor costs, development-related engineering activities and quality management activities have pushed up system maintenance costs. Each file download requires a download job and is managed by the scheduling system, and parallel downloads consume high resources.
[0004] In summary, there is an urgent need for a technical solution for downloading files that can overcome the above-mentioned shortcomings, save time and labor costs, and enhance the system's responsiveness. Summary of the invention
[0005] In order to solve the problems existing in the prior art, the present invention proposes a method and system for downloading files according to the divided areas. The present invention uses the parameters of the divided areas as input to generate a set of modules covering all areas for job scheduling. After a development, test verification and other engineering activities, if there is a subsequent regional adjustment, the tool can be directly run to generate a download module covering all areas for a fixed scheduling job to call.
[0006] In a first aspect of an embodiment of the present invention, a method for downloading a file according to divided areas is proposed, the method comprising:
[0007] Configuring parameters of each divided area; wherein when the range of the divided area is adjusted, updating the parameters of the adjusted area;
[0008] Generate a file download encapsulation module according to the parameters of each divided area;
[0009] The corresponding downloading operation is called according to the downloading encapsulation module to download the file.
[0010] Furthermore, configure the parameters of each partition area, including:
[0011] Initially divide the regions according to provinces and configure the parameters of each divided region;
[0012] When the range of the divided area is adjusted, the range of the area changes or a new area is divided, and the parameters of the adjusted area are updated according to the adjusted area;
[0013] Generating a file download encapsulation module according to the parameters of each divided area includes:
[0014] The file download encapsulation module is regenerated according to the updated parameters of the divided area.
[0015] Furthermore, the parameters of each partition area configured include at least:
[0016] Business name, bank number in the region and document serial number.
[0017] Furthermore, a file download encapsulation module is generated according to the parameters of each divided area, including:
[0018] Find the transmission address based on the bank number in the area;
[0019] The business name, bank number in the region, file serial number, and transmission address are encapsulated to generate a file download encapsulation module.
[0020] Further, calling a corresponding downloading job according to the downloading encapsulation module to download the file includes:
[0021] A fixed job is set, and the fixed job is executed to call the download encapsulation module to download the file to the transmission address of the corresponding area.
[0022] In a second embodiment of the present invention, a system for downloading files according to divided areas is proposed, and the system includes:
[0023] A configuration unit, used to configure the parameters of each divided area; wherein when the range of the divided area is adjusted, the parameters of the adjusted area are updated;
[0024] A generating unit, used for generating a file download encapsulation module according to the parameters of each divided area;
[0025] The download unit is used to call the corresponding download operation according to the download encapsulation module to download the file.
[0026] Furthermore, the configuration unit is specifically used for:
[0027] Initially divide the regions according to provinces and configure the parameters of each divided region;
[0028] When the range of the divided area is adjusted, the range of the area changes or a new area is divided, and the parameters of the adjusted area are updated according to the adjusted area;
[0029] The generating unit is specifically used for:
[0030] The file download encapsulation module is regenerated according to the updated parameters of the divided area.
[0031] Furthermore, the parameters of each divided area configured by the configuration unit include at least:
[0032] Business name, bank number in the region and document serial number.
[0033] Furthermore, the generating unit is specifically used for:
[0034] Find the transmission address based on the bank number in the area;
[0035] The business name, bank number in the region, file serial number, and transmission address are encapsulated to generate a file download encapsulation module.
[0036] Furthermore, the downlink unit is specifically used for:
[0037] A fixed job is set, and the fixed job is executed to call the download encapsulation module to download the file to the transmission address of the corresponding area.
[0038] In a third aspect of an embodiment of the present invention, a computer device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for downloading files according to divided areas when executing the computer program.
[0039] In a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a method for downloading files according to divided areas is implemented.
[0040] The method and system for downloading files according to divided areas proposed in the present invention configure the parameters of each divided area; wherein, when the range of the divided area is adjusted, the parameters of the adjusted area are updated; a file download encapsulation module is generated according to the parameters of each divided area; and the corresponding download job is called according to the download encapsulation module to download the file. The scheduling job and the file download encapsulation module generation tool used in the overall process are developed once, and there is no need to develop and test again when the divided area information changes, change the scheduling, etc., and only the parameters of the area need to be updated according to the adjustment of the divided area, and a schedulable file download encapsulation module needs to be dynamically generated, and a fixed job needs to be called to realize file download, which effectively saves time and labor costs and enhances the system responsiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 It is a flowchart of a method for downloading files according to divided areas according to an embodiment of the present invention.
[0043] Figure 2 It is a schematic diagram of the process of initial division of regions and adjustment of the range of the divided regions according to an embodiment of the present invention.
[0044] Figure 3 It is a flowchart of a module for generating file download encapsulation according to an embodiment of the present invention.
[0045] Figure 4 It is a schematic diagram of a system architecture for downloading files according to divided areas according to an embodiment of the present invention.
[0046] Figure 5 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0048] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0049] In the embodiments of the present invention, the terms that need to be explained are:
[0050] Mainframe, also known as Mainframe, is a large commercial server. Applications running on mainframes are usually called mainframe programs. As large commercial servers, mainframes are generally used in governments, banks, insurance companies and large manufacturing companies. For the banking industry, the current mainstream practice is to store important data such as customers, accounts and related transaction information in the core system based on the mainframe, and transmit new transaction information to the analysis system based on minicomputers or X86 servers every day. Based on business processing rules or the processing capacity of the analysis system, business data will be transmitted according to dimensions similar to the concept of provinces (not provinces in the strict sense).
[0051] File download is a way of transferring data between different systems. The background of "file download" in this article is that at the end of each day, the core banking system transfers the end-of-day transaction information data in text form from the mainframe system to peripheral systems based on minicomputer servers, X86 servers, etc., such as position management systems.
[0052] The province-by-province file uses the province as a dimension to divide the daily transaction information into multiple files. This collection of files is called a province-by-province file.
[0053] According to an embodiment of the present invention, a method and system for downloading files according to divided areas are proposed, which relate to the field of data processing technology.
[0054] The present invention is based on an application developed in REXX programming language on a mainframe, and uses the province parameter as input to generate a set of modules covering all provinces for job scheduling. After a development, test verification and other engineering activities, if there is a subsequent adjustment of the province range, the tool can be directly run to generate a download module covering all provinces for a fixed scheduling job to call.
[0055] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.
[0056] Figure 1 It is a flowchart of a method for downloading files according to divided areas according to an embodiment of the present invention.
[0057] like Figure 1 As shown, the method includes:
[0058] S101, configuring parameters of each divided area; wherein, when the range of the divided area is adjusted, updating the parameters of the adjusted area;
[0059] S102, generating a file download encapsulation module according to the parameters of each divided area;
[0060] S103, calling a corresponding downloading operation according to the downloading encapsulation module to download the file.
[0061] In order to explain the above method of downloading files according to divided areas more clearly, each step is described in detail below.
[0062] In one embodiment, reference Figure 2 , is a schematic diagram of the process of initial division of regions and adjustment of the range of divided regions according to an embodiment of the present invention.
[0063] like Figure 2 As shown, in S101, the specific process of configuring the parameters of each divided area is:
[0064] S1011, initially divide the regions according to provinces and configure the parameters of each divided region;
[0065] S1012, when the range of the divided area is adjusted, the range of the area changes or a new area is divided, the parameters of the adjusted area are updated according to the adjusted area;
[0066] In S102, a file download encapsulation module is generated according to the parameters of each divided area, including:
[0067] The file download encapsulation module is regenerated according to the updated parameters of the divided area.
[0068] Finally, a fixed job is used to call a file download encapsulation module to download the file, replacing the original solution of uploading one file per job.
[0069] Specifically, in S101, the parameters of each divided area configured include at least:
[0070] Business name, bank number in the region and document serial number.
[0071] In one embodiment, reference Figure 3 , is a flow chart of a module for generating file download encapsulation according to an embodiment of the present invention.
[0072] like Figure 3 As shown, in S102, the specific process of generating a file download encapsulation module according to the parameters of each divided area is as follows:
[0073] S1021, searching for a transmission address according to a bank number in the region;
[0074] S1022, encapsulate the business name, bank number in the region, file serial number, and transmission address to generate a file download encapsulation module.
[0075] Specifically, in S103, the specific process of calling the corresponding downloading operation to download the file according to the downloading encapsulation module is as follows:
[0076] A fixed job is set, and the fixed job is executed to call the download encapsulation module to download the file to the transmission address of the corresponding area.
[0077] The present invention will transmit business data in a dimension similar to the concept of province (not strictly province). Regions can be divided according to provinces, but if the provincial information is adjusted, such as adding a free trade zone, the divided regions can be adjusted accordingly.
[0078] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0079] In order to explain the above method of downloading files according to divided areas more clearly, a specific embodiment is described below.
[0080] In actual applications, you first need a file or data table to configure the province parameter information, develop a file download encapsulation module generation tool to generate the encapsulation module, develop a fixed job, and call the file download encapsulation module.
[0081] Specifically, the file download encapsulation module can be dynamically generated according to the province parameters, including all the province download steps in the province parameters, and executed sequentially.
[0082] Whenever the scope of a province is adjusted, such as adding a free trade zone, the provincial parameters are maintained once and a file download packaging module is generated to implement the file download function for the newly added province.
[0083] Use a fixed job to call a file download encapsulation module to download files, which can replace the method of uploading one file per job in the existing solution.
[0084] Compared with the prior art, the present invention has at least the following advantages:
[0085] 1. Save time and cost and enhance system responsiveness;
[0086] 2. Save labor costs, develop the scheduling job and file generation and downloading packaging module tools once, and there is no need to develop and test again when the provincial information changes, change the scheduling, etc.
[0087] After introducing the method of the exemplary embodiment of the present invention, next, refer to Figure 4 A system for downloading files according to divided areas according to an exemplary embodiment of the present invention is introduced.
[0088] The implementation of the system for downloading files according to the divided areas can refer to the implementation of the above method, and the repeated parts will not be repeated. The terms "module" or "unit" used below can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0089] Based on the same inventive concept, the present invention also proposes a system for downloading files according to divided areas, such as Figure 4 As shown, the system includes:
[0090] The configuration unit 410 is used to configure the parameters of each divided area; wherein when the range of the divided area is adjusted, the parameters of the adjusted area are updated;
[0091] A generating unit 420, configured to generate a file download encapsulation module according to the parameters of each divided area;
[0092] The download unit 430 is used to call the corresponding download operation according to the download encapsulation module to download the file.
[0093] In this embodiment, the configuration unit 410 is specifically used for:
[0094] Initially divide the regions according to provinces and configure the parameters of each divided region;
[0095] When the range of the divided area is adjusted, the range of the area changes or a new area is divided, and the parameters of the adjusted area are updated according to the adjusted area;
[0096] The generating unit 420 is specifically used for:
[0097] The file download encapsulation module is regenerated according to the updated parameters of the divided area.
[0098] In this embodiment, the parameters of each divided area configured by the configuration unit 410 include at least:
[0099] Business name, bank number in the region and document serial number.
[0100] In this embodiment, the generating unit 420 is specifically used for:
[0101] Find the transmission address based on the bank number in the area;
[0102] The business name, bank number in the region, file serial number, and transmission address are encapsulated to generate a file download encapsulation module.
[0103] In this embodiment, the downlink unit 430 is specifically used for:
[0104] A fixed job is set, and the fixed job is executed to call the download encapsulation module to download the file to the transmission address of the corresponding area.
[0105] It should be noted that although several modules of the system for downloading files according to divided areas are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules for embodiment.
[0106] Based on the above invention concept, Figure 5 As shown, the present invention also proposes a computer device 500, including a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520, wherein the processor 520 implements the aforementioned method of downloading files according to divided areas when executing the computer program 530.
[0107] Based on the aforementioned inventive concept, the present invention proposes 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 aforementioned method of downloading files according to divided areas is implemented.
[0108] The method and system for downloading files according to divided areas proposed in the present invention configure the parameters of each divided area; wherein, when the range of the divided area is adjusted, the parameters of the adjusted area are updated; a file download encapsulation module is generated according to the parameters of each divided area; and the corresponding download job is called according to the download encapsulation module to download the file. The scheduling job and the file download encapsulation module generation tool used in the overall process are developed once, and there is no need to develop and test again when the divided area information changes, change the scheduling, etc., and only the parameters of the area need to be updated according to the adjustment of the divided area, and a schedulable file download encapsulation module needs to be dynamically generated, and a fixed job needs to be called to realize file download, which effectively saves time and labor costs and enhances the system responsiveness.
[0109] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0110] The present invention is described with reference to flowcharts and / or block diagrams of methods and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0111] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0113] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for downloading files according to divided areas, characterized in that: The method includes: Configuring parameters of each divided area; wherein when the range of the divided area is adjusted, updating the parameters of the adjusted area; Generate a file download encapsulation module according to the parameters of each divided area; Calling a corresponding downloading job according to the downloading encapsulation module to download the file; The parameters for configuring each divided area include: Initially divide the regions according to provinces and configure the parameters of each divided region; When the range of the divided area is adjusted, the range of the area changes or a new area is divided, and the parameters of the adjusted area are updated according to the adjusted area; Generating a file download encapsulation module according to the parameters of each divided area includes: The file download encapsulation module is regenerated according to the updated parameters of the divided area.
2. The method for downloading files according to divided areas according to claim 1, characterized in that: The parameters for each zone to be configured include at least: Business name, bank number in the region and document serial number.
3. The method for downloading files according to divided areas according to claim 2, characterized in that: Generating a file download encapsulation module according to the parameters of each divided area includes: Find the transmission address based on the bank number in the area; The business name, bank number in the region, file serial number, and transmission address are encapsulated to generate a file download encapsulation module.
4. The method for downloading files according to divided areas according to claim 1, characterized in that: Calling a corresponding downloading job according to the downloading encapsulation module to download the file includes: A fixed job is set, and the fixed job is executed to call the download encapsulation module to download the file to the transmission address of the corresponding area.
5. A system for downloading files according to divided areas, characterized in that: The system includes: A configuration unit, used to configure the parameters of each divided area; wherein when the range of the divided area is adjusted, the parameters of the adjusted area are updated; A generating unit, used for generating a file download encapsulation module according to the parameters of each divided area; A download unit, used for calling a corresponding download job according to the download encapsulation module to download the file; Wherein, the configuration unit is specifically used for: Initially divide the regions according to provinces and configure the parameters of each divided region; When the range of the divided area is adjusted, the range of the area changes or a new area is divided, and the parameters of the adjusted area are updated according to the adjusted area; The generating unit is specifically used for: The file download encapsulation module is regenerated according to the updated parameters of the divided area.
6. The system for downloading files according to divided areas according to claim 5, characterized in that: The parameters of each divided area configured by the configuration unit include at least: Business name, bank number in the region and document serial number.
7. The system for downloading files according to divided areas according to claim 6, characterized in that: The generating unit is specifically used for: Find the transmission address based on the bank number in the area; The business name, bank number in the region, file serial number, and transmission address are encapsulated to generate a file download encapsulation module.
8. The system for downloading files according to divided areas according to claim 5, characterized in that: The downlink unit is specifically used for: A fixed job is set, and the fixed job is executed to call the download encapsulation module to download the file to the transmission address of the corresponding area.
9. 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 4 is implemented.
10. 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 4 is implemented.
