CN115099210A - Construction method and system of clearing file - Google Patents
Construction method and system of clearing file Download PDFInfo
- Publication number
- CN115099210A CN115099210A CN202210743040.XA CN202210743040A CN115099210A CN 115099210 A CN115099210 A CN 115099210A CN 202210743040 A CN202210743040 A CN 202210743040A CN 115099210 A CN115099210 A CN 115099210A
- Authority
- CN
- China
- Prior art keywords
- file
- clearing
- files
- configuration
- construction
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Technology Law (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application provides a construction method and a system of clearing files, wherein the construction method of the clearing files comprises the following steps: acquiring configuration parameters and default value data uploaded by a user, wherein the configuration parameters comprise at least one specified file type; acquiring a data definition template corresponding to a specified file type; generating a plurality of groups of configuration files according to the configuration parameters, the default value data and the data definition template; and carrying out file batch construction according to a preset data processing rule, a plurality of groups of configuration files and a preset file construction quantity to obtain a plurality of clearing files. Therefore, by the implementation of the implementation mode, batch construction of the clearing files can be realized, the time consumption for file construction is short, and the efficiency is high, so that the whole working efficiency of the TA clearing test is improved.
Description
Technical Field
The application relates to the technical field of computers, in particular to a construction method and a system of clearing files.
Background
At present, the construction of the TA clearing file is an extremely important and indispensable preposition preparation work in the TA clearing process, a large amount of time needs to be invested to prepare the clearing file in order to cover all test scenes in the test process, and in the prior art, the FFReader tool is usually used for checking and editing the clearing file.
Disclosure of Invention
The embodiment of the application aims to provide a construction method and a system for clearing files, which can realize batch construction of clearing files, and are short in file construction time consumption and high in efficiency, so that the whole working efficiency of a TA clearing test is favorably improved.
A first aspect of an embodiment of the present application provides a clearing document constructing method, including:
acquiring configuration parameters and default value data uploaded by a user, wherein the configuration parameters comprise at least one type of specified file;
acquiring a data definition template corresponding to the specified file type;
generating a plurality of groups of configuration files according to the configuration parameters, the default value data and the data definition template;
and carrying out file batch construction according to a preset data processing rule, the multiple groups of configuration files and the preset file construction quantity to obtain a plurality of clearing files.
In the implementation process, the method can preferentially acquire configuration parameters and default value data which are uploaded by a user and comprise at least one specified file type; then acquiring a data definition template corresponding to the specified file type; after the content is obtained, generating a plurality of groups of configuration files according to configuration parameters, default value data and a data definition template; and finally, carrying out file batch construction processing according to a preset data processing rule, a plurality of groups of configuration files and a preset file construction quantity to obtain a plurality of clearing files. Therefore, by the implementation of the implementation mode, batch construction of the clearing files can be realized, the time consumption for file construction is short, and the efficiency is high, so that the whole working efficiency of the TA clearing test is improved.
Further, after the batch file construction processing is performed according to the preset data processing rule, the plurality of groups of configuration files and the preset file construction number to obtain a plurality of clearing files, the method further includes:
carrying out validity detection on the plurality of clearing files according to the plurality of groups of configuration files to obtain a detection result;
determining an effective clearing file from the plurality of clearing files according to the detection result;
and outputting the effective clearing files in batches.
Further, the generating a plurality of sets of configuration files according to the configuration parameters, the default value data and the data definition template includes:
analyzing the configuration parameters to obtain user parameters;
and matching and recombining the user parameters, the data definition template and the default value data through a rule engine to obtain a plurality of groups of configuration files.
Further, the performing a batch file construction process according to a preset data processing rule, the plurality of groups of configuration files and a preset file construction quantity to obtain a plurality of clearing files includes:
generating a message header, a message body and a message tail according to the data types in the multiple groups of configuration files and a preset data processing rule;
creating an initial file according to the file index names in the multiple groups of configuration files;
encrypting and writing the message header, the message body and the message trailer into the initial file to obtain a clearing file constructed once;
judging whether the number of the currently constructed clearing files reaches the preset file construction number or not;
if so, summarizing all the once-constructed clearing files constructed currently to obtain a plurality of clearing files obtained by batch construction processing.
Further, the data definition template comprises one or more of a file name template, a data field English name, a field type and a field length.
A second aspect of embodiments of the present application provides a clearing document construction system comprising a configuration parameter processing module, a rules engine module, and a clearing document processing module, wherein,
the configuration parameter processing module is used for acquiring configuration parameters and default value data uploaded by a user, wherein the configuration parameters at least comprise an appointed file type; acquiring a data definition template corresponding to the specified file type;
the rule engine module is used for generating a plurality of groups of configuration files according to the configuration parameters, the default value data and the data definition template;
and the clearing file processing module is used for carrying out file batch construction processing according to a preset data processing rule, the multiple groups of configuration files and a preset file construction quantity to obtain a plurality of clearing files.
In the implementation process, the clearing file construction system can acquire configuration parameters and default value data uploaded by a user and a data definition template corresponding to the specified file type through a configuration parameter processing module; generating a plurality of groups of configuration files according to the configuration parameters, the default value data and the data definition template through a rule engine module; and performing file batch construction processing by the clearing file processing module according to a preset data processing rule, a plurality of groups of configuration files and a preset file construction quantity to obtain a plurality of clearing files. Therefore, by the implementation of the implementation mode, batch construction of the clearing files can be realized, the time consumption for file construction is short, and the efficiency is high, so that the whole working efficiency of the TA clearing test is improved.
Further, the configuration parameter processing module is further configured to perform file batch construction processing according to preset data processing rules, the multiple groups of configuration files and a preset file construction number to obtain multiple clearing files, and then perform validity detection on the multiple clearing files according to the multiple groups of configuration files to obtain a detection result; determining effective clearing files from the plurality of clearing files according to the detection result; and outputting the valid clearing files in batches.
Further, the rule engine module is specifically configured to analyze the configuration parameters to obtain user parameters; and matching and recombining the user parameters, the data definition template and the default value data through a rule engine to obtain a plurality of groups of configuration files.
Further, the clearing document processing module comprises:
the generating submodule is used for generating a message head, a message body and a message tail according to the data types in the multiple groups of configuration files and a preset data processing rule;
the creating submodule is used for creating an initial file according to the file index names in the multiple groups of configuration files;
the writing sub-module is used for encrypting and writing the message header, the message body and the message trailer into the initial file to obtain a clearing file constructed once;
the judging submodule is used for judging whether the number of the currently constructed clearing files reaches the preset file construction number or not;
and the summarizing submodule is used for summarizing all the currently constructed clearing files constructed once when the number of the currently constructed clearing files reaches the preset file construction number, so as to obtain a plurality of clearing files obtained by batch construction processing.
Further, the data definition template comprises one or more of a file name template, a data field English name, a field type and a field length.
A third aspect of the embodiments of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the clearing file constructing method described in any one of the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the computer program instructions execute the clearing document constructing method according to any one of the first aspect of the embodiments of the present application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a schematic flow chart diagram illustrating a clearing document constructing method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating another clearing document constructing method according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a clearing document structuring system according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another clearing document constructing system provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Example 1
Referring to fig. 1, fig. 1 is a schematic flow chart of a clearing document constructing method according to an embodiment of the present application. The clearing file construction method comprises the following steps:
s101, obtaining configuration parameters and default value data uploaded by a user, wherein the configuration parameters comprise at least one type of specified file.
In the embodiment, the method can select the most convenient and most rapid mode to carry out configuration according to the actual situation, thereby realizing the effect of simplifying the operation steps.
In this embodiment, the configuration parameters in the method may be configured by a visual interface performed by a user, may be configured by an excel file, and may also be configured by default by a DB.
In this embodiment, the method may upload the configuration parameters by the user according to the actual situation, and at least specify one file type based on the configuration parameters.
In this embodiment, the method may support all clearing file types, such as 01, 03, F1, and so on.
S102, acquiring a data definition template corresponding to the specified file type.
In this embodiment, the method may analyze the configuration parameters uploaded by the user, and automatically acquire the data definition template of the file type in the database according to the file type specified by the user.
In this embodiment, the data definition template includes a file name template, an english name of a data field, a field type, and a field length.
S103, generating a plurality of groups of configuration files according to the configuration parameters, the default value data and the data definition template.
In this embodiment, the method may obtain default value data, and transmit the user parameter, the data definition template, and the default value data to the rule engine.
In this embodiment, after the user parameters, the data definition template, and the default value data are transmitted to the rule engine, the rule engine may match and recombine to generate a plurality of sets of configuration files, and then store the new configuration files in a storage, and record the initial state.
And S104, carrying out file batch construction according to a preset data processing rule, a plurality of groups of configuration files and a preset file construction quantity to obtain a plurality of clearing files.
At present, the construction of TA clearance documents in the TA clearance process is an extremely important and indispensable preparatory work. To construct the TA clearance file, the industry typically uses the FFReader tool to view and edit the TA clearance file. However, the tool has obvious disadvantages that the tool cannot rapidly construct a plurality of transaction data and cannot rapidly construct clearing files required by million-level performance tests. Meanwhile, because the types of clearing files are more and the transaction data formats in different clearing files are not completely consistent, a large amount of time is often required to be invested to prepare the clearing files in order to cover all test scenes in the test process, so that the overall working efficiency of the TA clearing test is influenced.
Based on the problem at present, the method designs a new rapid construction method of clearing files. The method can realize the effects of flexibly configuring the types of clearing files, the formats of transaction data fields, generating the number of the clearing files and the like, so that the clearing files with millions or even millions of data volumes can be quickly constructed, the problems of long time consumption, low efficiency and incomplete data scene coverage in the TA clearing function test, performance test and automatic test processes are solved, and the test efficiency and quality are greatly improved.
In this embodiment, the execution subject of the method may be a computing device such as a computer and a server, and is not limited in this embodiment.
In this embodiment, the main body of the method may also be an intelligent device such as a smart phone and a tablet computer, which is not limited in this embodiment.
Therefore, the method for constructing the clearing file described in the embodiment can solve the problems that the clearing file is difficult to generate and slow and tedious to construct in the testing and developing processes, and reduce the investment time in the preparation stage of the clearing file in the testing stage, thereby improving the working efficiency. Meanwhile, the method has the advantages of simple configuration, strong operability, high stability and the like, so that tens of millions of data volumes can be completed in a short time; and the file can automatically carry out validity check after being generated, thereby ensuring that a valid file is output.
Example 2
Referring to fig. 2, fig. 2 is a flow chart illustrating a clearing document constructing method according to an embodiment of the present application. The clearing file construction method comprises the following steps:
s201, obtaining configuration parameters and default value data uploaded by a user, wherein the configuration parameters comprise at least one type of specified file.
In the present embodiment, the specified file types include 01, 03, F1, and the like.
In this embodiment, the clearing file has a plurality of types, and a user may specify a single file type or a plurality of file types and configure the required parameters through a graphical interface or configure the required parameters by uploading an excel template file.
S202, acquiring a data definition template corresponding to the specified file type.
In this embodiment, the data definition template includes one or more of a file name template, an english name of a data field, a field type, and a field length.
And S203, analyzing the configuration parameters to obtain user parameters.
In this embodiment, the method may analyze the configuration parameter a configured by the user, then automatically obtain the data definition template B of the specified file type in the database according to the file type in the configuration parameter a, and then configure the data definition template to include a file name template, a data field english name, a field type, and a field length.
And S204, matching and recombining the user parameters, the data definition template and the default value data through a rule engine to obtain a plurality of groups of configuration files.
In this embodiment, the method may automatically read default value data C, where the default value data C includes a field default value, a number of data pieces, a fund code, an investor fund transaction account number, an investor fund account number, and the like, and the fund code, the investor fund transaction account number, and the investor fund account number may be configured to be directly acquired from a transaction database, or may be acquired from a file. The data A, B, C is then passed to the rules engine by file type.
In this embodiment, the method reassembles the user data a, the data definition template B, and the default value C into a plurality of configuration files. And informing, recording all configuration files, and marking the initial state as to be executed.
And S205, generating a message header, a message body and a message tail according to the data types in the multiple groups of configuration files and preset data processing rules.
In this embodiment, the method may dynamically distribute tasks to each child node according to the data volume, and update the execution nodes and states.
In this embodiment, each child node starts data processing according to the data type in the configuration file, and the data processing rule strictly meets the requirements of the relevant service rule of the regulatory department, where the service type and the service data exchange project need to be encoded and mapped. And after the message header, the message body and the message tail are assembled, starting to write the file.
S206, creating an initial file according to the file index names in the multiple groups of configuration files.
In this embodiment, the method may further create a file according to a file index name in the configuration file, where the file format is "file identifier creator _ recipient _ date _ file type sequence number" wt, "encrypt and write the file into the file, and the node returns the file in batch after processing the file.
S207, encrypting and writing the message header, the message body and the message trailer into the initial file to obtain a clearing file constructed once.
S208, judging whether the number of the currently constructed clearing files reaches the preset file construction number, if so, executing the steps S209 to S212; if not, the flow is ended.
S209, summarizing all the currently constructed clearing files constructed in a single time to obtain a plurality of clearing files obtained through batch construction processing.
S210, carrying out validity detection on the plurality of clearing files according to the plurality of groups of configuration files to obtain detection results.
In this embodiment, the method updates the execution state after the validity of the file is checked.
In this embodiment, the process is ended when all execution states are completed.
And S211, determining an effective clearing file from a plurality of clearing files according to the detection result.
And S212, outputting the effective clearing files in batches.
In this embodiment, the method further supports product range, affiliate, account opening number, transaction date, clearing date, subscription proportion, redemption proportion, over-account proportion, and transaction record number designation; while also supporting valid and invalid transaction data generation.
In this embodiment, when it is detected that there may be a normal or abnormal interruption in the process of generating the clearing file in a large batch, the method records the file generation state to avoid data loss or abnormal data regeneration or file unavailability.
In this embodiment, the method may dynamically distribute the optimal number of nodes to perform the assignment task by using the ant colony algorithm, and update the execution state. Each child node performs data processing according to the service rules of the supervision department, the specific processing rules comprise numerical value completion rules, character completion rules, data exchange file specifications and the like, after the data processing is completed, files are created according to the file name templates, data are encrypted and written, and when the generation number of the node files reaches the configured number, the node files are returned in batch.
In this embodiment, the execution subject of the method may be a computing device such as a computer and a server, and is not limited in this embodiment.
In this embodiment, an execution subject of the method may also be an intelligent device such as a smart phone and a tablet computer, which is not limited in this embodiment.
Therefore, the method for constructing the clearing file described in the embodiment can solve the problems that the clearing file is difficult to generate and slow and tedious to construct in the testing and developing processes, and reduce the investment time in the preparation stage of the clearing file in the testing stage, thereby improving the working efficiency. Meanwhile, the method has the advantages of simple configuration, strong operability, high stability and the like, so that the ten-million-level data volume can be completed in a short time; and the file can automatically carry out validity check after being generated, thereby ensuring that a valid file is output.
Example 3
Referring to fig. 3, fig. 3 is a schematic structural diagram of a clearing document structuring system according to an embodiment of the present application. As shown in fig. 3, the clearing document structuring system includes a configuration parameter processing module, a rule engine module, and a clearing document processing module, wherein,
a configuration parameter processing module 310, configured to obtain configuration parameters and default value data uploaded by a user, where the configuration parameters at least include an assigned file type;
the configuration parameter processing module 310 is further configured to obtain a data definition template corresponding to the specified file type;
a rule engine module 320, configured to generate multiple sets of configuration files according to the configuration parameters, the default value data, and the data definition template;
the clearing file processing module 330 is configured to perform batch file construction according to a preset data processing rule, multiple groups of configuration files, and a preset number of file constructions to obtain multiple clearing files.
In this embodiment, for the explanation of the clearing file construction system, reference may be made to the description in embodiment 1 or embodiment 2, and details are not repeated in this embodiment.
Therefore, the clearing file construction system described in the embodiment can solve the problems that the clearing files are difficult to generate and slow and tedious to construct in the testing and developing processes, and reduce the investment time of the clearing file preparation stage in the testing stage, thereby improving the working efficiency. Meanwhile, the method has the advantages of simple configuration, strong operability, high stability and the like, so that tens of millions of data volumes can be completed in a short time; and the file can automatically carry out validity check after being generated, thereby ensuring that a valid file is output.
Example 4
Referring to fig. 4, fig. 4 is a schematic structural diagram of a clearing document structuring system according to an embodiment of the present application. As shown in fig. 4, the clearing document constructing system includes a configuration parameter processing module, a rule engine module, and a clearing document processing module, wherein,
a configuration parameter processing module 310, configured to obtain configuration parameters and default value data uploaded by a user, where the configuration parameters at least include an assigned file type;
the configuration parameter processing module 310 is further configured to obtain a data definition template corresponding to the specified file type;
a rule engine module 320, configured to generate multiple sets of configuration files according to the configuration parameters, the default value data, and the data definition template;
the clearing file processing module 330 is configured to perform batch file construction according to a preset data processing rule, multiple groups of configuration files, and a preset number of file constructions to obtain multiple clearing files.
As an optional implementation manner, the configuration parameter processing module 310 is further configured to perform file batch construction processing according to preset data processing rules, multiple groups of configuration files, and a preset number of file constructions to obtain multiple clearing files, and then perform validity detection on the multiple clearing files according to the multiple groups of configuration files to obtain a detection result;
the configuration parameter processing module 310 is further configured to determine an effective clearing file from the plurality of clearing files according to the detection result;
and the parameter processing module 310 is configured to output valid clearing files in batches.
As an optional implementation manner, the rule engine module 320 is specifically configured to analyze the configuration parameters to obtain user parameters; and matching and recombining the user parameters, the data definition template and the default value data through a rule engine to obtain a plurality of groups of configuration files.
As an alternative embodiment, the clearing document processing module 330 includes:
the generating submodule 331 is configured to generate a message header, a message body, and a message tail according to the data types in the multiple sets of configuration files and a preset data processing rule;
a creating sub-module 332, configured to create an initial file according to file index names in multiple sets of configuration files;
the writing sub-module 333 is configured to encrypt and write the message header, the message body, and the message trailer into the initial file, so as to obtain a clearing file constructed once;
a judging submodule 334, configured to judge whether the number of currently-constructed liquidation files reaches a preset file construction number;
and the summarizing submodule 335 is configured to summarize all currently constructed clearing files constructed in a single time when the number of currently constructed clearing files reaches the preset file construction number, so as to obtain a plurality of clearing files obtained through batch construction processing.
In an alternative embodiment, the data definition template comprises one or more of a file name template, an english name of a data field, a field type and a field length.
In this embodiment, for the explanation of the clearing file construction system, reference may be made to the description in embodiment 1 or embodiment 2, and details are not repeated in this embodiment.
Therefore, the clearing file construction system described in the embodiment can solve the problems that the clearing file is difficult to generate and slow and tedious to construct in the testing and developing processes, and reduce the investment time of the clearing file preparation stage in the testing stage, thereby improving the working efficiency. Meanwhile, the method has the advantages of simple configuration, strong operability, high stability and the like, so that the ten-million-level data volume can be completed in a short time; and the file can automatically carry out validity check after being generated, thereby ensuring that a valid file is output.
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute a clearing file constructing method in embodiment 1 or embodiment 2 of the present application.
An embodiment of the present application provides a computer-readable storage medium, which stores computer program instructions, and when the computer program instructions are read and executed by a processor, the computer program instructions execute the clearing file constructing method in embodiment 1 or embodiment 2 of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A clearing document construction method, comprising:
acquiring configuration parameters and default value data uploaded by a user, wherein the configuration parameters comprise at least one type of specified file;
acquiring a data definition template corresponding to the specified file type;
generating a plurality of groups of configuration files according to the configuration parameters, the default value data and the data definition template;
and carrying out file batch construction according to a preset data processing rule, the multiple groups of configuration files and the construction quantity of the preset files to obtain a plurality of clearing files.
2. A construction method of clearing files according to claim 1, wherein after said performing file batch construction process according to preset data processing rules, said multiple groups of configuration files and preset file construction number to obtain multiple clearing files, said method further comprises:
carrying out validity detection on the plurality of clearing files according to the plurality of groups of configuration files to obtain a detection result;
determining an effective clearing file from the plurality of clearing files according to the detection result;
and outputting the effective clearing files in batches.
3. A liquidation file construction method of claim 1 wherein said generating a plurality of sets of configuration files from said configuration parameters, said default value data and said data definition template comprises:
analyzing the configuration parameters to obtain user parameters;
and matching and recombining the user parameters, the data definition template and the default value data through a rule engine to obtain a plurality of groups of configuration files.
4. A construction method for clearing files according to claim 1, wherein said performing file batch construction processing according to preset data processing rules, said multiple groups of configuration files and preset file construction number to obtain multiple clearing files comprises:
generating a message header, a message body and a message tail according to the data types in the multiple groups of configuration files and a preset data processing rule;
creating an initial file according to the file index names in the multiple groups of configuration files;
encrypting and writing the message header, the message body and the message tail into the initial file to obtain a clearing file constructed once;
judging whether the number of the currently constructed clearing files reaches the preset file construction number or not;
if so, summarizing all the once-constructed clearing files constructed currently to obtain a plurality of clearing files obtained by batch construction processing.
5. A liquidation file construction method of claim 1 wherein the data definition template comprises one or more of a file name template, a data field english name, a field type, a field length.
6. A clearing document construction system, comprising a configuration parameter processing module, a rules engine module, and a clearing document processing module, wherein,
the configuration parameter processing module is used for acquiring configuration parameters and default value data uploaded by a user, wherein the configuration parameters at least comprise an appointed file type; acquiring a data definition template corresponding to the specified file type;
the rule engine module is used for generating a plurality of groups of configuration files according to the configuration parameters, the default value data and the data definition template;
and the clearing file processing module is used for carrying out file batch construction processing according to a preset data processing rule, the multiple groups of configuration files and a preset file construction quantity to obtain a plurality of clearing files.
7. The clearing file construction system according to claim 6, wherein the configuration parameter processing module is further configured to perform a file batch construction process according to a preset data processing rule, the plurality of sets of configuration files, and a preset file construction number to obtain a plurality of clearing files, and then perform validity detection on the plurality of clearing files according to the plurality of sets of configuration files to obtain a detection result; and determining valid clearing documents from the plurality of clearing documents according to the detection result; and outputting the valid clearing files in batches.
8. The clearing document construction system according to claim 6, wherein the rule engine module is specifically configured to parse the configuration parameters to obtain user parameters; and matching and recombining the user parameters, the data definition template and the default value data through a rule engine to obtain a plurality of groups of configuration files.
9. An electronic device, characterized in that the electronic device comprises a memory for storing a computer program and a processor for executing the computer program to cause the electronic device to perform the liquidation file construction method of any one of claims 1 to 5.
10. A readable storage medium having stored thereon computer program instructions which, when read and executed by a processor, perform the liquidation file construction method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210743040.XA CN115099210A (en) | 2022-06-27 | 2022-06-27 | Construction method and system of clearing file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210743040.XA CN115099210A (en) | 2022-06-27 | 2022-06-27 | Construction method and system of clearing file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115099210A true CN115099210A (en) | 2022-09-23 |
Family
ID=83294219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210743040.XA Pending CN115099210A (en) | 2022-06-27 | 2022-06-27 | Construction method and system of clearing file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115099210A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116070252A (en) * | 2023-04-07 | 2023-05-05 | 中国信息通信研究院 | Batch file processing method, device, equipment and medium for industrial Internet nodes |
CN116151994A (en) * | 2022-12-20 | 2023-05-23 | 易保网络技术(上海)有限公司 | Structured data computing method, computing engine, device and readable storage medium |
-
2022
- 2022-06-27 CN CN202210743040.XA patent/CN115099210A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116151994A (en) * | 2022-12-20 | 2023-05-23 | 易保网络技术(上海)有限公司 | Structured data computing method, computing engine, device and readable storage medium |
CN116151994B (en) * | 2022-12-20 | 2023-12-01 | 易保网络技术(上海)有限公司 | Structured data computing method, computing engine, device and readable storage medium |
CN116070252A (en) * | 2023-04-07 | 2023-05-05 | 中国信息通信研究院 | Batch file processing method, device, equipment and medium for industrial Internet nodes |
CN116070252B (en) * | 2023-04-07 | 2023-09-22 | 中国信息通信研究院 | Batch file processing method, device, equipment and medium for industrial Internet nodes |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115099210A (en) | Construction method and system of clearing file | |
CN112650766A (en) | Database data operation method, system and server | |
CN110188135B (en) | File generation method and equipment | |
CN107329765B (en) | Program file processing method and device | |
CN107015948B (en) | Log information formatting method and system | |
CN108256870B (en) | Method and device for generating description information, updating and processing data based on topological structure | |
CN110716739A (en) | Code change information statistical method, system and readable storage medium | |
CN113312033A (en) | Template protocol generation and management method | |
CA2734207C (en) | Electronic file comparator | |
CN114282071A (en) | Request processing method, device and equipment based on graph database and storage medium | |
JP2006268661A (en) | Data import method and data import device | |
CN114297204A (en) | Data storage and retrieval method and device for heterogeneous data source | |
CN117851404A (en) | Report generation method, device, medium and equipment based on self-configuration | |
CN115599388A (en) | API (application programming interface) document generation method, storage medium and electronic equipment | |
CN115907400A (en) | Work order processing method and device | |
CN115455059A (en) | Method, device and related medium for analyzing user behavior based on underlying data | |
CN112051987B (en) | Service data processing method, device and equipment, program generating method and device | |
CN115576959B (en) | Real-time quality inspection method and device, electronic equipment and storage medium | |
CN111352824A (en) | Test method and device and computer equipment | |
CN115455035B (en) | Data query model construction method and computer-readable storage medium | |
CN116149677B (en) | Method, device, equipment and medium for burning serial numbers | |
CN115063217B (en) | Budget management method, device, equipment and medium | |
CN116756104A (en) | DBC file update comparison method, device, electronic equipment and storage medium | |
CN115756313A (en) | Data copying method and device | |
CN117312367A (en) | Method and device for calling structured query statement and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |