A scenario-based universal parameter maintenance method and device

Through the universal parameter maintenance method based on scenarios, parameter change information is obtained and registered, which solves the complexity problem of parameter maintenance record management in the application system, realizes cross-scenario parameter maintenance, and reduces resource consumption and development workload.

CN112084199BActive Publication Date: 2024-10-25CHINA CONSTRUCTION BANK
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202011030489.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-27
Publication Date
2024-10-25
Estimated Expiration
2040-09-27

AI Technical Summary

Technical Problem

In the application system, huge parameter maintenance records and interface management are difficult to maintain, resulting in heavy development and testing workload, high resource consumption, and inconvenient operation.

Method used

Using the scenario-based general parameter maintenance method, by obtaining parameter maintenance information, obtain the attribute fields and scene numbers of the original and changed parameter objects, query the attribute registration configuration file, obtain the parameter change information, and register it in the general parameter maintenance registration table , realize cross-scenario parameter maintenance.

Benefits of technology

It reduces resource consumption, reduces development and testing workload, improves the efficiency and readability of parameter maintenance, and realizes cross-scenario parameter maintenance without providing front-end pages and background service interfaces for each scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112084199B_ABST
    Figure CN112084199B_ABST
Patent Text Reader

Abstract

The present invention provides a scenario-based universal parameter maintenance method and device, the method comprising: obtaining parameter maintenance information, the parameter maintenance information comprising an original parameter object and a changed parameter object; obtaining the attribute field corresponding to the original parameter object according to the original parameter object, and obtaining the attribute field and scenario number corresponding to the changed parameter object according to the changed parameter object; querying and obtaining the attribute registration configuration file of the changed parameter object according to the scenario number corresponding to the changed parameter object; obtaining parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object; registering the parameter change information into a universal parameter maintenance registration table. The device is used to execute the above method. The scenario-based universal parameter maintenance method and device provided by the embodiments of the present invention reduce the consumption of resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a scenario-based universal parameter maintenance method and device. Background Art

[0002] At present, application systems usually need to perform parameter maintenance for different scenarios, and query or export historical records of parameter maintenance when necessary.

[0003] In the prior art, it is necessary to provide a front-end page and back-end service interface for querying / exporting parameter maintenance records for each scenario, as well as a new related parameter maintenance record history table. If the application system is relatively large, it will lead to a large number of back-end server interfaces and parameter maintenance record history tables, with dozens or even hundreds, which are difficult to maintain and manage later, greatly increasing the workload of development and testing, and consuming a lot of system resources. In addition, if operators want to check which parameters they have maintained in the application system, they need to open all the parameter maintenance pages and check the interfaces one by one, which is very inconvenient. Summary of the invention

[0004] In view of the problems in the prior art, the embodiments of the present invention provide a scenario-based universal parameter maintenance method and device, which can at least partially solve the problems in the prior art.

[0005] On the one hand, the present invention proposes a scenario-based universal parameter maintenance method, comprising:

[0006] Acquire parameter maintenance information, wherein the parameter maintenance information includes an original parameter object and a changed parameter object;

[0007] Obtaining the attribute field corresponding to the original parameter object according to the original parameter object, and obtaining the attribute field and scene number corresponding to the changed parameter object according to the changed parameter object;

[0008] According to the scene number corresponding to the changed parameter object, query and obtain the attribute registration configuration file of the changed parameter object;

[0009] Obtain parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object;

[0010] The parameter change information is registered in the general parameter maintenance registration table.

[0011] On the other hand, the present invention provides a scenario-based universal parameter maintenance device, comprising:

[0012] An acquisition unit, used to acquire parameter maintenance information, wherein the parameter maintenance information includes an original parameter object and a changed parameter object;

[0013] A first obtaining unit, configured to obtain, according to the original parameter object, an attribute field corresponding to the original parameter object, and to obtain, according to the changed parameter object, an attribute field and a scene number corresponding to the changed parameter object;

[0014] A query unit, configured to query and obtain a property registration configuration file of the changed parameter object according to a scene number corresponding to the changed parameter object;

[0015] A second obtaining unit is used to obtain parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object;

[0016] The registration unit is used to register the parameter change information into a general parameter maintenance registration table.

[0017] On the other hand, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the scenario-based general parameter maintenance method described in any of the above embodiments when executing the program.

[0018] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the scenario-based general parameter maintenance method described in any of the above embodiments.

[0019] The scenario-based universal parameter maintenance method and device provided in the embodiments of the present invention obtain parameter maintenance information, obtain the attribute field corresponding to the original parameter object according to the original parameter object, and obtain the attribute field and scenario number corresponding to the changed parameter object according to the changed parameter object, obtain the attribute registration configuration file of the changed parameter object according to the scenario number corresponding to the changed parameter object, obtain parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object, register the parameter change information in the universal parameter maintenance registration table, realize cross-scenario parameter maintenance, do not need to provide a foreground page and a background service interface for parameter maintenance for each scenario, and reduce resource consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0021] Figure 1 It is a flowchart of a scenario-based general parameter maintenance method provided by an embodiment of the present invention.

[0022] Figure 2 It is a flowchart of a scenario-based general parameter maintenance method provided by another embodiment of the present invention.

[0023] Figure 3 It is a flowchart of a scenario-based general parameter maintenance method provided by another embodiment of the present invention.

[0024] Figure 4 It is a flowchart of a scenario-based general parameter maintenance method provided by another embodiment of the present invention.

[0025] Figure 5 It is a structural diagram of a scenario-based universal parameter maintenance device provided in one embodiment of the present invention.

[0026] Figure 6 It is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0028] In order to facilitate the understanding of the technical solution provided by the present application, the relevant contents of the technical solution of the present application are first described below. In the parameter maintenance of different scenarios, when the modification, addition and deletion are completed, the scenario-based general parameter maintenance method provided by the embodiment of the present invention is called to register the maintenance record in the same maintenance record history table, that is, register it in the general parameter maintenance registration table. Before registering the parameter maintenance record, the data field name and the data field code value included in the attribute field can be mapped once and then registered to facilitate the understanding of the attribute field. The scenario-based general parameter maintenance method provided by the embodiment of the present invention is suitable for parameter maintenance in different scenarios and has universality.

[0029] Code value mapping: There are often many code-type fields in the application interface and database table. Their values ​​are generally meaningless numbers or English. Mapping numbers or English into a Chinese description that people can understand is called code value mapping. Parameter maintenance log: There will be many parameter maintenance interfaces in the system. The maintenance record flow will be recorded in the maintenance record table in the form of a sentence. This form of expression is called parameter maintenance log. Dynamic scene configuration: There are many parameter scenes in the system. We assign a number to different scenes. If there are new or deleted scenes later, the numbers can be dynamically added or deleted. This operation is called dynamic scene configuration.

[0030] Figure 1 FIG. 1 is a flow chart of a scenario-based general parameter maintenance method provided by an embodiment of the present invention. Figure 1 As shown, the scenario-based general parameter maintenance method provided by the embodiment of the present invention includes:

[0031] S101, obtaining parameter maintenance information, where the parameter maintenance information includes an original parameter object and a changed parameter object;

[0032] Specifically, the server may obtain parameter maintenance information, which includes an original parameter object and a changed parameter object. The changed parameter object is generated after the parameter is modified, added, or deleted. If it is a parameter adding operation, the original parameter object is empty; if it is a parameter deleting operation, the changed parameter object is empty. In an embodiment of the present invention, the original parameter object and the changed parameter object may be Java-like objects, such as an object in a banking system may be an account.

[0033] S102: obtaining, according to the original parameter object, an attribute field corresponding to the original parameter object, and obtaining, according to the changed parameter object, an attribute field and a scene number corresponding to the changed parameter object;

[0034] Specifically, after obtaining the parameter maintenance information, the server can obtain the attribute fields of the original parameter object according to the original parameter object, and obtain the attribute fields and scenario numbers corresponding to the changed parameter object according to the changed parameter object. Among them, the attribute fields corresponding to the original parameter object are preset, and the attribute fields and scenario numbers corresponding to the changed parameter object are preset. The acquisition of attribute fields and scenario numbers can be achieved through reflection technology. The scenario number corresponds to the scenario one-to-one. The scenario can be set according to actual business needs, such as the maintenance of customer accounts and the maintenance of the collection bank account, which is not limited in the embodiments of the present invention.

[0035] S103, obtaining a property registration configuration file of the changed parameter object according to the scene number corresponding to the changed parameter object;

[0036] Specifically, after obtaining the scene number corresponding to the changed parameter object, the server can query and obtain the attribute registration configuration file including the scene number according to the scene number, and use the attribute registration configuration file including the scene number as the attribute registration configuration file of the changed parameter object. The attribute registration configuration file is preset and can include the scene number and the attribute field.

[0037] S104, obtaining parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object;

[0038] Specifically, the server may compare the attribute field corresponding to the original parameter object with the attribute field corresponding to the later parameter object, obtain the changed attribute field, and then determine whether the changed attribute field is the attribute field included in the attribute registration configuration file of the changed parameter object, and record the change of the attribute field that is both the changed attribute field and the attribute field of the attribute registration configuration file of the changed parameter object as parameter change information, and the parameter change information may include the name of the attribute field, the original value of the attribute field and the new value of the attribute field, the original value of the attribute field is derived from the attribute field corresponding to the original parameter object, and the new value of the attribute field is derived from the attribute field corresponding to the changed parameter object. Among them, the attribute field may include a name and a value.

[0039] S105: Register the parameter change information into a general parameter maintenance registration table.

[0040] Specifically, after obtaining the parameter change information, the server may register the parameter change information into a general parameter maintenance registration table, which becomes a parameter maintenance record in the general parameter maintenance registration table. The general parameter maintenance registration table is preset and may include registration items such as scenario number, operator identification, operation description, operation field, original value, new value, original value description, new value description, maintenance date, etc., which are set according to actual needs and are not limited in the embodiment of the present invention.

[0041] For example, according to the registration items included in the general parameter maintenance registration table, the parameter change information is registered, and the name of the attribute field included in the parameter change information can be used as the operation field, the original value of the attribute field can be used as the original value of the operation field, and the new value of the attribute field can be used as the new value of the operation field. The server can also obtain the scene number corresponding to the changed parameter object as the scene number in the general parameter maintenance registration table, obtain the login account identifier of the staff performing parameter maintenance as the operator identifier, and judge whether it is a new operation, a deletion operation, or a change operation based on the comparison of the attribute field corresponding to the original parameter object and the attribute field corresponding to the changed parameter object. The above operations are used as operation descriptions, and the Chinese description corresponding to the original value of the attribute field can be queried and obtained as the original value description by code mapping, and the Chinese description corresponding to the new value of the attribute field can be queried and obtained as the new value description.

[0042] The scenario-based universal parameter maintenance method provided by the embodiment of the present invention obtains parameter maintenance information, obtains the attribute field corresponding to the original parameter object according to the original parameter object, obtains the attribute field and scenario number corresponding to the changed parameter object according to the changed parameter object, obtains the attribute registration configuration file of the changed parameter object according to the scenario number corresponding to the changed parameter object, obtains parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object, registers the parameter change information in the universal parameter maintenance registration table, realizes cross-scenario parameter maintenance, does not need to provide a front-end page and a back-end service interface for parameter maintenance for each scenario, and reduces resource consumption. In addition, it is not necessary to develop and test parameter maintenance for each scenario, which reduces the workload of development and testing.

[0043] Figure 2 is a flow chart of a scenario-based general parameter maintenance method provided by another embodiment of the present invention, such as Figure 2 As shown, on the basis of the above embodiments, further, obtaining parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object includes:

[0044] S201, obtaining a changed attribute field according to the attribute field corresponding to the original parameter object and the attribute field corresponding to the changed parameter object;

[0045] Specifically, the server may traverse the attribute fields corresponding to the original parameter object and the attribute fields corresponding to the changed parameter object, and perform a circular comparison on the attribute fields corresponding to the original parameter object and the attribute fields corresponding to the changed parameter object. If the names of the attribute fields are the same and the values ​​are the same, it means that the attribute fields have not changed and can be ignored; if the names of the attribute fields are the same but the values ​​of the attribute fields are different, then the attribute fields can be used as the changed attribute fields; if the attribute fields appear in the attribute fields corresponding to the original parameter object but do not appear in the attribute fields corresponding to the changed parameter object, then the attribute fields are used as the changed attribute fields; if the attribute fields appear in the attribute fields corresponding to the changed parameter object but do not appear in the attribute fields corresponding to the original parameter object, then the attribute fields are used as the changed attribute fields. The server may obtain all the changed attribute fields as the changed attribute fields.

