CN115665126A - Batch execution file generation method, device, medium and equipment - Google Patents

Batch execution file generation method, device, medium and equipment Download PDF

Info

Publication number
CN115665126A
CN115665126A CN202211242662.0A CN202211242662A CN115665126A CN 115665126 A CN115665126 A CN 115665126A CN 202211242662 A CN202211242662 A CN 202211242662A CN 115665126 A CN115665126 A CN 115665126A
Authority
CN
China
Prior art keywords
batch
file
execution
target
execution file
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
CN202211242662.0A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211242662.0A priority Critical patent/CN115665126A/en
Publication of CN115665126A publication Critical patent/CN115665126A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a method, a device, a medium and equipment for generating batch execution files, wherein the method comprises the following steps: receiving a batch execution file generation request initiated by a request terminal; analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated; extracting target source data; splicing target source data into batch files; and inserting preset execution codes for each long data in the batch file to obtain a target batch execution file. By means of the method and the device, the target source data are obtained in an oriented mode and then assembled into the batch files, the preset execution codes are inserted into the batch files for all the long data, and the target batch execution files are obtained and uploaded to the server. The whole process is automated by codes, the efficiency is higher, and errors are not easy to occur.

Description

Batch execution file generation method, device, medium and equipment
Technical Field
The present application relates to the field of electronic communications technologies, and in particular, to a method, an apparatus, a medium, and a device for generating a batch executive file.
Background
Taking a bank system as an example, a bank intermediate business platform is connected with a plurality of internal and external associated systems of a bank, a large number of batch file transactions exist among the associated systems, the batch file transactions are of the type such as batch payment, batch deduction of water and electricity charges, batch refund and the like, the business process is complex, at present, manual operation is mainly relied on for processing batch files, errors are easy to occur, and the efficiency is low.
Disclosure of Invention
The method for generating the batch execution files comprises the steps of obtaining target source data in an oriented mode, splicing the obtained target source data into batch files according to a preset splicing rule, inserting preset execution codes into each long data in the batch files to obtain the target batch execution files, achieving automation in the whole process by using the codes, and being high in efficiency and not prone to errors.
An embodiment of the present application provides a method for generating a batch execution file, where the method includes:
receiving a batch execution file generation request initiated by a request terminal;
analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated;
calling a reading function to extract target source data corresponding to the preset identification from the Excel file corresponding to the address information;
splicing the target source data into a batch file according to a preset splicing rule, wherein the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications;
and inserting preset execution codes for each long data in the batch file to obtain a target batch execution file, wherein the execution codes are used for instructing an execution end to execute specified batch operations based on each long data.
In the batch execution file generation method according to the embodiment of the present application, after the target batch execution file is obtained, the method further includes:
uploading the target batch execution files to a file server, and recording storage paths of the target batch execution files in the file server;
and sending the storage path to the execution end.
In the method for generating a batch execution file according to the embodiment of the present application, after the target batch execution file is obtained, the method further includes:
converting all character strings contained in the batch files through an encryption algorithm to obtain a first MD5 code, and binding the first MD5 code with the target batch execution files;
uploading the first MD5 code and the target batch execution file to a file server together, and recording a storage path of the target batch execution file in the file server;
and sending the storage path to the execution end.
In the batch execution file generation method according to the embodiment of the present application, the method further includes:
receiving a batch execution file downloading request initiated by the execution end;
analyzing the batch execution file downloading request to obtain a storage path of the batch execution file to be downloaded;
downloading a target batch execution file and a first MD5 code from the file server according to the storage path;
and loading the execution code in the target batch execution file, and executing the specified batch operation based on each long data to obtain an actual execution result.
In the method for generating a batch execution file according to the embodiment of the present application, before the loading the execution code in the target batch execution file, the method further includes:
converting all character strings contained in the target batch execution file through an encryption algorithm to obtain a second MD5 code;
comparing the first MD5 code with the second MD5 code;
and if the first MD5 code is inconsistent with the second MD5 code, refusing to execute the step of loading the execution code in the target batch execution file.
In the method for generating a batch execution file according to the embodiment of the present application, after the actual execution result is obtained, the method further includes:
comparing the actual execution result with an expected execution result;
if the actual execution result is inconsistent with the expected execution result, generating abnormal prompt information;
and sending the abnormal prompt information to the request terminal.
In the method for generating the batch execution file, the abnormal prompt information comprises abnormal reasons, wherein different abnormal reasons are displayed through a preset identification code.
Correspondingly, another aspect of the embodiments of the present application further provides a batch execution file generating device, where the batch execution file generating device includes:
the receiving module is used for receiving a batch execution file generation request initiated by a request terminal;
the analysis module is used for analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated;
the extraction module is used for calling a reading function to extract target source data corresponding to the preset identification from the Excel file corresponding to the address information;
the assembling module is used for assembling the target source data into a batch file according to a preset assembling rule, and the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications;
and the generation module is used for inserting a preset execution code into each long data in the batch file to obtain a target batch execution file, wherein the execution code is used for instructing an execution end to execute the specified batch operation based on each long data.
Correspondingly, another aspect of the embodiments of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the batch execution file generation method described above.
Correspondingly, another aspect of the embodiment of the present application further provides a terminal device, including a processor and a memory, where the memory stores multiple instructions, and the processor loads the instructions to execute the batch execution file generation method described above.
The embodiment of the application provides a method, a device, a medium and equipment for generating batch execution files, wherein the method comprises the steps of receiving a batch execution file generation request initiated by a request terminal; analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated; calling a reading function to extract target source data corresponding to the preset identification from the Excel file corresponding to the address information; splicing the target source data into a batch file according to a preset splicing rule, wherein the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications; and inserting preset execution codes for each long data in the batch file to obtain a target batch execution file, wherein the execution codes are used for instructing an execution end to execute specified batch operations based on each long data. By using the method for generating the batch execution file provided by the embodiment of the application, the batch file is stored in the Excel file for storage, then the target source data is directionally acquired from the Excel file by using the reading function, the acquired target source data is spliced into the batch file according to the preset splicing rule, the preset execution code is inserted into each long data in the batch file, the target batch execution file is acquired and then uploaded to the server, meanwhile, the notification message is generated and sent to the subordinate system, and the subordinate system is notified to acquire the target batch execution file from the server at regular time according to the given data acquisition path to execute batch processing operation. The whole process is automated by codes, the efficiency is higher, and errors are not easy to occur.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a flowchart illustrating a batch execution file generation method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a batch execution file generating device according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of the batch execution file generation apparatus according to the embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
It should be noted that the present solution is mainly applicable to application scenarios of batch file processing, and the following contents are a simple introduction made to the background of the present solution:
the scheme mainly aims at solving the technical problem of 'how to improve the processing efficiency of batch files and replace the traditional manual processing mode, so that the labor cost and the error rate are reduced'. It can be understood that, taking a bank system as an example, a bank middle service platform is connected with a plurality of associated systems inside and outside a bank, a large number of batch file transactions exist among the associated systems, the batch file transactions are of types such as batch commission wages, batch deduction of water and electricity charges, batch refunds and the like, the service flow is complex, at present, manual operation is mainly relied on for processing batch files, errors are easy to occur, and the efficiency is low.
In order to solve the foregoing technical problem, an embodiment of the present application provides a method for generating batch execution files. By using the method for generating the batch execution file provided by the embodiment of the application, the batch file is stored in the Excel file for storage, then the target source data is directionally acquired from the Excel file by using the reading function, the acquired target source data is spliced into the batch file according to the preset splicing rule, the preset execution code is inserted into each long data in the batch file, the target batch execution file is acquired and then uploaded to the server, meanwhile, the notification message is generated and sent to the subordinate system, and the subordinate system is notified to acquire the target file (batch execution file) from the server at regular time according to the given data acquisition path to execute the batch processing operation. The whole process is automated by codes, the efficiency is higher, and errors are not easy to occur.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a batch execution file generation method according to an embodiment of the present disclosure. The batch execution file generation method is applied to terminal equipment. Optionally, the terminal device is a terminal or a server. Optionally, the server is an independent physical server, or a server cluster or distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, cloud database, cloud computing, cloud function, cloud storage, web service, cloud communication, middleware service, domain name service, security service, CDN (Content Delivery Network), big data and artificial intelligence platform. Optionally, the terminal is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, and the like, but is not limited thereto.
In an embodiment, the present solution is explained by taking a bank as an example for batch deduction, and the method may include the following steps:
step 101, receiving a batch execution file generation request initiated by a request end.
The request end refers to a requester who requests to perform a batch withholding service, and taking the highway ETC system as an example, the highway ETC system may automatically (for example, set a trigger condition, "execute automatically every morning at 9 am).
And 102, analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated.
The target source data refers to data used for constructing the batch execution file, such as data of a deduction account number, a user name, a deduction amount and the like. The address information refers to a storage path where the target source data is stored, and in the scheme, the Excel file is used for storing the source data, so that the data sorting and the data extraction by an associated system are facilitated. The preset identification refers to an identification for identifying an identity thereof from a large amount of source data, such as an ID number "xxx".
Step 103, calling a reading function to extract target source data corresponding to the preset identifier from the Excel file corresponding to the address information.
The reading function adopts excelDataService.getDataFromExcel, and target source data corresponding to a preset identifier is extracted from an Excel file corresponding to the address information according to the address information and the preset identifier obtained by analysis in the batch execution file generation request.
And 104, splicing the target source data into a batch file according to a preset splicing rule, wherein the batch file comprises a plurality of pieces of long data which are composed of the target source data and respectively belong to different preset identifications.
The assembly rule is used for guiding the terminal device how to automatically assemble the target source data into a batch file, and the batch file specifically comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications, such as a long data 'user name, deduction account number, deduction amount, and deduction item'.
And 105, inserting a preset execution code into each long data in the batch file to obtain a target batch execution file, wherein the execution code is used for instructing an execution end to execute a specified batch operation based on each long data.
The execution end receives a target batch execution file generated by the terminal device and executes specified batch operations, such as batch deduction operations, according to the target batch execution file. In order to enable the execution end to automatically perform the designated batch operation after receiving the target batch execution file, the preset execution code is inserted into each long data in the batch file before the target batch execution file is generated, so that the execution end can execute the designated batch operation based on each long data after the execution code in the target batch execution file is loaded, and an actual execution result is obtained.
In some embodiments, after generating the target batch execution file, the terminal device uploads the target batch execution file to the file server for storage, records a storage path of the target batch execution file in the file server, and sends the storage path to the execution end, and the execution end can download the specified target batch execution file from the file server according to the storage path.
In some embodiments, since part of data carried by the batch execution file relates to sensitive information, such as a deduction amount, and once the data is intercepted and tampered by a lawbreaker terminal, serious consequences which are difficult to measure can be caused, in order to prevent the data from being tampered, the scheme obtains a first MD5 code by converting all character strings contained in the batch file through an encryption algorithm, and binds the first MD5 code with a target batch execution file; uploading the first MD5 code and the target batch execution file to a file server together, and recording a storage path of the target batch execution file in the file server; and sending the storage path to an execution end.
When the execution end needs to acquire a target batch execution file, a batch execution file downloading request is initiated to the terminal equipment, the target batch execution file and the first MD5 code are downloaded from the file server through the terminal equipment according to the storage path, after the execution end acquires the target batch execution file and the first MD5 code, all character strings contained in the target batch execution file need to be converted through an encryption algorithm to obtain a second MD5 code, the first MD5 code is compared with the second MD5 code, and if the first MD5 code is inconsistent with the second MD5 code, the step of loading the execution code in the target batch execution file is refused to be executed. And if the first MD5 code is matched with the second MD5 code consistently, executing the specified batch operation based on each long data by loading the execution code in the target batch execution file to obtain an actual execution result. Wherein the actual execution result comprises one of a success of the batch operation result and a failure of the batch operation result.
In some embodiments, since the designated batch operation may not be successful, for example, in a fee deduction scenario, when the balance of the account to be deducted is insufficient, the fee deduction operation cannot be successfully completed. Therefore, the actual execution result needs to be compared with the expected execution result, if the actual execution result is inconsistent with the expected execution result, the exception prompt information is generated, and the exception prompt information is sent to the request end to notify the batch execution result.
In some embodiments, the abnormality prompt information includes abnormality causes, wherein different abnormality causes are displayed by preset identification codes. For example, "insufficient balance" is displayed with "100".
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described in detail herein.
In specific implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the batch execution file generation method provided by the embodiment of the present application generates a request by receiving a batch execution file initiated by a request end; analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated; calling a reading function to extract target source data corresponding to the preset identification from the Excel file corresponding to the address information; splicing the target source data into a batch file according to a preset splicing rule, wherein the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications; and inserting preset execution codes for each long data in the batch file to obtain a target batch execution file, wherein the execution codes are used for instructing an execution end to execute specified batch operations based on each long data. According to the method for generating the batch execution file, the batch file is stored in the Excel file for storage, then the target source data are directionally acquired from the Excel file by using the reading function, the acquired target source data are assembled into the batch file according to the preset assembling rule, the preset execution code is inserted into each long data in the batch file, the target batch execution file is obtained and then uploaded to the server, meanwhile, the notification message is generated and sent to the subordinate system, and the subordinate system is notified to acquire the target batch execution file from the server at regular time according to the given data acquisition path to execute batch processing operation. The whole process is automated by codes, the efficiency is higher, and errors are not easy to occur.
The embodiment of the application further provides a device for generating the batch execution files, and the device for generating the batch execution files can be integrated in the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a batch execution file generation apparatus according to an embodiment of the present disclosure. The batch execution file generating apparatus 30 may include:
a receiving module 31, configured to receive a batch execution file generation request initiated by a request end;
the analysis module 32 is configured to analyze the batch execution file generation request to obtain address information and preset identifiers of various types of target source data in the batch execution file to be generated;
the extracting module 33 is configured to invoke a read function to extract target source data corresponding to the preset identifier from the Excel file corresponding to the address information;
the assembling module 34 is configured to assemble the target source data into a batch file according to a preset assembling rule, where the batch file includes multiple pieces of long data that are composed of the target source data and respectively belong to different preset identifiers;
a generating module 35, configured to insert a preset execution code into each long data in the batch file to obtain a target batch execution file, where the execution code is used to instruct an execution end to execute a specified batch operation based on each long data.
In some embodiments, the apparatus further includes a recording module, configured to upload the target batch execution file to a file server, and record a storage path of the target batch execution file in the file server; and sending the storage path to the execution end.
In some embodiments, the apparatus further includes a processing module, configured to convert all strings included in the batch file by an encryption algorithm to obtain a first MD5 code, and bind the first MD5 code with the target batch execution file; uploading the first MD5 code and the target batch execution file to a file server together, and recording a storage path of the target batch execution file in the file server; and sending the storage path to the execution end.
In some embodiments, the apparatus further includes a downloading module, configured to receive a batch execution file downloading request initiated by the execution end; analyzing the batch execution file downloading request to obtain a storage path of the batch execution file to be downloaded; downloading a target batch execution file and a first MD5 code from the file server according to the storage path; and loading the execution codes in the target batch execution file, and executing the specified batch operation based on each long data to obtain an actual execution result.
In some embodiments, the apparatus further includes a verification module, configured to convert all the character strings included in the target batch execution file through an encryption algorithm to obtain a second MD5 code; comparing the first MD5 code with the second MD5 code; and if the first MD5 code is inconsistent with the second MD5 code, refusing to execute the step of loading the execution code in the target batch execution file.
In some embodiments, the apparatus further comprises a comparison module for comparing the actual execution result with an expected execution result; if the actual execution result is inconsistent with the expected execution result, generating abnormal prompt information; and sending the abnormal prompt information to the request terminal.
In some embodiments, the abnormality prompting message includes abnormality causes, wherein different abnormality causes are displayed by preset identification codes.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, in the batch execution file generating apparatus 30 provided in the embodiment of the present application, the receiving module 31 is configured to receive a batch execution file generating request initiated by a request end; the analysis module 32 is configured to analyze the batch execution file generation request to obtain address information and preset identifiers of various types of target source data in the batch execution file to be generated; the extraction module 33 is configured to invoke a read function to extract target source data corresponding to the preset identifier from the Excel file corresponding to the address information; the assembling module 34 is configured to assemble the target source data into a batch file according to a preset assembling rule, where the batch file includes a plurality of pieces of long data that are composed of the target source data and respectively belong to different preset identifiers; the generating module 35 is configured to insert a preset execution code into each long data in the batch file to obtain a target batch execution file, where the execution code is used to instruct an execution end to execute a specified batch operation based on each long data.
Referring to fig. 3, fig. 3 is another schematic structural diagram of the batch execution file generation apparatus according to the embodiment of the present disclosure, in which the batch execution file generation apparatus 30 includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a receiving module 31, a parsing module 32, an extraction module 33, a splicing module 34, and a generation module 35. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
receiving an instruction, wherein the instruction is used for receiving a batch execution file generation request initiated by a request end;
the analysis instruction is used for analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated;
an extracting instruction, configured to invoke a read function to extract target source data corresponding to the preset identifier from the Excel file corresponding to the address information;
the assembling instruction is used for assembling the target source data into a batch file according to a preset assembling rule, and the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications;
and generating an instruction, wherein the instruction is used for inserting a preset execution code into each long data in the batch file to obtain a target batch execution file, and the execution code is used for instructing an execution end to execute a specified batch operation based on each long data.
In some embodiments, the program further includes a recording instruction, configured to upload the target batch execution file to a file server, and record a storage path of the target batch execution file in the file server; and sending the storage path to the execution end.
In some embodiments, the program further includes a processing instruction, configured to convert all character strings included in the batch file by an encryption algorithm to obtain a first MD5 code, and bind the first MD5 code with the target batch execution file; uploading the first MD5 code and the target batch execution file to a file server together, and recording a storage path of the target batch execution file in the file server; and sending the storage path to the execution end.
In some embodiments, the program further includes a download instruction for receiving a batch execution file download request initiated by the execution end; analyzing the batch execution file downloading request to obtain a storage path of the batch execution file to be downloaded; downloading a target batch execution file and a first MD5 code from the file server according to the storage path; and loading the execution code in the target batch execution file, and executing the specified batch operation based on each long data to obtain an actual execution result.
In some embodiments, the program further includes a verification instruction, configured to convert all character strings included in the target batch execution file through an encryption algorithm to obtain a second MD5 code; comparing the first MD5 code with the second MD5 code; and if the first MD5 code is not consistent with the second MD5 code, refusing to execute the step of loading the execution code in the target batch execution file.
In some embodiments, the program further comprises instructions for comparing the actual execution result with an expected execution result; if the actual execution result is inconsistent with the expected execution result, generating abnormal prompt information; and sending the abnormal prompt information to the request end.
In some embodiments, the abnormality prompting message includes abnormality causes, wherein different abnormality causes are displayed by preset identification codes.
The embodiment of the application also provides the terminal equipment. The terminal device can be a server, a smart phone, a computer, a tablet computer and the like.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application, where the terminal device may be used to implement the batch execution file generation method provided in the foregoing embodiment. The terminal device 1200 may be a television, a smart phone, or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include components such as an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one shown) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one shown) processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal device 1200 configuration shown in fig. 4 does not constitute a limitation of terminal device 1200, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be configured to store a software program and a module, such as a program instruction/module corresponding to the batch execution file generation method in the foregoing embodiment, and the processor 180 executes various functional applications and data processing by operating the software program and the module stored in the memory 120, and may automatically select a vibration alert mode according to a current scene where the terminal device is located to generate a batch execution file, which may not only ensure that a scene such as a conference is not disturbed, but also ensure that a user may sense an incoming call, and thus, intelligence of the terminal device is improved. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch-sensitive display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using any suitable object or attachment such as a finger, a stylus, etc.) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects a touch direction of a user, detects a signal brought by touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to touch-sensitive surface 131, input unit 130 may include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal apparatus 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch sensitive surface 131 may overlay display panel 141, and when touch sensitive surface 131 detects a touch operation on or near touch sensitive surface 131, it may be transmitted to processor 180 to determine the type of touch event, and then processor 180 may provide a corresponding visual output on display panel 141 according to the type of touch event. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal apparatus 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of identifying the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the terminal device 1200, further description is omitted here.
The audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and the terminal device 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 1200.
The terminal device 1200, through the transmission module 170 (e.g., wi-Fi module), may assist the user in e-mail, web browsing, streaming media access, etc., which provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal device 1200 also includes a power supply 190 for providing power to various components, which in some embodiments may be logically coupled to processor 180 via a power management system, such that functions such as managing power discharge and power consumption may be performed via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs are configured to be executed by the one or more processors 180, and include instructions for:
receiving an instruction, wherein the instruction is used for receiving a batch execution file generation request initiated by a request end;
the analysis instruction is used for analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated;
an extracting instruction, configured to invoke a read function to extract target source data corresponding to the preset identifier from the Excel file corresponding to the address information;
the assembling instruction is used for assembling the target source data into a batch file according to a preset assembling rule, and the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications;
and generating an instruction, wherein the instruction is used for inserting a preset execution code into each long data in the batch file to obtain a target batch execution file, and the execution code is used for instructing an execution end to execute a specified batch operation based on each long data.
In some embodiments, the program further includes a recording instruction, configured to upload the target batch execution file to a file server, and record a storage path of the target batch execution file in the file server; and sending the storage path to the execution end.
In some embodiments, the program further includes a processing instruction, configured to convert all character strings included in the batch file by an encryption algorithm to obtain a first MD5 code, and bind the first MD5 code with the target batch execution file; uploading the first MD5 code and the target batch execution file to a file server together, and recording a storage path of the target batch execution file in the file server; and sending the storage path to the execution end.
In some embodiments, the program further includes a download instruction for receiving a batch execution file download request initiated by the execution end; analyzing the batch execution file downloading request to obtain a storage path of the batch execution file to be downloaded; downloading a target batch execution file and a first MD5 code from the file server according to the storage path; and loading the execution codes in the target batch execution file, and executing the specified batch operation based on each long data to obtain an actual execution result.
In some embodiments, the program further includes a verification instruction, configured to convert all the character strings included in the target batch execution file through an encryption algorithm to obtain a second MD5 code; comparing the first MD5 code with the second MD5 code; and if the first MD5 code is not consistent with the second MD5 code, refusing to execute the step of loading the execution code in the target batch execution file.
In some embodiments, the program further comprises instructions for comparing the actual execution result to an expected execution result; if the actual execution result is inconsistent with the expected execution result, generating abnormal prompt information; and sending the abnormal prompt information to the request terminal.
In some embodiments, the abnormality prompting message includes abnormality causes, wherein different abnormality causes are displayed by preset identification codes.
The embodiment of the application also provides the terminal equipment. The terminal equipment can be equipment such as a smart phone and a computer.
As can be seen from the above, an embodiment of the present application provides a terminal device 1200, where the terminal device 1200 executes the following steps:
receiving a batch execution file generation request initiated by a request terminal;
analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated;
calling a reading function to extract target source data corresponding to the preset identification from the Excel file corresponding to the address information;
splicing the target source data into a batch file according to a preset splicing rule, wherein the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications;
and inserting preset execution codes for each long data in the batch file to obtain a target batch execution file, wherein the execution codes are used for instructing an execution end to execute specified batch operations based on each long data.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the batch execution file generation method according to any one of the embodiments.
It should be noted that, for the batch execution file generation method described in this application, a person skilled in the art may understand that all or part of the processes for implementing the batch execution file generation method described in this application may be completed by controlling related hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and the processes of the embodiments of the batch execution file generation method may be included in the execution process. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the batch execution file generation apparatus in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The method, the apparatus, the medium, and the device for generating batch execution files provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A batch execution file generation method is characterized by comprising the following steps:
receiving a batch execution file generation request initiated by a request terminal;
analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated;
calling a reading function to extract target source data corresponding to the preset identification from the Excel file corresponding to the address information;
splicing the target source data into a batch file according to a preset splicing rule, wherein the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications;
and inserting preset execution codes for each long data in the batch file to obtain a target batch execution file, wherein the execution codes are used for instructing an execution end to execute specified batch operations based on each long data.
2. The batch execution file generation method of claim 1, wherein after the obtaining the target batch execution file, the method further comprises:
uploading the target batch execution files to a file server, and recording storage paths of the target batch execution files in the file server;
and sending the storage path to the execution end.
3. The batch execution file generation method of claim 1, wherein after the obtaining of the target batch execution file, the method further comprises:
converting all character strings contained in the batch files through an encryption algorithm to obtain first MD5 codes, and binding the first MD5 codes with the target batch execution files;
uploading the first MD5 code and the target batch execution file to a file server together, and recording a storage path of the target batch execution file in the file server;
and sending the storage path to the execution end.
4. The batch execution file generation method of claim 3, wherein the method further comprises:
receiving a batch execution file downloading request initiated by the execution end;
analyzing the batch execution file downloading request to obtain a storage path of the batch execution file to be downloaded;
downloading a target batch execution file and a first MD5 code from the file server according to the storage path;
and loading the execution codes in the target batch execution file, and executing the specified batch operation based on each long data to obtain an actual execution result.
5. The bulk execution file generation method of claim 4, wherein prior to the loading of the execution code in the target bulk execution file, the method further comprises:
converting all character strings contained in the target batch execution file through an encryption algorithm to obtain a second MD5 code;
comparing the first MD5 code with the second MD5 code;
and if the first MD5 code is inconsistent with the second MD5 code, refusing to execute the step of loading the execution code in the target batch execution file.
6. The batch execution file generation method of claim 5, wherein after the obtaining of the actual execution result, the method further comprises:
comparing the actual execution result with an expected execution result;
if the actual execution result is inconsistent with the expected execution result, generating abnormal prompt information;
and sending the abnormal prompt information to the request end.
7. The batch execution file generation method as claimed in claim 6, wherein the exception prompting message includes exception causes, and different exception causes are displayed through a preset identification code.
8. A batch execution file generation apparatus, comprising:
the receiving module is used for receiving a batch execution file generation request initiated by a request terminal;
the analysis module is used for analyzing the batch execution file generation request to obtain address information and preset identifications of various types of target source data in the batch execution file to be generated;
the extraction module is used for calling a reading function to extract target source data corresponding to the preset identifier from the Excel file corresponding to the address information;
the assembling module is used for assembling the target source data into a batch file according to a preset assembling rule, and the batch file comprises a plurality of pieces of long data which are formed by the target source data and respectively belong to different preset identifications;
and the generation module is used for inserting preset execution codes into each long data in the batch file to obtain a target batch execution file, wherein the execution codes are used for indicating an execution end to execute the specified batch operation based on each long data.
9. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the batch execution file generation method of any one of claims 1 to 7.
10. A terminal device, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the batch execution file generation method according to any one of claims 1 to 7.
CN202211242662.0A 2022-10-11 2022-10-11 Batch execution file generation method, device, medium and equipment Pending CN115665126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211242662.0A CN115665126A (en) 2022-10-11 2022-10-11 Batch execution file generation method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211242662.0A CN115665126A (en) 2022-10-11 2022-10-11 Batch execution file generation method, device, medium and equipment

