File generation method, device, electronic device, medium and program product

Through the configurable file generation method, the problem of long development cycle and low efficiency of data interaction requirements between large commercial banks is solved, and fast and efficient data transmission is achieved, encoding changes and development volume is reduced, and system processing efficiency is improved. .

CN114201214BActive Publication Date: 2024-12-31CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111558095.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2024-12-31
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

The data interaction requirements between large commercial bank systems lead to a long development cycle of data transmission and untimely response, resulting in inefficient system processing and impaired business, and the inability to achieve agile delivery of data exchange.

Method used

Provide a configurable file generation method, which generates data files by obtaining data tables, edits data files to obtain fixed files, and creates a report file generation task, generates a report file, and transmits it to the data receiving system to reduce the amount of file development. Improve data transmission efficiency.

Benefits of technology

It realizes a fast and flexible data transmission method, reduces coding changes when business needs change, improves file transfer efficiency, and can efficiently and quickly deal with problems during the online process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114201214B_ABST
    Figure CN114201214B_ABST
Patent Text Reader

Abstract

The present disclosure provides a configurable file generation method, device, electronic device, medium and computer program product. The above method and device can be used in the field of big data technology. The configurable file generation method includes: obtaining m data tables, wherein each of the data tables includes 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 of the data tables, wherein the data file includes at least 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 of the data files to obtain a fixed file; creating a submission file generation task, wherein the submission file generation task includes the number m of the fixed files in the submission file; generating the submission file according to the submission file generation task; and transmitting the submission file to the data receiving system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of big data technology, and more specifically, to a configurable file generation method, device, electronic device, medium and computer program product. Background Art

[0002] At present, with the development of various business fields of large commercial banks, the data interaction between applications and system components of various systems is increasing, and the data transaction volume is also increasing. When a component or application needs to provide a large number of data file services to the outside world, the amount of data file development generated by the system is also increasing. At the same time, the repetitive development of data further leads to the low efficiency of data file processing by the component or application, which may eventually cause system failure and damage the banking business.

[0003] Due to the large number of application systems in large commercial banks and the complex relationships between application systems, the demand for data transmission between systems is increasing. Therefore, in general, banks will solve such problems by developing systems according to demand. However, from the proposal to the resolution of data interaction needs, there are still problems such as long change cycles and untimely data response. For example, if system A in a bank wants to interact with system B, it will take at least several months from demand discussion to the launch of development and testing functions. This data transmission development model under the standard process greatly slows down the delivery speed of data requirements between systems and also causes waste of project personnel. At the same time, after the data interaction requirements are launched, if a system needs to optimize or modify the data interaction interface, it must be changed on the version date, and it is impossible to achieve agile delivery of data exchange change requirements. Summary of the invention

[0004] In view of this, the present disclosure provides a configurable file generation method, device, electronic device, computer-readable storage medium and computer program product with flexible configuration and high transmission efficiency.

[0005] One aspect of the present disclosure provides a configurable file generation method, including: acquiring m data tables, wherein each of the data tables includes 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 of the data tables, wherein the data file includes at least structure data and parameter data, the structure data is generated according to the transmission field, and the parameter data is generated according to the transmission data; editing each of the data files to obtain a fixed file; creating a submission file generation task, wherein the submission file generation task includes the number m of the fixed files in the submission file; generating the submission file according to the submission file generation task; and transmitting the submission file to the data receiving system.

[0006] According to the configurable file generation method of the embodiment of the present disclosure, by editing each data file, the data development amount in the fixed file can be freely controlled; by creating a report file generation task, the development amount of the report file can be freely controlled, so the file development amount can be reduced, and then the coding changes when business needs change can be reduced, and the dependence of the report file requirements on the online change points can be eliminated, so that the problems generated during the online process can be efficiently and quickly handled. The configurable file generation method of the present disclosure can provide a solution to the data transaction needs of large amounts of data, and provide fast and flexible configuration of the report file to establish a fast and efficient data transmission method, so that the file transmission efficiency is improved.