[0046] S202: If it is determined that the changed attribute field matches the attribute field included in the attribute registration configuration file, corresponding parameter change information is obtained based on the changed attribute field.

[0047] Specifically, after obtaining the changed attribute field, the server needs to determine whether the changed attribute field needs to be registered in the general parameter maintenance registration table. The attribute fields included in the attribute registration configuration file all need to be registered in the general parameter maintenance registration table. The server compares the changed attribute field with the attribute field included in the attribute registration configuration file. If the name of the changed attribute field is the same as that of an attribute field included in the attribute registration configuration file, then the changed attribute field matches the attribute field included in the attribute registration configuration file, and the corresponding parameter change information can be obtained based on the changed attribute field. It is understandable that the above judgment process needs to be performed for each changed attribute field to obtain all changed attribute fields that match the attribute fields included in the attribute registration configuration file and their corresponding parameter change information.

[0048] For example, the name of the changed attribute field, the original value of the changed attribute field, and the new value of the changed attribute field may be recorded as parameter change information corresponding to the changed attribute field.

[0049] Take bank account parameters as an example. For example, an account corresponds to 50 attribute fields, of which 30 attribute fields need to be paid attention to. In the prior art, all 50 attribute fields will be recorded when performing parameter maintenance records. The technical solution of the present application configures the attribute fields that need to be paid attention to through the attribute registration configuration file. When performing subsequent parameter maintenance registration, only the attribute fields of concern, such as the above 30 attribute fields, need to be recorded. On the one hand, the data processing efficiency can be improved, and on the other hand, the system storage resources can be saved.

[0050] On the basis of the above embodiments, further, the scenario-based universal parameter maintenance method provided in the embodiment of the present invention also includes:

[0051] If it is determined that the original parameter object is empty, the parameter change information is obtained according to the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object.

[0052] Specifically, after performing the parameter adding operation, the original parameter object can be set to be empty. Then, when obtaining the parameter change information, it is only necessary to obtain the parameter change information based on the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object. The server can traverse the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object, perform a cyclic comparison on the attribute field corresponding to the changed parameter object and the attribute field included in the attribute registration configuration file of the changed parameter object, obtain all the attribute fields with the same name, and obtain the parameter change information based on the attribute fields with the same name.

[0053] For example, the name of the attribute field with the same name, the original value of the attribute field being empty, and the new value of the attribute field may be recorded as the parameter change information.

[0054] On the basis of the above embodiments, further, the scenario-based universal parameter maintenance method provided in the embodiment of the present invention also includes:

[0055] If it is determined that the changed parameter object is empty, the parameter change information is obtained according to the attribute field corresponding to the original parameter object and the attribute registration configuration file of the changed parameter object.

[0056] Specifically, after the parameter deletion operation is performed, the changed parameter object can be set to be empty. Then, when obtaining parameter change information, it is only necessary to obtain the parameter change information based on the attribute fields corresponding to the original parameter object and the attribute registration configuration file of the changed parameter object. The server can traverse the attribute fields corresponding to the original parameter object and the attribute registration configuration file of the changed parameter object, perform a cyclic comparison on the attribute fields corresponding to the original parameter object and the attribute fields included in the attribute registration configuration file of the changed parameter object, obtain all attribute fields with the same name, and obtain the parameter change information based on the attribute fields with the same name.

[0057] For example, the name of the attribute field with the same name, the original value of the attribute field, and the new value of the attribute field being empty may be recorded as the parameter change information.

[0058] Figure 3 FIG. 1 is a flow chart of a scenario-based general parameter maintenance method provided by another embodiment of the present invention. Figure 3 As shown, registering the parameter change information into the general parameter maintenance registration table includes:

[0059] S301. Obtain a code type corresponding to the name of each attribute field included in the parameter change information according to the name of the attribute field included in the parameter change information and a simplified data dictionary; wherein the simplified data dictionary is preset;

