CN112463259B - Configuration information generation method and device, electronic device and medium - Google Patents

Configuration information generation method and device, electronic device and medium Download PDF

Info

Publication number
CN112463259B
CN112463259B CN202011511734.8A CN202011511734A CN112463259B CN 112463259 B CN112463259 B CN 112463259B CN 202011511734 A CN202011511734 A CN 202011511734A CN 112463259 B CN112463259 B CN 112463259B
Authority
CN
China
Prior art keywords
configuration
information
configuration item
item
configuration information
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
CN202011511734.8A
Other languages
Chinese (zh)
Other versions
CN112463259A (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.)
Hangzhou Souche Technology Co ltd
Original Assignee
Hangzhou Souche Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Souche Technology Co ltd filed Critical Hangzhou Souche Technology Co ltd
Priority to CN202011511734.8A priority Critical patent/CN112463259B/en
Publication of CN112463259A publication Critical patent/CN112463259A/en
Application granted granted Critical
Publication of CN112463259B publication Critical patent/CN112463259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a method, a device, an electronic device and a storage medium for generating configuration information. The method for generating the configuration information comprises the following steps: receiving a query request sent by a terminal, wherein the query request carries version information and type information of configuration information requested to be queried; determining configuration information of the request query according to the version information; under the condition that the configuration information requested to be queried is newly added configuration information, matching a target configuration item in preset configuration items according to the type information; copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and target configuration items matched from preset configuration items to generate newly added configuration information; the method comprises the steps of storing newly added configuration information, transmitting the newly added configuration information to a terminal, solving the problems of complex configuration information generation process, low iteration update efficiency and difficult tracing in the related technology, realizing the iteration update of the configuration information in a configuration mode, and improving the efficiency of the configuration information update.

Description

