CN114201214A - File generation method, file generation device, electronic equipment, medium and program product - Google Patents

File generation method, file generation device, electronic equipment, medium and program product Download PDF

Info

Publication number
CN114201214A
CN114201214A CN202111558095.5A CN202111558095A CN114201214A CN 114201214 A CN114201214 A CN 114201214A CN 202111558095 A CN202111558095 A CN 202111558095A CN 114201214 A CN114201214 A CN 114201214A
Authority
CN
China
Prior art keywords
data
file
submission
transmission
task
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
CN202111558095.5A
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.)
CCB Finetech Co Ltd
Original Assignee
CCB Finetech 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 CCB Finetech Co Ltd filed Critical CCB Finetech Co Ltd
Priority to CN202111558095.5A priority Critical patent/CN114201214A/en
Publication of CN114201214A publication Critical patent/CN114201214A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Abstract

The present disclosure provides a configurable file generation method, apparatus, electronic device, medium, and computer program product. The method and the device can be used in the technical field of big data. The configurable file generation method comprises the following steps: acquiring m data tables, wherein each data table comprises a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1; generating a corresponding data file according to each data table, wherein the data file at least comprises structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data; editing each data file to obtain a fixed file; creating a delivery file generation task, wherein the delivery file generation task comprises the number m of the fixed files in the delivery file; generating the submission file according to the submission file generation task; and transmitting the submission file to the data receiving system.

Description