[0007] In some embodiments, the data file further includes log data, wherein the log data includes log information for generating the structure data and the parameter data.

[0008] In some embodiments, the log information includes: the time when the structure data is generated; the time when the parameter data is generated; and the data volume of the parameter data.

[0009] In some embodiments, the data file includes: a ddl format file, the ddl format file includes the structure data; a dat format file, the dat format file includes the parameter data; and an xml format file, the xml format file includes the log data.

[0010] In some embodiments, the structural data includes field information, the parameter data includes data information, and editing each of the data files to obtain a fixed file includes: editing at least one of the number, length and content of the field information; and editing the data information so that the data information corresponds to each of the field information.

[0011] In some embodiments, editing each of the data files to obtain a fixed file further comprises: editing at least one of the length and content of the data information.

[0012] In some embodiments, the reporting document generation task also includes: generating the start time of the reporting document.

[0013] In some embodiments, the submission file generation task also includes: generating a generation mode for the submission file, wherein the generation mode includes: when the method is executed for the nth time, the number of 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 fixed files in the submission file is the number of fixed files obtained by executing the method for the nth time.

[0014] In some embodiments, before generating the reporting file according to the reporting file generation task, the method further includes: pre-generating the reporting file according to the reporting file generation task, and when an error occurs in the pre-generated reporting file, displaying the error information.

[0015] In some embodiments, transmitting the reporting file to the data receiving system includes: configuring the address of the data receiving system, wherein the configuring the address of the data receiving system includes adding and modifying the address of the data receiving system; creating a reporting file transmission task, wherein the reporting file transmission task includes the number of reporting files transmitted each time and the start time of transmitting the reporting files; and transmitting the reporting file to the data receiving system according to the reporting file transmission task.

[0016] In some embodiments, before transmitting the report file to the data receiving system according to the report file transmission task, transmitting the report file to the data receiving system also includes: pre-transmitting the report file to the data receiving system according to the report file transmission task, and when the pre-transmission of the report file fails, displaying an error message.

[0017] Another aspect of the present disclosure provides a configurable file generation device, including: an acquisition module, the acquisition module is used to execute acquisition of m data tables, wherein each of the data tables includes a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1; a first generation module, the first generation module is used to execute generation of a corresponding data file according to each of the data tables, wherein the data file includes at least structure data and parameter data, the structure data is generated according to the transmission field, and the parameter data is generated according to the transmission data; an editing module, the editing module is used to execute editing of each of the data files to obtain a fixed file; a creation module, the creation module is used to execute creation of a submission file generation task, wherein the submission file generation task includes the number m of the fixed files in the submission file; a second generation module, the second generation module is used to execute generation of the submission file according to the submission file generation task; and a transmission module, the transmission module is used to execute transmission of the submission file to the data receiving system.

[0018] Another aspect of the present disclosure provides an electronic device, comprising one or more processors and one or more memories, wherein the memories are used to store executable instructions, and when the executable instructions are executed by the processors, the above-mentioned method is implemented.

[0019] Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, which are used to implement the above method when executed.

[0020] Another aspect of the present disclosure provides a computer program product, comprising a computer program, wherein the computer program comprises computer executable instructions, and the instructions are used to implement the method as described above when executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0022] Figure 1 An exemplary system architecture to which the method and apparatus according to an embodiment of the present disclosure can be applied is schematically shown;

[0023] Figure 2 A flowchart of a method for generating a configurable file according to an embodiment of the present disclosure is schematically shown;

[0024] Figure 3 Schematically shows a flow chart of editing each data file to obtain a fixed file according to an embodiment of the present disclosure;

[0025] Figure 4 A flowchart of transmitting a report file to a data receiving system according to an embodiment of the present disclosure is schematically shown;

