CN116541344A - File processing control method, apparatus, device, storage medium, and program product - Google Patents

File processing control method, apparatus, device, storage medium, and program product Download PDF

Info

Publication number
CN116541344A
CN116541344A CN202310478752.8A CN202310478752A CN116541344A CN 116541344 A CN116541344 A CN 116541344A CN 202310478752 A CN202310478752 A CN 202310478752A CN 116541344 A CN116541344 A CN 116541344A
Authority
CN
China
Prior art keywords
file
target data
data file
processing
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310478752.8A
Other languages
Chinese (zh)
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.)
Industrial Bank Co Ltd
Original Assignee
Industrial Bank Co 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 Industrial Bank Co Ltd filed Critical Industrial Bank Co Ltd
Priority to CN202310478752.8A priority Critical patent/CN116541344A/en
Publication of CN116541344A publication Critical patent/CN116541344A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The present application relates to a control method, apparatus, device, storage medium, and program product for file processing. The method comprises the following steps: acquiring a file processing plan; acquiring a corresponding target index file from an upstream system according to the file processing plan; determining a target data file to be processed from an upstream system according to the file processing plan; when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file; and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan. By adopting the method, the business processing can be automatically executed, and the manual intervention is reduced.

Description

File processing control method, apparatus, device, storage medium, and program product
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, a storage medium, and a program product for controlling file processing.
Background
With the popularization and development of internet and network applications, financial institutions such as commercial banks move more and more business to the internet. At the same time, financial institutions also have multiple channels of data files, which results in a large number of data files that need to be processed.
At present, a business system of many financial institutions generally adopts an immediate processing mode to process a received data file, however, in practical application, there may be a problem that the received data file corresponding to a certain business is not complete, so that the business cannot be processed normally or cannot be processed immediately, and further manual intervention is required to recover the business.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a control method, apparatus, device, storage medium, and program product that enable automatically running file processing.
In a first aspect, the present application provides control of document processing. The method comprises the following steps:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In one embodiment, the processing the target data file includes:
analyzing the target data file to obtain an analysis result, and determining a downstream system corresponding to the target data file;
and generating a file to be processed corresponding to the downstream system according to the analysis result, and sending the file to be processed to the downstream system.
In one embodiment, the parsing the target data file to obtain a parsing result includes:
determining the type of the target data file;
and calling a corresponding analysis program according to the type to analyze the target data file, and obtaining the analysis result.
In one embodiment, the parsing the target data file according to the type call corresponding parsing program to obtain the parsing result includes:
when a plurality of target data files of the same type exist, controlling the corresponding examples of each target data file to preempt the analysis program;
and changing the control state of the preempting analysis program into an analysis identifier, and calling a corresponding analysis program to analyze the target data file to be analyzed, of which the control state is changed into the analysis identifier, so as to obtain the analysis result.
In one embodiment, before the generating the file to be processed corresponding to the downstream system, the method further includes:
checking abnormal data of the analysis result;
if abnormal data exists in the analysis result, determining the position of the abnormal data, and displaying corresponding prompt information.
In one embodiment, the obtaining, according to the file processing plan, the corresponding target index file from the upstream system includes:
determining an index file to be acquired from the upstream system according to the file processing plan;
determining a service range of the upstream system, and verifying the index file to be acquired according to the service range;
and after the verification is passed, acquiring the index file to be acquired as a target index file.
In a second aspect, the present application further provides a control apparatus for file processing. The device comprises:
the first acquisition module is used for acquiring a file processing plan;
the second acquisition module is used for acquiring a corresponding target index file from an upstream system according to the file processing plan;
a determining module, configured to determine a target data file to be processed from an upstream system according to the file processing plan;
the processing module is used for acquiring the target data file from the upstream system and processing the target data file when the index file corresponding to the target data file is successfully acquired;
the processing module is further configured to execute, when the index file corresponding to the target data file is not acquired successfully, the steps through the second acquisition module: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
The control method, the device, the equipment, the storage medium and the program product for file processing are realized by acquiring a file processing plan; acquiring a corresponding target index file from an upstream system according to the file processing plan; determining a target data file to be processed from an upstream system according to the file processing plan; when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file; and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan. According to the method, the target index file is obtained according to the file processing plan, the target data file is determined according to the plan, and when the index file corresponding to the target data file is successfully obtained, the target data file is obtained from the upstream system and is processed; and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: the corresponding index file is obtained from the upstream system according to the file processing plan, and the file processing can be automatically executed when normal processing is impossible or immediate processing is impossible without manual intervention.
Drawings
FIG. 1 is an application environment diagram of a method of controlling file processing in one embodiment;
FIG. 2 is a flow diagram of a method of controlling file processing in one embodiment;
FIG. 3 is a flowchart illustrating a refinement step of processing the target data file in one embodiment;
FIG. 4 is a flow chart of a method of controlling file processing in another embodiment;
FIG. 5 is a block diagram of a control device for file processing in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The control method for file processing provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The upstream system 100, the server 200 and the downstream system 300 are relative concepts, that is, the upstream system 100 is a system with a triggering financial service, the downstream system 300 is a system for processing the financial service, and in practical use, two financial institutions may be the upstream system and the downstream system. Illustratively, the upstream system 100 may be a financial institution for triggering financial transactions, which may include, but are not limited to, registering a financial account number, purchasing an investment financial product, or the like. After the financial service is triggered, the financial institution sends the data file corresponding to the service to the server 200, and the server 200 processes the data file sent by the upstream system 100 and sends the data file to the downstream system 300, so that the downstream system 300 processes the received content, for example, registers the data file according to the registration account number, or purchases a financial product. The upstream system 100, the server 200, and the downstream system 300 may be, but are not limited to, various personal computers, notebook computers, smart phones, tablet computers, servers, and the like. The upstream system 100, the server 200, and the downstream system 300 may be implemented by separate personal computers, notebook computers, smartphones, tablet computers, and servers, or a cluster of multiple personal computers (notebook computers, smartphones, tablet computers, or servers). Wherein the server 200 may interface with a plurality of upstream systems 100 and a plurality of downstream systems 300, i.e., the server 200 may communicate with a plurality of upstream systems 10 and downstream systems 300, respectively.
In one embodiment, as shown in fig. 2, there is provided a control method of file processing, including the steps of:
step 210, a file handling plan is obtained.
The embodiment is described by taking the application of the method to the server in fig. 1 as an example, where the file processing plan is configured manually, specifically, according to each service, each upstream system may trigger multiple types of services. Each business type is provided with a corresponding file processing plan, the file processing plan comprises an index file and an identification of a data file, and the index file at least comprises the correspondence between the identification of the data file and the position of the data file. It should be noted that, if there are multiple services available in the upstream system, multiple file processing plans are stored in the server.
And 220, acquiring a corresponding target index file from an upstream system according to the file processing plan.
During the service processing process, the user can trigger a specific service, such as a registered account number, through an upstream system. After triggering the service, the upstream system in the application generates corresponding service data in the form of a file. Specifically, the upstream system can generate corresponding index files and data files, and the index files and the data files are generated in the service generation process, so that verification of the data files according to the index files is facilitated, whether the files produced by the service are complete or not is determined, and management is facilitated.
After obtaining the file processing plan, the server periodically polls the upstream system to obtain a corresponding target index file from the upstream system according to the file processing plan.
At step 230, a target data file to be processed is determined from the upstream system according to the file processing plan.
The server periodically polls the upstream system to determine the target data file to be processed from the upstream system according to the file processing plan.
It should be noted that, the steps of determining the target data file to be processed and obtaining the target index file are not sequential.
And step 240, when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file.
Specifically, after determining a target data file, if the target index file corresponding to the target data file is successfully acquired, the target data file is acquired from the upstream system. Then, processing the target data file, wherein the processing the target data file comprises the following steps: and forwarding the target data file to a downstream system so that the downstream system can execute corresponding business processing according to the target data file.
Further, in some embodiments, in order to ensure that the corresponding service can be processed normally, since the target index file corresponds to the service, whether the target data file is complete or not may also be determined according to the target index file, and the corresponding service can be implemented after the target data file is complete.
And when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
Specifically, after determining the target data file, if the target index file corresponding to the target data file is not successfully obtained, it is indicated that the service cannot be executed, and at this time, the process returns to step 220 to execute the above steps again. Therefore, when the problems of incomplete data files and the like corresponding to a certain service are encountered, the service cannot be processed normally or immediately, and the corresponding target index file and the target data file can be automatically acquired again until the service is executed.
The control method, the device, the equipment, the storage medium and the program product for file processing are realized by acquiring a file processing plan; acquiring a corresponding target index file from an upstream system according to the file processing plan; determining a target data file to be processed from an upstream system according to the file processing plan; when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file; and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan. According to the method, the target index file is obtained according to the file processing plan, the target data file is determined according to the plan, and when the index file corresponding to the target data file is successfully obtained, the target data file is obtained from the upstream system and is processed; and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: the corresponding index file is obtained from the upstream system according to the file processing plan, and the file processing can be automatically executed when normal processing is impossible or immediate processing is impossible without manual intervention.
In one embodiment, the file processing plan may further include a task execution time that specifies performing the above steps according to the file plan for a fixed period of time.
In one embodiment, as shown in fig. 3, processing the target data file includes:
step 241, analyzing the target data file to obtain an analysis result, and determining a downstream system corresponding to the target data file;
and step 242, generating a file to be processed corresponding to the downstream system according to the analysis result, and sending the file to be processed to the downstream system.
Specifically, the server analyzes the obtained additional target data file to obtain an analysis result, wherein the analysis result at least comprises key information of service processing. The downstream system corresponding to the target data file is determined, specifically, the target data file is obtained according to a file processing plan, the file processing plan is manually set according to a service, and the service is executed by different upstream systems and downstream systems, so that the downstream system corresponding to the target data file can be determined according to the target data file. And generating a file to be processed corresponding to a downstream system according to the analysis result, and finally sending the file to be processed to the downstream system, wherein the downstream system can perform service processing according to the file to be processed after receiving the file to be processed.
In one embodiment, parsing the target data file to obtain a parsing result includes:
determining the type of the target data file;
and calling a corresponding analysis program according to the type to analyze the target data file, and obtaining the analysis result.
Specifically, the types of the target data files generated by different systems executing different services also differ, that is, the types of the target data files are various. Therefore, in the process of analysis, the type of the target data file is determined, and then a corresponding analysis program is called according to the type of the target data file to analyze the target data file, so that an analysis result is obtained.
The file processing method defines the dependency relationships among different file types, different file processing, mechanisms to which different files belong and the like, ensures that the subsequent file processing is suspended under the condition that the previous file processing is not completed, prevents wrong files from being pushed out, and is convenient for monitoring the file processing.
In one embodiment, the parsing the target data file according to the type call corresponding parsing program to obtain the parsing result includes:
when a plurality of target data files of the same type exist, controlling the corresponding examples of each target data file to preempt the analysis program;
and changing the control state of the preempting analysis program into an analysis identifier, and calling a corresponding analysis program to analyze the target data file to be analyzed, of which the control state is changed into the analysis identifier, so as to obtain the analysis result.
Specifically, in practical application, there are multiple target data files of the same type, only one analysis program exists, in order to avoid errors caused by parallel processing in the analysis process, in this embodiment, each target data file to be analyzed is instantiated, then each instantiated target data file can preempt the analysis program, the control state of an instance where the preempt analysis program is successful is changed into an analysis identifier, and finally, the corresponding analysis program is invoked for analyzing the target data file to be analyzed whose control state is changed into the analysis identifier, so as to obtain the analysis result. After the analysis is completed, the control state of the instance is changed to the analysis completion, other instances continue to preempt the analysis program, and so on.
Furthermore, in the analysis process, the target data file can be pre-checked, and after the pre-check is passed, the target data file is analyzed.
Exemplary, 01 file parser:
the pre-verification method comprises the following steps: judging whether the current date is a working day or not, and not executing the non-working day;
the analysis method comprises the following steps: obtaining a 01 file to be analyzed according to the file name and the file path, and converting the file into a binary stream in a GBK coding mode; converting each row into entity class from the appointed row of the file and storing the entity class into a 01 service table; and inquiring the platform financial transaction account number according to the legal person number and the investment financial transaction account number, and adding the platform financial transaction account number if the corresponding platform financial transaction account number does not exist.
File parsing program:
the pre-verification method comprises the following steps: judging whether the 01 file of the current workday collaboration is successful in warehousing;
the analysis method comprises the following steps: acquiring a file to be analyzed 03 according to the file name and the file path, and converting the file into a binary stream in a GBK coding mode; and starting from the appointed row of the file, converting each row into an entity class, generating a platform application form number and storing the platform application form number into a 03 service table.
05 file parsing program:
the pre-verification method comprises the following steps: 02 files are put in storage
The analysis method comprises the following steps: acquiring a file to be analyzed 05 according to the file name and the file path, and converting the file into a binary stream in a GBK coding mode; and converting each row into an entity class from the designated row of the file and storing the entity class into the 05 service table.
06 file parsing program:
the pre-verification method comprises the following steps: 06 document warehouse-in
The analysis method comprises the following steps: acquiring a 06 file to be analyzed according to the file name and the file path, and converting the file into a binary stream in a GBK coding mode; and converting each row into an entity class from the designated row of the file and storing the entity class into the 06 business table.
In one embodiment, before the generating the file to be processed corresponding to the downstream system, the method further includes:
checking abnormal data of the analysis result;
if abnormal data exists in the analysis result, determining the position of the abnormal data, and displaying corresponding prompt information.
Specifically, in this embodiment, in order to quickly locate a cause of not executing or not executing a service immediately, after an analysis result is obtained, the application checks abnormal data on the analysis result, determines a location where the abnormal data is located if the abnormal data exists in the analysis result, and displays corresponding prompt information, so as to facilitate any technology to repair according to the location of the abnormal data.
In one embodiment, the obtaining, according to the file processing plan, the corresponding target index file from the upstream system includes:
determining an index file to be acquired from the upstream system according to the file processing plan;
determining a service range of the upstream system, and verifying the index file to be acquired according to the service range;
and after the verification is passed, acquiring the index file to be acquired as a target index file.
Specifically, in the process of obtaining the target index file, firstly determining the index file to be obtained from an upstream system according to a file processing plan, determining a service range of the upstream system, then verifying the index file to be obtained according to the service range, and obtaining the index file to be obtained as the target index file after verification is passed.
In one embodiment, as shown in fig. 4, a server obtains a file processing plan, determines a file to be downloaded according to the file processing plan, downloads the file to be downloaded including an index file and a data file in a corresponding mode, and the downloading mode corresponds to an upstream system, downloads the index file firstly, stores the index file locally after the downloading is completed, and then checks the index file, and particularly checks whether the index file is correct according to a service range configured by the mechanism, and if the index file is correct, the downloading is successful in updating the downloading state; otherwise, updating the download state to be unsuccessful.
And determining the target data file to be downloaded, determining whether the target index file corresponding to the target data file is successfully downloaded, if so, downloading the target data file to the local area, analyzing the target data file, otherwise, re-polling the file processing plan to obtain the target index file and the target data file.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a control device for file processing for realizing the control method of the file processing. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the control device for file processing provided below may refer to the limitation of the control method for file processing hereinabove, and will not be described herein.
In one embodiment, as shown in fig. 5, there is provided a control device for file processing, including:
a first obtaining module 510, configured to obtain a file processing plan;
a second obtaining module 520, configured to obtain a corresponding target index file from an upstream system according to the file processing plan;
a determining module 530 for determining a target data file to be processed from an upstream system according to the file processing plan;
a processing module 540, configured to acquire the target data file from the upstream system and process the target data file when the acquisition of the index file corresponding to the target data file is successful;
the processing module 540 is further configured to execute, when the index file corresponding to the target data file is not acquired successfully, the steps by the second acquisition module: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In one embodiment, the processing module 540 is further configured to:
analyzing the target data file to obtain an analysis result, and determining a downstream system corresponding to the target data file;
and generating a file to be processed corresponding to the downstream system according to the analysis result, and sending the file to be processed to the downstream system.
In one embodiment, the processing module 540 is further configured to:
determining the type of the target data file;
and calling a corresponding analysis program according to the type to analyze the target data file, and obtaining the analysis result.
In one embodiment, the processing module 540 is further configured to:
when a plurality of target data files of the same type exist, controlling the corresponding examples of each target data file to preempt the analysis program;
and changing the control state of the preempting analysis program into an analysis identifier, and calling a corresponding analysis program to analyze the target data file to be analyzed, of which the control state is changed into the analysis identifier, so as to obtain the analysis result.
In one embodiment, the apparatus further comprises:
an inspection module (not shown) for inspecting the analysis result for abnormal data;
and the prompt module (not shown) is used for determining the position of the abnormal data and displaying corresponding prompt information if the abnormal data exists in the analysis result.
In one embodiment, the second obtaining module 520 is configured to:
determining an index file to be acquired from the upstream system according to the file processing plan;
determining a service range of the upstream system, and verifying the index file to be acquired according to the service range;
and after the verification is passed, acquiring the index file to be acquired as a target index file.
The respective modules in the control device for file processing described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be the server described in the above embodiment, and the internal structure diagram thereof may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as a file processing plan, a target index file, a target data file and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of controlling file processing.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In one embodiment, the processor when executing the computer program further performs the steps of:
analyzing the target data file to obtain an analysis result, and determining a downstream system corresponding to the target data file;
and generating a file to be processed corresponding to the downstream system according to the analysis result, and sending the file to be processed to the downstream system.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining the type of the target data file;
and calling a corresponding analysis program according to the type to analyze the target data file, and obtaining the analysis result.
In one embodiment, the processor when executing the computer program further performs the steps of:
when a plurality of target data files of the same type exist, controlling the corresponding examples of each target data file to preempt the analysis program;
and changing the control state of the preempting analysis program into an analysis identifier, and calling a corresponding analysis program to analyze the target data file to be analyzed, of which the control state is changed into the analysis identifier, so as to obtain the analysis result.
In one embodiment, the processor when executing the computer program further performs the steps of:
checking abnormal data of the analysis result;
if abnormal data exists in the analysis result, determining the position of the abnormal data, and displaying corresponding prompt information.
In one embodiment, the processor when executing the computer program further performs the steps of:
determining an index file to be acquired from the upstream system according to the file processing plan;
determining a service range of the upstream system, and verifying the index file to be acquired according to the service range;
and after the verification is passed, acquiring the index file to be acquired as a target index file.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the target data file to obtain an analysis result, and determining a downstream system corresponding to the target data file;
and generating a file to be processed corresponding to the downstream system according to the analysis result, and sending the file to be processed to the downstream system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the type of the target data file;
and calling a corresponding analysis program according to the type to analyze the target data file, and obtaining the analysis result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when a plurality of target data files of the same type exist, controlling the corresponding examples of each target data file to preempt the analysis program;
and changing the control state of the preempting analysis program into an analysis identifier, and calling a corresponding analysis program to analyze the target data file to be analyzed, of which the control state is changed into the analysis identifier, so as to obtain the analysis result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
checking abnormal data of the analysis result;
if abnormal data exists in the analysis result, determining the position of the abnormal data, and displaying corresponding prompt information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining an index file to be acquired from the upstream system according to the file processing plan;
determining a service range of the upstream system, and verifying the index file to be acquired according to the service range;
and after the verification is passed, acquiring the index file to be acquired as a target index file.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
In one embodiment, the computer program when executed by the processor further performs the steps of:
analyzing the target data file to obtain an analysis result, and determining a downstream system corresponding to the target data file;
and generating a file to be processed corresponding to the downstream system according to the analysis result, and sending the file to be processed to the downstream system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining the type of the target data file;
and calling a corresponding analysis program according to the type to analyze the target data file, and obtaining the analysis result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when a plurality of target data files of the same type exist, controlling the corresponding examples of each target data file to preempt the analysis program;
and changing the control state of the preempting analysis program into an analysis identifier, and calling a corresponding analysis program to analyze the target data file to be analyzed, of which the control state is changed into the analysis identifier, so as to obtain the analysis result.
In one embodiment, the computer program when executed by the processor further performs the steps of:
checking abnormal data of the analysis result;
if abnormal data exists in the analysis result, determining the position of the abnormal data, and displaying corresponding prompt information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining an index file to be acquired from the upstream system according to the file processing plan;
determining a service range of the upstream system, and verifying the index file to be acquired according to the service range;
and after the verification is passed, acquiring the index file to be acquired as a target index file.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of controlling document processing, the method comprising:
acquiring a file processing plan;
acquiring a corresponding target index file from an upstream system according to the file processing plan;
determining a target data file to be processed from an upstream system according to the file processing plan;
when the index file corresponding to the target data file is successfully acquired, acquiring the target data file from the upstream system, and processing the target data file;
and when the index file corresponding to the target data file is not successfully acquired, returning to the steps: and acquiring the corresponding index file from the upstream system according to the file processing plan.
2. The method of claim 1, wherein said processing said target data file comprises:
analyzing the target data file to obtain an analysis result, and determining a downstream system corresponding to the target data file;
and generating a file to be processed corresponding to the downstream system according to the analysis result, and sending the file to be processed to the downstream system.
3. The method of claim 2, wherein the parsing the target data file to obtain a parsing result comprises:
determining the type of the target data file;
and calling a corresponding analysis program according to the type to analyze the target data file, and obtaining the analysis result.
4. A method according to claim 3, wherein said parsing the target data file according to the type call corresponding parsing program to obtain the parsing result includes:
when a plurality of target data files of the same type exist, controlling the corresponding examples of each target data file to preempt the analysis program;
and changing the control state of the preempting analysis program into an analysis identifier, and calling a corresponding analysis program to analyze the target data file to be analyzed, of which the control state is changed into the analysis identifier, so as to obtain the analysis result.
5. The method according to claim 2, further comprising, before generating the file to be processed corresponding to the downstream system, the step of:
checking abnormal data of the analysis result;
if abnormal data exists in the analysis result, determining the position of the abnormal data, and displaying corresponding prompt information.
6. The method of claim 1, wherein the obtaining the corresponding target index file from the upstream system according to the file handling plan comprises:
determining an index file to be acquired from the upstream system according to the file processing plan;
determining a service range of the upstream system, and verifying the index file to be acquired according to the service range;
and after the verification is passed, acquiring the index file to be acquired as a target index file.
7. A control device for document processing, the device comprising:
the first acquisition module is used for acquiring a file processing plan;
the second acquisition module is used for acquiring a corresponding target index file from an upstream system according to the file processing plan;
a determining module, configured to determine a target data file to be processed from an upstream system according to the file processing plan;
the processing module is used for acquiring the target data file from the upstream system and processing the target data file when the index file corresponding to the target data file is successfully acquired;
the processing module is further configured to execute, when the index file corresponding to the target data file is not acquired successfully, the steps through the second acquisition module: and acquiring the corresponding index file from the upstream system according to the file processing plan.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310478752.8A 2023-04-28 2023-04-28 File processing control method, apparatus, device, storage medium, and program product Pending CN116541344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310478752.8A CN116541344A (en) 2023-04-28 2023-04-28 File processing control method, apparatus, device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310478752.8A CN116541344A (en) 2023-04-28 2023-04-28 File processing control method, apparatus, device, storage medium, and program product

Publications (1)

Publication Number Publication Date
CN116541344A true CN116541344A (en) 2023-08-04

Family

ID=87442863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310478752.8A Pending CN116541344A (en) 2023-04-28 2023-04-28 File processing control method, apparatus, device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN116541344A (en)

Similar Documents

Publication Publication Date Title
CN109408262B (en) Service data processing method and related equipment
CN111598575B (en) Business process control method, business process control device, electronic equipment and readable storage medium
CN115328759A (en) Form verification method and device
CN111277465A (en) Abnormal data message detection method and device and electronic equipment
CN110928941A (en) Data fragment extraction method and device
CN116541344A (en) File processing control method, apparatus, device, storage medium, and program product
CN107092671B (en) Method and equipment for managing meta information
CN114490415A (en) Service testing method, computer device, storage medium, and computer program product
CN113835780A (en) Event response method and device
CN113902415A (en) Financial data checking method and device, computer equipment and storage medium
CN117591260A (en) Task execution method, device, equipment, storage medium and program product
CN115827478A (en) Code viewing method and device, computer equipment and storage medium
CN116301733A (en) Service transaction logic arrangement method, device, computer equipment and storage medium
CN117708151A (en) Data processing method and device and computer equipment
CN117593125A (en) Service data processing method, device, computer equipment and storage medium
CN114594971A (en) System update verification method and device, computer equipment and storage medium
CN114185591A (en) Code checking method, device, storage medium and computer program product
CN117350689A (en) Message notification method, device, computer equipment and storage medium
CN117130880A (en) Data processing method, apparatus, device, storage medium, and program product
CN115687513A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN116431639A (en) Data optimization method, device, computer equipment and medium based on graphics
CN116561189A (en) Service processing method, device, computer equipment, storage medium and program product
CN116049245A (en) Data call relation query processing method and device
CN114153458A (en) Data processing method and device and electronic equipment
CN117331812A (en) Service code verification method, device, computer equipment, storage medium and product

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