File generation method, file generation device, electronic equipment, medium and program product
Technical Field
The present disclosure relates to the field of big data technologies, and in particular, to a configurable file generation method, apparatus, electronic device, medium, and computer program product.
Background
Currently, with the development of business in various fields of banks, data interaction between applications and system components of each system of a large commercial bank is more and more, and the data transaction amount is larger and larger. When a certain component or application needs to provide a large amount of data file services to the outside, the development amount of generated data files of the system is larger, and meanwhile, the repeated development of data further causes the efficiency of processing the data files by the component or application to be low, and finally, the system failure may cause the banking business to be damaged.
Due to the numerous application systems and the complex relationship between the application systems of the large commercial bank, the data transmission requirements between the systems are increasing, and therefore, each system of the general bank can solve the problems by being developed according to the requirements. However, at present, the data interaction requirements are from being put forward to being solved, and the problems of long change period and untimely data response still occur. For example, a system A in a bank wants to perform data interaction with a system B, at least several months are needed from requirement discussion to online of a development test function, a data transmission development mode under the standard process greatly slows down the delivery speed of data requirements among the systems, waste of project personnel is also caused, and after the data interaction requirements are online, if a certain system needs to optimize or modify a data interaction interface, the data interaction interface needs to be changed on the version day, and agile delivery of the data exchange change requirements cannot be achieved.
Disclosure of Invention
In view of the above, the present disclosure provides a configurable file generation method, apparatus, electronic device, computer-readable storage medium, and computer program product with flexible configuration and high transmission efficiency.
One aspect of the present disclosure provides a configurable file generation method, including: acquiring m data tables, wherein each data table comprises a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1; generating a corresponding data file according to each data table, wherein the data file at least comprises structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data; editing each data file to obtain a fixed file; creating a delivery file generation task, wherein the delivery file generation task comprises the number m of the fixed files in the delivery file; generating the submission file according to the submission file generation task; and transmitting the submission file to the data receiving system.
According to the configurable file generation method disclosed by the embodiment of the disclosure, the data development amount in the fixed file can be freely controlled by editing each data file; by creating the submission file generation task, the development amount of the submission file can be freely controlled, so that the development amount of the file can be reduced, the code change during the change of the service requirement is reduced, the dependence of the submission file requirement on an online change point is eliminated, and the problems generated in the online process can be efficiently and quickly processed. The configurable file generation method can provide a solution for data transaction requirements of large data volume, and provide quick and flexible configuration for the submission files so as to establish a quick and efficient data transmission mode and improve the file transmission efficiency.
In some embodiments, the data file further comprises log data comprising log information that generated the structure data and the parameter data.
In some embodiments, the log information comprises: a time at which the structural data is generated; a time at which the parameter data is generated; and the data amount of the parameter data.
In some embodiments, the data file comprises: a ddl format file, the ddl format file including the structure data; a dat-formatted file comprising the parameter data; and an xml format file, the xml format file including the log data.
In some embodiments, the structure data includes field information, the parameter data includes data information, and the editing each of the data files to obtain a fixed file includes: editing at least one of the number, the length and the content of the field information; and editing the data information so that the data information corresponds to each of the field information.
In some embodiments, said editing each of said data files to obtain a fixed file further comprises: editing at least one of a length and a content of the data information.
In some embodiments, the submission file generation task further includes: and generating the starting time of the submission file.
In some embodiments, the submission file generation task further includes: generating a generation mode of the submission file, wherein the generation mode comprises: when the method is executed for the nth time, the number of the fixed files in the submission file is the sum of the fixed files obtained by executing the method for the nth time, or the number of the fixed files in the submission file is the number of the fixed files obtained by executing the method for the nth time.
In some embodiments, prior to generating the submission document from the submission document generation task, the method further includes: and generating a task pre-generated submission file according to the submission file, and displaying the error information when the pre-generated submission file has an error.
In some embodiments, transmitting the submission document to the data receiving system includes: configuring an address of the data receiving system, wherein the configuring the address of the data receiving system comprises adding and modifying the address of the data receiving system; creating a delivery file transmission task, wherein the delivery file transmission task comprises the number of delivery files transmitted each time and the starting time of transmitting the delivery files; and transmitting the submission file to the data receiving system according to the submission file transmission task.
In some embodiments, prior to said transmitting said submission document to said data receiving system in accordance with said submission document transmission task, said transmitting said submission document to said data receiving system further comprises: and pre-transmitting the submission file to the data receiving system according to the submission file transmission task, and displaying error information when the pre-transmission of the submission file fails.
Another aspect of the present disclosure provides a configurable file generation apparatus, including: the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for executing acquisition of m data tables, each data table comprises a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1; the first generation module is used for generating a corresponding data file according to each data table, wherein the data file at least comprises structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data; the editing module is used for editing each data file to obtain a fixed file; the creating module is used for executing a task of creating a delivery file generation, wherein the delivery file generation task comprises the number m of the fixed files in the delivery file; the second generation module is used for executing the generation of the submission file according to the submission file generation task; and the transmission module is used for transmitting the submission file to the data receiving system.
Another aspect of the present disclosure provides an electronic device comprising one or more processors and one or more memories, wherein the memories are configured to store executable instructions that, when executed by the processors, implement the method as described above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program product comprising a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an exemplary system architecture to which the methods, apparatus, and methods may be applied, in accordance with an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a configurable file generation method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow chart for editing each data file resulting in a fixed file according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram for transmitting a submission document to a data receiving system, in accordance with an embodiment of the present disclosure;
FIG. 5 is a block diagram schematically illustrating a configurable file generation apparatus according to an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated. In the technical scheme of the disclosure, the data acquisition, collection, storage, use, processing, transmission, provision, disclosure, application and other processing are all in accordance with the regulations of relevant laws and regulations, necessary security measures are taken, and the public order and good custom are not violated.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features.
Currently, with the development of business in various fields of banks, data interaction between applications and system components of each system of a large commercial bank is more and more, and the data transaction amount is larger and larger. When a certain component or application needs to provide a large amount of data file services to the outside, the development amount of generated data files of the system is larger, and meanwhile, the repeated development of data further causes the efficiency of processing the data files by the component or application to be low, and finally, the system failure may cause the banking business to be damaged.
Due to the numerous application systems and the complex relationship between the application systems of the large commercial bank, the data transmission requirements between the systems are increasing, and therefore, each system of the general bank can solve the problems by being developed according to the requirements. However, at present, the data interaction requirements are from being put forward to being solved, and the problems of long change period and untimely data response still occur. For example, a system A in a bank wants to perform data interaction with a system B, at least several months are needed from requirement discussion to online of a development test function, a data transmission development mode under the standard process greatly slows down the delivery speed of data requirements among the systems, waste of project personnel is also caused, and after the data interaction requirements are online, if a certain system needs to optimize or modify a data interaction interface, the data interaction interface needs to be changed on the version day, and agile delivery of the data exchange change requirements cannot be achieved.
There is a strong need for highly configurable generation of data submission files to solve the problems of long development flow and long optimization modification period from demand of commercial banks in large data volume interaction. In the prior art, a configurable application interface is adopted, application interface services are quickly realized in a visual configuration mode, hard coding work is converted into visual configuration work, JAVA is used for development, a CLASS file is dynamically compiled and generated based on a SOAP protocol by utilizing the reflection characteristic of a language and is changed into a standard service interface, so that the research and development workload and the risk brought by newly increasing and changing enterprise requirements are reduced. Although the configurable application interface can quickly implement application interface services in a visual configuration mode, the configurable application interface cannot bear larger service data volume in the face of the synchronization requirement of large data volume of large commercial banks. Meanwhile, in the case of a complex data processing scene, the method cannot ensure the accuracy of data transmission.
Embodiments of the present disclosure provide a configurable file generation method, apparatus, electronic device, computer-readable storage medium, and computer program product. The configurable file generation method comprises the following steps: acquiring m data tables, wherein each data table comprises a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1; generating a corresponding data file according to each data table, wherein the data file at least comprises structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data; editing each data file to obtain a fixed file; creating a delivery file generation task, wherein the delivery file generation task comprises the number m of fixed files in the delivery file; generating a submission file according to the submission file generation task; and transmitting the submission file to a data receiving system.
It should be noted that the configurable file generation method, apparatus, electronic device, computer-readable storage medium, and computer program product of the present disclosure may be used in the field of big data, and may also be used in any field other than the field of big data, such as the financial field, and the field of the present disclosure is not limited herein.
Fig. 1 schematically illustrates an exemplary system architecture 100 to which the configurable file generation method, apparatus, electronic device, computer-readable storage medium, and computer program product may be applied, according to embodiments of the disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the configurable file generation method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the configurable file generation apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The configurable file generation method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the configurable file generation apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The configurable file generation method according to the embodiment of the present disclosure will be described in detail below with reference to fig. 2 to 4 based on the scenario described in fig. 1.
FIG. 2 schematically shows a flow diagram of a configurable file generation method according to an embodiment of the disclosure.
As shown in fig. 2, the configurable file generation method of this embodiment includes operations S210 to S260.
In operation S210, m data tables are obtained, where each data table includes a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1. It should be noted that, here, obtaining m data tables may be obtaining m data tables from a database, m may be 1, 2, 3, 4, and so on, and the specific value of m is determined as needed. The data table can be a database original table, namely a data table which is directly downloaded from a database and is not processed; the data table may also be a data table for obtaining the selected field and the data information corresponding to the selected field from the database according to the query statement.
Further, the query statement may further include a main query statement and an auxiliary query statement, the selected field and the data information corresponding to the selected field may be acquired through the main query statement, the selected field and the data information corresponding to the selected field may be acquired through the auxiliary query statement, and the data table may be obtained by concatenating the selected field and the data information corresponding to the selected field acquired through the main query statement, the selected field and the data information corresponding to the selected field acquired through the auxiliary query statement.
For example, the form of the data table may be as shown in table 1, where table 1 is only an example and is not to be construed as a limitation of the present disclosure, and the form of the data table may be any form that can describe the transmission field and the transmission data corresponding to the transmission field.
TABLE 1
Name (I) Certificate number Type of client Total amount of assets Total amount of money paid
Zhang San 987654321 Personal 50 ten thousand 60 ten thousand
Company A 123456789 Enterprise 5000 ten thousand 4200 ten thousand
Taking table 1 as an example, table 1 is a data table, and the transmission fields are name, certificate number, customer type, total amount of assets and total amount of expenses. The transmission data corresponding to the transmission field name is Zhang III and company A; the transmission data corresponding to the transmission field certificate number are 987654321 and 123456789; the transmission data corresponding to the transmission field client type is personal and enterprise; the transmission data corresponding to the total amount of assets in the transmission field is 50 ten thousand and 5000 ten thousand; the transfer data corresponding to the total amount of money paid out by the transfer field is 60 ten thousand and 4200 ten thousand.
In operation S220, a corresponding data file is generated according to each data table, where the data file at least includes structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data. It will be appreciated that each data table may generate a data file corresponding thereto, and the data file may include structural data, and continuing with table 1 as an example, the generated structural data includes a name, a certificate number, a customer type, a total amount of assets, and a total amount of expenses; the data file may also include parametric data, and continuing with the example of Table 1, the generated parametric data includes Zhang three and A, 987654321 and 123456789, individuals and businesses, 50 and 5000, and 60 and 4200, respectively.
In some examples, the data file may also include log data that includes log information that generates the structure data and the parameter data. Further, the log information may include: time of generation of the structural data; a time at which the parameter data is generated; and the data amount of the parameter data. Here, the data amount of the parameter data may be understood as a word number or a byte number of the parameter data, but is not limited thereto. For example, as shown in table 1, the data amount of the generated parameter data "zhang san" may be word number 2, the data amount of the parameter data "987654321" may be word number 9, and the data amount of the parameter data "business" may be word number 2, and the parameter data generated in table 1 is not listed.
The basic information for generating the structural data and the parameter data can be obtained through the log data, so that the working personnel can conveniently master the condition for generating the structural data and the parameter data, for example, the working personnel can conveniently know the generation time of the structural data, the working personnel can conveniently know the generation time of the parameter data, the working personnel can conveniently know the data volume of the parameter data, and the working personnel can improve programs according to requirements.
As an implementable manner, the data file may include: ddl format files, dat format files and xml format files, wherein the ddl format files comprise structural data; the dat format file comprises parameter data; the xml format file includes log data. In other words, the structure data may be a ddl format file, and of course, the structure data may also be a data file as a carrier; the parameter data may be a dat format file, and of course, the parameter data may also be data using the data file as a carrier; the log data may be an xml format file, and of course, the log data may also be data using a data file as a carrier. The existence form of the data file is enriched through the ddl format file, the dat format file and the xml format file. Further, it will be mentioned hereinafter that each data file needs to be edited, and the ddl format file, the dat format file, and the xml format file facilitate the editing.
In operation S230, each data file is edited, resulting in a fixed file. In some specific examples, the structure data may include field information and the parameter data may include data information. Accordingly, as shown in fig. 3, the operation S230 of editing each data file to obtain a fixed file includes operations S231 to S232.
At least one of the number, length, and content of the field information is edited in operation S231. Continuing to take the information sample in table 1 as an example, the field information can be understood as name, certificate number, customer type, total amount of assets and total amount of expenses; it is to be understood that at least one of the number, length, and content of the edited field information may be one of the number, length, and content of the field information, two of the number, length, and content of the field information, and the number, length, and content of the field information.
For example, assuming that the number of field information of a fixed file is required to be 4, the existing 5 field information is modified to be 4, and unimportant field information "client type" is deleted; assuming that the length of the field information of the fixed file is required to be within 4 words, the field information "total amount of assets" may be modified to "amount of assets", and the field information "total amount of expenditure" may be modified to "amount of expenditure". Content modifications to the field information may, for example, modify "name" to "customer name". The editing of the number, length and content of the field information is only an example and is not to be construed as a limitation to the present disclosure, and the number, length and content of the edited field information of the present disclosure may be any modification to the number, length and content of the field information.
In operation S232, the data information is edited such that the data information corresponds to each field information. Continuing with the information sample in Table 1, the data information can be understood as Zhang III and company A, 987654321 and 123456789, individuals and businesses, 50 million and 5000 million, and 60 million and 4200 million, among others. It is understood that, due to the modification of the field information, for example, assuming that the field information "client type" is deleted, the data information "enterprise" corresponding to the client type needs to be deleted, so as to correspond the data information to the field information.
Thus, editing of each data file can be realized by operations S231 to S232, resulting in a fixed file.
Further, referring to fig. 3, the editing each data file in operation S230 to obtain a fixed file further includes operation S233.
At least one of the length and the content of the data information is edited in operation S233. Wherein, the editing of the length of the data information can be understood as editing the number of words of the data information within a limited range, and the editing of the content of the data information can be understood as modifying the content of the data information. For example, assuming that the length requirement of the data information corresponding to the certificate number of the fixed file is the last 4 digits, the "987654321" may be modified to be "4321" and the "123456789" may be modified to be "6789". The data information may be made more compliant with specifications and requirements by operation S233.
In operation S240, a delivery file generation task is created, wherein the delivery file generation task includes the number m of fixed files in the delivery file. That is, when creating the delivery file generation task, it is set to transmit m fixed files, where m may be any number of files greater than or equal to 1.
In operation S250, a delivery file is generated according to the delivery file generation task. Namely, generating a file meeting the requirement of the submission file generation task, namely, the submission file.
In operation S260, the posting file is transmitted to the data receiving system.
According to the configurable file generation method disclosed by the embodiment of the disclosure, the data development amount in the fixed file can be freely controlled by editing each data file; by creating the submission file generation task, the development amount of the submission file can be freely controlled, so that the development amount of the file can be reduced, the code change during the change of the service requirement is reduced, the dependence of the submission file requirement on an online change point is eliminated, and the problem generated in the online process can be efficiently and quickly processed. The configurable file generation method can provide a solution for data transaction requirements of large data volume, and provide quick and flexible configuration for the submission files so as to establish a quick and efficient data transmission mode and improve the file transmission efficiency.
According to some embodiments of the disclosure, the submission-file generation task may further include: the start time of the submission file is generated. The starting time of generating the submission file is configured to the submission file generation task, so that the staff can control the generation time of the submission file, and the work and management of the staff are facilitated.
In some embodiments of the present disclosure, the submission-file generation task may further include: generating a generation mode of the submission file, wherein the generation mode comprises: when the configurable file generation method is executed for the nth time, the number of the fixed files in the submission file is the sum of the fixed files obtained by executing the configurable file generation method for the nth time, or the number of the fixed files in the submission file is the number of the fixed files obtained by executing the configurable file generation method for the nth time.
It is understood that the generation mode of the submission file generation task may be that when the configurable file generation method is executed n times, the number of the fixed files in the submission file is the sum of the fixed files obtained by executing the method n times. For example, when n is 1, the generation mode may be that when the configurable file generation method is executed for the first time, the number of fixed files in the delivery file is m; for another example, when n is 2, the generation mode may be that the configurable file generation method is executed for the second time, and the number of the fixed files in the submission file is 2m, where the number of the fixed files is obtained by executing the configurable file generation method twice; for example, when n is 3, the generation mode may be that when the configurable file generation method is executed for the third time, the number of the fixed files in the report file is 3m, which is the number of the fixed files obtained by executing the configurable file generation method for the third time. Here, n may be any integer greater than or equal to 1, and the above description is only exemplified by n being 1, 2, and 3, and is not to be construed as limiting the present disclosure.
In addition, the generation mode of the report file generation task may be that when the configurable file generation method is executed the nth time, the number of the fixed files in the report file is the number of the fixed files obtained by executing the configurable file generation method the nth time. For example, when n is 1, the generation mode may be that when the configurable file generation method is executed for the first time, the number of fixed files in the delivery file is m; for another example, when n is 2, the generation mode may be that the configurable file generation method is executed for the second time, and the number of the fixed files in the submission file is m, which is the number of the fixed files obtained by executing the configurable file generation method for the second time; for example, when n is 3, the generation mode may be that when the configurable file generation method is executed for the third time, the number of the fixed files in the report file is m, which is the number of the fixed files obtained by executing the configurable file generation method for the third time. Here, n may be any integer greater than or equal to 1, and the above description is only exemplified by n being 1, 2, and 3, and is not to be construed as limiting the present disclosure.
The number of the fixed files in the submission file can be customized by configuring the generation mode of the submission file generation task, the transmission number of the fixed files can be configured according to needs, and when the configurable file generation method is executed every time, if the number of the fixed files is the number of the fixed files obtained by executing the configurable file generation method for the nth time, the redundancy of the files can be reduced to a certain extent, and the file processing efficiency is improved.
In some embodiments of the present disclosure, as shown in fig. 2, before the generating of the submission file according to the submission-file generating task in operation S250, the configurable-file generating method further includes operation S001.
In operation S001, a submission file is generated according to the submission file generation task, and when an error occurs in the pre-generated submission file, an error message is displayed. Therefore, through the displayed error information, the staff can know that the generated submission file has errors, and the staff can conveniently and quickly solve the problem. When the pre-generated delivery file has no problem, it is prompted that the delivery file is successfully generated, and operation S250 may be performed.
FIG. 4 schematically illustrates a flow diagram for transmitting a submission document to a data receiving system, in accordance with an embodiment of the present disclosure.
The operation S260 of transmitting the posting file to the data receiving system includes operations S261 to S263.
In operation S261, an address of the data receiving system is configured, wherein the address of the data receiving system is configured to include addresses of the newly added and modified data receiving system.
In operation S262, a presentation file transmission task is created, wherein the presentation file transmission task includes the number of presentation files transmitted each time and a start time of transmitting the presentation files.
In operation S263, the submission document is transmitted to the data receiving system according to the submission document transmission task.
Therefore, the starting time of the delivery file transmission is configured to the delivery file transmission task, so that the staff can control the transmission time of the delivery file, and the work and management of the staff are facilitated. The number of the delivery files transmitted at each time is configured into the delivery file transmission task, so that the transmission number of the delivery files can be defined by users, the transmission number of the delivery files can be configured according to needs, the redundancy of the files can be reduced to a certain extent, and the file processing efficiency is improved. In addition, the data transmission development operation and maintenance cost can be reduced, a system user can control the data transmission process and state on a page, so that the working personnel can quickly know and supervise, the management efficiency is improved, the real-time performance and the scene performance are enhanced, the working personnel can participate in the whole process in the processing process, know in real time and expand the participation area.
According to some embodiments of the present disclosure, as shown in fig. 4, before the transmission of the presentation file to the data receiving system according to the presentation file transmission task in operation S263, the transmission of the presentation file to the data receiving system in operation S260 further includes operation S002.
In operation S002, the submission document is pre-transmitted to the data receiving system according to the submission document transmission task, and when the pre-transmission of the submission document fails, an error message is displayed. Therefore, through the displayed error reporting information, the worker can know that the problem occurs in the transmission of the reported file, and the worker can conveniently and quickly solve the problem. When the pre-transmitted submission file has no problem, it is prompted that the submission file is successfully transmitted, and operation S263 may be performed.
Based on the configurable file generation method, the present disclosure also provides a configurable file generation apparatus 10. The configurable file generation apparatus 10 will be described in detail below with reference to fig. 5.
Fig. 5 schematically shows a block diagram of the configurable file generation apparatus 10 according to an embodiment of the present disclosure.
The configurable file generation device 10 comprises an acquisition module 1, a first generation module 2, an editing module 3, a creation module 4, a second generation module 5 and a transmission module 6.
An obtaining module 1, where the obtaining module 1 is configured to perform operation S210: and acquiring m data tables, wherein each data table comprises a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1.
A first generating module 2, the first generating module 2 being configured to perform operation S220: generating a corresponding data file according to each data table, wherein the data file at least comprises structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data;
an editing module 3, the editing module 3 being configured to perform operation S230: and editing each data file to obtain a fixed file.
A creating module 4, the creating module 4 being configured to perform operation S240: and creating a delivery file generation task, wherein the delivery file generation task comprises the number m of the fixed files in the delivery file.
A second generating module 5, the second generating module 5 being configured to perform operation S250: and generating a delivery file according to the delivery file generation task.
A transmission module 6, the transmission module 6 being configured to perform operation S260: and transmitting the submission file to a data receiving system.
Since the configurable file generation apparatus 10 is configured based on a configurable file generation method, the beneficial effects of the configurable file generation apparatus 10 are the same as those of the configurable file generation method, and are not described herein again.
In addition, according to the embodiment of the present disclosure, any multiple modules of the obtaining module 1, the first generating module 2, the editing module 3, the creating module 4, the second generating module 5, and the transmitting module 6 may be combined in one module to be implemented, or any one module thereof may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module.
According to the embodiment of the present disclosure, at least one of the obtaining module 1, the first generating module 2, the editing module 3, the creating module 4, the second generating module 5, and the transmitting module 6 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementation manners of software, hardware, and firmware, or implemented by a suitable combination of any several of them.
Alternatively, at least one of the obtaining module 1, the first generating module 2, the editing module 3, the creating module 4, the second generating module 5 and the transmitting module 6 may be at least partially implemented as a computer program module which, when executed, may perform a corresponding function.
FIG. 6 schematically illustrates a block diagram of an electronic device suitable for implementing a configurable file generation method according to an embodiment of the disclosure.
As shown in fig. 6, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the program can be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 900 may also include input/output (I/O) interface 905, input/output (I/O) interface 905 also connected to bus 904, according to an embodiment of the present disclosure. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The driver 910 is also connected to an input/output (I/O) interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or the RAM 903 described above and/or one or more memories other than the ROM 902 and the RAM 903.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. The program code is for causing a computer system to perform the methods of the embodiments of the disclosure when the computer program product is run on the computer system.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 901. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, and downloaded and installed through the communication section 909 and/or installed from the removable medium 911. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (15)

1. A configurable file generation method is characterized by comprising the following steps:
acquiring m data tables, wherein each data table comprises a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1;
generating a corresponding data file according to each data table, wherein the data file at least comprises structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data;
editing each data file to obtain a fixed file;
creating a delivery file generation task, wherein the delivery file generation task comprises the number m of the fixed files in the delivery file;
generating the submission file according to the submission file generation task; and
and transmitting the submission file to the data receiving system.
2. The method of claim 1, wherein the data file further comprises log data, the log data comprising log information that generated the structure data and the parameter data.
3. The method of claim 2, wherein the log information comprises:
a time at which the structural data is generated;
a time at which the parameter data is generated; and
a data amount of the parameter data.
4. The method of claim 2, wherein the data file comprises:
a ddl format file, the ddl format file including the structure data;
a dat-formatted file comprising the parameter data; and
an xml format file including the log data.
5. The method of claim 1, wherein the structure data comprises field information, wherein the parameter data comprises data information,
the editing each data file to obtain a fixed file comprises:
editing at least one of the number, the length and the content of the field information; and
editing the data information so that the data information corresponds to each of the field information.
6. The method of claim 5, wherein said editing each of said data files to obtain a fixed file further comprises:
editing at least one of a length and a content of the data information.
7. The method of claim 1, wherein the submission file generation task further comprises: and generating the starting time of the submission file.
8. The method of claim 1, wherein the submission file generation task further comprises: generating a generation pattern of the submission document,
wherein the generating mode comprises: when the method is executed for the nth time, the number of the fixed files in the submission file is the sum of the fixed files obtained by executing the method for the nth time, or the number of the fixed files in the submission file is the number of the fixed files obtained by executing the method for the nth time.
9. The method of claim 1, wherein prior to generating the submission document from the submission document generation task, the method further comprises:
and generating a task pre-generated submission file according to the submission file, and displaying the error information when the pre-generated submission file has an error.
10. The method of claim 1, wherein transmitting the delivery file to the data receiving system comprises:
configuring an address of the data receiving system, wherein the configuring the address of the data receiving system comprises adding and modifying the address of the data receiving system;
creating a delivery file transmission task, wherein the delivery file transmission task comprises the number of delivery files transmitted each time and the starting time of transmitting the delivery files; and
and transmitting the submission file to the data receiving system according to the submission file transmission task.
11. The method of claim 10, wherein prior to the transmitting the submission document to the data receiving system in accordance with the submission document transmission task, the transmitting the submission document to the data receiving system further comprises:
and pre-transmitting the submission file to the data receiving system according to the submission file transmission task, and displaying error information when the pre-transmission of the submission file fails.
12. A configurable file generation apparatus, comprising:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for executing acquisition of m data tables, each data table comprises a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1;
the first generation module is used for generating a corresponding data file according to each data table, wherein the data file at least comprises structural data and parameter data, the structural data is generated according to the transmission field, and the parameter data is generated according to the transmission data;
the editing module is used for editing each data file to obtain a fixed file;
the creating module is used for executing a task of creating a delivery file generation, wherein the delivery file generation task comprises the number m of the fixed files in the delivery file;
the second generation module is used for executing the generation of the submission file according to the submission file generation task; and
and the transmission module is used for transmitting the submission file to the data receiving system.
13. An electronic device, comprising:
one or more processors;
one or more memories for storing executable instructions that, when executed by the processor, implement the method of any of claims 1-11.
14. A computer-readable storage medium having stored thereon executable instructions that when executed by a processor implement a method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program comprising one or more executable instructions which, when executed by a processor, implement a method according to any one of claims 1 to 11.
CN202111558095.5A 2021-12-17 2021-12-17 File generation method, file generation device, electronic equipment, medium and program product Pending CN114201214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111558095.5A CN114201214A (en) 2021-12-17 2021-12-17 File generation method, file generation device, electronic equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111558095.5A CN114201214A (en) 2021-12-17 2021-12-17 File generation method, file generation device, electronic equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN114201214A true CN114201214A (en) 2022-03-18