[0026] Figure 5 The structure block diagram of the configurable file generation device according to the embodiment of the present disclosure is schematically shown;

[0027] Figure 6 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0029] In the technical solution of this disclosure, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and they do not violate public order and good morals. In the technical solution of this disclosure, the acquisition, collection, storage, use, processing, transmission, provision, disclosure and application of data are in compliance with the provisions of relevant laws and regulations, necessary confidentiality measures are taken, and they do not violate public order and good morals.

[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0031] When using expressions such as "at least one of A, B or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of the said features.

[0032] At present, with the development of various business fields of large commercial banks, the data interaction between applications and system components of various systems is increasing, and the data transaction volume is also increasing. When a component or application needs to provide a large number of data file services to the outside world, the amount of data file development generated by the system is also increasing. At the same time, the repetitive development of data further leads to the low efficiency of data file processing by the component or application, which may eventually cause system failure and damage the banking business.

[0033] Due to the large number of application systems in large commercial banks and the complex relationships between application systems, the demand for data transmission between systems is increasing. Therefore, in general, banks will solve such problems by developing systems according to demand. However, from the proposal to the resolution of data interaction needs, there are still problems such as long change cycles and untimely data response. For example, if system A in a bank wants to interact with system B, it will take at least several months from demand discussion to the launch of development and testing functions. This data transmission development model under the standard process greatly slows down the delivery speed of data requirements between systems and also causes waste of project personnel. At the same time, after the data interaction requirements are launched, if a system needs to optimize or modify the data interaction interface, it must be changed on the version date, and it is impossible to achieve agile delivery of data exchange change requirements.

[0034] This urgently requires a highly configurable data reporting file generation to solve the problem of long demand-to-development process and long optimization change cycle in the interaction of large amounts of data in commercial banks. In the prior art, a configurable application interface is used to quickly implement application interface business through visual configuration, convert hard coding work into visual configuration work, use JAVA development, based on the SOAP protocol, and use the reflection characteristics of the language to dynamically compile and generate CLASS files, and change them into standard business interfaces to reduce the R&D workload and risks brought about by new changes in enterprise needs. Although the configurable application interface can quickly implement application interface business through visual configuration, it cannot carry a large amount of business data in the face of the synchronization needs of large commercial banks with large amounts of data. At the same time, in the face of more complex data processing scenarios, this method cannot guarantee the accuracy of data transmission.

[0035] The embodiments of the present disclosure provide a configurable file generation method, device, electronic device, computer-readable storage medium and computer program product. The configurable file generation method includes: obtaining m data tables, wherein 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; generating a corresponding data file according to each data table, wherein the data file includes at least structure data and parameter data, the structure 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 submission file generation task, wherein the submission file generation task includes the number m of fixed files in the submission file; generating a submission file according to the submission file generation task; and transmitting the submission file to a data receiving system.

[0036] It should be noted that the configurable file generation method, device, electronic device, computer-readable storage medium and computer program product disclosed in the present invention can be used in the field of big data, and can also be used in any field other than the field of big data, such as the financial field. The field of the present invention is not limited here.

[0037] Figure 1 The exemplary system architecture 100 to which the configurable file generation method, apparatus, electronic device, computer-readable storage medium and computer program product according to the embodiments of the present disclosure can be applied is schematically shown. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present disclosure can be applied, in order to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0038] like Figure 1As shown, 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 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0039] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0040] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0041] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0042] It should be noted that the configurable file generation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the configurable file generation device provided in the embodiment of the present disclosure can generally be set in the server 105. The configurable file generation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the configurable file generation device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0043] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0044] The following will be based on Figure 1 The scene described by Figure 2 to Figure 4 The configurable file generation method of the embodiment of the present disclosure is described in detail.

[0045] Figure 2 The flowchart of the method for generating a configurable file according to an embodiment of the present disclosure is schematically shown.