Configuration information generation method and device, electronic device and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for generating configuration information.
Background
With the continuous development of computer technology, online configuration information generation and query become an important real-time query mode of configuration information, for example: and generating lease scheme information of a car lease market, and generating a marketing campaign. The online configuration information generation is based on a gateway and a server, and the online configuration information is dynamically updated and is used for the inquiry of a user.
At present, when the configuration information needs to be updated in the related art, the existing configuration information is often deleted physically, and then new configuration information is regenerated, in this mode, when the historical configuration information needs to be checked to check the problem, the configuration information is deleted, so that data cannot be counted, and the problem can not be found by backtracking the historical configuration information. For example: when whether the response generated by the historical configuration information is reasonably analyzed or the response generated by the historical configuration information is found to have a problem is needed, the trace-source analysis cannot be performed based on the content corresponding to the historical configuration information because the historical configuration information is deleted in the process of updating the configuration information.
Meanwhile, the updating of the configuration information in the related art can be realized by recompiling codes, and when the updating frequency of the configuration information is high, the data volume of the configuration information is large and different configuration information are dependent, the following defects exist: firstly, when the update frequency of the configuration information is high and the data volume of the configuration information is large, the configuration information is regenerated in a code recompilation mode, so that the efficiency is low, and the iteration replacement of the configuration information is slow; secondly, the generated configuration information is deleted in the updating process, and the deleted configuration information and the generated problems cannot be traced; thirdly, when different configuration information is depended on, deletion of the configuration information is easy to cause that the associated configuration information cannot be normally stored and updated.
At present, no effective solution is proposed for the problems of complex configuration information generation process, low iteration update efficiency and difficult tracing in the related technology.
Disclosure of Invention
The embodiment of the application provides a method, a device, an electronic device and a medium for generating configuration information, which are used for at least solving the problems of complex configuration information generation process, low iteration update efficiency and difficult tracing in the related technology.
In a first aspect, an embodiment of the present application provides a method for generating configuration information, including:
receiving a query request sent by a terminal, wherein the query request carries version information and type information of configuration information requested to be queried;
determining the configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information;
under the condition that the configuration information requested to be queried is newly added configuration information, matching a target configuration item in a preset configuration item according to the type information, wherein the preset configuration item comprises a configuration item formed after the configuration item of the history configuration information is updated;
copying a plurality of first configuration items of the history configuration information corresponding to the type information, and carrying out data recombination on the plurality of first configuration items and the target configuration items matched from the preset configuration items to generate the newly added configuration information;
and storing the newly added configuration information and transmitting the newly added configuration information to the terminal.
In some embodiments, according to the type information, matching the target configuration item in the preset configuration items includes: determining a first type of the target configuration item according to the type information; selecting a candidate configuration item corresponding to the first type from the preset configuration items, wherein the candidate configuration item comprises a first generation time corresponding to the candidate configuration item; selecting a second configuration item of the first generation time within a first preset time from the candidate configuration items, and determining that the target configuration item comprises the second configuration item, wherein the first preset time comprises an updating time interval of the preset configuration item.
In some embodiments, copying a first configuration item of the history configuration information corresponding to the type information, and data compositing the first configuration item and the target configuration item matched from the preset configuration items, where generating the newly added configuration information includes: copying a plurality of the first configuration items to obtain a plurality of third configuration items; detecting a fourth configuration item in the third configuration items, wherein the fourth configuration item corresponds to a historical configuration item of the target configuration item; generating the newly added configuration information according to a plurality of third configuration items and the target configuration item under the condition that the fourth configuration item is not detected; and under the condition that the fourth configuration item is detected, updating the fourth configuration item according to the target configuration item to obtain the newly-added configuration information.
In some of these embodiments, updating the fourth configuration item according to the target configuration item includes: detecting whether the target configuration item has a first sub-configuration item; updating the target configuration item to the fourth configuration item if the target configuration item is not detected to have the first sub-configuration item; and under the condition that the target configuration item is detected to have a plurality of first sub-configuration items, selecting a second sub-configuration item from the plurality of first sub-configuration items, and updating a third sub-configuration item corresponding to the second sub-configuration item in the sub-configuration items of the fourth configuration item into the second sub-configuration item to finish updating the configuration item, wherein the second sub-configuration item comprises a sub-configuration item which completes updating relative to the sub-configuration item of the fourth configuration item.
In some of these embodiments, in the event that the fourth configuration item is detected, the method further comprises: and deleting the fourth configuration item and generating the newly added configuration information.
In some of these embodiments, determining the configuration information for requesting a query from the version information includes: determining a second generation time of the configuration information for requesting query according to the version information; when the second generation time is before the current time, determining that the configuration information of the request query is historical configuration information; and when the second generation time comprises the current time, determining the configuration information of the request query as newly added configuration information.
In some of these embodiments, in the event that the configuration information of the request query is determined to be historical configuration information, the method includes: detecting the history configuration information corresponding to the type information in a plurality of stored history configuration information, and transmitting the history configuration information to the terminal.
In some of these embodiments, the history configuration information and/or the newly added configuration information is transmitted to the terminal through a Dubbo interface.
In a second aspect, an embodiment of the present application provides a device for generating configuration information, including:
The receiving module is used for receiving a query request sent by the terminal, wherein the query request carries version information and type information of configuration information requested to be queried;
the determining module is used for determining the configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information;
the matching module is used for matching a target configuration item in a preset configuration item according to the type information under the condition that the configuration information requested to be queried is newly added configuration information, wherein the preset configuration item comprises a configuration item formed after the configuration item of the history configuration information is updated;
the generation module is used for copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and the target configuration items matched from the preset configuration items to generate the newly added configuration information;
and the processing module is used for storing the newly added configuration information and transmitting the newly added configuration information to the terminal.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, and a processor, where the memory stores a computer program, and the processor is configured to run the computer program to perform the method for generating configuration information according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium, where a computer program is stored, where the computer program is configured to execute the method for generating configuration information according to the first aspect when the computer program is executed.
Compared with the related art, the method, the device, the electronic device and the storage medium for generating the configuration information are provided, and the query request sent by the terminal is received, wherein the query request carries version information and type information of the configuration information requesting query; determining configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information; under the condition that the configuration information requested to be queried is newly added configuration information, matching a target configuration item in a preset configuration item according to type information, wherein the preset configuration item comprises a configuration item formed after the configuration item of the history configuration information is updated; copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and target configuration items matched from preset configuration items to generate newly added configuration information; the method has the advantages that the method stores the newly added configuration information, transmits the newly added configuration information to the terminal, solves the problems of complex configuration information generation process, low iteration update efficiency and difficult tracing in the related technology, realizes the rapid iteration update of the configuration information in a configuration mode, improves the efficiency of the configuration information update, and simultaneously, realizes the beneficial effects of ensuring the rapid update of the configuration information and accurately tracing the historical configuration information.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a hardware configuration block diagram of a terminal of a configuration information generation method of an embodiment of the present invention;
FIG. 2 is a flow chart of a method of generating configuration information according to an embodiment of the present application;
fig. 3 is a block diagram of the configuration information generating apparatus according to the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described and illustrated below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden on the person of ordinary skill in the art based on the embodiments provided herein, are intended to be within the scope of the present application.
It is apparent that the drawings in the following description are only some examples or embodiments of the present application, and it is possible for those of ordinary skill in the art to apply the present application to other similar situations according to these drawings without inventive effort. Moreover, it should be appreciated that while such a development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as having the benefit of this disclosure.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by those of ordinary skill in the art that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar terms herein do not denote a limitation of quantity, but rather denote the singular or plural. The terms "comprising," "including," "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein refers to two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The terms "first," "second," "third," and the like, as used herein, are merely distinguishing between similar objects and not representing a particular ordering of objects.
The various techniques described in this application may be used for configuration of policy information in non-business areas, such as: the control of the routing strategy and the update of the online information can be used for generating and updating the activity scheme and the transaction scheme in the business field, for example: and generating a lease contract scheme and transaction information in the automobile financing and leasing process, for example: and generating an activity scheme and scheme content in the marketing activity process.
The embodiment of the method for generating the configuration information provided in the embodiment can be executed in a terminal, a computer or a similar test platform. Taking the operation on the terminal as an example, fig. 1 is a block diagram of a hardware structure of an operation terminal of a method for generating configuration information according to an embodiment of the present invention. As shown in fig. 1, the terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally, a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting on the structure of the terminal described above. For example, the terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for generating configuration information in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-described method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. The specific example of the network described above may include a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
The present embodiment provides a method for generating configuration information, and fig. 2 is a flowchart of a method for generating configuration information according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
step S201, a query request sent by a terminal is received, where the query request carries version information and type information of configuration information requested to be queried.
In this embodiment, the version information corresponds to the generation time of the configuration information, for example: before the request query time, the version information of the existing configuration information is marked as a historical version, and the version information of the configuration information which is not generated at the request query time is marked as a to-be-generated, i.e. a new version.
In this embodiment, the type information corresponds to the type of the configuration information, for example: when the configuration information corresponds to solution information in the process of the car financing lease transaction, the type information may include: rental scheme information, staging scheme information, buying scheme information and vehicle returning scheme information.
Step S202, determining configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information.
In this embodiment, whether the configuration information requested to be queried is history configuration information or newly added configuration information is determined by version information; when the configuration information of the request query is historical configuration information, corresponding to the stored configuration information for query, the stored configuration information is used before the current moment, and corresponding response is generated; when the configuration information requested to be queried is newly added configuration information, the configuration information is correspondingly generated, and then, the new configuration information is generated according to the historical configuration information and the updating requirement of the related historical configuration information.
In this embodiment, when the configuration information is solution information in the process of the vehicle financing and renting transaction, the history configuration information corresponds to performance scheme information performed in the completed lease period, and the newly added configuration information corresponds to new performance scheme information formed in the new lease period based on the existing performance scheme information.
In step S203, in the case that the configuration information requested to be queried is determined to be the newly added configuration information, matching the target configuration item in the preset configuration items according to the type information, wherein the preset configuration items include the configuration items formed after the configuration items of the history configuration information are updated.
In this embodiment, the preset configuration items are a plurality of configuration items generated after the configuration items of different types of history configuration information change, so when the target configuration item is acquired, the configuration item associated with the type of the newly added configuration information needs to be selected from the preset configuration items, and because the associated configuration items have different versions of configuration items, the configuration item with the shortest update time relative to the current time is selected from the associated configuration items as the target configuration item.
In this embodiment, the preset configuration items are changes generated by different types of configuration information collected in a set time, that is, changes and updates generated by configuration items of historical configuration information; for example: assuming that the configuration information is solution scheme information in the process of automobile financing and renting transaction, assuming that the configuration items are charge strategy information related to the charge, assuming that one charge item A generated in the last lease is in a plurality of set lease periods, if the charge item A is set to be a reduced price a% in the current lease period, and the generated preset configuration item is charge strategy information for reducing the price of the charge item A; if the current lease period is set, the generated preset configuration item is the charging policy information of the charge item A, and if the current lease period is set, the generated preset configuration item is the charging policy of the charge item B.
Step S204, copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and the target configuration items matched from the preset configuration items to generate newly added configuration information.
In this embodiment, after matching to the target configuration item, the first configuration item of the history configuration information corresponding to the newly added configuration information requested to be queried in the query request is copied, and then the copied first configuration item is compounded with the target configuration item, so that the newly added configuration information is obtained.
In this embodiment, compositing the replicated first configuration item with the target configuration item includes: adding the target configuration item in the plurality of first configuration items, replacing the target configuration item with a first configuration item corresponding to the target configuration item in the plurality of first configuration items, and deleting the first configuration item corresponding to the target configuration item in the plurality of first configuration items; for example: assuming that the configuration information is solution information in the process of automobile financing and renting transaction, and assuming that the configuration items of the configuration information comprise a stage information configuration item, a cost item A and a vehicle use condition information configuration item, and assuming that the target configuration item is a price reduction a% of the cost item A; the newly added configuration information generated by data compounding of the plurality of first configuration items and the target configuration items matched from the preset configuration items comprises the following components: the method comprises the steps of a stage information configuration item, a cost item A price reduction a% and a vehicle situation information configuration item.
Step S205, the newly added configuration information is stored, and the newly added configuration information is transmitted to the terminal.
In this embodiment, the stored newly added configuration information is used as the history configuration information in the next query request, and at the same time, the newly added configuration information is transmitted to the terminal, so that the user operating the terminal performs related operations according to the newly added configuration information, for example: and receiving preferential information in the marketing campaign.
In this embodiment, the newly added configuration information is transmitted to the terminal through the Dubbo interface, and meanwhile, data interaction is performed with the terminal through the Dubbo interface.
Through the steps S201 to S205, a query request sent by the receiving terminal is adopted, where the query request carries version information and type information of configuration information requested to be queried; determining configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information; under the condition that the configuration information requested to be queried is newly added configuration information, matching a target configuration item in a preset configuration item according to type information, wherein the preset configuration item comprises a configuration item formed after the configuration item of the history configuration information is updated; copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and target configuration items matched from preset configuration items to generate newly added configuration information; the method has the advantages that the method stores the newly added configuration information, transmits the newly added configuration information to the terminal, solves the problems of complex configuration information generation process, low iteration update efficiency and difficult tracing in the related technology, realizes the rapid iteration update of the configuration information in a configuration mode, improves the efficiency of the configuration information update, and simultaneously, realizes the beneficial effects of ensuring the rapid update of the configuration information and accurately tracing the historical configuration information.
It should be noted that, in the embodiment of the present application, the configuration information includes policy information in a non-business field, for example: routing policies, presence information, and may also include activity scheme content in the business domain, transaction scheme content, such as: and the content and transaction information of the lease contract scheme in the automobile financing lease process, for example: campaign solution content during a marketing campaign.
In some embodiments, matching the target configuration item in the preset configuration item according to the type information includes the following steps:
and step 1, determining a first type of the target configuration item according to the type information.
In this embodiment, the type information corresponds to the type of the configuration information and the configuration item, for example: when the configuration information corresponds to solution information in the process of the car financing lease transaction, the type information may include: the first type corresponds to the information of the continuous renting scheme, the information of the period scheme, the information of the buying scheme and the information of the returning scheme.
And 2, selecting a candidate configuration item corresponding to the first type from preset configuration items, wherein the candidate configuration item comprises a first generation time corresponding to the candidate configuration item.
In this embodiment, the first generation time is used to determine an update time of the candidate configuration item, and the target configuration item to be selected is determined according to an interval between the update time and the current time.
And 3, selecting a second configuration item with the first generation time within a first preset time from the candidate configuration items, and determining that the target configuration item comprises the second configuration item, wherein the first preset time comprises an updating time interval of the preset configuration item.
In this embodiment, the time for updating the candidate configuration item is a first generation time, the candidate configuration item with the shortest interval between the first generation time and the current time corresponds to a second configuration item, the starting time point of the first preset time is the first generation time before the first generation time of the second configuration item, and the end point of the first preset time is the time for updating the next candidate configuration item later than the current time.
Determining a first type of the target configuration item according to the type information through the steps; selecting a candidate configuration item corresponding to the first type from preset configuration items, wherein the candidate configuration item comprises a first generation time corresponding to the candidate configuration item; selecting a second configuration item with the first generation time within a first preset time from the candidate configuration items, determining that the target configuration item comprises the second configuration item, and realizing the configuration of the target configuration item.
In some embodiments, copying a first configuration item of the history configuration information corresponding to the type information, and data compositing the first configuration item with a target configuration item matched from preset configuration items, so as to generate new configuration information, wherein the method comprises the following steps:
and step 1, copying a plurality of first configuration items to obtain a plurality of third configuration items.
In this embodiment, the third configuration item generated by the first configuration item is copied as a configuration item to be selected of the newly added configuration information.
And 2, detecting a fourth configuration item in the plurality of third configuration items, wherein the fourth configuration item corresponds to a historical configuration item of the target configuration item.
And step 3, generating newly added configuration information according to the plurality of third configuration items and the target configuration item under the condition that the fourth configuration item is not detected.
In this embodiment, the target configuration item is data-composited with the first configuration item, and the target configuration item is newly added to a plurality of third configuration items.
And step 4, under the condition that the fourth configuration item is detected, updating the fourth configuration item according to the target configuration item to obtain newly added configuration information.
In this embodiment, the target configuration item is data-composited with the first configuration item, and updating is performed on a fourth configuration item related to the target configuration item in the plurality of third configuration items, where updating includes complete replacement and replacement of sub-configuration items.
Copying the plurality of first configuration items in the steps to obtain a plurality of third configuration items; detecting a fourth configuration item in the plurality of third configuration items, wherein the fourth configuration item corresponds to a historical configuration item of the target configuration item; generating newly added configuration information according to a plurality of third configuration items and target configuration items under the condition that the fourth configuration item is not detected; under the condition that the fourth configuration item is detected, updating the fourth configuration item according to the target configuration item to obtain newly added configuration information, compounding the first configuration item and the target configuration item is achieved, and the newly added configuration item is generated.
In some of these embodiments, updating the fourth configuration item according to the target configuration item includes the steps of:
step 1, detecting whether the target configuration item has a first sub-configuration item.
And step 2, updating the target configuration item into a fourth configuration item under the condition that the target configuration item is not detected to have the first sub-configuration item.
And 3, under the condition that the target configuration item is detected to have a plurality of first sub-configuration items, selecting a second sub-configuration item from the plurality of first sub-configuration items, and updating a third sub-configuration item corresponding to the second sub-configuration item in the sub-configuration items of the fourth configuration item into the second sub-configuration item to finish updating the configuration item, wherein the second sub-configuration item comprises the sub-configuration item which completes updating relative to the sub-configuration item of the fourth configuration item.
Detecting whether the target configuration item has a first sub-configuration item or not through the steps; updating the target configuration item to a fourth configuration item if the target configuration item is not detected to have the first sub-configuration item; under the condition that the target configuration item is detected to have a plurality of first sub-configuration items, selecting a second sub-configuration item from the plurality of first sub-configuration items, and updating a third sub-configuration item corresponding to the second sub-configuration item in the sub-configuration items of the fourth configuration item to the second sub-configuration item, so that the configuration item is updated, and the fourth configuration item is updated under the condition that the target configuration information has the sub-configuration item and does not have the sub-configuration item.
In some embodiments, copying a first configuration item of the history configuration information corresponding to the type information, and data compositing the first configuration item with a target configuration item matched from preset configuration items, so as to generate new configuration information, wherein the method comprises the following steps:
and step 1, copying a plurality of first configuration items to obtain a plurality of third configuration items.
In this embodiment, the third configuration item generated by the first configuration item is copied as a configuration item to be selected of the newly added configuration information.
And 2, detecting a fourth configuration item in the plurality of third configuration items, wherein the fourth configuration item corresponds to a historical configuration item of the target configuration item.
And step 3, deleting the fourth configuration item and generating the newly added configuration information under the condition that the fourth configuration item is detected.
In this embodiment, the target configuration item is data-composited with the first configuration item, and deletion of a fourth configuration item related to the target configuration item in the plurality of third configuration items is performed, where the deletion is set by a system, for example: assuming that the configuration information is solution scheme information in the process of automobile financing and renting transaction, assuming that the configuration items are charge strategy information related to the charges, assuming that one charge item A generated in the last lease is in a plurality of set lease periods, if the charge item A is not generated in the current lease period, performing data recombination on the target configuration item and the first configuration item to obtain the charge strategy information for deleting the charge item A.
Copying the plurality of first configuration items in the steps to obtain a plurality of third configuration items; detecting a fourth configuration item in the plurality of third configuration items, wherein the fourth configuration item corresponds to a historical configuration item of the target configuration item; and deleting the fourth configuration item under the condition that the fourth configuration item is detected, and generating the newly added configuration information to realize data compounding of the deleted configuration item.
In some of these embodiments, determining the configuration information for requesting a query from the version information includes the steps of:
and step 1, determining a second generation time of the configuration information for requesting the query according to the version information.
And 2, when the second generation time is before the current time, determining the configuration information of the request query as historical configuration information.
In this embodiment, before the second generation time is the current time, it indicates that the query request is to read the historical configuration information, and then tracing the configuration information.
And step 3, when the second generation time comprises the current time, determining the configuration information of the request query as newly added configuration information.
In this embodiment, when the second generation time corresponds to the current time, it indicates that there is no corresponding configuration information before the current time, that is, new generation of configuration information is required.
Determining a second generation time of the configuration information for requesting the query according to the version information in the steps; when the second generation time is before the current time, determining that the configuration information of the request query is historical configuration information; when the second generation time comprises the current time, determining that the configuration information requested to be queried is newly added configuration information, and judging the generation of the configuration information and the reading of the historical configuration information.
In some embodiments, the method for generating configuration information further comprises the following steps:
step 1, receiving a query request sent by a terminal, wherein the query request carries version information and type information of configuration information requested to be queried.
Step 2, determining configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information.
And 3, detecting the history configuration information corresponding to the type information in the stored plurality of history configuration information and transmitting the history configuration information to the terminal under the condition that the configuration information requesting to be queried is determined to be the history configuration information.
In the embodiment, tracing and problem analysis are realized according to the history configuration information by reading the corresponding history configuration information; and transmitting the history configuration information to the terminal through the Dubbo interface, and simultaneously, carrying out data interaction with the terminal through the Dubbo interface.
The query request sent by the receiving terminal in the step carries version information and type information of the configuration information requested to be queried; determining configuration information of the request query according to the version information; under the condition that the configuration information of the request query is the history configuration information, detecting the history configuration information corresponding to the type information in the stored plurality of history configuration information, transmitting the history configuration information to the terminal, reading the corresponding history configuration information, and tracing and analyzing the problems according to the history configuration information.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment also provides a device for generating configuration information, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the terms "module," "unit," "sub-unit," and the like may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 3 is a block diagram of a configuration information generating apparatus according to an embodiment of the present application, and as shown in fig. 3, the apparatus includes:
a receiving module 31, configured to receive a query request sent by a terminal, where the query request carries version information and type information of configuration information that requests a query;
the determining module 32 is coupled to the receiving module 31, and is configured to determine, according to the version information, configuration information for requesting the query, where the configuration information includes one of the following: history configuration information and newly added configuration information;
The matching module 33 is coupled to the determining module 32, and is configured to match, according to the type information, a target configuration item in a preset configuration item when it is determined that the configuration information requested to be queried is newly added configuration information, where the preset configuration item includes a configuration item formed after the configuration item of the history configuration information is updated;
the generating module 34 is coupled with the matching module 33 and is used for copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and target configuration items matched from preset configuration items to generate newly added configuration information;
and the processing module 35 is coupled with the generating module 34 and is used for storing the newly added configuration information and transmitting the newly added configuration information to the terminal.
In some of these embodiments, the matching module 33 is configured to determine a first type of the target configuration item according to the type information; selecting a candidate configuration item corresponding to the first type from preset configuration items, wherein the candidate configuration item comprises a first generation time corresponding to the candidate configuration item; selecting a second configuration item with the first generation time within a first preset time from the candidate configuration items, and determining that the target configuration item comprises the second configuration item, wherein the first preset time comprises an updating time interval of the preset configuration item.
In some embodiments, the generating module 34 is configured to copy the plurality of first configuration items to obtain a plurality of third configuration items; detecting a fourth configuration item in the plurality of third configuration items, wherein the fourth configuration item corresponds to a historical configuration item of the target configuration item; generating newly added configuration information according to a plurality of third configuration items and target configuration items under the condition that the fourth configuration item is not detected; and under the condition that the fourth configuration item is detected, updating the fourth configuration item according to the target configuration item to obtain newly added configuration information.
In some of these embodiments, the generation module 34 is configured to detect whether the target configuration item has a first sub-configuration item; updating the target configuration item to a fourth configuration item if the target configuration item is not detected to have the first sub-configuration item; and under the condition that the target configuration item is detected to have a plurality of first sub-configuration items, selecting a second sub-configuration item from the plurality of first sub-configuration items, and updating a third sub-configuration item corresponding to the second sub-configuration item in the sub-configuration items of the fourth configuration item into the second sub-configuration item to finish updating the configuration item, wherein the second sub-configuration item comprises the sub-configuration item which is updated relative to the sub-configuration item of the fourth configuration item.
In some embodiments, the generating module 34 is configured to delete the fourth configuration item and generate the newly added configuration information.
In some of these embodiments, the determining module 32 is configured to determine, according to the version information, a second generation time of the configuration information for the request query; when the second generation time is before the current time, determining that the configuration information of the request query is historical configuration information; and when the second generation time comprises the current time, determining the configuration information of the request query as newly added configuration information.
In some embodiments, in a case where the configuration information of the request query is determined to be history configuration information, the apparatus is further configured to detect history configuration information corresponding to the type information among the stored plurality of history configuration information, and transmit the history configuration information to the terminal.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
The present embodiment also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, receiving a query request sent by a terminal, wherein the query request carries version information and type information of configuration information requested to be queried.
S2, determining configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information.
S3, under the condition that the configuration information requested to be queried is newly added, matching a target configuration item in a preset configuration item according to the type information, wherein the preset configuration item comprises a configuration item formed after the configuration item of the history configuration information is updated.
S4, copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and the target configuration items matched from the preset configuration items to generate newly added configuration information.
S5, storing the newly added configuration information, and transmitting the newly added configuration information to the terminal.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and this embodiment is not repeated herein.
In addition, in combination with the method for generating configuration information in the above embodiment, the embodiment of the application may be implemented by providing a storage medium. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements the method of generating configuration information of any of the above embodiments.
It should be understood by those skilled in the art that the technical features of the above embodiments may be combined in any manner, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as being within the scope of the description provided herein, as long as there is no contradiction between the combinations of the technical features.
The foregoing examples represent only a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method for generating configuration information, comprising:
receiving a query request sent by a terminal, wherein the query request carries version information and type information of configuration information requested to be queried;
determining the configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information;
under the condition that the configuration information requested to be queried is newly added configuration information, matching a target configuration item in a preset configuration item according to the type information, wherein the preset configuration item comprises a configuration item formed after the configuration item of the history configuration information is updated;
Copying a plurality of first configuration items of the history configuration information corresponding to the type information, and carrying out data recombination on the plurality of first configuration items and the target configuration items matched from the preset configuration items to generate the newly added configuration information;
storing the newly added configuration information and transmitting the newly added configuration information to the terminal;
wherein data compositing the target configuration item comprises: adding the target configuration item in the first configuration items, replacing the target configuration item with the first configuration item corresponding to the target configuration item in the first configuration items, and deleting the first configuration item corresponding to the target configuration item in the first configuration items;
according to the type information, matching the target configuration item in the preset configuration item comprises the following steps:
determining a first type of the target configuration item according to the type information;
selecting a candidate configuration item corresponding to the first type from the preset configuration items, wherein the candidate configuration item comprises a first generation time corresponding to the candidate configuration item, and the first generation time is the time for updating the candidate configuration item;
Selecting a second configuration item of the first generation time within a first preset time from the candidate configuration items, and determining that the target configuration item comprises the second configuration item, wherein the candidate configuration item with the shortest interval between the first generation time and the current moment is corresponding to the second configuration item, the starting time point of the first preset time is the first generation time before the first generation time of the second configuration item, and the end point of the first preset time is the time updated by the next candidate configuration item later than the current moment.
2. The method for generating configuration information according to claim 1, wherein copying a first configuration item of the history configuration information corresponding to the type information, and data-compositing the first configuration item with the target configuration item matched from the preset configuration items, and generating the newly added configuration information comprises:
copying a plurality of the first configuration items to obtain a plurality of third configuration items;
detecting a fourth configuration item in the third configuration items, wherein the fourth configuration item corresponds to a historical configuration item of the target configuration item;
Generating the newly added configuration information according to a plurality of third configuration items and the target configuration item under the condition that the fourth configuration item is not detected;
and under the condition that the fourth configuration item is detected, updating the fourth configuration item according to the target configuration item to obtain the newly-added configuration information.
3. The method of generating configuration information according to claim 2, wherein updating the fourth configuration item according to the target configuration item comprises:
detecting whether the target configuration item has a first sub-configuration item;
updating the target configuration item to the fourth configuration item if the target configuration item is not detected to have the first sub-configuration item;
and under the condition that the target configuration item is detected to have a plurality of first sub-configuration items, selecting a second sub-configuration item from the plurality of first sub-configuration items, and updating a third sub-configuration item corresponding to the second sub-configuration item in the sub-configuration items of the fourth configuration item into the second sub-configuration item to finish updating the configuration item, wherein the second sub-configuration item comprises a sub-configuration item which completes updating relative to the sub-configuration item of the fourth configuration item.
4. The method for generating configuration information according to claim 2, wherein in the case where the fourth configuration item is detected, the method further comprises:
and deleting the fourth configuration item and generating the newly added configuration information.
5. The method of generating configuration information according to claim 1, wherein determining the configuration information requesting a query from the version information comprises:
determining a second generation time of the configuration information for requesting query according to the version information;
when the second generation time is before the current time, determining that the configuration information of the request query is historical configuration information;
and when the second generation time comprises the current time, determining the configuration information of the request query as newly added configuration information.
6. The method for generating configuration information according to claim 1, wherein in a case where it is determined that the configuration information for which a query is requested is history configuration information, the method comprises:
detecting the history configuration information corresponding to the type information in a plurality of stored history configuration information, and transmitting the history configuration information to the terminal.
7. The method for generating configuration information according to claim 6, wherein the history configuration information and/or the newly added configuration information is transmitted to the terminal through a Dubbo interface.
8. A configuration information generating apparatus, comprising:
the receiving module is used for receiving a query request sent by the terminal, wherein the query request carries version information and type information of configuration information requested to be queried;
the determining module is used for determining the configuration information of the request query according to the version information, wherein the configuration information comprises one of the following: history configuration information and newly added configuration information;
the matching module is configured to, when it is determined that the configuration information requested to be queried is newly added configuration information, match a target configuration item in a preset configuration item according to the type information, where the preset configuration item includes a configuration item formed after the configuration item of the history configuration information is updated, and match the target configuration item in the preset configuration item according to the type information, where the matching includes:
determining a first type of the target configuration item according to the type information;
selecting a candidate configuration item corresponding to the first type from the preset configuration items, wherein the candidate configuration item comprises a first generation time corresponding to the candidate configuration item, and the first generation time is the time for updating the candidate configuration item;
Selecting a second configuration item of the first generation time within a first preset time from the candidate configuration items, and determining that the target configuration item comprises the second configuration item, wherein the candidate configuration item with the shortest interval between the first generation time and the current moment is corresponding to the second configuration item, the starting time point of the first preset time is the first generation time before the first generation time of the second configuration item, and the end point of the first preset time is the time updated by the next candidate configuration item later than the current moment;
the generation module is used for copying a plurality of first configuration items of the history configuration information corresponding to the type information, and data compositing the plurality of first configuration items and the target configuration items matched from the preset configuration items to generate the newly added configuration information;
the processing module is used for storing the newly added configuration information and transmitting the newly added configuration information to the terminal;
wherein data compositing the target configuration item comprises: the target configuration item is newly added in the first configuration items, the target configuration item is replaced with the first configuration item corresponding to the target configuration item in the first configuration items, and the first configuration item corresponding to the target configuration item in the first configuration items is deleted.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of generating configuration information according to any of claims 1 to 7.
10. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of generating configuration information according to any of claims 1 to 7 at run-time.
CN202011511734.8A 2020-12-18 2020-12-18 Configuration information generation method and device, electronic device and medium Active CN112463259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511734.8A CN112463259B (en) 2020-12-18 2020-12-18 Configuration information generation method and device, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511734.8A CN112463259B (en) 2020-12-18 2020-12-18 Configuration information generation method and device, electronic device and medium