[0060] Specifically, the parameter change information includes the name of the attribute field, the original value of the attribute field and the new value of the attribute field. The field included in the parameter change information is the attribute field that has changed. The simplified data dictionary includes the name of the attribute field and the corresponding code type. The code type includes two types, which can be represented by yes and no. The code type is yes, indicating that the value of the attribute field is a code value, and the explanation corresponding to the code value in the simplified data dictionary can be used to facilitate understanding of the meaning of the value of the attribute field in subsequent queries; the code type is no, indicating that the value of the attribute field is not a code value and there is no corresponding explanation. The server can search for the same attribute field name in the simplified data dictionary according to the name of the attribute field included in the parameter change information, and use the code type corresponding to the name of the same attribute field as the code type corresponding to the name of the attribute field included in the parameter change information, so as to obtain the code type corresponding to the name of each attribute field included in the parameter change information. Among them, the simplified data dictionary is preset.

[0061] S302: If it is learned that the code type of the attribute field is yes, obtaining the original value description and the new value description of the attribute field from the simplified data dictionary according to the original value and the new value of the attribute field; wherein the parameter change information includes the original value and the new value of the attribute field;

[0062] Specifically, after obtaining the code type of the attribute field, if the code type of the attribute field is yes, indicating that the value of the attribute field is a code value, the server can query the simplified data dictionary to obtain the explanation of the original value of the attribute field according to the original value of the attribute field as the original value description of the attribute field, and can query the simplified data dictionary to obtain the explanation of the new value of the attribute field according to the new value of the attribute field as the new value description of the attribute field. The parameter change information includes the original value of the attribute field and the new value of the attribute field.

[0063] S303: Register the general parameter maintenance registration table according to the parameter change information and the original value description and the new value description of each attribute field.

[0064] Specifically, after obtaining the original value description and the new value description of the attribute field, the server may register the parameter change information and the original value description and the new value description of each attribute field into the general parameter maintenance registration table.

[0065] For example, the server registers the parameter change information according to the registration items included in the general parameter maintenance registration table, and can use the name of the attribute field included in the parameter change information as the operation field, the original value of the attribute field as the original value of the operation field, the new value of the attribute field as the new value of the operation field, the original value description of the attribute field as the original value description of the operation field, and the new value description of the attribute field as the new value description of the operation field.

[0066] In the prior art, the contents exported by the parameter maintenance interface are relatively abstract. Taking account parameters as an example, the query result may be the value of the account after modification at a certain moment. If you want to know the original value, you need to combine two or more pieces of data, which is very inconvenient for operators. The scenario-based general parameter maintenance method provided by the embodiment of the present invention registers the original value description and the new value description of the attribute field when registering the general parameter maintenance registration form, which is convenient for operators to understand and improves the readability of the general parameter maintenance registration form.

[0067] On the basis of the above embodiments, further, the simplified data dictionary is preloaded into the memory.

[0068] Specifically, the server can pre-load the simplified data dictionary into the memory, for example, directly load the simplified data dictionary into the container, so that the simplified data dictionary only needs to be loaded once when the service starts, and only needs to be read from the memory subsequently, thereby improving the calling efficiency of the simplified data dictionary.

[0069] On the basis of the above embodiments, further, the simplified data dictionary includes a data dictionary field mapping file and a data dictionary code value mapping file, wherein:

[0070] The data dictionary field mapping file includes the English name of the attribute field, the Chinese name of the attribute field and the corresponding code type;

[0071] The data dictionary code value mapping file includes the English name of the attribute field, the code value and the explanation of the code value.

[0072] Specifically, since the simplified data dictionary is used for parameter maintenance and the amount of data is limited, the simplified data dictionary can be called without using a database. The simplified data dictionary can be set as a two-level data structure, the first-level data is implemented using a data dictionary field mapping file, which can include the English name of the attribute field, the Chinese name of the attribute field, and the corresponding code type, and the second-level data is implemented using a data dictionary code value mapping file, which can include the English name of the attribute field, the code value, and the explanation of the code value. When using the simplified data dictionary, the simplified data dictionary can be directly loaded into the memory to improve the calling efficiency of the simplified data dictionary. The database table method is not used because if the database table method is used for storage, the database table will be queried multiple times for each scene mapping, and the data acquisition efficiency is low.

[0073] After obtaining the parameter change information, the server can search the data dictionary field mapping file for the same attribute field name according to the name of the attribute field included in the parameter change information to obtain the code type corresponding to the same attribute field name. If the code type is yes, then it is necessary to query the data dictionary code value mapping file according to the value of the attribute field included in the parameter change information, obtain the code value that is the same as the value of the attribute field, and obtain the explanation of the code value as a description of the value of the attribute field. If the code type is no, then there is no need to query the data dictionary code value mapping file.

[0074] For example, when in use, the two files of the simple data dictionary are directly loaded into the Spring container. The two-level beans created by the Spring container use the default singleton mode. In this way, the two files of the simple data dictionary only need to be created once when the service is started. When used later, they can be read directly from the memory, thereby improving the calling efficiency.

[0075] Figure 4 FIG. 1 is a flow chart of a scenario-based general parameter maintenance method provided by another embodiment of the present invention. Figure 4 As shown, based on the above embodiments, further, the scenario-based universal parameter maintenance method provided by the embodiment of the present invention also includes:

[0076] S401, receiving a parameter maintenance query request;

[0077] Specifically, when the parameter maintenance personnel want to query the parameter maintenance history, they can send a parameter maintenance query request to the server through the client, and the server will receive the parameter maintenance query request. The client includes but is not limited to a desktop computer, a laptop computer, etc.

[0078] S402: Obtain the general parameter maintenance registration table and return.

[0079] Specifically, after receiving the parameter maintenance request, the server may obtain the universal parameter maintenance registration form, and then return the universal parameter maintenance registration form to the client, and the client may display the universal parameter maintenance registration form for the parameter maintenance personnel to view.

[0080] The universal parameter maintenance registration table can provide cross-scenario parameter maintenance history. When querying the parameter maintenance history, there is no need to query the parameter maintenance history scene by scene, which improves the query efficiency of parameter maintenance data.

[0081] The scenario-based universal parameter maintenance method provided by the embodiment of the present invention no longer requires parameter maintenance like the prior art. Each type of data maintenance provides a set of background service interfaces, front-end pages, and databases, which can reduce the development of redundant codes, facilitate maintenance, save system resources, and improve scalability, and realize cross-scenario parameter maintenance registration; cross-scenario parameter maintenance query can be realized without the need to query on different pages; through a simple data dictionary, the content in the universal parameter maintenance registration table includes not only code values, but also explanations of the code values, thereby improving the readability of the parameter maintenance registration table. The configuration file method replaces the traditional hard coding method to facilitate unified management.

[0082] Figure 5 is a schematic diagram of the structure of a scenario-based universal parameter maintenance device provided by an embodiment of the present invention, such as Figure 5 As shown, the scenario-based universal parameter maintenance device provided by the embodiment of the present invention includes an acquisition unit 501, a first acquisition unit 502, a query unit 503, a second acquisition unit 504 and a registration unit 505, wherein:

[0083] The acquisition unit 501 is used to acquire parameter maintenance information, which includes an original parameter object and a changed parameter object; the first acquisition unit 502 is used to obtain the attribute field corresponding to the original parameter object according to the original parameter object, and to obtain the attribute field and scene number corresponding to the changed parameter object according to the changed parameter object; the query unit 503 is used to query and obtain the attribute registration configuration file of the changed parameter object according to the scene number corresponding to the changed parameter object; the second acquisition unit 504 is used to obtain parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object; the registration unit 505 is used to register the parameter change information into the general parameter maintenance registration table.

[0084] Specifically, the acquisition unit 501 can acquire parameter maintenance information, and the parameter maintenance information includes an original parameter object and a changed parameter object. The changed parameter object is generated after the parameter is modified, added, or deleted. If it is a parameter adding operation, the original parameter object is empty; if it is a parameter deleting operation, the changed parameter object is empty. In an embodiment of the present invention, the original parameter object and the changed parameter object can be Java-like objects, for example, in a banking system, the object can be an account.

[0085] After obtaining the parameter maintenance information, the first obtaining unit 502 can obtain the attribute fields of the original parameter object according to the original parameter object, and obtain the attribute fields and scenario numbers corresponding to the changed parameter object according to the changed parameter object. Among them, the attribute fields corresponding to the original parameter object are preset, and the attribute fields and scenario numbers corresponding to the changed parameter object are preset. The acquisition of attribute fields and scenario numbers can be achieved through reflection technology. The scenario number corresponds to the scenario one-to-one. The scenario can be set according to actual business needs, such as the maintenance of customer accounts and the maintenance of the collection bank account, which is not limited in the embodiment of the present invention.

[0086] After obtaining the scene number corresponding to the changed parameter object, the query unit 503 can query and obtain the attribute registration configuration file including the scene number according to the scene number, and use the attribute registration configuration file including the scene number as the attribute registration configuration file of the changed parameter object. The attribute registration configuration file is preset and can include the scene number and the attribute field.

[0087] The second obtaining unit 504 may compare the attribute field corresponding to the original parameter object with the attribute field corresponding to the later parameter object, obtain the changed attribute field, and then determine whether the changed attribute field is the attribute field included in the attribute registration configuration file of the changed parameter object, and record the change of the attribute field that is both the changed attribute field and the attribute field of the attribute registration configuration file of the changed parameter object as parameter change information, and the parameter change information may include the name of the attribute field, the original value of the attribute field and the new value of the attribute field, the original value of the attribute field is derived from the attribute field corresponding to the original parameter object, and the new value of the attribute field is derived from the attribute field corresponding to the changed parameter object. The attribute field may include a name and a value.

[0088] After obtaining the parameter change information, the registration unit 505 may register the parameter change information into the general parameter maintenance registration table, which becomes a parameter maintenance record in the general parameter maintenance registration table. The general parameter maintenance registration table is preset and may include registration items such as scene number, operator identification, operation description, operation field, original value, new value, original value description, new value description, maintenance date, etc., which are set according to actual needs and are not limited in the embodiment of the present invention.

[0089] The scenario-based universal parameter maintenance device provided by the embodiment of the present invention obtains parameter maintenance information, obtains the attribute field corresponding to the original parameter object according to the original parameter object, obtains the attribute field and scenario number corresponding to the changed parameter object according to the changed parameter object, obtains the attribute registration configuration file of the changed parameter object according to the scenario number corresponding to the changed parameter object, obtains parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object, registers the parameter change information in the universal parameter maintenance registration table, realizes cross-scenario parameter maintenance, does not need to provide a front-end page and a back-end service interface for parameter maintenance for each scenario, and reduces resource consumption. In addition, it is not necessary to develop and test parameter maintenance for each scenario, which reduces the workload of development and testing.

[0090] The embodiments of the apparatus provided in the embodiments of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments, and its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0091] Figure 6 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Figure 6As shown, the electronic device may include: a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 communicate with each other through the communication bus 604. The processor 601 may call the logic instructions in the memory 603 to execute the following method: obtaining parameter maintenance information, the parameter maintenance information including the original parameter object and the changed parameter object; obtaining the attribute field corresponding to the original parameter object according to the original parameter object, and obtaining the attribute field and scene number corresponding to the changed parameter object according to the changed parameter object; querying and obtaining the attribute registration configuration file of the changed parameter object according to the scene number corresponding to the changed parameter object; obtaining parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object; registering the parameter change information in the general parameter maintenance registration table.

[0092] In addition, the logic instructions in the above-mentioned memory 603 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0093] The present embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining parameter maintenance information, the parameter maintenance information including an original parameter object and a changed parameter object; obtaining an attribute field corresponding to the original parameter object according to the original parameter object, and obtaining an attribute field and a scene number corresponding to the changed parameter object according to the changed parameter object; querying and obtaining an attribute registration configuration file of the changed parameter object according to the scene number corresponding to the changed parameter object; obtaining parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object; and registering the parameter change information in a general parameter maintenance registration table.

[0094] The present embodiment provides a computer-readable storage medium, which stores a computer program, and the computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining parameter maintenance information, the parameter maintenance information including an original parameter object and a changed parameter object; obtaining the attribute field corresponding to the original parameter object according to the original parameter object, and obtaining the attribute field and scene number corresponding to the changed parameter object according to the changed parameter object; querying and obtaining the attribute registration configuration file of the changed parameter object according to the scene number corresponding to the changed parameter object; obtaining parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object; and registering the parameter change information in a general parameter maintenance registration table.

[0095] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0096] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0099] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0100] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A scenario-based general parameter maintenance method, characterized in that: include: Acquire parameter maintenance information, wherein the parameter maintenance information includes an original parameter object and a changed parameter object; Obtaining the attribute field corresponding to the original parameter object according to the original parameter object, and obtaining the attribute field and scene number corresponding to the changed parameter object according to the changed parameter object; According to the scene number corresponding to the changed parameter object, query and obtain the attribute registration configuration file of the changed parameter object; Obtain parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object; Registering the parameter change information into the general parameter maintenance registration table; The obtaining of parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object, and the attribute registration configuration file of the changed parameter object includes: According to the attribute field corresponding to the original parameter object and the attribute field corresponding to the changed parameter object, obtaining the changed attribute field; If it is determined that the changed attribute field matches the attribute field included in the attribute registration configuration file, corresponding parameter change information is obtained based on the changed attribute field.

2. The method according to claim 1, characterized in that Also includes: If it is determined that the original parameter object is empty, the parameter change information is obtained according to the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object.

3. The method according to claim 1, characterized in that Also includes: If it is determined that the changed parameter object is empty, the parameter change information is obtained according to the attribute field corresponding to the original parameter object and the attribute registration configuration file of the changed parameter object.

4. The method according to claim 1, characterized in that: The registering the parameter change information into the general parameter maintenance registration table includes: According to the name of the attribute field included in the parameter change information and the simplified data dictionary, obtaining the code type corresponding to the name of each attribute field included in the parameter change information; wherein the simplified data dictionary is preset; If it is learned that the code type of the attribute field is yes, obtaining the original value description and the new value description of the attribute field from the simplified data dictionary according to the original value and the new value of the attribute field; wherein the parameter change information includes the original value and the new value of the attribute field; The general parameter maintenance registration table is registered according to the parameter change information and the original value description and the new value description of each attribute field.

5. The method according to claim 4, characterized in that The reduced data dictionary is preloaded into memory.

6. The method according to claim 4, characterized in that The simplified data dictionary includes a data dictionary field mapping file and a data dictionary code value mapping file, wherein: The data dictionary field mapping file includes the English name of the attribute field, the Chinese name of the attribute field and the corresponding code type; The data dictionary code value mapping file includes the English name of the attribute field, the code value and the explanation of the code value.

7. The method according to any one of claims 1 to 6, characterized in that: Also includes: Receive parameter maintenance query request; Obtain the general parameter maintenance registration table and return it.

8. A scenario-based universal parameter maintenance device, characterized in that: include: An acquisition unit, used to acquire parameter maintenance information, wherein the parameter maintenance information includes an original parameter object and a changed parameter object; A first obtaining unit, configured to obtain, according to the original parameter object, an attribute field corresponding to the original parameter object, and to obtain, according to the changed parameter object, an attribute field and a scene number corresponding to the changed parameter object; A query unit, configured to query and obtain a property registration configuration file of the changed parameter object according to a scene number corresponding to the changed parameter object; A second obtaining unit is used to obtain parameter change information according to the attribute field corresponding to the original parameter object, the attribute field corresponding to the changed parameter object and the attribute registration configuration file of the changed parameter object; A registration unit, used to register the parameter change information into a general parameter maintenance registration table; Among them, the second obtaining unit is specifically used to obtain the changed attribute field according to the attribute field corresponding to the original parameter object and the attribute field corresponding to the changed parameter object; if it is determined that the changed attribute field matches the attribute field included in the attribute registration configuration file, the corresponding parameter change information is obtained based on the changed attribute field.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method, system and device for recording parameter maintenance variation

    CN101552701A

  • Method and system for changing terminal service and network management platform

    CN101635643A

  • Method and device for scene-based rapid data configuration in telecom network management system

    CN101764708A

  • System and method for realizing simple deployment and using private cloud

    CN105404530A

  • Page testing method and device, computer device and storage medium

    CN110008117A