A method, system, device and readable medium for setting system parameters
By setting a unified parameter setting interface in software system development and publishing it to business modules of different systems according to functional parameters, the problem of repeated development of system parameter setting functions is solved, and development efficiency and product ease of use are improved.
Patent Information
- Application Number
- CN202210064446.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-20
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2042-01-20
AI Technical Summary
During the software system development process, the system parameter setting function needs to be repeatedly developed, which is time-consuming and labor-intensive, which is not conducive to improving software development efficiency, product ease of use and delivery speed.
By setting up a unified parameter setting interface, it is published to the business modules of the corresponding system according to different functional parameters, so that the system parameter settings of different business modules of different systems are realized without conflict.
It improves software development efficiency, improves product ease of use, and promotes rapid product delivery.
Smart Images

Figure CN114416205B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of data processing and cloud computing, and in particular to a method, system, device and readable medium for setting system parameters. Background Art
[0002] During the software system development process, you often encounter the problem of developing system parameter setting functions for multiple systems. The parameter setting functions of different systems are similar, but the parameter contents of the maintenance settings are different. Repeated development of multiple similar functions is time-consuming and labor-intensive, which is not conducive to improving software development efficiency, improving product usability, and product delivery. Summary of the invention
[0003] In view of this, the purpose of the embodiments of the present invention is to propose a method, system, device and readable medium for setting system parameters, which solves the problem of the need to repeatedly develop system parameter setting functions during the software system development process. The present invention sets a unified parameter setting interface and publishes different function parameters to the corresponding business modules of the system corresponding to the parameter functions, so that the system parameters of different business modules of different systems can be easily set without conflict. The present invention is applicable to the need to set the system parameters of business modules of multiple systems in a software system, so as to solve the problem of the need to repeatedly develop multiple system parameter setting functions, thereby improving software development efficiency, improving product usability, and promoting product delivery.
[0004] Based on the above purposes, an embodiment of the present invention provides a method for setting system parameters, including the following steps: establishing a connection between a system parameter setting interface and a business module in a system; loading the system parameter items and corresponding parameter values of the business module in the system parameter setting interface; setting the parameter value to a new parameter value in the system parameter interface; checking the new parameter value, and in response to passing the check, saving the new parameter value. This method for setting system parameters can conveniently set system parameters of different business modules of different systems without conflict by establishing a connection between the parameter setting interface and the business module in the system. The system parameter setting interface supports editing, saving, canceling and other common operations, and is suitable for situations where system parameters of multiple systems need to be set in software system development, avoiding the time-consuming and labor-intensive problem of repeatedly developing system parameter functions.
[0005] In some embodiments, establishing the connection between the system parameter setting interface and the business modules in the system includes: establishing the connection between the system parameter setting interface and different business modules of different systems respectively according to the functional parameters of the business modules. This establishment of the connection between the system parameter setting interface and the business modules in the system is achieved through the functional parameters of the business modules in the system. The functional parameters of different business modules of different systems are different. The parameter setting interface is published to different business modules of different systems according to different functional parameters, so that the system parameters of each business module in each system can be conveniently set without conflict, thereby improving the work efficiency of system development, the usability of software and reducing the delivery cost of software.
[0006] In some implementations, loading the system parameter items and corresponding parameter values of the business module in the system parameter setting interface includes: loading the system parameter items of the parameter group corresponding to the group mark in the system parameter setting interface according to the group mark in the business module. Each business module in each system supports multiple parameter groups, and the parameter setting interface establishes a connection with the corresponding parameter group according to the group mark of the corresponding business module of the established connection corresponding system, each parameter group includes a group inner code, a group mark, a group name, a module to which it belongs, a system authority, etc., and each system parameter item includes a parameter inner code, a group mark, a parameter number, a parameter classification, a parameter value list, etc.
[0007] In some implementations, loading the system parameter items and corresponding parameter values of the business module in the system parameter setting interface includes: setting numerical values, texts, selection boxes and drop-down lists of the parameter values according to parameter categories of the system parameter items.
[0008] In some embodiments, checking the new parameter value includes: determining whether it is necessary to call an extension mechanism to check the parameter value; in response to the need, performing a special check on the new parameter value by calling an extension method of the extension mechanism, and if the special check passes, performing a general check on the new parameter value; in response to not requiring, performing a general check on the new parameter value.
[0009] In some embodiments, checking the new parameter value includes: the extension mechanism is extended by a mechanism including event registration, inheritance, and reflection; the extension mechanism calls the extension method of the extension component by setting the extension component to implement the extension of the pre-save check and post-save processing of the new parameter value. When checking the new parameter value, it is necessary to use the extension mechanism of the system parameter setting to implement the personalized requirements of different system parameter settings. This method can establish an extension component in the parameter grouping, and by calling the extension method in the extension component, the specific inspection rules related to the business are processed by implementing the interface of the extension component in the extension method, so as to implement the extension of the pre-save check and post-save processing and the personalized requirements of different system parameter settings.
[0010] In some embodiments, a general check on the new parameter value includes: checking whether the new parameter value is legal; in response to legality, saving the new parameter value by first deleting and then inserting, and finally storing it in a database; in response to illegality, giving a system prompt for the new parameter value.
[0011] Another aspect of an embodiment of the present invention provides a system for setting system parameters, comprising: a first module, configured to establish a connection between a system parameter setting interface and a business module in the system; a second module, configured to load system parameter items and corresponding parameter values of the business module in the system parameter setting interface; a third module, configured to set the parameter value to a new parameter value in the system parameter interface; and a fourth module, configured to check the new parameter value, and in response to passing the check, save the new parameter value.
[0012] Another aspect of an embodiment of the present invention provides a computer device, comprising at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of any of the above methods when executed by the processor.
[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements any of the above method steps when executed by a processor.
[0014] The present invention has at least the following beneficial effects: a method for setting system parameters of the present invention sets a unified parameter setting interface, and publishes different functional parameters to the corresponding business modules of the system corresponding to the functional parameters, so that the system parameters of different business modules of different systems can be conveniently set without conflict, while reducing the workload of software development and unifying the software interface style; at the same time, a method for setting system parameters of the present invention can be published to different business modules of different systems through functional parameters, and the system parameter setting function is flexibly published, is not limited to the business field, and has a wide range of applications; further, a method for setting system parameters of the present invention realizes the personalized requirements for setting system parameters of different business modules of different systems through an extension mechanism, and supports multiple extension mechanisms such as event registration, inheritance, and reflection, thereby solving the problem of needing to repeatedly develop multiple system parameter setting functions, thereby improving software development efficiency, improving product usability, and promoting product delivery. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0016] Figure 1 A schematic diagram of an embodiment of a method for setting system parameters provided by the present invention;
[0017] Figure 2 A schematic diagram of an embodiment of a method for setting system parameters provided by the present invention;
[0018] Figure 3 A schematic diagram of an embodiment of a system for setting system parameters provided by the present invention;
[0019] Figure 4 A schematic diagram of an embodiment of a computer device provided by the present invention;
[0020] Figure 5 A schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0021] The following describes embodiments of the present invention. However, it should be understood that the disclosed embodiments are merely examples and other embodiments can take various alternative forms.
[0022] In addition, it should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one. The terms "include", "comprise" or any other variation thereof are intended to cover non-exclusive inclusions, so that a process, method, article or device that includes a series of elements includes not only those elements, but also elements that are not explicitly listed or inherent to these processes, methods, articles or devices.
[0023] One or more embodiments of the present application will be described below with reference to the accompanying drawings.
[0024] Based on the above objectives, a first aspect of an embodiment of the present invention provides an embodiment of a method for setting system parameters. Figure 1 FIG. 2 is a schematic diagram of an embodiment of a method for setting system parameters provided by the present invention. Figure 1 As shown, a method for setting system parameters in an embodiment of the present invention includes the following steps:
[0025] S1. Establish the connection between the system parameter setting interface and the business module in the system;
[0026] S2. Loading the system parameter items and corresponding parameter values of the business module in the system parameter setting interface;
[0027] S3, setting the parameter value as a new parameter value in the system parameter interface; and
[0028] S4. Check the new parameter value, and in response to the check passing, save the new parameter value.
[0029] Figure 2 FIG. 2 is a schematic diagram of an embodiment of a method for setting system parameters provided by the present invention. Figure 2 As shown, the process of a method for setting system parameters in an embodiment of the present invention includes: first, a dedicated development system publishes a system parameter function, sets a unified parameter setting interface, and this parameter setting interface establishes connections with different business modules in different systems through the function parameters of different business modules in different systems; the business module to set the system parameters publishes its function parameters, and opens the system parameter grouping table of this parameter setting interface according to this function parameter. This parameter grouping table is shown in Table 1, including a group inner code, a group flag, a group name, a module to which it belongs, a system authority, and an extension component, wherein the extension component is used to store components that can be called when the system parameters are saved, and can extend specific processing rules related to the business.
[0030] Table 1 System parameter grouping table
[0031]
[0032]
[0033] Further, according to the grouping mark in the system parameter grouping table, the system parameter item table of the parameter group corresponding to the grouping mark is loaded in this parameter setting interface, as shown in Table 2. This system parameter item table includes: parameter internal code, grouping mark, parameter number, key value, description, type, length, whether it can be modified, whether it is an encoding structure, help table name, help number, value range, parameter classification, parameter value list and remarks. This parameter item loads the parameter value list of the corresponding type according to the parameter classification, and sets the input control of the parameter item according to the parameter classification as a value, text, selection box, drop-down list, help and other types, that is, the parameter value type corresponding to this parameter item includes a value, text, selection box, drop-down list, etc.
[0034] Table 2 System parameter table
[0035]
[0036] Further, according to the parameter classification of this parameter item, the corresponding type of parameter value table is loaded in the parameter setting interface, as shown in Table 3, and this parameter value table includes: content internal code, module, unit, parameter key, parameter value and help. After the parameter setting interface opens this parameter value table, the third party modifies and sets the parameter value therein, and after the setting is completed, the parameter value is checked: first, it is determined whether the extension mechanism is needed to check this new parameter value; if the extension mechanism is needed, the new parameter value is first checked by using the extension method of the extension mechanism, that is, a special check is performed on this new parameter value, and after the special check passes, a general check is performed on this new parameter value; if the extension mechanism is not needed, a general check is directly performed on this new parameter value. Specifically, the special check is a check that needs to be performed using the extension mechanism, which is implemented by calling the extension method in the extension component in the parameter grouping table, and this extension mechanism is extended through mechanisms including event registration, inheritance, and reflection. In the extension method, the specific inspection rules related to the business are processed by implementing the method of the interface of the extension component, so that the extension of the pre-save check and post-save processing and the personalized requirements of different system parameter settings can be realized. A general check is performed on the new parameter value, that is, whether the new parameter value is legal. If the value is legal, the new parameter value is saved by first deleting and then inserting, and finally stored in the database. If the value is illegal, the system prompts the new parameter value.
[0037] Table 3 Parameter value table
[0038] Field Number Field Name Field Type illustrate NRID Content code Varchar(36) SSMK Module Varchar(4) SSDW Affiliated units Varchar(36) CSKEY Parameter Keys Varchar(20) CSVALUE Parameter Value Varchar(60) BZ Remark varchar(100)
[0039] Based on the above objectives, a second aspect of an embodiment of the present invention provides a system for setting system parameters. Figure 3 FIG. 2 is a schematic diagram of an embodiment of a system for setting system parameters provided by the present invention. Figure 3 As shown, an embodiment of a system for setting system parameters of the present invention includes the following modules: a first module 011, configured to establish a connection between a system parameter setting interface and a business module in the system; a second module 012, configured to load system parameter items and corresponding parameter values of the business module in the system parameter setting interface; a third module 013, configured to set the parameter value to a new parameter value in the system parameter interface; and a fourth module 014, configured to check the new parameter value, and in response to passing the check, save the new parameter value.
[0040] Based on the above objectives, a third aspect of an embodiment of the present invention provides a computer device. Figure 4 FIG. 2 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 4 As shown, an embodiment of a computer device provided by the present invention includes the following modules: at least one processor 021; and a memory 022, wherein the memory 022 stores computer instructions 023 that can be executed on the processor 021, and the computer instructions 023 implement the steps of any of the above methods when executed by the processor 021.
[0041] The present invention also provides a computer-readable storage medium. Figure 5 FIG. 2 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, the computer-readable storage medium 031 stores a computer program 032 that performs the above method when executed by a processor.
[0042] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program of the method for setting system parameters can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.
[0043] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.
[0044] In addition, the above method steps and system units may also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.
[0045] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0046] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transmit a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of an instruction or data structure and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (D0L) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, D0L or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0047] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0048] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0049] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0050] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0051] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for setting system parameters, characterized in that: include: Establish the connection between the system parameter setting interface and the business modules in the system; Loading the system parameter items and corresponding parameter values of the business module in the system parameter setting interface; Setting the parameter value to a new parameter value in the system parameter interface; Checking the new parameter value, and in response to passing the check, saving the new parameter value; The checking of the new parameter value comprises: Determining whether checking the parameter value requires calling an extension mechanism; In response to need, performing a special check on the new parameter value by calling an extension method of the extension mechanism, and if the special check passes, performing a general check on the new parameter value; In response to not being required, performing a universal check on the new parameter value; The extension mechanism is extended through mechanisms including event registration, inheritance, and reflection; The extension mechanism calls the extension method of the extension component by setting the extension component to implement the extension of the pre-saving check and post-saving processing of the new parameter value; The general check on the new parameter value includes: checking whether the new parameter value is legal; in response to legality, saving the new parameter value by first deleting and then inserting; in response to illegality, giving a system prompt for the new parameter value.
2. The method according to claim 1, characterized in that The establishing of the connection between the system parameter setting interface and the business modules in the system includes: establishing the connection between the system parameter setting interface and different business modules of different systems respectively according to the functional parameters of the business modules.
3. The method according to claim 1, characterized in that The loading of the system parameter items and corresponding parameter values of the business module in the system parameter setting interface includes: loading the system parameter items of the parameter grouping corresponding to the grouping mark in the system parameter setting interface according to the grouping mark in the business module.
4. The method according to claim 1, characterized in that: The system parameter items and corresponding parameter values of the business module loaded in the system parameter setting interface include: setting the numerical value, text, selection box and drop-down list of the parameter value according to the parameter classification of the system parameter items.
5. A system for setting system parameters, characterized in that: include: The first module is configured to establish a connection between the system parameter setting interface and the business module in the system; The second module is configured to load the system parameter items and corresponding parameter values of the business module in the system parameter setting interface; A third module is configured to set the parameter value as a new parameter value in the system parameter interface; as well as A fourth module is configured to check the new parameter value, and in response to passing the check, save the new parameter value; The fourth module is further used for: Determining whether checking the parameter value requires calling an extension mechanism; In response to need, performing a special check on the new parameter value by calling an extension method of the extension mechanism, and if the special check passes, performing a general check on the new parameter value; In response to not being required, performing a universal check on the new parameter value; The extension mechanism is extended through mechanisms including event registration, inheritance, and reflection; The extension mechanism calls the extension method of the extension component by setting the extension component to implement the extension of the pre-saving check and post-saving processing of the new parameter value; Check whether the new parameter value is legal; In response to being legal, the new parameter value is saved by first deleting and then inserting; In response to being illegal, a system prompt is given for the new parameter value.
6. A computer device, characterized in that: include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium storing a computer program, 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 4 are implemented.
Citation Information
Patent Citations
Service parameter configuration method
CN111078313A
Activity service processing method, device and system and storage medium
CN113885886A