[0046] like Figure 2 As shown, the configurable file generation method of this embodiment includes operations S210 to S260.

[0047] In operation S210, m data tables are obtained, wherein 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 obtaining m data tables here may be obtaining m data tables from a database, and m may be 1, 2, 3, 4, etc., and the specific value of m depends on the needs. The data table may be an original database table, that is, a data table directly downloaded from the database and not processed; the data table may also be a data table in which selected fields and data information corresponding to the selected fields are obtained from the database according to a query statement.

[0048] Furthermore, the query statement may also include a main query statement and an auxiliary query statement. The selected fields and data information corresponding to the selected fields may be obtained through the main query statement, and the selected fields and data information corresponding to the selected fields may be obtained through the auxiliary query statement. A data table may be obtained by concatenating the selected fields and data information corresponding to the selected fields obtained through the main query statement and the selected fields and data information corresponding to the selected fields obtained through the auxiliary query statement.

[0049] For example, the data table may be in the form of Table 1, which is for illustrative purposes only and is not to be construed as a limitation of the present disclosure. The data table may be in any form that can record transmission fields and transmission data corresponding to the transmission fields.

[0050] Table 1

[0051] Name Certificate Number Customer Type Total amount of assets Total amount of expenditure Zhang San 987654321 personal 500,000 600,000 Company A 123456789 enterprise 50 million 42 million

[0052] Take Table 1 as an example. Table 1 is a data table. The transmission fields are name, ID number, customer type, total asset amount, and total expenditure amount. The transmission data corresponding to the transmission field name is Zhang San and Company A; the transmission data corresponding to the transmission field ID number is 987654321 and 123456789; the transmission data corresponding to the transmission field customer type is individual and enterprise; the transmission data corresponding to the transmission field total asset amount is 500,000 and 50 million; the transmission data corresponding to the transmission field total expenditure amount is 600,000 and 42 million.

[0053] In operation S220, a corresponding data file is generated according to each data table, wherein the data file includes at least 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 is understandable that each data table can generate a corresponding data file, and the data file can include structural data. Taking Table 1 as an example, the generated structural data includes name, certificate number, customer type, total amount of assets, and total amount of expenditures; the data file can also include parameter data. Taking Table 1 as an example, the generated parameter data includes Zhang San and Company A, 987654321 and 123456789, individuals and enterprises, 500,000 and 50 million, and 600,000 and 42 million.

[0054] In some examples, the data file may also include log data, and the log data includes log information of generating structure data and parameter data. Further, the log information may include: the time when the structure data is generated; the time when the parameter data is generated; and the data volume of the parameter data. Here, the data volume of the parameter data can be understood as the number of words or bytes of the parameter data, but is not limited to this. For example, in the example in Table 1, the data volume of the generated parameter data "Zhang San" can be 2 words, the data volume of the parameter data "987654321" can be 9 words, and the data volume of the parameter data "Enterprise" can be 2 words. The parameter data generated in Table 1 will not be listed one by one here.

[0055] The basic information of generated structure data and parameter data can be obtained through log data, which is convenient for staff to understand the situation of generating structure data and parameter data. For example, it is convenient for staff to know the generation time of structure data, the generation time of parameter data, and the data volume of parameter data, so that staff can improve the program according to needs.

[0056] As an implementable method, the data file may include: a DDL format file, a DAT format file and an XML format file. The DDL format file includes structural data; the DAT format file includes parameter data; and the XML format file includes log data. In other words, the structural data may be a DDL format file, and of course, the structural data may also be a type of data with a data file as a carrier; the parameter data may be a DAT format file, and of course, the parameter data may also be a type of data with a data file as a carrier; the log data may be an XML format file, and of course, the log data may also be a type of data with a data file as a carrier. The existence form of the data file is enriched by the DDL format file, the DAT format file and the XML format file. In addition, it will be mentioned below that each data file needs to be edited, and the DDL format file, the DAT format file and the XML format file are convenient for editing.