Family

ID=80655198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111558095.5A Pending CN114201214A (en) 2021-12-17 2021-12-17 File generation method, file generation device, electronic equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN114201214A (en)

Similar Documents

Publication Publication Date Title
CN111950249A (en) Message generation method and device, electronic equipment and storage medium
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
CN114201718A (en) Dynamically configurable form instance generation method and device
CN110928594A (en) Service development method and platform
CN115033634A (en) Data acquisition method, data acquisition device, electronic equipment and medium
CN113535565B (en) Interface use case generation method, device, equipment and medium
CN114201214A (en) File generation method, file generation device, electronic equipment, medium and program product
CN113656041A (en) Data processing method, device, equipment and storage medium
CN114035864A (en) Interface processing method, interface processing device, electronic device, and storage medium
CN114490136A (en) Service calling and providing method, device, electronic equipment, medium and program product
CN114003659A (en) Data synchronization method, data synchronization device, electronic equipment, storage medium and program product
CN114138712A (en) File processing method, processing device, electronic equipment and storage medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113641633A (en) File processing method, file processing device, electronic equipment, medium and computer program
CN113378346A (en) Method and device for model simulation
CN114969059B (en) Method and device for generating order information, electronic equipment and storage medium
CN114817314A (en) Data processing method and device, electronic equipment and storage medium
CN113111051A (en) Data migration method and device
CN116795951A (en) Service processing method, device, electronic equipment and storage medium
CN116578572A (en) Service date changing method, device, equipment, storage medium and program product
CN114218254A (en) Report generation method, device, equipment and storage medium
CN114691527A (en) Unit test case generation method, apparatus, device, medium, and program product
CN116069312A (en) Page rendering method and device, electronic equipment and computer readable storage medium
CN114860610A (en) Test data preparing method, device, equipment, medium and program product
CN117112081A (en) Scheduling management method, device, equipment and medium of Python script

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