CN112114903A - File loading method and device - Google Patents

File loading method and device Download PDF

Info

Publication number
CN112114903A
CN112114903A CN202011040368.2A CN202011040368A CN112114903A CN 112114903 A CN112114903 A CN 112114903A CN 202011040368 A CN202011040368 A CN 202011040368A CN 112114903 A CN112114903 A CN 112114903A
Authority
CN
China
Prior art keywords
file
state
information
scanning
loaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011040368.2A
Other languages
Chinese (zh)
Other versions
CN112114903B (en
Inventor
郑东欣
周宝琛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202011040368.2A priority Critical patent/CN112114903B/en
Publication of CN112114903A publication Critical patent/CN112114903A/en
Application granted granted Critical
Publication of CN112114903B publication Critical patent/CN112114903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a file loading method and a device, which relate to the field of computers, and the method comprises the following steps: acquiring file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information; generating an initial state of a file to be loaded according to the file name information; scanning the files to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into the target state according to the scanning result; and loading the file to be loaded according to the target state and the file dependency relationship information. The invention can configure different file parameter information for different files, thereby improving the accuracy and the processing efficiency so as to load the files to be loaded in time; the coupling degree of an external system and the system is weakened, the reliability and stability of the system are enhanced, and the maintenance cost and pressure are reduced.

Description

File loading method and device
Technical Field
The invention relates to the technical field of computers, in particular to a file loading method and device.
Background
Due to high business complexity, large-scale commercial banks have various types and quantities of texts to be processed at night, and dependence among systems is complicated. In the daily batch processing process, the situation that the file does not arrive on the same day and arrives again the next day or even several days later is often encountered, which poses challenges to batch processing of loading texts and ensuring correctness and timeliness of services.
Disclosure of Invention
The invention provides a file loading method and a file loading device, which can improve the accuracy and timeliness of batch processing operation.
In a first aspect, an embodiment of the present invention provides a file loading method, where the method includes: acquiring file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information; generating an initial state of a file to be loaded according to the file name information; scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into a target state according to a scanning result; and loading the file to be loaded according to the target state and the file dependency relationship information.
In a second aspect, an embodiment of the present invention further provides a file loading apparatus, where the apparatus includes: the file parameter module is used for acquiring file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information; the batch pre-processing module is used for generating an initial state of the file to be loaded according to the file name information; the file scanning module is used for scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into a target state according to a scanning result; and the file processing module is used for loading the file to be loaded according to the target state and the file dependency relationship information.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the file loading method when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the file loading method is stored in the computer-readable storage medium.
The embodiment of the invention has the following beneficial effects: the embodiment of the invention provides a file loading scheme, which comprises the steps of firstly obtaining file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information, then an initial state of a file to be loaded is generated according to the file name information, the file to be loaded is scanned according to the waiting days threshold information, the waiting duration threshold information and the batch date information, the initial state is changed into a target state according to a scanning result, and finally the file to be loaded is loaded according to the target state and the file dependency relationship information. According to the embodiment of the invention, the status marking of each file to be loaded can be realized according to the file parameter information, different file parameter information is configured for different files, the accuracy and the processing efficiency are improved, and the files to be loaded can be loaded in time; by configuring the file parameter information and the file state mark, the coupling degree of an external system and the system is weakened, the reliability and the stability of the system are enhanced, and the maintenance cost and the maintenance pressure are reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a file loading method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a state jump of a file according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an implementation step of a file loading method according to an embodiment of the present invention;
fig. 4 is a block diagram of a file loading apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the existing scheme sets the timeout time for a file, and waits for the file within the timeout time until the current day waits for timeout; in addition, after the subsequent files arrive, the maintenance personnel are required to manually intervene for processing, certain risks exist in service, and even if the script is used for automatic processing, the problem that operation dependence cannot be processed exists.
Based on this, the method and the device for loading the file provided by the embodiment of the invention solve the problem of overlong batch processing time caused by overtime waiting of the file by adding the state and giving a special state to the abnormal scene that the file does not arrive. The method has the advantages that the state is added for the file processing process, the problem is solved by setting a special state for the file, on one hand, the strong association with the arrival time of the upstream system file is converted into the weak association relationship, on the other hand, the dependence relationship of the file is considered, manual intervention is not needed, and the method is safe, reliable, flexible, configurable and high in stability.
To facilitate understanding of the embodiment, a detailed description is first given of a file loading method disclosed in the embodiment of the present invention.
First, explanation is made concerning data.
Day T: date of run (batch date).
Day T-1: the day before the date of the lot, assume that day T is 20200210 and day T-1 is 20200209.
An embodiment of the present invention provides a file loading method, referring to a flow chart of a file loading method shown in fig. 1, the method includes the following steps:
and step S102, acquiring file parameter information.
In the embodiment of the present invention, the file parameter information at least includes threshold information of waiting days, threshold information of waiting duration, dependency information of files, batch date information, and file name information. The threshold information of the waiting days is used for determining the longest waiting days after the file is scanned, the threshold information of the waiting time is used for determining the longest waiting time after the file is scanned, the batch date information is used for determining the deadline of the loading completion of the file, and the file name information is used for determining the file name format of the file to be loaded.
And step S104, generating an initial state of the file to be loaded according to the file name information.
In the embodiment of the invention, after the file name format of the file to be loaded is determined, the initial state of the file to be loaded is generated. For example, the file name information may be file a, and the initial state may be waiting.
And S106, scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into the target state according to the scanning result.
In the embodiment of the invention, the file to be loaded is scanned according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, different scanning results are obtained according to whether the file to be loaded arrives, the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, different scanning results are marked in different states, and the purpose of changing the initial state into the target state according to the scanning results is realized.
It should be noted that if the loaded file is not uploaded to the system by the operator, the file to be loaded cannot be scanned.
And S108, loading the file to be loaded according to the target state and the file dependency relationship information.
In the embodiment of the present invention, the file dependency relationship information may be a sequential execution order relationship between the file to be loaded and other files. For example, file a is dependent on file B, then file B is required to have completed loading before file a is loaded.
The embodiment of the invention provides a file loading scheme, which comprises the steps of firstly obtaining file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information, then an initial state of a file to be loaded is generated according to the file name information, the file to be loaded is scanned according to the waiting days threshold information, the waiting duration threshold information and the batch date information, the initial state is changed into a target state according to a scanning result, and finally the file to be loaded is loaded according to the target state and the file dependency relationship information. According to the embodiment of the invention, the status marking of each file to be loaded can be realized according to the file parameter information, different file parameter information is configured for different files, the accuracy and the processing efficiency are improved, and the files to be loaded can be loaded in time; by configuring the file parameter information and the file state mark, the coupling degree of an external system and the system is weakened, the reliability and the stability of the system are enhanced, and the maintenance cost and the maintenance pressure are reduced.
In order to improve flexibility, the target state comprises a file arrival state, a first timeout state or a second timeout state; scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, changing the initial state into the target state according to the scanning result, and executing the following steps:
determining scanning date data according to the threshold information of the waiting days and the batch date information; scanning a file to be loaded according to the scanning date data, and changing the initial state into a file arrival state or a first overtime state according to the scanning result; and scanning the file to be loaded according to the waiting time threshold information, and changing the initial state into a file arrival state or a second overtime state according to the scanning result.
In order to improve stability, the file to be loaded is loaded according to the target state and the file dependency relationship information, and the method can be executed according to the following steps:
if the target state is the file arrival state, loading the file to be loaded according to the file dependency relationship information, and changing the file arrival state into a processing state; and changing the processing state into a processing success state or a processing failure state according to the loading result.
In the embodiment of the invention, the date for scanning the file to be loaded can be determined according to the scanning date data. According to the actual situation of the file to be scanned, different states are given to the file. The specific state assignment is as follows in table 1:
status of state Assigning scenes
Waiting At the start of batch processing
Arrived When a file arrives
File_timeout File waiting timeout of the day
File_absent Waiting for a file for more than the maximum number of waiting days for the file
Processing Files are being processed
Succeed Success of file processing
Fail File processing failure
TABLE 1
In table 1, "Waiting" indicates an initial state, "assumed" indicates a File arrival state, "File _ timeout" indicates a second timeout state, "File _ present" indicates a first timeout state, "Processing" indicates a Processing state, "successful" indicates a Processing success state, and "Fail" indicates a Processing failure state.
The scan date data is determined based on the threshold information of waiting days and the batch date information, for example, assuming that the batch date is 20200215, and the threshold value of waiting days, that is, the longest waiting days, of the file a is 3 days, the set of dates to be scanned for the file a in the batch with the batch date of 20200215 is [ 20200213, 20200214, 20200215 ]. Referring to the schematic diagram of the state jump of the file shown in fig. 2, the possible situations of the state jump are shown in table 2:
Figure BDA0002706463780000051
Figure BDA0002706463780000061
TABLE 2
In order to ensure the correctness of scanning, the file to be loaded is scanned according to the scanning date data, and the scanning method can be executed according to the following steps:
calculating the difference value between the scanning date data and the batch date information; sorting the scanning date data according to the difference value to obtain a sorting result; and scanning the files to be loaded according to the sequencing result.
In the embodiment of the invention, the scanning date data with the longest interval time from the batch dates can be determined according to the sequencing result, and the files to be loaded corresponding to the scanning date data with the longest interval time are scanned in sequence.
For example, referring to table 2 and fig. 2, scanning the file to be loaded may be specifically performed according to the following steps:
(1)20200215 when batch running, the batch file scanning module scans the date set of the file A from far to near, namely, starts scanning the file A with the date of 20200213, at this time, the file of 20200213 does not arrive yet, and the state is set as file _ present; the file for this date is not processed. If the file arrives, setting the state as the concerned state, and continuing to process by the file processing module;
(2) the scanning module continues to process the date set, starts to scan 20200214 date file A, if the file does not arrive, the status is file _ timeout; if the file arrives, setting the file as an authorized file, and continuing processing by the file processing module;
(3) the scanning module continues to process the date set, starts to scan 20200215 date file A, if the state of the last date file is file _ timeout, immediately sets the file state as file _ timeout without waiting for the file; if the last day file is not file _ timeout, then wait for the current day file.
In order to further ensure the timeliness of file loading, the method can further execute the following steps:
if the target state is a first overtime state, sending the file to be loaded to a storage module; and if the target state is the second overtime state, changing the second overtime state into the initial state at the preset moment.
In the embodiment of the present invention, for a file to be loaded whose target state is a first timeout state, the file to be loaded is sent to the storage module, so that an operator can manually process the file to be loaded, and for a file to be loaded whose target state is a second timeout state, the second timeout state may be changed to an initial state at a preset time, for example, at a certain time of the following day, so as to facilitate automatic loading processing of the file to be loaded again.
The embodiment of the invention provides a file loading method and a device, wherein a state mechanism is introduced into the method, and different states are given to different stages of a file in a processing process; judging whether to jump to the next state according to the dependency relationship among the files, whether the files reach and the current state of the files; desensitization with an upstream system is achieved by setting a special state for a file that has not reached for a long time or has not reached within the longest time allowed to wait; and after the batch is called every day, scanning files in the unreachable state or the special state, and judging whether the files jump to the next state or not according to the file arrival and the longest waiting days. The method adds a mechanism for acquiring file parameters and forming a date set. The state is given to the file of each date, different states are given to the file according to different scenes, and a respective date set is formed for each file, so that the flexibility is improved; aiming at a possible special scene, for example, overtime of multiple days is not reached, the longest waiting days of different files can be different by setting the longest waiting days and carrying out processing in a state, and the processing efficiency is improved; meanwhile, the mechanism can also make the functions independent, and simplify the later maintenance cost. The method reduces the coupling between an external system and the system, enhances the reliability and stability of the system, and reduces the maintenance cost and pressure; the system is weakly sensitive to the delivery time of the batch files of the external system at night, and can process the abnormal conditions such as dependence on the files, overtime and the like according to the parameter configuration.
The method is described below with reference to a specific example. Referring to the schematic diagram of the implementation steps of the file loading method shown in fig. 3, the method can be implemented according to a system, and the functions of each module are as follows:
the file parameter module stores parameters of each file, including the waiting time of the file on the day, the longest waiting days of the file, the name format of the file, the batch date, the file dependency relationship and the like;
the batch pre-processing module is responsible for acquiring parameters of the files to be processed from the file parameter module after starting the batch main program, and initializing the file job state to be processed in the T day to waiting;
the file scanning module acquires batch dates, the waiting time of the files on the same day, the longest waiting days of the files and the like according to the file parameter module; in the module, whether the file arrives or not is scanned, and the file with the state of arrived is sent to a file processing module; sending the record of the file not arrived to an exception handling module for analysis;
the file exception handling module is responsible for handling the situation that the file does not arrive, and judging whether the file is set as file _ present and file _ timeout or continues to wait for the file according to the date of the file and the longest waiting time of the file;
and the file processing module processes the file according to the dependency relationship acquired in the file parameter module and the state of the file, wherein the state of the file can be processed separately, namely processing, successful downloading and failed fail.
The method can be executed according to the following steps by utilizing the system specifically:
1. the file parameter module needs to initialize file parameters, including the longest waiting time of the file on the day, the longest waiting days of the file, and the like;
2. the batch pre-processing module is responsible for acquiring file parameters from the file parameter module and generating a file generation date set for subsequent file processing;
3. the file scanning module is responsible for acquiring a list of files to be processed from the front module and scanning the files in sequence. Sending the predefined special state to a file exception handling module; for the state of the file arrival, sending the file arrival state to a file processing module;
4. the file exception handling module is responsible for receiving the exception condition found by the scanning module, analyzing the exception condition, and returning the exception condition to the scanning module if the exception condition needs to be scanned again; if the file waiting days exceed the longest waiting days, the final state is given, and the file is not processed any more subsequently;
5. the file processing module is responsible for processing jobs for which arrival of a file has been confirmed.
The embodiment of the invention also provides a file loading device, which is described in the following embodiment. Because the principle of the device for solving the problems is similar to the file loading method, the implementation of the device can refer to the implementation of the file loading method, and repeated parts are not described again. Referring to the block diagram of the file loading apparatus shown in fig. 4, the apparatus includes:
an obtaining module 71, configured to obtain file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information; the generating module 72 is configured to generate an initial state of the file to be loaded according to the file name information; the state module 73 is used for scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into the target state according to the scanning result; and the loading module 74 is configured to load the file to be loaded according to the target state and the file dependency relationship information.
In one embodiment, the target state comprises a file arrival state, a first timeout state, or a second timeout state; the state module is specifically configured to: determining scanning date data according to the threshold information of the waiting days and the batch date information; scanning a file to be loaded according to the scanning date data, and changing the initial state into a file arrival state or a first overtime state according to the scanning result; and scanning the file to be loaded according to the waiting time threshold information, and changing the initial state into a file arrival state or a second overtime state according to the scanning result.
In one embodiment, the loading module is specifically configured to: if the target state is the file arrival state, loading the file to be loaded according to the file dependency relationship information, and changing the file arrival state into a processing state; and changing the processing state into a processing success state or a processing failure state according to the loading result.
In one embodiment, the loading module is further configured to: if the target state is a first overtime state, sending the file to be loaded to a storage module; and if the target state is the second overtime state, changing the second overtime state into the initial state at the preset moment.
In one embodiment, the status module is specifically configured to: calculating the difference value between the scanning date data and the batch date information; sorting the scanning date data according to the difference value to obtain a sorting result; and scanning the files to be loaded according to the sequencing result.
An embodiment of the present invention further provides a computer device, referring to the schematic block diagram of the structure of the computer device shown in fig. 5, the computer device includes a memory 81, a processor 82, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements any of the steps of the file loading method described above.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the computer device described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing any one of the above file loading methods is stored in the computer-readable storage medium.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A file loading method is characterized by comprising the following steps:
acquiring file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information;
generating an initial state of a file to be loaded according to the file name information;
scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into a target state according to a scanning result;
and loading the file to be loaded according to the target state and the file dependency relationship information.
2. The method of claim 1, wherein the target state comprises a file arrival state, a first timeout state, or a second timeout state;
scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into a target state according to a scanning result, wherein the scanning method comprises the following steps:
determining scanning date data according to the waiting days threshold information and the batch date information;
scanning the file to be loaded according to the scanning date data, and changing the initial state into a file arrival state or a first overtime state according to a scanning result;
and scanning the file to be loaded according to the waiting time threshold information, and changing the initial state into a file arrival state or a second overtime state according to a scanning result.
3. The method according to claim 2, wherein loading the file to be loaded according to the target state and the file dependency relationship information comprises:
if the target state is a file arrival state, loading the file to be loaded according to the file dependency relationship information, and changing the file arrival state into a processing state;
and changing the processing state into a processing success state or a processing failure state according to the loading result.
4. The method of claim 2, further comprising:
if the target state is a first overtime state, the file to be loaded is sent to a storage module;
and if the target state is a second overtime state, changing the second overtime state into an initial state at a preset moment.
5. The method of claim 2, wherein scanning the file to be loaded according to the scan date data comprises:
calculating a difference between the scan date data and the batch date information;
sorting the scanning date data according to the difference value to obtain a sorting result;
and scanning the files to be loaded according to the sequencing result.
6. A file loading apparatus, comprising:
the acquisition module is used for acquiring file parameter information; the file parameter information at least comprises waiting days threshold information, waiting duration threshold information, file dependency relationship information, batch date information and file name information;
the generating module is used for generating an initial state of the file to be loaded according to the file name information;
the state module is used for scanning the file to be loaded according to the threshold information of the waiting days, the threshold information of the waiting duration and the batch date information, and changing the initial state into a target state according to a scanning result;
and the loading module is used for loading the file to be loaded according to the target state and the file dependency relationship information.
7. The apparatus of claim 6, wherein the target state comprises a file arrival state, a first timeout state, or a second timeout state; the state module is specifically configured to:
determining scanning date data according to the waiting days threshold information and the batch date information;
scanning the file to be loaded according to the scanning date data, and changing the initial state into a file arrival state or a first overtime state according to a scanning result;
and scanning the file to be loaded according to the waiting time threshold information, and changing the initial state into a file arrival state or a second overtime state according to a scanning result.
8. The apparatus of claim 7, wherein the loading module is specifically configured to:
if the target state is a file arrival state, loading the file to be loaded according to the file dependency relationship information, and changing the file arrival state into a processing state;
and changing the processing state into a processing success state or a processing failure state according to the loading result.
9. The apparatus of claim 7, wherein the loading module is further configured to:
if the target state is a first overtime state, the file to be loaded is sent to a storage module;
and if the target state is a second overtime state, changing the second overtime state into an initial state at a preset moment.
10. The apparatus of claim 7, wherein the status module is specifically configured to:
calculating a difference between the scan date data and the batch date information;
sorting the scanning date data according to the difference value to obtain a sorting result;
and scanning the files to be loaded according to the sequencing result.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the file loading method according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the file loading method according to any one of claims 1 to 5.
CN202011040368.2A 2020-09-28 2020-09-28 File loading method and device Active CN112114903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011040368.2A CN112114903B (en) 2020-09-28 2020-09-28 File loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011040368.2A CN112114903B (en) 2020-09-28 2020-09-28 File loading method and device

Publications (2)

Publication Number Publication Date
CN112114903A true CN112114903A (en) 2020-12-22
CN112114903B CN112114903B (en) 2023-10-24

Family

ID=73797057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011040368.2A Active CN112114903B (en) 2020-09-28 2020-09-28 File loading method and device

Country Status (1)

Country Link
CN (1) CN112114903B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612758A (en) * 2020-12-26 2021-04-06 中国农业银行股份有限公司 Method and device for controlling message generation
CN112799945A (en) * 2021-01-29 2021-05-14 中国工商银行股份有限公司 Batch file verification method and device
CN115034770A (en) * 2022-08-12 2022-09-09 平安银行股份有限公司 Dispute clearing file scheduling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61248132A (en) * 1985-04-23 1986-11-05 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Batch file processing
CN106682219A (en) * 2017-01-03 2017-05-17 腾讯科技(深圳)有限公司 Association document acquisition method and device
CN109413176A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 Report method for down loading and device
CN109634591A (en) * 2018-12-29 2019-04-16 杭州迪普科技股份有限公司 A kind of document handling method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61248132A (en) * 1985-04-23 1986-11-05 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Batch file processing
CN106682219A (en) * 2017-01-03 2017-05-17 腾讯科技(深圳)有限公司 Association document acquisition method and device
CN109413176A (en) * 2018-10-19 2019-03-01 中国银行股份有限公司 Report method for down loading and device
CN109634591A (en) * 2018-12-29 2019-04-16 杭州迪普科技股份有限公司 A kind of document handling method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612758A (en) * 2020-12-26 2021-04-06 中国农业银行股份有限公司 Method and device for controlling message generation
CN112799945A (en) * 2021-01-29 2021-05-14 中国工商银行股份有限公司 Batch file verification method and device
CN112799945B (en) * 2021-01-29 2024-03-15 中国工商银行股份有限公司 Batch file verification method and device
CN115034770A (en) * 2022-08-12 2022-09-09 平安银行股份有限公司 Dispute clearing file scheduling method and device

Also Published As

Publication number Publication date
CN112114903B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN112114903A (en) File loading method and device
CN105677469B (en) Timed task execution method and device
US20100153941A1 (en) Flexible content update via deployment order template
CN110225078B (en) Application service updating method, system and terminal equipment
CN112953983A (en) SFTP transmission method and device
CN107239325B (en) Document data processing method and device
CN113377667A (en) Scene-based testing method and device, computer equipment and storage medium
CN108595178B (en) Hook-based data acquisition method, device and equipment
CN114238295A (en) Data sorting method and device based on grouping
CN109063846B (en) Machine learning operation method, device, equipment and storage medium
CN111385613B (en) Television system repairing method, storage medium and application server
CN111580948A (en) Task scheduling method and device and computer equipment
CN111651350A (en) Test case processing method, device and equipment and computer readable storage medium
CN112131180B (en) Data reporting method, device and storage medium
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN112269733B (en) Automatic aging test method for server and storage medium
CN112632559A (en) Vulnerability automatic verification method, device, equipment and storage medium
CN111488236A (en) Order abnormity processing method, server, storage medium and processing device
CN110674119A (en) Data processing method, system and computer readable storage medium
CN110888883A (en) Data storage method, device, system and storage medium
CN117216011B (en) File transmission method and device and electronic equipment
CN115545677B (en) Online process specification detection method and system based on automatic case execution condition
CN112463076B (en) Data export method, computer equipment and storage medium
CN111651360B (en) Test method, test device, electronic equipment and medium
CN109298970B (en) File update identification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant