CN110162524B - Configuration data management method, device, computer equipment and storage medium - Google Patents

Configuration data management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110162524B
CN110162524B CN201910301190.3A CN201910301190A CN110162524B CN 110162524 B CN110162524 B CN 110162524B CN 201910301190 A CN201910301190 A CN 201910301190A CN 110162524 B CN110162524 B CN 110162524B
Authority
CN
China
Prior art keywords
configuration
information
partner
transaction
information table
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.)
Active
Application number
CN201910301190.3A
Other languages
Chinese (zh)
Other versions
CN110162524A (en
Inventor
薛思源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910301190.3A priority Critical patent/CN110162524B/en
Publication of CN110162524A publication Critical patent/CN110162524A/en
Application granted granted Critical
Publication of CN110162524B publication Critical patent/CN110162524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, computer equipment and a storage medium for managing configuration data, wherein the method comprises the following steps: creating a configuration data table group, and storing data in a configuration table corresponding to a partner into the configuration data table group; when a configuration file acquisition request sent by a partner is received through a configuration interface, acquiring configuration parameters from the configuration file acquisition request; inquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters; converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner; and sending the configuration file to the partner through the configuration interface. The invention solves the problems of complex process and low efficiency when the prior art carries out configuration table management on the system on the business outlet line.

Description

Configuration data management method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of information technologies, and in particular, to a method and apparatus for managing configuration data, a computer device, and a storage medium.
Background
With the rapid development of systems, online docking of insurance business orders is increasing. Each docking system has its corresponding configuration table or tables. The configuration table is a group of function management tables corresponding to the docking system, and configuration data are recorded on the configuration table. When there are a plurality of docking systems, a large number of configuration tables need to be managed. Only part of the fields are shared among the configuration tables, and unified management of the configuration tables is not possible. The prior art can only rely on the experience of a developer to manage the configuration table, the process is very complex, and the management efficiency is low.
Therefore, finding a method for unified management of configuration tables, reducing management complexity, and improving management efficiency is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a method, a device, computer equipment and a storage medium for managing configuration data, which are used for solving the problems of complex process and low efficiency in the prior art for managing a configuration table.
A method of managing configuration data, comprising:
creating a configuration data table group, and storing data in a configuration table corresponding to a partner into the configuration data table group;
when a configuration file acquisition request sent by a partner is received through a configuration interface, acquiring configuration parameters from the configuration file acquisition request;
inquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters;
converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner;
and sending the configuration file to the partner through the configuration interface.
Optionally, the configuration data table set includes a partner information table, a transaction type information table, a transaction expansion information table, a first association table, and a second association table;
the partner information table is used for recording attribute information of a partner;
the transaction type information table is used for recording basic information of different transaction types;
the transaction expansion information table is used for recording configuration information of different expansion interfaces under the same transaction type;
the first association relation table is used for recording association relation between the partner information table and the transaction type information table;
the second association relation table is used for recording association relation between the transaction type information table and the transaction expansion information table.
Optionally, the configuration parameters include partner code and transaction type;
the step of inquiring the configuration information and the template information corresponding to the partner from the configuration data table group according to the configuration parameters comprises the following steps:
inquiring the first association relation table according to the partner code and the transaction type to obtain a partner information table corresponding to the partner code;
inquiring the second association relation table according to the partner code and the transaction type to obtain a transaction type information table and a transaction expansion information table corresponding to the transaction type;
and acquiring configuration information and template information corresponding to the partner from the partner information table, the transaction type information table and the transaction extension information table.
Optionally, the converting the configuration information according to the template information through freemaker, and generating the configuration file corresponding to the partner includes:
loading the template information in a Freemarker;
dynamically binding the configuration information and packaging the configuration information into a data model;
and calling a Freemarker template file analysis class process () method to combine the data model and the template information to generate a configuration file.
Optionally, the method further comprises:
and acquiring a configuration information modification request through a preset management page, and executing modification, addition and/or deletion operations on the configuration data table group according to the configuration information modification request.
Optionally, the method further comprises:
and acquiring a configuration information query request through a preset management page, and executing query operation on the configuration data table group according to the configuration information query request.
A management apparatus for configuration data, comprising:
the system comprises a creation module, a configuration data table group and a configuration data table management module, wherein the creation module is used for creating a configuration data table group and storing data in a configuration table corresponding to a partner into the configuration data table group;
the system comprises a request acquisition module, a configuration interface and a configuration module, wherein the request acquisition module is used for acquiring configuration parameters from a configuration file acquisition request sent by a partner when the configuration file acquisition request is received through the configuration interface;
the information acquisition module is used for acquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters;
the conversion module is used for converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner;
and the sending module is used for returning the configuration file to the partner through the configuration interface.
Optionally, the configuration data table set includes a partner information table, a transaction type information table, a transaction expansion information table, a first association table, and a second association table;
the partner information table is used for recording attribute information of a partner;
the transaction type information table is used for recording basic information of different transaction types;
the transaction expansion information table is used for recording configuration information of different expansion interfaces under the same transaction type;
the first association relation table is used for recording association relation between the partner information table and the transaction type information table;
the second association relation table is used for recording association relation between the transaction type information table and the transaction expansion information table.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the above described method of managing configuration data when executing the computer program.
A computer readable storage medium storing a computer program which, when executed by a processor, implements the above-described configuration data management method.
The embodiment of the invention creates a configuration data table group and stores the data in the configuration table corresponding to the partner into the configuration data table group; when a configuration file acquisition request sent by a partner is received through a configuration interface, acquiring configuration parameters from the configuration file acquisition request; then inquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters; converting the configuration information through a freemaker according to the template information to generate a configuration file corresponding to the partner; and finally, the configuration file is sent to the partner through the configuration interface, so that unified management of configuration tables of a plurality of docking systems is realized, the number of various types of configuration tables in each docking system is reduced, the complexity of system management is reduced, and the management efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for managing configuration data according to an embodiment of the invention;
FIG. 2 is a flowchart of step S103 in a method for managing configuration data according to an embodiment of the present invention;
FIG. 3 is a flowchart of step S104 in a method for managing configuration data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a module conversion process in accordance with one embodiment of the present invention;
FIG. 5 is a schematic block diagram of a configuration data management apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a computer device in accordance with an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The management method of the configuration data provided by the embodiment of the invention is applied to a configuration system. The configuration system may be implemented as a stand-alone server or as a cluster of servers. In one embodiment, as shown in fig. 1, a method for managing configuration data is provided, including the following steps:
in step S101, a configuration data table set is created, and data in a configuration table corresponding to a partner is stored in the configuration data table set.
Here, the partner refers to a docking system that needs to be subjected to unified configuration management, such as suning and anti-cancellation protection, and the partner corresponds to the docking system one by one. The configuration data table group is a group of database tables and comprises a plurality of configuration data tables for uniformly managing the configuration data of each partner.
Each docking system on the service outlet line has its corresponding configuration table or tables. The configuration table is a group of function management tables corresponding to the docking system, and configuration data are recorded on the configuration table. When there are multiple systems on the outgoing line to interface, a large number of configuration tables need to be managed. In view of this, in the embodiment of the present invention, a configuration data table group is created in a configuration system, data managed by configuration tables of a plurality of docking systems are uniformly placed in the configuration data table group to be managed, and then a corresponding configuration file is generated for each docking system through template conversion, so as to simplify a configuration management function.
Optionally, the configuration data table set includes five tables, namely a PARTNER information table (t_opening_parameter_info), a transaction type information table (t_opening_request_info), a transaction extension information table (t_opening_request_info), a first association table (t_opening_parameter_request_rel), and a second association table (t_opening_request_confirm_rel).
The partner information table is used for recording attribute information of the partner, namely attribute information of the docking system. A partner information table correspondingly records attribute information of a partner. Optionally, the attribute information includes, but is not limited to, an ID of a partner information table, partner code, partner name, client ID, service type, and partner status.
The transaction type information table is used for recording basic information of different transaction types. The transaction type is the name of the transaction type and is used for distinguishing different transaction functions, and one transaction function corresponds to one transaction type. Illustratively, the transaction types include, but are not limited to, quotes, non-pay-out, pay, underwriting, electronic documents, electronic invoices, queries, corrections, correction quotes, notification to accounts. Optionally, the basic information recorded in the transaction type information table includes, but is not limited to, ID of the transaction type information table, transaction type, system code, system URL, status of transaction, remark, service type, transaction code.
The transaction expansion information table is used for recording configuration information of different expansion interfaces under the same transaction type. Here, the same transaction type may include a plurality of transaction manners thereunder. Taking a non-visible fee bill as an example, there are a standard transaction mode and a non-standard transaction mode, wherein the standard transaction mode corresponds to one type of expansion interface, the non-standard transaction mode corresponds to another type of expansion interface, and the configuration information of the two expansion interfaces is different. Optionally, the configuration information recorded in the transaction extension information table includes, but is not limited to, ID of the transaction extension information table, call type, call address, call URI, request entry type, request conversion template, return exit type, return conversion template, call channel, processing service class, signature verification KEY value, encrypted file path, encrypted public KEY, decrypted private KEY, creator, creation date, modifier, date.
The first association relation table is used for recording association relation between the partner information table and the transaction type information table. The first association table comprises a plurality of first association relations, and each first association relation comprises, but is not limited to, an ID of the association relation, an ID of the partner information table, an ID of one association relation in the second association relation table and a partner transaction state.
The second association relation table is used for recording association relation between the transaction type information table and the transaction expansion information table. The second association relation table comprises a plurality of second association relations, and each second association relation comprises, but is not limited to, an ID of the association relation, an ID of the transaction type information table, an ID of the transaction extension information table and a transaction call information configuration state.
The embodiment of the invention records the configuration information and the template information of each partner through the partner information table, the transaction type information table and the transaction extension information table. Wherein the template information is stored in a transaction extension information table. Here, the template information refers to a configuration file obtained by extracting personalized content from a configuration table and vacating or using a value expression, that is, the template information is a document having a fixed format in which basic content has been written, and the content of the vacated or using the value expression is filled in by the configuration system. The embodiment of the invention uses a specific code enclosed by ${ } and ${ } as a value expression, wherein the specific code is a Freemarker instruction, so that the template information is a file containing the Freemarker instruction, such as the following template information:
wherein, $ { SYSTEM_ID }, $ { OUTER_URL-! }, $ { sign_key-! All are valued expressions. By using a file containing the freemaker instruction as template information, the operation of performing template conversion in subsequent steps is facilitated.
According to the embodiment of the invention, the configuration data table group is created, and the data in the configuration tables of the partners are migrated into the configuration data table group, so that the maintenance and management of the configuration information and the template information of a plurality of docking systems on a service outlet single line are greatly facilitated; the configuration data table group can be compatible with various functional configuration tables, is beneficial to reducing the number of various configuration tables in a system, and is convenient for unified development and page management.
In step S102, when a profile acquisition request sent by a partner is received through a configuration interface, a configuration parameter is acquired from the profile acquisition request.
Here, the partner is encoded as identification information of the partner, i.e. identification information of the docking system, for distinguishing between different partners. The transaction type is the name of the transaction type and is used for distinguishing different transaction functions, and one transaction function corresponds to one transaction type. Illustratively, the transaction types include, but are not limited to, quotes, non-pay-out, pay, underwriting, electronic documents, electronic invoices, queries, corrections, correction quotes, notification to accounts.
In the embodiment of the invention, the configuration system receives a configuration file acquisition request from the partner through a preset configuration interface, and analyzes the configuration file acquisition request to obtain configuration parameters, namely the partner code and the transaction type.
In step S103, the configuration information and the template information corresponding to the partner are queried from the configuration data table set according to the configuration parameters.
After the configuration system obtains the configuration parameters, respectively inquiring a partner information table, a transaction type information table, a transaction expansion information table, a first association relation table and a second association relation table in the configuration data table group according to the configuration parameters to obtain configuration information and template information corresponding to the partner.
As a preferred example of the present invention, the configuration parameters include partner code and transaction type. As shown in fig. 2, the step S103 of querying, from the configuration data table set, configuration information and template information corresponding to the partner according to the configuration parameters includes:
in step S1031, the first association table is queried according to the partner code and the transaction type, so as to obtain a partner information table corresponding to the partner code.
As mentioned above, the first association table is used for recording the association relationship between the partner information table and the transaction type information table. The first association relation table comprises a plurality of first association relations, and each first association relation comprises an ID of the first association relation, an ID of the partner information table, an ID of one second association relation in the second association relation table and a partner transaction state. The ID of the first association relation is a main key, and the ID of the partner information table and the ID of the second association relation are external keys. According to the embodiment of the invention, the ID of the partner-transaction type information is generated according to the partner code and the transaction type in the configuration parameters, a first association relation of which the main key is the ID of the partner-transaction type information is searched from the first association relation table, and then the ID of the partner information table and the ID of one second association relation in the second association relation table are obtained according to the obtained first association relation, so that one second association relation in the partner information table and the second association relation table is obtained.
In step S1032, the second association relationship table is queried according to the partner code and the transaction type, so as to obtain a transaction type information table and a transaction extension information table corresponding to the transaction type.
As described above, the second association table is used for recording the association relationship between the transaction type information table and the transaction extension information table. The second association relation table comprises a plurality of second association relations, and each second association relation comprises an ID of the second association relation, an ID of the transaction type information table, an ID of the transaction expansion information table and a transaction calling information configuration state. Here, the ID of the second association is a primary key, and the ID of the transaction type information table and the ID of the transaction extension information table are foreign keys. According to the embodiment of the invention, the ID of the partner-transaction type information is generated according to the partner code and the transaction type in the configuration parameters, the second association relation of which the main key is the ID of the partner-transaction type information is searched from the second association relation table, and then the ID of the transaction type information table and the ID of the transaction expansion information table are obtained according to the obtained second association relation, so that the transaction type information table and the transaction expansion information table are obtained.
In step S1033, configuration information and template information corresponding to the partner are acquired from the partner information table, the transaction type information table, and the transaction extension information table.
In the embodiment of the invention, the partner information table, the transaction type information table and the transaction expansion information table are data tables, the configuration information of the partner in the current request can be obtained from the partner information table, the transaction type information table and the transaction expansion information table, and the template information of the partner in the current request can be obtained from the transaction expansion information table.
In step S104, the configuration information is converted according to the template information through freemaker, so as to generate a configuration file corresponding to the partner.
Here, the freemaker is a template engine capable of generating text output based on a preset template, including but not limited to HTML web pages, emails, configuration files, source code, etc. After the configuration information and the template information are obtained, the embodiment of the invention analyzes the template information by running a Freemarker through a configuration system, runs the template information, adopts the configuration information to replace a valued expression in the template information, and processes the configuration information into a configuration format required by a partner, thereby generating a configuration file required by the partner. Optionally, the configuration format includes, but is not limited to json format, xml format. As shown in fig. 3, the step S104 of converting the configuration information according to the template information through freejacket, and generating a configuration file corresponding to the partner includes:
in step S1041, the template information is loaded in a freemaker.
Here, the embodiment of the present invention puts the style required by the configuration file, that is, the acquired template information, into the freemaker file to generate the template object.
In step S1042, the configuration information is dynamically bound and packaged as a data model.
Here, the data model is used to provide varying information to the template. The embodiment of the invention generates the data object by packaging the data required by the configuration file, namely the configuration information, into the data model.
In step S1043, a freemaker template file analysis class process () method is called to combine the data model and the template information, and a configuration file is generated.
The method includes the steps that firstly, a path and a name of a configuration file to be generated are set through an output stream object Writer, then, a data model is used for filling the template object through the Freemarker template file analysis class process () method to obtain the configuration file, and the configuration file is stored according to the set path, so that the configuration file corresponding to the partner is generated.
In order to facilitate understanding, a schematic diagram of a template conversion process provided by the embodiment of the present invention is provided below, and the schematic diagram is shown in fig. 4 below. In the figure, fig. 4 (a) shows configuration information obtained by searching a configuration data table set according to configuration parameters sent by a partner, including an ID of a docking system, a transaction type, an OUTER URL, an OUTER URI, a request conversion template, a return conversion template, and an encryption key. FIG. 4 (b) shows template information found from the transaction extension information table of the configuration data table group, in which $ { SYSTEM_ID }, $ { OUTER_URI-! }, $ { sign_key-! All are valued expressions. When the template conversion is carried OUT through Freemarker, ICORE-PTS in the configuration information is used for replacing a value expression $ { SYSTEM_ID }, OUTER/STANDARD_OUT/OUTER_DMZ/inspirance/weiTianBackgroup. Actions g_outer_access_token = value expression $ { OUTER_URI-! Replacing the OPENAPI in the configuration information with the valued expression $ { SIGN_KEY-! And obtaining the configuration file required by the partner. As shown in fig. 4 (c), the configuration file is obtained after freemaker conversion, so that unified management of the function configuration tables of multiple docking systems on a service outlet single line is realized, and the configuration file is beneficial to standardization and new configuration, and the complexity of docking system management is reduced.
In step S105, the configuration file is sent to the partner via the configuration interface.
After template conversion is completed through Freemarker, the configuration system returns the obtained configuration file to the partner. After the partner acquires the configuration file, the partner can store the configuration file into a cache and set the expiration time to wait for the next use. Optionally, the partner may store the configuration file in its own Redis cache database, so that the Redis cache may be queried first when the configuration file is used next time, and the configuration system may be requested when the request is not received, thereby reducing the pressure of calling the configuration interface.
In summary, in the embodiment of the present invention, a configuration data table set is created, and data in a configuration table corresponding to a partner is stored in the configuration data table set; when a configuration file acquisition request sent by a partner is received through a configuration interface, acquiring configuration parameters from the configuration file acquisition request; searching configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters; converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner; finally, returning the configuration file to the partner through the configuration interface; therefore, the unified management of the function configuration tables of the plurality of docking systems on the service outlet single line is realized, the number of various types of configuration tables in each docking system is reduced, the complexity of system management is reduced, and the management efficiency is improved.
Optionally, in another embodiment of the present invention, the method may further include:
acquiring a configuration information modification request through a preset management page, and executing modification, addition and/or deletion operations on the configuration data table group according to the configuration information modification request;
and/or
And acquiring a configuration information query request through a preset management page, and executing query operation on the configuration data table group according to the configuration information query request.
In the embodiment of the invention, the configuration data corresponding to different partners are migrated to the configuration data table group, which is beneficial to unified development and management of pages. The configuration system can establish a management page based on the configuration data table group, then acquire a modification request/query request for configuration information through the management page, and perform addition, deletion and modification operation on the partner information table, the transaction type information table and the transaction expansion information table in the configuration data table group according to the modification request/query request, thereby realizing configuration data management of each partner through the page, facilitating switching and management of functions of each partner, simplifying maintenance operation on the configuration data, and improving timeliness of system docking.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
In an embodiment, a configuration data management device is provided, where the configuration data management device corresponds to the configuration data management method in the above embodiment one by one. As shown in fig. 5, the management device of the configuration data includes a creation module, an acquisition module, a search module, a conversion module, and a transmission module. The functional modules are described in detail as follows:
the creating module 51 is configured to create a configuration data table set, and store data in a configuration table corresponding to a partner into the configuration data table set;
a request acquisition module 52, configured to acquire a configuration parameter from a configuration file acquisition request sent by a partner when the configuration file acquisition request is received through a configuration interface;
an information obtaining module 53, configured to obtain, from the configuration data table set, configuration information and template information corresponding to the partner according to the configuration parameter;
the conversion module 54 is configured to convert the configuration information according to the template information through a freemaker, and generate a configuration file corresponding to the partner;
and the sending module 55 is used for returning the configuration file to the partner through the configuration interface.
Optionally, the configuration data table set includes a partner information table, a transaction type information table, a transaction expansion information table, a first association table, and a second association table;
the partner information table is used for recording attribute information of a partner;
the transaction type information table is used for recording basic information of different transaction types;
the transaction expansion information table is used for recording configuration information of different expansion interfaces under the same transaction type;
the first association relation table is used for recording association relation between the partner information table and the transaction type information table;
the second association relation table is used for recording association relation between the transaction type information table and the transaction expansion information table.
Optionally, the configuration parameters include partner code and transaction type;
the information acquisition module 53 includes:
the first query unit is used for querying the first association relation table according to the partner code and the transaction type to obtain a partner information table corresponding to the partner code;
the second query unit is used for querying the second association relation table according to the partner code and the transaction type to obtain a transaction type information table and a transaction expansion information table corresponding to the transaction type;
and the acquisition unit is used for acquiring the configuration information and the template information corresponding to the partner from the partner information table, the transaction type information table and the transaction extension information table.
Optionally, the conversion module 54 includes:
the loading unit is used for loading the template information in a Freemarker;
the binding unit is used for dynamically binding the configuration information and packaging the configuration information into a data model;
and the merging unit is used for calling a Freemarker template file analysis class process () method to merge the data model and the template information and generate a configuration file.
Optionally, the apparatus further comprises:
the modification module is used for acquiring a configuration information modification request through a preset management page, and executing modification, addition and/or deletion operations on the configuration data table group according to the configuration information modification request.
Optionally, the apparatus further comprises:
the query module is used for acquiring a configuration information query request through a preset management page, and executing query operation on the configuration data table group according to the configuration information query request.
For specific limitations on the management apparatus of the configuration data, reference may be made to the above limitations on the management method of the configuration data, and no further description is given here. The respective modules in the above-described management apparatus for configuration data may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of managing configuration data.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
creating a configuration data table group, and storing data in a configuration table corresponding to a partner into the configuration data table group;
when a configuration file acquisition request sent by a partner is received through a configuration interface, acquiring configuration parameters from the configuration file acquisition request;
inquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters;
converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner;
and sending the configuration file to the partner through the configuration interface.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
creating a configuration data table group, and storing data in a configuration table corresponding to a partner into the configuration data table group;
when a configuration file acquisition request sent by a partner is received through a configuration interface, acquiring configuration parameters from the configuration file acquisition request;
inquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters;
converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner;
and sending the configuration file to the partner through the configuration interface.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (7)

1. A method for managing configuration data, comprising:
creating a configuration data table group, and storing data in a configuration table corresponding to a partner into the configuration data table group, wherein the configuration data table group comprises a partner information table, a transaction type information table, a transaction expansion information table, a first association relation table and a second association relation table; the partner information table is used for recording attribute information of a partner; the transaction type information table is used for recording basic information of different transaction types; the transaction expansion information table is used for recording configuration information of different expansion interfaces under the same transaction type; the first association relation table is used for recording association relation between the partner information table and the transaction type information table; the second association relation table is used for recording association relation between the transaction type information table and the transaction expansion information table;
when a configuration file acquisition request sent by a partner is received through a configuration interface, acquiring configuration parameters from the configuration file acquisition request;
inquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters, wherein the configuration parameters comprise partner codes and transaction types; the step of inquiring the configuration information and the template information corresponding to the partner from the configuration data table group according to the configuration parameters comprises the following steps: inquiring the first association relation table according to the partner code and the transaction type to obtain a partner information table corresponding to the partner code; inquiring the second association relation table according to the partner code and the transaction type to obtain a transaction type information table and a transaction expansion information table corresponding to the transaction type; acquiring configuration information and template information corresponding to the partner from the partner information table, the transaction type information table and the transaction extension information table;
converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner;
and sending the configuration file to the partner through the configuration interface.
2. The method for managing configuration data according to claim 1, wherein said converting the configuration information by freemaker according to the template information, generating a configuration file corresponding to the partner includes:
loading the template information in a Freemarker;
dynamically binding the configuration information and packaging the configuration information into a data model;
invoking Freemarker template file resolution classprocess()And combining the data model and the template information to generate a configuration file.
3. The method for managing configuration data according to claim 1, characterized by further comprising:
and acquiring a configuration information modification request through a preset management page, and executing modification, addition and/or deletion operations on the configuration data table group according to the configuration information modification request.
4. The method for managing configuration data according to claim 1, characterized by further comprising:
and acquiring a configuration information query request through a preset management page, and executing query operation on the configuration data table group according to the configuration information query request.
5. A management apparatus for configuration data, comprising:
the system comprises a creation module, a configuration data table set and a storage module, wherein the creation module is used for creating a configuration data table set and storing data in a configuration table corresponding to a partner into the configuration data table set, and the configuration data table set comprises a partner information table, a transaction type information table, a transaction expansion information table, a first association relation table and a second association relation table; the partner information table is used for recording attribute information of a partner; the transaction type information table is used for recording basic information of different transaction types; the transaction expansion information table is used for recording configuration information of different expansion interfaces under the same transaction type; the first association relation table is used for recording association relation between the partner information table and the transaction type information table; the second association relation table is used for recording association relation between the transaction type information table and the transaction expansion information table;
the system comprises a request acquisition module, a configuration interface and a configuration module, wherein the request acquisition module is used for acquiring configuration parameters from a configuration file acquisition request sent by a partner when the configuration file acquisition request is received through the configuration interface;
the information acquisition module is used for acquiring configuration information and template information corresponding to the partner from the configuration data table group according to the configuration parameters, wherein the configuration parameters comprise partner codes and transaction types; the information acquisition module includes: the first query unit is used for querying the first association relation table according to the partner code and the transaction type to obtain a partner information table corresponding to the partner code; the second query unit is used for querying the second association relation table according to the partner code and the transaction type to obtain a transaction type information table and a transaction expansion information table corresponding to the transaction type; the acquisition unit is used for acquiring configuration information and template information corresponding to the partner from the partner information table, the transaction type information table and the transaction extension information table;
the conversion module is used for converting the configuration information according to the template information through a Freemarker to generate a configuration file corresponding to the partner;
and the sending module is used for returning the configuration file to the partner through the configuration interface.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method of managing configuration data according to any of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method of managing configuration data according to any one of claims 1 to 4.
CN201910301190.3A 2019-04-15 2019-04-15 Configuration data management method, device, computer equipment and storage medium Active CN110162524B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910301190.3A CN110162524B (en) 2019-04-15 2019-04-15 Configuration data management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910301190.3A CN110162524B (en) 2019-04-15 2019-04-15 Configuration data management method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110162524A CN110162524A (en) 2019-08-23
CN110162524B true CN110162524B (en) 2023-08-25

Family

ID=67639411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910301190.3A Active CN110162524B (en) 2019-04-15 2019-04-15 Configuration data management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110162524B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110795140A (en) * 2019-09-26 2020-02-14 连连银通电子支付有限公司 Configuration file generation method and device
CN111104191B (en) * 2019-12-17 2024-04-02 深圳前海环融联易信息科技服务有限公司 Interface docking method, device, computer equipment and storage medium
CN111800382B (en) * 2020-05-28 2024-04-05 中国平安财产保险股份有限公司 Cooperative system docking method, apparatus, system and computer readable storage medium
CN112487163B (en) * 2020-11-30 2024-04-12 广州品唯软件有限公司 Execution method of automatic flow and method and device for acquiring interface data of execution method
CN112434507B (en) * 2020-12-10 2022-03-15 四川长虹电器股份有限公司 Electronic bill generating method based on bill element configuration
CN113779953B (en) * 2021-11-10 2022-04-01 航天宏图信息技术股份有限公司 Automatic document generation method and system
CN116009949B (en) * 2023-03-28 2023-08-29 税友软件集团股份有限公司 Numerical value acquisition method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243167A (en) * 2015-11-10 2016-01-13 中国建设银行股份有限公司 Data processing method and device
CN106980514A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The update method and device of configuration data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243167A (en) * 2015-11-10 2016-01-13 中国建设银行股份有限公司 Data processing method and device
CN106980514A (en) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 The update method and device of configuration data

Also Published As

Publication number Publication date
CN110162524A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110162524B (en) Configuration data management method, device, computer equipment and storage medium
CN110765484B (en) Credit data processing method and electronic equipment
CN112861496A (en) Report generation display method and device, computer equipment and readable storage medium
CN111027295B (en) Data processing method, device, computer equipment and storage medium
CN110908778B (en) Task deployment method, system and storage medium
CN109062925B (en) Method, device, computer equipment and storage medium for automatically generating insert sentences
CN109190353B (en) Method and computing device for automatically generating certificate document
CN111818175B (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN106649676A (en) Duplication eliminating method and device based on HDFS storage file
US11494552B2 (en) System and method for implementing smart business intelligence testing tools
US20070168868A1 (en) Method and system for integrating calculation and presentation technologies
CN110275703B (en) Method and device for assigning key value to data, computer equipment and storage medium
CN114676686A (en) Data dictionary processing method, translation method and related device
CN114385760A (en) Method and device for real-time synchronization of incremental data, computer equipment and storage medium
CN113297153A (en) Data export method, device, equipment and storage medium
CN110442492A (en) A kind of System Operation Log management method and device
CN108874944B (en) XSL language transformation-based heterogeneous data mapping system and method
CN111275436A (en) Method and terminal for processing information
CN110851446B (en) Data table generation method and device, computer equipment and storage medium
CN112685451B (en) Data query processing method, device, computer equipment and storage medium
CN109344372B (en) Big data-based document generation method and system
CN110442812B (en) Permission control method and system for foreground page
CN114021175A (en) User portrait configuration method and device, computer equipment and medium
CN113553344A (en) Business data management method, system, computer equipment and storage medium
CN112187909A (en) Financing information generation system and method based on block chain

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
GR01 Patent grant
GR01 Patent grant