Publications (1)

Publication Number Publication Date
CN115665126A true CN115665126A (en) 2023-01-31

Family

ID=84987591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211242662.0A Pending CN115665126A (en) 2022-10-11 2022-10-11 Batch execution file generation method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN115665126A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376084A (en) * 2017-12-29 2018-08-07 北京智行鸿远汽车有限公司 Document generating method, device and computer readable storage medium
CN108809960A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 A kind of file uploads and method for down loading, device, equipment, system and storage medium
CN108804140A (en) * 2018-06-15 2018-11-13 中国建设银行股份有限公司 A kind of batch instruction analytic method, device and equipment
CN112882995A (en) * 2021-02-24 2021-06-01 深圳壹账通智能科技有限公司 Script automatic generation method and device, electronic equipment and storage medium
CN113329099A (en) * 2021-06-29 2021-08-31 中国农业银行股份有限公司 Message parsing method, device, medium, equipment and program product
CN114036187A (en) * 2021-11-23 2022-02-11 中广核工程有限公司 File acquisition method and device, computer equipment and storage medium
CN114398028A (en) * 2022-01-13 2022-04-26 平安普惠企业管理有限公司 Task batch processing method and device, computer equipment and storage medium
CN114816578A (en) * 2022-05-11 2022-07-29 上海柯林布瑞信息技术有限公司 Method, device and equipment for generating program configuration file based on configuration table

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376084A (en) * 2017-12-29 2018-08-07 北京智行鸿远汽车有限公司 Document generating method, device and computer readable storage medium
CN108809960A (en) * 2018-05-23 2018-11-13 北京五八信息技术有限公司 A kind of file uploads and method for down loading, device, equipment, system and storage medium
CN108804140A (en) * 2018-06-15 2018-11-13 中国建设银行股份有限公司 A kind of batch instruction analytic method, device and equipment
CN112882995A (en) * 2021-02-24 2021-06-01 深圳壹账通智能科技有限公司 Script automatic generation method and device, electronic equipment and storage medium
CN113329099A (en) * 2021-06-29 2021-08-31 中国农业银行股份有限公司 Message parsing method, device, medium, equipment and program product
CN114036187A (en) * 2021-11-23 2022-02-11 中广核工程有限公司 File acquisition method and device, computer equipment and storage medium
CN114398028A (en) * 2022-01-13 2022-04-26 平安普惠企业管理有限公司 Task batch processing method and device, computer equipment and storage medium
CN114816578A (en) * 2022-05-11 2022-07-29 上海柯林布瑞信息技术有限公司 Method, device and equipment for generating program configuration file based on configuration table