[0057] In operation S230, each data file is edited to obtain a fixed file. In some specific examples, the structure data may include field information, and the parameter data may include data information. Figure 3 As shown, operation S230 edits each data file, and obtaining a fixed file includes operations S231 to S232.

[0058] In operation S231, at least one of the number, length and content of the field information is edited. Taking 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 expenditures; editing at least one of the number, length and content of the field information can be understood as editing one of the number, length and content of the field information as needed, editing two of the number, length and content of the field information as needed, or editing the number, length and content of the field information as needed.

[0059] For example, assuming that the number of field information required for a fixed file is 4, the existing 5 field information is modified to 4, and the unimportant field information "customer type" is deleted; assuming that the length of the field information of a fixed file is required to be within 4 characters, the field information "total amount of assets" can be modified to "asset amount", and the field information "total amount of expenditures" can be modified to "expenditure amount". The content modification of the field information can, for example, modify "name" to "customer name". The editing of the number, length and content of the field information here is only for illustration and cannot be understood as a limitation of the present disclosure. The number, length and content of the edited field information of the present disclosure can be any modification of the number, length and content of the field information.

[0060] In operation S232, the data information is edited so that the data information corresponds to each field information. Among them, continuing to take the information sample in Table 1 as an example, the data information can be understood as Zhang San and Company A, 987654321 and 123456789, individuals and enterprises, 500,000 and 50 million, and 600,000 and 42 million. It can be understood that due to the modification of the field information, for example, assuming that the field information "customer type" is deleted, the data information "enterprise" corresponding to the customer type needs to be deleted, so as to correspond the data information to the field information.

[0061] Therefore, each data file can be edited through operations S231 to S232 to obtain a fixed file.

[0062] Further, refer to Figure 3 Operation S230 edits each data file, and obtaining a fixed file also includes operation S233.

[0063] In operation S233, at least one of the length and content of the data information is edited. The editing of the length of the data information can be understood as editing the number of words in 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 of the data information corresponding to the certificate number of the fixed file is required to be the last 4 digits, "987654321" can be modified to "4321", and "123456789" can be modified to "6789". Through operation S233, the data information can be made more in line with the specifications and requirements.

[0064] In operation S240, a submission file generation task is created, wherein the submission file generation task includes the number m of fixed files in the submission file. That is, when creating the submission file generation task, m fixed files need to be set to be transmitted, where m can be any number of files greater than or equal to 1.

[0065] In operation S250, a submission file is generated according to the submission file generation task, that is, a file that meets the requirements of the submission file generation task is generated, that is, a submission file.

[0066] In operation S260, the reporting file is transmitted to the data receiving system.

[0067] According to the configurable file generation method of the embodiment of the present disclosure, by editing each data file, the data development volume in the fixed file can be freely controlled; by creating a report file generation task, the development volume of the report file can be freely controlled, so the development volume of the file can be reduced, thereby reducing the coding changes when business needs change, and getting rid of the dependence of the report file requirements on the online change points, so that the problems generated during the online process can be efficiently and quickly handled. The configurable file generation method of the present disclosure can provide a solution to the data transaction needs of large amounts of data, and provide fast and flexible configuration of the report file to establish a fast and efficient data transmission method, so that the file transmission efficiency is improved.

[0068] According to some embodiments of the present disclosure, the reporting document generation task may further include: the start time of generating the reporting document. By configuring the start time of generating the reporting document as the reporting document generation task, the staff can control the generation time of the reporting document, which is convenient for the staff's work and management.

[0069] In some embodiments of the present disclosure, the submission file generation task may further include: generating a generation mode for the submission file, wherein the generation mode includes: when the configurable file generation method is executed for the nth time, the number of 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 fixed files in the submission file is the number of fixed files obtained by executing the configurable file generation method for the nth time.

[0070] It is understandable that the generation mode of the report file generation task can be that when the configurable file generation method is executed for the nth time, the number of fixed files in the report file is the sum of the fixed files obtained by executing the method for n times. For example, when n is 1, the generation mode can be that when the configurable file generation method is executed for the first time, the number of fixed files in the report file is m; for another example, when n is 2, the generation mode can be that when the configurable file generation method is executed for the second time, the number of fixed files in the report file is the number of fixed files obtained by executing the configurable file generation method twice, which is 2m; for another example, when n is 3, the generation mode can be that when the configurable file generation method is executed for the third time, the number of fixed files in the report file is the number of fixed files obtained by executing the configurable file generation method three times, which is 3m. Here, n can be any integer greater than or equal to 1, and the above only takes n as 1, 2 and 3 as examples, which cannot be understood as a limitation of the present disclosure.

[0071] In addition, the generation mode of the report file generation task can also be that when the configurable file generation method is executed for the nth time, the number of fixed files in the report file is the number of fixed files obtained by the nth execution of the configurable file generation method. For example, when n is 1, the generation mode can be that when the configurable file generation method is executed for the first time, the number of fixed files in the report file is m; for another example, when n is 2, the generation mode can be that when the configurable file generation method is executed for the second time, the number of fixed files in the report file is the number of fixed files obtained by the second execution of the configurable file generation method, which is m; for another example, when n is 3, the generation mode can be that when the configurable file generation method is executed for the third time, the number of fixed files in the report file is the number of fixed files obtained by the third execution of the configurable file generation method, which is m. Here, n can be any integer greater than or equal to 1, and the above only uses n as 1, 2, and 3 as examples, which cannot be understood as limitations on the present disclosure.

[0072] By configuring the generation mode of the report file generation task, you can customize the number of fixed files in the report file, and configure the number of fixed file transmissions as needed. When the configurable file generation method is executed each time, if the number of fixed files is the number of fixed files obtained by executing the configurable file generation method for the nth time, it can reduce file redundancy to a certain extent and speed up file processing efficiency.

[0073] In some embodiments of the present disclosure, Figure 2 As shown, before generating the submission file according to the submission file generation task in operation S250, the configurable file generation method further includes operation S001.

[0074] In operation S001, a submission file is pre-generated according to the submission file generation task. When the pre-generated submission file has an error, the error information is displayed. Thus, through the displayed error information, the staff can know that the generated submission file has an error, which is convenient for the staff to quickly solve the problem. When there is no problem with the pre-generated submission file, it is prompted that the submission file is generated successfully, and then operation S250 can be executed.

[0075] Figure 4 The flowchart of transmitting a report file to a data receiving system according to an embodiment of the present disclosure is schematically shown.

[0076] Operation S260 of transmitting the submitted file to the data receiving system includes operations S261 to S263.

[0077] In operation S261, the address of the data receiving system is configured, wherein configuring the address of the data receiving system includes adding and modifying the address of the data receiving system.

[0078] In operation S262, a report file transmission task is created, wherein the report file transmission task includes the number of report files to be transmitted each time and the start time of transmitting the report files.

[0079] In operation S263, the report file is transmitted to the data receiving system according to the report file transmission task.

[0080] Therefore, by configuring the start time of the report file transmission as the report file transmission task, the staff can control the transmission time of the report file, which is convenient for the staff's work and management. By configuring the number of report files transmitted each time as the report file transmission task, the number of report files transmitted can be customized, that is, the number of report files transmitted can be configured as needed, which can reduce file redundancy to a certain extent and speed up file processing efficiency. In addition, the development and operation costs of data transmission can be reduced. System users can control the data transmission process and status on the page, so that staff can quickly understand and supervise, improve management efficiency, and strengthen real-time and scenario-based, so that staff can participate in the whole process of the processing, understand in real time, and expand participation.