Publications (2)

Publication Number Publication Date
CN112463259A CN112463259A (en) 2021-03-09
CN112463259B true CN112463259B (en) 2023-05-30

Family

ID=74803131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511734.8A Active CN112463259B (en) 2020-12-18 2020-12-18 Configuration information generation method and device, electronic device and medium

Country Status (1)

Country Link
CN (1) CN112463259B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515305B (en) * 2021-07-12 2024-04-16 北京达佳互联信息技术有限公司 Configuration information determining method, configuration snapshot generating method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542635A (en) * 2018-10-17 2019-03-29 深圳壹账通智能科技有限公司 Configuration information update method, apparatus, computer equipment and storage medium
CN111782635A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Data processing method and apparatus, storage medium, and electronic apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667131A (en) * 2009-10-14 2010-03-10 中兴通讯股份有限公司 Mobile terminal and updating method of configuration information thereof
CN106850242A (en) * 2015-12-03 2017-06-13 阿里巴巴集团控股有限公司 A kind of information processing method and device
CN106933547B (en) * 2015-12-29 2020-12-01 阿里巴巴集团控股有限公司 Global information acquisition and processing method, device and updating system
CN107465714B (en) * 2017-01-23 2021-01-01 北京思特奇信息技术股份有限公司 Dynamic configuration data updating system and method based on application cluster
CN110888889B (en) * 2018-08-17 2023-08-15 阿里巴巴集团控股有限公司 Data information updating method, device and equipment
CN109885320A (en) * 2018-12-29 2019-06-14 深圳云天励飞技术有限公司 A kind of update method of configuration information, device and electronic equipment
CN110244987A (en) * 2019-06-18 2019-09-17 腾讯科技(深圳)有限公司 Configuration data processing method, device, readable storage medium storing program for executing and computer equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542635A (en) * 2018-10-17 2019-03-29 深圳壹账通智能科技有限公司 Configuration information update method, apparatus, computer equipment and storage medium
CN111782635A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Data processing method and apparatus, storage medium, and electronic apparatus