Similar Documents

Publication Publication Date Title
CN108039963B (en) Container configuration method and device and storage medium
CN111478849B (en) Service access method, device and storage medium
CN107992498B (en) Method and system for importing data into data warehouse
CN113034189A (en) Attribution method, attribution device, computer equipment and storage medium
JP2021192214A (en) Method and device for verifying operation states of applications
CN112749074B (en) Test case recommending method and device
CN113726943A (en) Control method and electronic device
CN115589432A (en) Message push management method, device, medium and equipment
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN109145182B (en) Data acquisition method and device, computer equipment and system
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN115665126A (en) Batch execution file generation method, device, medium and equipment
CN114417201A (en) Message processing method and device, computer equipment and storage medium
KR101784057B1 (en) Apparatus and method sharing customizable contents using user information of the mobile terminal
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium
CN108259187B (en) Method and device for monitoring charging network
CN112667868A (en) Data detection method and device
KR101948437B1 (en) Apparatus and method sharing customizable contents using user information of the mobile terminal
CN115509936A (en) Program testing method, device, medium and equipment
CN110069723B (en) Graphic code identification method, device and storage medium
CN116303022A (en) Page jump effect test method, device, medium and equipment
CN115543841A (en) Data update test method, device, medium and equipment
CN115878457A (en) Test data verification method and device, electronic equipment and storage medium
CN116301578A (en) Parameter configuration method, device, medium and equipment for cache function
CN115757446A (en) Personnel wage statistical method, device, medium and equipment

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