[0081] According to some embodiments of the present disclosure, Figure 4 As shown, before operation S263 transmits the report file to the data receiving system according to the report file transmission task, operation S260 transmits the report file to the data receiving system further includes operation S002.

[0082] In operation S002, the report file is pre-transmitted to the data receiving system according to the report file transmission task. When the pre-transmission report file fails, an error message is displayed. Thus, through the displayed error message, the staff can know that there is a problem with the transmission of the report file, which is convenient for the staff to quickly solve the problem. When there is no problem with the pre-transmitted report file, it is prompted that the report file transmission is successful, and then operation S263 can be executed.

[0083] Based on the above configurable file generation method, the present disclosure also provides a configurable file generation device 10. Figure 5 The configurable file generating device 10 is described in detail.

[0084] Figure 5 The structural block diagram of the configurable file generating device 10 according to an embodiment of the present disclosure is schematically shown.

[0085] The configurable file generating device 10 comprises an acquiring module 1 , a first generating module 2 , an editing module 3 , a creating module 4 , a second generating module 5 and a transmitting module 6 .

[0086] The acquisition module 1 is used to perform operation S210: acquire m data tables, wherein 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.

[0087] A first generating module 2, the first generating module 2 is used to perform operation S220: generating a corresponding data file according to each data table, wherein the data file at least includes structure data and parameter data, the structure data is generated according to the transmission field, and the parameter data is generated according to the transmission data;

[0088] The editing module 3 is used to perform operation S230: edit each data file to obtain a fixed file.

[0089] The creation module 4 is used to perform operation S240: creating a submission file generation task, wherein the submission file generation task includes the number m of fixed files in the submission file.

[0090] The second generating module 5 is used to perform operation S250: generating a submission file according to a submission file generation task.

[0091] Transmission module 6, transmission module 6 is used to perform operation S260: transmit the report file to the data receiving system.

[0092] Since the above-mentioned configurable file generating device 10 is arranged based on the configurable file generating method, the beneficial effects of the above-mentioned configurable file generating device 10 are the same as those of the configurable file generating method, which will not be described in detail here.

[0093] In addition, according to an embodiment of the present disclosure, any multiple modules among the acquisition module 1, the first generation module 2, the editing module 3, the creation module 4, the second generation module 5 and the transmission module 6 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module.

[0094] According to an embodiment of the present disclosure, at least one of the acquisition module 1, the first generation module 2, the editing module 3, the creation module 4, the second generation module 5 and the transmission module 6 can 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 can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware and firmware, or in an appropriate combination of any of them.

[0095] Alternatively, at least one of the acquisition module 1, the first generation module 2, the editing module 3, the creation module 4, the second generation module 5 and the transmission module 6 can be at least partially implemented as a computer program module, which can perform corresponding functions when executed.

[0096] Figure 6 A block diagram of an electronic device suitable for implementing a configurable file generation method according to an embodiment of the present disclosure is schematically shown.

[0097] like Figure 6 As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0098] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0099] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the input / output (I / O) interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.

[0100] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0101] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0102] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method of the embodiment of the present disclosure.

[0103] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0104] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0105] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0106] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0107] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0109] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for generating a configurable file, characterized in that: include: Acquire m data tables, wherein each of the data tables includes a transmission field and transmission data corresponding to the transmission field, and m is an integer greater than or equal to 1; Generate a corresponding data file according to each of the data tables, wherein the data file at least includes structure data and parameter data, the structure data is generated according to the transmission field, and the parameter data is generated according to the transmission data; Editing each of the data files to obtain a fixed file; Creating a submission file generation task, wherein the submission file generation task includes the number m of the fixed files in the submission file; Generate the submission file according to the submission file generation task; and Transmitting the submitted documents to a data receiving system; Wherein, the structure data includes field information, the parameter data includes data information, The editing of each of the data files to obtain a fixed file comprises: Edit at least one of the number, length and content of the field information; and Editing the data information so that the data information corresponds to each of the field information; Wherein, the report document generation task further includes: generating a generation mode of the report document; Wherein, the generation mode includes: when the method is executed for the nth time, the number of fixed files in the submitted file is the sum of the fixed files obtained by executing the method for the nth time, or the number of fixed files in the submitted file is the number of fixed files obtained by executing the method for the nth time; Wherein, transmitting the reported file to the data receiving system comprises: Configuring the address of the data receiving system, wherein configuring the address of the data receiving system includes adding and modifying the address of the data receiving system; Creating a report file transmission task, wherein the report file transmission task includes the number of the report files to be transmitted each time and the start time of transmitting the report files; and The reporting file is transmitted to the data receiving system according to the reporting file transmission task.