Also Published As

Publication number Publication date
CN112463259A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN104704522A (en) Recommending native applications
CN105306472A (en) Seat matching device and method
CN111507541B (en) Goods quantity prediction model construction method, goods quantity measurement device and electronic equipment
CN112463259B (en) Configuration information generation method and device, electronic device and medium
JP6910229B2 (en) Information processing device and credit rating calculation method
US8510423B2 (en) Install system and install method
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
CN113900907A (en) Mapping construction method and system
US20170228408A1 (en) Data management apparatus and method therefor
CN114520830A (en) Message pushing method, device and system
CN111481107B (en) Positioning method and device of charging seat of sweeper, computing equipment and storage medium
CN116823249A (en) Charging method, charging device and clearing and counting system
CN101197959B (en) Terminal control method, system and equipment
CN111222972A (en) Account checking and clearing method and device
CN108647139B (en) System test method, device, storage medium and electronic device
CN105812411A (en) Customization information recommendation method and device
US20140351075A1 (en) Kiosk for dispensing and activating user devices
CN111949862B (en) Method and device for managing business task flow and electronic equipment
CN114357428A (en) Unbinding method and related device of Internet of things equipment
CN109634500B (en) User data filling method and device, terminal equipment and storage medium
CN111030863B (en) Node topology information determination method, device, equipment and storage medium
CN113434770A (en) Business portrait analysis method and system combining electronic commerce and big data
CN113791766A (en) Method for combining data interfaces, electronic device and readable storage medium
CN113656100A (en) Interface switching method and device, electronic device and computer program product
CN108363614B (en) Application service module management method and device and server

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