2. The method according to claim 1, characterized in that The data file further includes log data including log information of generating the structure data and the parameter data.

3. The method according to claim 2, characterized in that The log information includes: The time when the structure data is generated; the time at which the parameter data was generated; and The amount of the parameter data.

4. The method according to claim 2, characterized in that: The data files include: A ddl format file, wherein the ddl format file includes the structure data; dat format file, the dat format file includes the parameter data; and An xml format file, wherein the xml format file includes the log data.

5. The method according to claim 1, characterized in that The editing of each of the data files to obtain a fixed file further comprises: At least one of the length and content of the data message is edited.

6. The method according to claim 1, characterized in that The reporting document generation task also includes: a start time for generating the reporting document.

7. The method according to claim 1, characterized in that Before generating the submission document according to the submission document generation task, the method further includes: The reporting file is pre-generated according to the reporting file generation task, and when an error occurs in the pre-generated reporting file, the error information is displayed.

8. The method according to claim 1, characterized in that: Before transmitting the report file to the data receiving system according to the report file transmission task, transmitting the report file to the data receiving system further includes: The reporting file is pre-transmitted to the data receiving system according to the reporting file transmission task, and when the pre-transmission of the reporting file fails, an error message is displayed.

9. A configurable file generation device, used to execute the method according to claim 1, characterized in that: include: An acquisition module, the acquisition module is used to execute acquisition of m data tables, wherein each of the data tables includes 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, the first generating module is used to generate a corresponding data file according to each of the data tables, wherein the data file at least includes structure data and parameter data, the structure data is generated according to the transmission field, and the parameter data is generated according to the transmission data; An editing module, the editing module is used to edit each of the data files to obtain a fixed file; A creation module, the creation module is used to execute a task of creating a report file generation task, wherein the report file generation task includes the number m of the fixed files in the report file; A second generating module, the second generating module is used to generate the submission file according to the submission file generating task; and A transmission module, the transmission module is used to transmit the report file to a data receiving system; Wherein, the structure data includes field information, the parameter data includes data information, The editing of each of the data files to obtain a fixed file comprises: Edit at least one of the number, length and content of the field information; and Editing the data information so that the data information corresponds to each of the field information; Wherein, the report document generation task further includes: generating a generation mode of the report document; Wherein, the generation mode includes: when the method is executed for the nth time, the number of fixed files in the submitted file is the sum of the fixed files obtained by executing the method for the nth time, or the number of fixed files in the submitted file is the number of fixed files obtained by executing the method for the nth time; Wherein, transmitting the reported file to the data receiving system comprises: Configuring the address of the data receiving system, wherein configuring the address of the data receiving system includes adding and modifying the address of the data receiving system; Creating a report file transmission task, wherein the report file transmission task includes the number of the report files to be transmitted each time and the start time of transmitting the report files; and The reporting file is transmitted to the data receiving system according to the reporting file transmission task.

10. An electronic device, characterized in that: include: one or more processors; One or more memories, used to store executable instructions, which, when executed by the processor, implement the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The storage medium stores executable instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 8.

12. A computer program product, characterized in that The method comprises a computer program, wherein the computer program comprises one or more executable instructions, and when the executable instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.