Software development method and system based on multi-dimensional dynamic parameters
The multi-dimensional dynamic parameter method simplifies the multi-factor judgment logic and data storage structure, solves the problems of complex judgment logic and redundant code in the information system, and improves development efficiency and system response speed.
Patent Information
- Application Number
- CN202411210684.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-20
AI Technical Summary
In the information system, in the multi-factor judgment scenario, the logic of judgment is complex and the code is redundant, and a large number of code changes and testing are required when a single value domain is expanded into a two-dimensional table or a multi-value domain, which increases the difficulty of development and resource consumption.
Using a software development method based on multidimensional dynamic parameters, by constructing a multidimensional dynamic parameter set, selecting multidimensional dynamic parameters related to business scenarios, and performing parameter configuration, including effective model, influencing factor model, value domain model and value domain allusion extension model. Simplify logical judgment and data storage structure adjustment.
It reduces the difficulty of software development, improves the flexibility and maintainability of the system, simplifies policy analysis and configuration, reduces code redundancy, and improves development efficiency and system response speed.
Smart Images

Figure CN119166118A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of computer software technology, and in particular relates to a software development method and system based on multi-dimensional dynamic parameters. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] With the rapid development of the information society, the demand for acquiring and processing data in information systems is becoming increasingly complex, and the data factors that need to be measured are becoming more diversified. When faced with scenarios where multiple judgment factors are required to jointly determine data acquisition, multiple judgment functions are often nested or combined in parallel to achieve multiple factor judgments. In this case, there will be many judgment functions, code accumulation, and high code redundancy. In order to add a judgment factor, traditional methods often need to add new judgment functions to multi-layer nested or parallel judgment functions, and make a lot of modifications to the system code, which not only increases development costs, but may also cause system instability; in addition, with the increasing amount of data stored in information systems, indicators originally based on a single value domain usually need to adjust the data storage structure when they are expanded to a two-dimensional table or a multi-value domain, which will lead to a lot of code changes and testing work, consuming a lot of time and resources. Summary of the invention
[0004] The embodiments of the present invention provide a software development method and system based on multi-dimensional dynamic parameters to solve the problems of complex judgment logic, high code redundancy, and a large amount of code modification required when the judgment conditions change caused by multi-factor judgment situations, so as to reduce the difficulty of software development, and the problem that when indicators based on a single value domain are expanded to a two-dimensional table or a multi-value domain, the existing method usually needs to adjust the data storage structure, which will lead to a large amount of code changes and testing work, and consume a lot of time and resources.
[0005] According to a first aspect of an embodiment of the present invention, there is provided a software development method based on multi-dimensional dynamic parameters, comprising:
[0006] Selecting a multidimensional dynamic parameter related to the logic judgment of the current business scenario from a pre-built multidimensional dynamic parameter set; wherein the construction of the multidimensional dynamic parameter set is specifically as follows: pre-acquiring the logic judgment gateways existing in the current business scenario, and constructing a gateway combination based on the logic judgment gateways; wherein the gateway combination is composed of a plurality of logic judgment gateways, and the logic judgment gateways are associated with corresponding judgment conditions and judgment values; and combining the judgment conditions corresponding to each logic judgment gateway in each obtained gateway combination into a multidimensional dynamic parameter;
[0007] In the encoding process of the current business scenario logic judgment, the selected multidimensional dynamic parameters are configured based on the business needs of the current business scenario; wherein the parameter configuration specifically includes the configuration of the multidimensional dynamic parameter effectiveness model, the multidimensional dynamic parameter influencing factor model, the multidimensional dynamic parameter value range model, and the multidimensional dynamic parameter value range mapping extension model;
[0008] Compile parameter processing information classes, including multi-dimensional parameter entity classes, parameter input information classes, and dynamic parameter classes, to implement multi-dimensional parameter definition, parsing, and parameter value return;
[0009] The program is implemented based on the multi-dimensional dynamic parameters after parameter configuration to perform logical judgment on the current business scenario. In the encoding process, dynamic parameters are used, and then the constructed dynamic parameter processing information class is used to implement parameter parsing to complete complex logical judgments.
[0010] Furthermore, when the business requirements of the business scenario change, it is only necessary to modify the influencing factors of the multidimensional dynamic parameter influencing factor model, modify the corresponding influencing factors and parameter values in the multidimensional dynamic parameter value domain model, and modify the corresponding influencing factors and parameter values in the multidimensional dynamic parameter value domain mapping extension model.
[0011] Furthermore, in the coding implementation of the business logic, when utilizing multidimensional dynamic parameters, it is necessary to define global multidimensional dynamic parameters; and to classify the multidimensional dynamic parameters that need to be used and whether they need multidimensional dynamic parameter value range mapping extension.
[0012] Furthermore, the preparation of parameter processing information class specifically includes the construction of multidimensional dynamic parameter entity class, parameter input information class and dynamic parameter class, wherein the multidimensional dynamic parameter entity class is used to define the entity of multidimensional dynamic parameters and provide set and get methods to the outside; the parameter input information class is used to define the entity of the input parameters required for multidimensional parameters and provide set and get methods to the outside; the multidimensional dynamic parameter class is used to load the parameter model into the memory and obtain the parameter value through cyclic matching through the parameter parsing algorithm.
[0013] Furthermore, the multidimensional dynamic parameter class includes at least four parameter model storage maps, namely, a multidimensional dynamic parameter value domain model, a multidimensional dynamic effectiveness model, a multidimensional dynamic parameter value domain mapping extension model and a multidimensional dynamic parameter influencing factor model, corresponding initialization methods of the four parameter models and a method for obtaining parameter values.
[0014] Furthermore, the multidimensional dynamic parameter effectiveness model is used to control whether the multidimensional dynamic parameters are enabled; the multidimensional dynamic parameter influencing factor model is used to set data for the judgment conditions of the logical judgment gateway involved in the multidimensional dynamic parameters; the multidimensional dynamic parameter value domain model is used to represent the judgment value corresponding to the judgment condition of the logical judgment gateway involved in the multidimensional dynamic parameters, that is, the influencing factor; wherein the influencing factor is divided into primary influencing factors and secondary influencing factors based on its data dimension; the multidimensional dynamic parameter value domain mapping extension model is used to represent the secondary influencing factor.
[0015] Furthermore, the multidimensional dynamic parameter effectiveness model includes parameter ID, parameter name, policy number, parameter effectiveness start date, parameter effectiveness end date and parameter effective area information; the multidimensional dynamic parameter influencing factor model sets information for each parameter influencing factor of the multidimensional dynamic parameter, that is, sets information for the judgment condition of each logical judgment gateway, and the information that needs to be set includes parameter ID, influencing factor name, influencing factor order, priority of influencing factors at the same level and parameter effective area information; the multidimensional dynamic parameter value domain model includes parameter ID, parameter effective area, parameter value, all first-level influencing factors and extended influencing factor information; the multidimensional dynamic parameter value domain extension model includes data ID, upper and lower limits of second-level influencing factors, second-level influencing factor judgment conditions and extended parameter values.
[0016] According to a second aspect of an embodiment of the present invention, there is provided a software development system based on multi-dimensional dynamic parameters, comprising:
[0017] A business logic analysis and multi-dimensional dynamic parameter selection unit, which is used to select multi-dimensional dynamic parameters related to the logic judgment of the current business scenario from a pre-built multi-dimensional dynamic parameter set; wherein the construction of the multi-dimensional dynamic parameter set is specifically: pre-acquiring the logic judgment gateways existing in the current business scenario, and constructing a gateway combination based on the logic judgment gateways; wherein the gateway combination is composed of a number of logic judgment gateways, and the logic judgment gateways are associated with corresponding judgment conditions and judgment values; by combining the judgment conditions corresponding to each logic judgment gateway in each gateway combination obtained into a multi-dimensional dynamic parameter;
[0018] A parameter configuration unit, which is used to configure the selected multidimensional dynamic parameters based on the business needs of the current business scenario during the encoding process of the current business scenario logic judgment; wherein the parameter configuration specifically includes the configuration of the multidimensional dynamic parameter validation model, the multidimensional dynamic parameter influencing factor model, the multidimensional dynamic parameter value range model and the multidimensional dynamic parameter value range mapping extension model;
[0019] The parameter processing information class compilation unit is used to compile the parameter processing information class, including the multi-dimensional parameter entity class, the parameter input information class and the dynamic parameter class, to realize the multi-dimensional parameter definition, parsing and parameter value return;
[0020] The encoding unit is used to implement the program for logical judgment of the current business scenario based on the multi-dimensional dynamic parameters after parameter configuration. In the encoding process, dynamic parameters are used, and then the constructed dynamic parameter processing information class is used to implement parameter parsing to complete complex logical judgments.
[0021] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor and a computer program stored and running on the memory, wherein when the processor executes the program, the software development method based on multi-dimensional dynamic parameters is implemented.
[0022] According to a fourth aspect of an embodiment of the present invention, there is provided a non-transitory computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the software development method based on multi-dimensional dynamic parameters is implemented.
[0023] One or more of the above technical solutions have the following beneficial effects:
[0024] (1) The present invention provides a software development method and system based on multi-dimensional dynamic parameters. The scheme is based on the constructed multi-dimensional dynamic parameters, which effectively solves the problems of complex judgment logic, high code redundancy, and a large amount of code modification required when the judgment conditions change due to multi-factor judgment, thereby reducing the difficulty of software development. In addition, when indicators based on a single value domain are expanded to a two-dimensional table or a multi-value domain, the existing method usually needs to adjust the data storage structure, which will lead to a large amount of code changes and testing work, consuming a lot of time and resources.
[0025] (2) In order to ensure the timeliness of the policy implementation time and the stability of the parameters, the solution described in the present invention constructs a parameter effectiveness model. By defining the validity period, effectiveness conditions and other attributes of the parameters, it ensures the correct application of the parameters within the specified time and ensures the stability of the parameters in the system.
[0026] (3) In order to break through the coupling barrier of complex policies, the scheme described in the present invention constructs a parameter influencing factor model. This model aims to discretize the complex judgment conditions in the policy into multiple influencing factors that can be independently evaluated, and by setting the priority of the influencing factors, it can realize the rapid retrieval and processing of high-frequency usage data. By constructing a parameter influencing factor model, the calculation speed, precision and accuracy are improved while reducing the complexity and maintenance cost of the system.
[0027] (4) The solution of the present invention constructs a multi-dimensional parameter value domain model and a parameter value domain mapping extension model to support the rapid configuration of complex policies into the database. The model displays policies in a structured manner and realizes rapid deployment and change of policies by configuring parameter value domains and mapping relationships.
[0028] (5) In order to simplify the difficulty of policy analysis and configuration, the present invention utilizes the splicing combination of multi-dimensional parameter models. By granulating the complex judgment logic into multiple parameters, the judgment logic can be simplified into associations and combinations between parameters. This not only simplifies the policy analysis process, but also reduces the difficulty of policy configuration, thereby improving the flexibility and maintainability of the system.
[0029] (6) The present invention effectively simplifies the code redundancy caused by a large number of repeated judgments through parameter configuration. By directly configuring relational databases such as Oracle, Mysql, and SQL Server, parameters can be added, modified, and deleted. This direct database configuration method not only improves development efficiency, but also reduces system maintenance costs; when parameters need to be modified, only the corresponding parameter configuration in the database needs to be changed and reloaded through the parameter initialization method. This method can quickly realize the change of parameter values and required influencing factors, thereby achieving efficient system maintenance.
[0030] (7) In order to achieve rapid acquisition of parameter values, the solution of the present invention constructs a parameter analysis module, through which the parameters can be adaptively analyzed and processed, and the required parameter values can be quickly retrieved and calculated according to the configured parameter values and influencing factors. This not only improves the response speed of the system, but also enhances the flexibility and customizability of the system.
[0031] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0033] Figure 1 It is an overall processing flow chart of a software development method based on multi-dimensional dynamic parameters in a specific implementation process described in an embodiment of the present invention;
[0034] Figure 2 Schematic diagram of the process of utilizing the multi-dimensional dynamic parameters described in an embodiment of the present invention. DETAILED DESCRIPTION
[0035] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0036] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0037] Terminology explanation:
[0038] Gateway: Gateway is a key component for handling complex logic and conditional branches. It is used to control the direction of program execution and allows different paths to be selected to perform different operations based on specific conditions and the values of the conditions.
[0039] Multidimensional dynamic parameter effectiveness model, multidimensional dynamic parameter influencing factor model, multidimensional dynamic parameter value range model and multidimensional dynamic parameter value range mapping extension model: these are four data storage structures, which are combined together to complete the definition of multidimensional dynamic parameters and related numerical definitions.
[0040] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0041] like Figure 1 As shown, an embodiment of the present invention provides a software development method based on multi-dimensional dynamic parameters, including:
[0042] Step 1: Select a multidimensional dynamic parameter related to the logic judgment of the current business scenario from a pre-built multidimensional dynamic parameter set; wherein the construction of the multidimensional dynamic parameter set is specifically as follows: pre-acquire the logic judgment gateways existing in the current business scenario, and construct a gateway combination based on the logic judgment gateways; wherein the gateway combination is composed of a number of logic judgment gateways, and the logic judgment gateways are associated with corresponding judgment conditions and judgment values; and the judgment conditions corresponding to each logic judgment gateway in each obtained gateway combination are combined into a multidimensional dynamic parameter;
[0043] Step 2: In the encoding process of the current business scenario logic judgment, the selected multidimensional dynamic parameters are configured based on the business needs of the current business scenario; wherein the parameter configuration specifically includes the configuration of the multidimensional dynamic parameter effectiveness model, the multidimensional dynamic parameter influencing factor model, the multidimensional dynamic parameter value range model, and the multidimensional dynamic parameter value range mapping extension model;
[0044] Step 3: compile parameter processing information class, including multi-dimensional parameter entity class, parameter input information class and dynamic parameter class, to realize multi-dimensional parameter definition, parsing and parameter value return;
[0045] Step 4: Implement the program for logical judgment of the current business scenario based on the multi-dimensional dynamic parameters after parameter configuration. In the coding process, dynamic parameters are used, and then the constructed dynamic parameter processing information class is used to implement parameter parsing to complete complex logical judgments.
[0046] In the specific implementation, when the business requirements of the business scenario change, it is only necessary to modify the influencing factors of the multidimensional dynamic parameter influencing factor model, modify the corresponding influencing factors and parameter values in the multidimensional dynamic parameter value domain model, and modify the corresponding influencing factors and parameter values in the multidimensional dynamic parameter value domain mapping extension model.
[0047] In the specific implementation, in the coding implementation of the business logic, when utilizing the multidimensional dynamic parameters, it is necessary to define the global multidimensional dynamic parameters; and whether the multidimensional dynamic parameters to be used need the multidimensional dynamic parameter value range mapping extension to be categorized.
[0048] In a specific implementation, the construction of the processing information class for multidimensional dynamic parameters specifically includes the construction of a multidimensional dynamic parameter entity class, a parameter input information class, and a dynamic parameter class, wherein the multidimensional dynamic parameter entity class is used to define the entity of the multidimensional dynamic parameter and provide set and get methods to the outside; the parameter input information class is used to define the input entity required for the multidimensional parameter and provide set and get methods to the outside; the multidimensional dynamic parameter class is used to load the parameter model into memory and obtain the parameter value.
[0049] In a specific implementation, the multidimensional dynamic parameter class includes at least four parameter model storage maps, namely, a multidimensional dynamic parameter value domain model, a multidimensional dynamic effectiveness model, a multidimensional dynamic parameter value domain mapping extension model and a multidimensional dynamic parameter influencing factor model, the corresponding initialization methods of the four parameter models and a method for obtaining parameter values.
[0050] In a specific implementation, the multidimensional dynamic parameter effectiveness model is used to control whether the multidimensional dynamic parameters are enabled; the multidimensional dynamic parameter influencing factor model is used to set data for the judgment conditions of the logical judgment gateway involved in the multidimensional dynamic parameters; the multidimensional dynamic parameter value domain model is used to represent the judgment value corresponding to the judgment condition of the logical judgment gateway involved in the multidimensional dynamic parameters, that is, the influencing factor; wherein the influencing factor is divided into primary influencing factors and secondary influencing factors based on its data dimension; the multidimensional dynamic parameter value domain mapping extension model is used to represent the secondary influencing factor.
[0051] In a specific implementation, the multidimensional dynamic parameter effectiveness model includes parameter ID, parameter name, policy number, parameter effectiveness start date, parameter effectiveness end date and parameter effective area information; the multidimensional dynamic parameter influencing factor model sets information for each parameter influencing factor of the multidimensional dynamic parameter, that is, sets information for the judgment condition of each logical judgment gateway, and the information that needs to be set includes parameter ID, influencing factor name, influencing factor order, priority of influencing factors at the same level and parameter effective area information; the multidimensional dynamic parameter value domain model includes parameter ID, parameter effective area, parameter value, all first-level influencing factors and extended influencing factor information; the multidimensional dynamic parameter value domain extension model includes data ID, upper and lower limits of second-level influencing factors, second-level influencing factor judgment conditions and extended parameter values.
[0052] Specifically, for ease of understanding, the solution described in this embodiment is described in detail below from the perspective of specific implementation combined with a specific example (i.e., the judgment of policy logic in the field of medical insurance is taken as an example):
[0053] Step 1: Select a multidimensional dynamic parameter related to the logic judgment of the current business scenario from a pre-built multidimensional dynamic parameter set; wherein the construction of the multidimensional dynamic parameter set is specifically as follows: pre-acquire the logic judgment gateways existing in the current business scenario, and construct a gateway combination based on the logic judgment gateways; wherein the gateway combination is composed of a number of logic judgment gateways, and the logic judgment gateways are associated with corresponding judgment conditions and judgment values; and the judgment conditions corresponding to each logic judgment gateway in each obtained gateway combination are combined into a multidimensional dynamic parameter;
[0054] The construction of the multi-dimensional dynamic parameter set specifically includes the following processing steps:
[0055] Step 101: sorting out influencing factors, analyzing the possible logical judgment gateways in the encoding process, sorting out the judgment conditions and judgment values of each judgment gateway, and each logical judgment gateway is called an influencing factor.
[0056] According to the actual coding requirements, the gateway combinations are enumerated. The gateway combination should be a set of gateways necessary to complete a complex logical judgment. The gateway combination should include the judgment conditions, judgment values and judgment order of each logical judgment gateway.
[0057] Taking the deductible as an example, the judgment conditions required during the implementation of this policy include medical coordination category, treatment category, personnel category, hospital grade, disease category, disease number, effective time, and number of hospitalizations.
[0058] Taking the grading line as an example, the judgment conditions required during the implementation of this policy include fund allocation category, personnel category, medical insurance zoning, medical coordination category, and effective time.
[0059] All judgment conditions existing in the deductible and tiering lines are called influencing factors. The union of all image factors is taken, and the first-level influencing factors and second-level influencing factors are divided according to the frequency of occurrence of the influencing factors and the characteristics of the gateway.
[0060] Specifically, in the policy for judging the deductible and the tiered line, the first-level influencing factors are, from high to low in frequency, the medical pooling category med_pool_type, the medical treatment category mdtrt_type, the personnel category psn_type, the hospital grade hosp_lv, the disease category dise_type, the disease number dise_code, the fund payment type fund_pay_type, and the collection pooling area clct_poolarea; the second-level influencing factors are, from high to low in frequency, the effective time begn_end_date, and the number of hospitalizations ipt_cnt. In addition, it is necessary to add the extended influencing factor ext_eff_fctr to cope with the situation that needs to be extended.
[0061] Step 102: The enumerated multiple combined gateways that complete a complex judgment are taken as a multi-dimensional dynamic parameter, and a multi-dimensional dynamic parameter validation model is constructed. The multi-dimensional dynamic parameter validation model is used to define a multi-dimensional parameter and stipulate whether the dynamic parameter is enabled.
[0062] Taking the deductible that requires multiple judgments as an example, the conditions that need to be judged during the policy implementation process, including medical coordination category, treatment category, personnel category, hospital grade, disease category, disease number, effective time, and number of hospitalizations, are combined into a multi-dimensional dynamic parameter.
[0063] Furthermore, a multi-dimensional dynamic effectiveness model is configured for the deductible, including parameter ID, parameter name, policy number, parameter effectiveness start date, parameter effectiveness end date, and parameter effective area.
[0064] The parameter ID is a concatenation of the parameter name, policy number and parameter effective start date. The parameter ID is a unique parameter code determined for each multi-dimensional dynamic parameter.
[0065] The parameter name is a parameter identifier, which is used to distinguish parameters.
[0066] The policy number is used to distinguish gateways with similar logic but different application areas.
[0067] The parameter effective start date and end date are used to constrain the usage period of the dynamic parameter.
[0068] The parameter effective area is used to distinguish the areas where the parameter can be used, and is used to distinguish policy parameters that are logically consistent but have different parameter value ranges due to different regions.
[0069] Specifically, the parameter name of the deductible is qfx, the policy number is 377602MD3200001, the parameter effective start date is 20000101, and the end date is empty to indicate long-term validity. The parameter effective area is 3700, then the parameter ID is qfx-377602MD3200001-20000101-.
[0070] Step 103: For each multidimensional dynamic parameter, a multidimensional dynamic parameter influencing factor model is constructed based on the validation model, the gateway judgment conditions (influencing factors) involved in the multidimensional dynamic parameter are listed, and all gateway judgment conditions are used as all influencing factors of the multidimensional dynamic parameter.
[0071] Taking the medical insurance deductible as an example, through sorting out, it is found that its influencing factors should include medical pooling category (med_pool_type), treatment category (mdtrt_type), personnel category (psn_type), hospital grade (hosp_lv), disease category (dise_type), disease number (dise_code), effective time (begn_end_year), and number of hospitalizations (ipt_cnt).
[0072] Step 1031, setting information for each parameter influencing factor of the multi-dimensional dynamic parameter, which should at least include parameter ID, influencing factor name, influencing factor order, priority of influencing factors at the same level, and parameter effective area.
[0073] The parameter ID is a multi-dimensional dynamic validation model ID. A multi-dimensional parameter may have multiple influencing factor numbers.
[0074] The order of influencing factors is the level of influencing factors.
[0075] The influencing factor level is used to identify and distinguish the influencing factors used in different parameter models. Specifically, the first-level influencing factor is the key factor of the multi-dimensional dynamic parameter range model, which directly affects the dynamic changes of the parameter range; the second-level influencing factor is an important part of the parameter range mapping extension model, which determines the mapping relationship of the parameter value in different scenarios.
[0076] The priority of the same-level influencing factors is the logical judgment order between the influencing factors of the same level. When logically judging the influencing factors, the influencing factors of the same level will be selected first, and then the judgment priority order will be determined according to the size of the priority value.
[0077] The priority is the judgment order of the influencing factors of the same level.
[0078] The parameter valid area is the area where the parameter can be used.
[0079] Taking the deductible as an example, the influencing factors with the order of 1 include medical pooling type (med_pool_type), treatment type (mdtrt_type), personnel type (psn_type), hospital level (hosp_lv), disease type (dise_type), and disease number (dise_code), and the priorities of the same-level influencing factors are 1 to 6; the influencing factors with the order of 2 include effective time (begn_end_year) and number of hospitalizations (ipt_cnt), and the priorities of the same-level influencing factors are 1 and 2. When matching influencing factors, the matching order will be obtained according to the order of influencing factors and the priorities of the same-level influencing factors.
[0080] Step 1032: prioritize all influencing factors of the same multi-dimensional dynamic parameter.
[0081] First, the priority of the influencing factors is judged according to the necessary logical order as the evaluation criteria, and the priority is determined according to the logical relationship if there is a logical relationship between them.
[0082] The necessary logical order refers to the factors that affect the logical order of the previous and the next. For example, during the program running process, the A element must be determined before the B element can be determined. The necessary logical order is A first and then B.
[0083] When the order does not affect the result, the influencing factors are judged according to the evaluation criteria of the frequency of gateway use. The higher the probability of frequency, the higher the priority.
[0084] The gateway usage frequency refers to the number of times the judgment needs to be used in the encoding process. For example, in the handling of medical insurance business, the insurance type must be determined first. Then the insurance type is a factor that is used more frequently, so this judgment is given priority.
[0085] Step 104, construct a multi-dimensional dynamic parameter value range model to determine the value range of the influencing factor, that is, the specific judgment value of the judgment condition of the gateway, also known as the influencing factor.
[0086] Step 1041 , analyzing and judging the influencing factors according to their levels, and dividing the influencing factors into primary influencing factors and secondary influencing factors.
[0087] The first-level influencing factor is a value of a single data dimension stored in the first-level influencing factor.
[0088] The secondary influencing factors are values described by multidimensional data stored in the secondary influencing factors. Such factors require parameter value range mapping and extended model processing.
[0089] Taking the deductible as an example, the first-level influencing factor medical pooling category has first-level influencing factors 1, 2, 3, 4, 5, and 6, representing hospitalization, home beds, emergency observation, outpatient chronic and special diseases, accidental injuries, and general outpatient clinics, respectively.
[0090] Step 1042, constructing a multi-dimensional dynamic parameter value domain model, which should at least include parameter ID, parameter effective area, parameter value, all primary influencing factors and extended influencing factors.
[0091] The said all first-level influencing factors should be all the first-level influencing factors processed in the influencing factor sorting in step 1. When storing data, the factors related to the multi-dimensional dynamic parameter are specific values, and the values of irrelevant factors are null values.
[0092] The extended influencing factors are very few first-level influencing factors that were not sorted out in step 1. The extended influencing factors are used to represent the influencing factors. If there are multiple extended influencing factors, they can be spliced into one extended influencing factor using a string concatenation method.
[0093] The parameter value is the return result of the parameter. In particular, if the multi-dimensional dynamic parameter needs to use the secondary influencing factor, the result of the parameter value is the concatenated value data ID of the parameter ID in step 5 and the primary influencing factor.
[0094] Taking the deductible as an example, a piece of data that should be saved in the multi-dimensional dynamic parameter value range model is as follows:
[0095] The parameter ID is qfx-377602MD3200001-20000101-, the effective area is 3700, the medical pooling category med_pool_type is 1, the medical consultation category mdtrt_type is 01, the personnel category psn_type is 21, the hospital level hosp_lv is 1, the disease category dise_type is empty, and the disease number dise_code is empty. The parameter value is qfx-377602MD3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*.
[0096] Step 105, construct a multi-dimensional dynamic parameter value range mapping extension model for the secondary influencing factors. The parameter value range mapping extension model should at least include the data ID, the upper and lower limits of the secondary influencing factors, the secondary influencing factor determination conditions, and the extended parameter values.
[0097] The data ID is a unique ID obtained by concatenating the parameter number and its primary influencing factors.
[0098] The upper and lower limits of the secondary influencing factors are the upper limit and lower limit of the range of the secondary influencing factors, which are used to represent a closed interval of [lower limit, upper limit].
[0099] The secondary influencing factor determination condition is to determine whether it is greater than the secondary influencing factor. If there are multiple determination conditions, the determination is made in order from large to small to achieve the range determination of the secondary influencing factor. For example, the number of hospitalizations ipt_cnt, assuming that ipt_cnt has three influencing factors 1, 2, and 3, then when judging, ipt_cnt≥3 will be judged first, then ipt_cnt≥2 will be judged, and finally ipt_cnt≥1 will be judged to achieve three range intervals of [3, +∞), [2, 3), and [1, 2).
[0100] The extended parameter value is a return value of the multi-dimensional dynamic parameter value range that reflects the extended model. Similar to the multi-dimensional dynamic parameter value range model, the unique return value of multiple secondary influencing factors can be determined by arranging and combining the secondary influencing factors of the secondary influencing factors.
[0101] Taking the deductible data in step 105 as an example, the mapping extension model saves three pieces of data, namely:
[0102] 1. Data ID is
[0103] qfx-377602MD3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*, the number of hospitalizations ipt_cnt is 1, the secondary influencing factor effective time begn_end_year corresponds to the secondary influencing factors begnyear is 2009, endyear is 2009, and the returned extended parameter value is 300.
[0104] 2. Data ID is
[0105] qfx-377602MD3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*, the number of hospitalizations ipt_cnt is 1, the secondary influencing factor effective time begn_end_year corresponds to the secondary influencing factors begnyear is 2008, endyear is 2008, and the returned extended parameter value is 300.
[0106] 3. Data ID is
[0107] qfx-377602MD3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*, the number of hospitalizations ipt_cnt is 1, the secondary influencing factor effective time begn_end_year corresponds to the secondary influencing factors begnyear is 2010 and endyear is 2011, and the returned extended parameter value is 200.
[0108] Step 2: During the encoding process of the current business scenario logic judgment, the selected multidimensional dynamic parameters are configured based on the business needs of the current business scenario; wherein the parameter configuration specifically includes the configuration of the multidimensional dynamic parameter validation model, the multidimensional dynamic parameter influencing factor model, the multidimensional dynamic parameter value range model, and the multidimensional dynamic parameter value range mapping extension model;
[0109] Specifically, Figure 2 As shown, multi-dimensional dynamic parameters need to be configured according to specific business needs during programming, which should at least include the following steps:
[0110] Step 201 , analyzing the effective time of the service, setting a number for the parameter, and saving the parameter number, the parameter start time, and the parameter end time into a multi-dimensional dynamic parameter effectiveness model.
[0111] Step 202: Analyze the gateways that need to be judged for the parameter, that is, the influencing factors, and save the required influencing factors and the corresponding influencing factor levels and priorities into the multi-dimensional dynamic parameter influencing factor model.
[0112] Step 203, analyze the specific situation of the business and assign an influence factor to the first-level influence factor. If there is no second-level influence factor in step 202, the parameter value is saved as the return value, otherwise the parameter value is the concatenation of the parameter ID and each first-level influence factor, that is, the data ID, and the parameter ID, the first-level influence factor and the parameter value are saved in the multi-dimensional dynamic parameter value domain model.
[0113] Step 204: If there are secondary influencing factors in the multidimensional dynamic parameter influencing factor model data saved in step 202, secondary influencing factors and corresponding extended parameter values are assigned to the secondary influencing factors and parameter values according to the data ID in step 203, and the data ID, secondary influencing factors and extended parameter values are saved in the multidimensional dynamic parameter value domain mapping extended model.
[0114] Taking the deductible as an example, multi-dimensional dynamic parameters are configured in different models, including:
[0115] 1. The multi-dimensional dynamic effectiveness model saves the parameter name qfx, the policy number is 377602MD3200001, the parameter effectiveness start date is 20000101, the end date is empty, the parameter effective area is 3700, and the parameter ID is qfx-377602MD3200001-20000101-.
[0116] 2. The multidimensional dynamic parameter influencing factor model saves six data with parameter ID qfx-377602MD3200001-20000101-, the same-level influencing factor order is 1, the influencing factor names are med_pool_type, mdtrt_type, psn_type, hosp_lv, dise_type, dise_code, and the influencing factor priorities are 1 to 6 respectively, and two data with parameter ID qfx-377602MD3200001-20000101-, the same-level influencing factor order is 2, the influencing factor names are begn_end_year, ipt_cnt, and the influencing factor priorities are 1 and 2 respectively.
[0117] 3. The multi-dimensional dynamic parameter value domain model saves the parameter ID as qfx-377602MD3200001-20000101-, the effective area is 3700, the medical pooling category med_pool_type is 1, the medical treatment category mdtrt_type is 01, the personnel category psn_type is 21, the hospital level hosp_lv is 1, the disease category dis_type is empty, the disease number dis_code is empty, the fund payment type fund_pay_type is empty, the medical insurance division clct_poolarea is empty, and the parameter value is
[0118] qfx-377602md3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*data.
[0119] 4. The multi-dimensional dynamic parameter range mapping extension model saves three pieces of data, namely:
[0120] (1) The data ID is qfx-377602MD3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*, the number of hospitalizations ipt_cnt is 1, the secondary influencing factor effective time begn_end_year corresponds to the secondary influencing factors begnyear and endyear of 2009, and the returned extended parameter value is 300.
[0121] (2) The data ID is qfx-377602MD3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*, the number of hospitalizations ipt_cnt is 1, the secondary influencing factor effective time begn_end_year corresponds to the secondary influencing factors begnyear and endyear of 2008, and the return parameter value is 300.
[0122] (3) The data ID is qfx-377602MD3200001-20000101-med_pool_type1mdtrt_type01psn_type21hosp_lv1dise_type*dise_code*, the number of hospitalizations ipt_cnt is 1, the secondary influencing factor effective time begn_end_year corresponds to the secondary influencing factors begnyear is 2010 and endyear is 2011, and the return parameter value is 200.
[0123] Furthermore, if new parameters need to be added or modified due to policy changes, corresponding changes can be made in the database according to actual needs. Taking the deductible as an example, if individual hospitals need to use separate deductibles due to policy changes, the changes in the four major models in the database are as follows:
[0124] 1. The effective model remains unchanged.
[0125] 2. The influencing factor model adds additional extended influencing factors, and gives the same-level influencing factors a priority of 7 and an influencing factor level of 1.
[0126] 3. The parameter value range model adds corresponding influencing factors and parameter values.
[0127] 4. The parameter value range implies the expansion model to increase the corresponding influencing factors and parameter values.
[0128] Step 3, compile the parameter processing information class to implement multi-dimensional parameter definition and analysis processing, including the multi-dimensional parameter entity class paraEffEleBDO, parameter input information class HTmdtrtBDO, and dynamic parameter class CubeParaSTO.
[0129] Step 301, construct a multi-dimensional parameter entity class paraEffEleBDO, which is used to define the entity of multi-dimensional parameters and provide set and get methods externally.
[0130] Step 302, construct the parameter input information class HTmdtrtBDO, which is used to define the input entity required for the multi-dimensional parameter and provide set and get methods externally.
[0131] Step 303, construct the dynamic parameter class CubeParaSTO, which is used to load the parameter model into the memory and obtain the parameter value. This class should at least contain four parameter model storage maps: multidimensional dynamic parameter value domain model cubeParaMap, multidimensional dynamic effectiveness model cubeParaEffMap, multidimensional dynamic parameter value domain mapping extension model paraMap, and multidimensional dynamic parameter influencing factor model cubeParaFctrMap; this class should at least contain the multidimensional dynamic parameter effectiveness model initialization method initCubeParaEffMap(), the multidimensional dynamic parameter value domain model initialization method
[0132] initCubeParaMap(), multi-dimensional dynamic parameter value range mapping extension model initialization method initParaMap(), multi-dimensional dynamic parameter influencing factor model initialization method initCubeParaFctrMap(), parameter value acquisition method getParaMap().
[0133] Furthermore, the multi-dimensional dynamic parameter validation model initialization method initCubeParaEffMap() is used to obtain the data stored in the multi-dimensional dynamic parameter validation model and save the data in cubeParaEffMap.
[0134] Furthermore, the multi-dimensional dynamic parameter influencing factor model initialization method initCubeParaFctrMap() is used to obtain the data stored in the multi-dimensional dynamic parameter influencing factor model and save the data in cubeParaFctrMap.
[0135] Furthermore, the multi-dimensional dynamic parameter value range model initialization method initCubeParaMap() is used to obtain the data stored in the multi-dimensional dynamic parameter value range model and save the data in cubeParaMap.
[0136] Furthermore, the multi-dimensional dynamic parameter value range mapping extension model initialization method initParaMap() is used to obtain the data stored in the multi-dimensional dynamic parameter value range mapping extension model and save the data in paraMap.
[0137] Furthermore, the methods for obtaining parameter values are divided into two categories. One is for parameters that do not require parameter value domain mapping extension, and use the getPara(parameter name, multi-dimensional parameter entity class, parameter input information class, return default value) method to obtain parameter values based on parameter name, multi-dimensional parameter entity class, parameter input information class, and return default value; the other is for parameters that require parameter value domain mapping extension, and use the getParaMap(parameter name, multi-dimensional parameter entity, parameter input information class) method to obtain parameter values based on parameter name, multi-dimensional parameter entity class, and parameter input information class.
[0138] Furthermore, a method for obtaining parameter values that does not require parameter value range mapping expansion uses the influencing factor matching algorithm 1 to complete the matching of the multi-dimensional dynamic parameter algorithm.
[0139] The specific algorithm is shown in Algorithm 1:
[0140] Algorithm 1: First-level influencing factor matching algorithm
[0141] Among them, D is the information configured by the parameter number, that is, the data stored in the incoming multidimensional dynamic parameter value domain model, with a dimension of r×(n+1); F is the priority influencing factor information configured by the parameter number, that is, the data stored in the multidimensional dynamic parameter influencing factor model, with a dimension of 1×m; M is the multidimensional dynamic parameter mapping extended model information, which is the secondary influencing factor group and its corresponding value.
[0142] Input: parameter value dataset D, influencing factor information dataset F, influencing factor group {A 1 ,A 2 ,...,A n}, influencing factor array {a 1 ,a 2 ,....,a n}, the default value of the parameter is V def .
[0143] Output: parameter value V.
[0144] Verification comparison value P = {p 1 ,p 2 ,...,p n}.
[0145] Step 1: Get the influencing factor group {B 1 ,B 2 ,....,Bm}, where m is the total number of influencing factors in the influencing factor model, n is the number of influencing factors in the parameter configuration in the influencing factor model, and n≤m.
[0146] Step 2: Set i = 1, and obtain the parameter value loop set D of the i-th row i The influence factor {b i1 ,b i2 ,...,b im}, where D has r rows of data. Let the checksum comparison value P, where P has the same dimension as D, and P i ={p i1 =0,p i2 =0,...,p im =0}.
[0147] Step 3: Set k = 1, match the influencing factor A k In the influencing factor group {B 1 ,B 2 ,....,B m}. If it matches B l , then it matches a k With b il Are they equal? k is empty, execute step 4; if they are equal, set p ik =1; if not equal, execute Step 5.
[0148] Step 4: Let k = k + 1. If k ≤ n, repeat Step 3.
[0149] Step 5: Let i=i+1. If i≤r, repeat Step 3 to Step 4.
[0150] Step 6: Sort the check comparison values P of Step 3 to Step 5 by comparison value. If P t The number of comparison values of 1 is the largest, then set the return parameter value V to D t The corresponding parameter value V t , that is, V = V t ; If there is no data with a comparison value of 1 in P, the return parameter value is set to the default value V def , that is, V = V def .
[0151] Furthermore, the parameters that need to be mapped to the extended parameters of the parameter value range are obtained based on the parameter value V obtained by Algorithm 1. The mapping extended model parameter value dataset M is obtained, and a loop matching is performed according to the input secondary influencing factors. The outer loop is the parameter value dataset loop, and the inner loop is the influencing factor loop. The matching is completed using the secondary influencing factor matching algorithm.
[0152] The specific algorithm is shown in Algorithm 2:
[0153] Algorithm 2: Secondary influencing factor matching algorithm
[0154] Input: parameter value dataset M, influencing factor information dataset F, influencing factor group {A 1 ,A 2 ,...,A n}, influencing factor array {a 1 ,a 2 ,....,a n}, the default value of the parameter is V def .
[0155] Output: parameter value V.
[0156] Verification comparison value P = {p 1 ,p 2 ,...,p n}.
[0157] Step 1: Get the influencing factor group {B 1 ,B 2 ,....,B m}, where m is the total number of influencing factors in the influencing factor model, n is the number of influencing factors in the parameter configuration in the influencing factor model, and n≤m.
[0158] Step 2: Set i = 1, and obtain the parameter value loop set M of the i-th row i Factors affecting
[0159] Among them, M has r rows of data, For B m The lower bound of the i-th row, For B m The upper limit of the i-th row. Let the checksum comparison value P, where P has the same dimension as M, and P i ={p i1 =0,p i2 =0,...,p im =0}.
[0160] Step 3: Set k = 1, match the influencing factor A k In the influencing factor group {B 1 ,B 2 ,....,B m}. If it matches B l , then according to B l The types of secondary influencing factors are similar to a k Matching, if B lIf B is of upper and lower limits, execute Step 4; l If it is a judgment condition type, execute Step 5.
[0161] Step 4: Match a k Is it in If the range is within the range, then set p ik =1; if not, execute Step 7.
[0162] Step 5: Match a k ≥ b il , if it matches, then set p ik =1; if not, execute Step 7.
[0163] Step 6: Let k = k + 1. If k ≤ n, repeat Step 3.
[0164] Step 7: Let i=i+1. If i≤r, repeat Step 3 to Step 6.
[0165] Step8: Sort the check comparison values P of Step3 to Step7 by comparison value. If P t The number of comparison values of 1 is the largest, then set the return parameter value V to M t The corresponding parameter value V t , that is, V = V t ; If there is no data with a comparison value of 1 in P, the return parameter value is set to the default value V def , that is, V = V def .
[0166] In a specific embodiment, taking the deductible as an example, the parameter name passed in by the getParaMap method is qfx, the multidimensional parameter entity class is paraEffEleBDO, and the parameter input information class is HTmdtrtBDO. Among them, paraEffEleBDO contains the date date of 20090202, the medical pooling type med_pool_type is 1, the treatment type mdtrt_type is 01, the personnel type psn_type is 21, and the hospital level hosp_lv is 1; HTmdtrtBDO contains the number of hospitalizations ipt_cnt of 2 and begn_end_year of 2009.
[0167] According to the passed data, the getParaMap method returns a value of 300. The specific steps are as follows:
[0168] 1. Get the effective parameter ID of the corresponding parameter name in cubeParaEffMap according to the parameter name and date passed in.
[0169] 2. Get the first-level influencing factor information set cubeParaFctrBDOs corresponding to cubeParaFctrMap according to the parameter ID.
[0170] 3. Get the corresponding parameter value dataset cubeParaBDOs in cubeParaMap according to the parameter ID.
[0171] 4. Execute Algorithm 1 according to the passed-in multidimensional parameter entity class paraEffEleBDO, first-level influencing factor information set cubeParaFctrBDOs, and parameter value data set cubeParaBDOs, as follows:
[0172] (1) Read a row of data cubeParaBDO stored in cubeParaBDOs, and obtain cubeParaFctrBDO according to the priority in cubeParaFctrBDOs, that is, the influencing factors, such as med_pool_type.
[0173] (2) According to cubeParaFctrBDO, the value of paraEffEleBDO and the value in cubeParaBDO are obtained. For example, if the value of med_pool_type in paraEffEleBDO is 1, the value of med_pool_type in cubeParaBDO is 1.
[0174] (3) If a match is found, the corresponding position of the comparison value of the row is set to 1, and the next match judgment is entered.
[0175] (4) After all matching is completed, proceed to matching the next line.
[0176] (5) After all rows of cubeParaBDOs are matched, they are sorted according to the matching comparison values. The item with the most 1s is the match, and the parameter value of the corresponding row of cubeParaBDOs is returned.
[0177] 5. Use the value obtained in step 4 as the data ID to obtain the data set paraMapBDOs corresponding to paraMap, and obtain the secondary influencing factor information set cubeParaFctrBDOs corresponding to cubeParaFctrMap according to the parameter ID. Combined with the data in the incoming medical information class HTmdtrtBDO, execute Algorithm 2 as follows:
[0178] (1) Read a row of data paraMapBDO stored in paraMapBDOs, and obtain cubeParaFctrBDO according to the priority in cubeParaFctrBDOs, that is, the influencing factors, such as the number of hospitalizations ipt_cnt.
[0179] (2) According to cubeParaFctrBDO, the value of HTmdtrtBDO and the value in paraMapBDO are obtained. For example, the value of the number of hospitalizations ipt_cnt in HTmdtrtBDO is 2, and the value of ipt_cnt in paraMapBDO is 1.
[0180] (3) According to the value type of cubeParaFctrBDO, match the value in HTmdtrtBDO with the value in paraMapBDO.
[0181] (3-1) If the value of cubeParaFctrBDO is a judgment condition type, such as the number of hospitalizations ipt_cnt, then match whether the value in HTmdtrtBDO is greater than or equal to the value in paraMapBDO, such as ipt_cnt is 2≥1.
[0182] (3-2) If the value of cubeParaFctrBDO is of upper and lower limit type, such as begn_end_year, then match whether the value in HTmdtrtBDO is within the upper and lower limit interval [begnyear,endyear] in paraMapBDO, such as 2009≤2009≤2009.
[0183] (4) If a match is found, the corresponding position of the comparison value of the row is set to 1, and the next match judgment is entered; if a match is not found, the process directly proceeds to step 5.
[0184] (5) After all matching is completed, proceed to matching the next line.
[0185] (6) After all rows of paraMapBDOs are matched, they are sorted according to the matching comparison values. The item with the most 1s is the match, and the parameter value of the corresponding row of paraMapBDOs is returned.
[0186] Step 4: Implement the program for logical judgment of the current business scenario based on the multi-dimensional dynamic parameters after parameter configuration. In the coding process, dynamic parameters are used, and then the constructed dynamic parameter processing information class is used to implement parameter parsing to complete complex logical judgments.
[0187] Step 401, during the program development phase, a global dynamic parameter is constructed to complete parameter initialization. During the specific business scenario processing, the corresponding multi-dimensional dynamic parameter is selected according to the requirements, and the parameter value is obtained according to the parameter name of the dynamic parameter.
[0188] Furthermore, multi-dimensional dynamic parameters are initialized by calling methods including initCubeParaEffMap(), initCubeParaMap(), initParaMap(), initCubeParaFctrMap(), etc. to assign initial values to the dynamic parameters.
[0189] Furthermore, select the multi-dimensional dynamic parameters to be used according to the actual business scenario logic requirements, select different parameter acquisition methods according to the parameter name and parameter type, and complete parameter parsing and matching. If the multi-dimensional dynamic parameter value domain mapping extension is not required, call the getPara method of the dynamic parameter class, pass in the parameter name, multi-dimensional parameter entity class paraEffEleBDO, medical information class HTmdtrtBDO and return the default value for dynamic parameter parsing. If the multi-dimensional dynamic parameter value domain mapping extension is required, call the getParaMap method of the dynamic parameter class, pass in the parameter name, multi-dimensional parameter entity class paraEffEleBDO, medical information class HTmdtrtBDO for dynamic parameter parsing.
[0190] Step 402, during the program execution phase, parameter parsing is completed by loading system parameters, matching system parameters, matching parameter values, and determining parameter values.
[0191] Step 4021, loading system parameters. When the system starts, relevant parameter information is loaded into the memory to form a parameter model singleton.
[0192] Step 4022, matching and parsing system parameters. Obtain the multi-dimensional dynamic parameter name according to the parameter ID, call the getPara method according to the corresponding parameter, and obtain the specific value of the parameter through algorithm loop matching, thereby completing the logical judgment.
[0193] In one or more embodiments, corresponding to the above-mentioned software development method based on multi-dimensional dynamic parameters, a software development system based on multi-dimensional dynamic parameters is provided, including:
[0194] A business logic analysis and multi-dimensional dynamic parameter selection unit, which is used to select multi-dimensional dynamic parameters related to the logic judgment of the current business scenario from a pre-built multi-dimensional dynamic parameter set; wherein the construction of the multi-dimensional dynamic parameter set is specifically: pre-acquiring the logic judgment gateways existing in the current business scenario, and constructing a gateway combination based on the logic judgment gateways; wherein the gateway combination is composed of a number of logic judgment gateways, and the logic judgment gateways are associated with corresponding judgment conditions and judgment values; by combining the judgment conditions corresponding to each logic judgment gateway in each gateway combination obtained into a multi-dimensional dynamic parameter;
[0195] A parameter configuration unit, which is used to configure the selected multidimensional dynamic parameters based on the business needs of the current business scenario during the encoding process of the current business scenario logic judgment; wherein the parameter configuration specifically includes the configuration of the multidimensional dynamic parameter validation model, the multidimensional dynamic parameter influencing factor model, the multidimensional dynamic parameter value range model and the multidimensional dynamic parameter value range mapping extension model;
[0196] The parameter processing information class compilation unit is used to compile the parameter processing information class, including the multi-dimensional parameter entity class, the parameter input information class and the dynamic parameter class, to realize the multi-dimensional parameter definition, parsing and parameter value return;
[0197] The encoding unit is used to implement the program for logical judgment of the current business scenario based on the multi-dimensional dynamic parameters after parameter configuration. In the encoding process, dynamic parameters are used, and then the constructed dynamic parameter processing information class is used to implement parameter parsing to complete complex logical judgments.
[0198] It can be understood that the system described in this embodiment corresponds one-to-one to the method in the above embodiment, and its technical details have been described in detail in the first embodiment, so they will not be repeated here.
[0199] In more embodiments:
[0200] An electronic device is also provided, comprising a processor, wherein the processor is configured to implement the above-mentioned operation when executing a computer program stored in a memory.
[0201] A non-transitory readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned operation is realized.
Claims
1. A software development method based on multi-dimensional dynamic parameters, characterized in that: include: Selecting a multidimensional dynamic parameter related to the logic judgment of the current business scenario from a pre-built multidimensional dynamic parameter set; wherein the construction of the multidimensional dynamic parameter set is specifically as follows: pre-acquiring the logic judgment gateways existing in the current business scenario, and constructing a gateway combination based on the logic judgment gateways; wherein the gateway combination is composed of a plurality of logic judgment gateways, and the logic judgment gateways are associated with corresponding judgment conditions and judgment values; and combining the judgment conditions corresponding to each logic judgment gateway in each obtained gateway combination into a multidimensional dynamic parameter; In the encoding process of the current business scenario logic judgment, the selected multidimensional dynamic parameters are configured based on the business needs of the current business scenario; wherein the parameter configuration specifically includes the configuration of the multidimensional dynamic parameter effectiveness model, the multidimensional dynamic parameter influencing factor model, the multidimensional dynamic parameter value range model, and the multidimensional dynamic parameter value range mapping extension model; Compile parameter processing information classes, including multi-dimensional parameter entity classes, parameter input information classes, and dynamic parameter classes, to implement multi-dimensional parameter definition, parsing, and parameter value return; The program is implemented based on the multi-dimensional dynamic parameters after parameter configuration to perform logical judgment on the current business scenario. In the encoding process, dynamic parameters are used, and then the constructed dynamic parameter processing information class is used to implement parameter parsing to complete complex logical judgments.
2. A software development method based on multi-dimensional dynamic parameters as claimed in claim 1, characterized in that: When the business requirements of a business scenario change, you only need to modify the influencing factors of the multidimensional dynamic parameter influencing factor model, modify the corresponding influencing factors and parameter values in the multidimensional dynamic parameter value domain model, and modify the corresponding influencing factors and parameter values in the multidimensional dynamic parameter value domain mapping extension model.
3. A software development method based on multi-dimensional dynamic parameters as claimed in claim 1, characterized in that: In the coding implementation of the business logic, when utilizing the multidimensional dynamic parameters, it is necessary to define the global multidimensional dynamic parameters; and to classify the multidimensional dynamic parameters to be used and whether they need the multidimensional dynamic parameter value range mapping extension.
4. A software development method based on multi-dimensional dynamic parameters as claimed in claim 1, characterized in that: The preparation parameter processing information class specifically includes the construction of a multidimensional dynamic parameter entity class, a parameter input information class and a dynamic parameter class, wherein the multidimensional dynamic parameter entity class is used to define the entity of the multidimensional dynamic parameter and provide set and get methods externally; the parameter input information class is used to define the input entity required for the multidimensional parameter and provide set and get methods externally; the multidimensional dynamic parameter class is used to load the parameter model into the memory and obtain the parameter value through a cyclic matching through a parameter parsing algorithm.
5. A software development method based on multi-dimensional dynamic parameters as claimed in claim 1, characterized in that: The multidimensional dynamic parameter class includes at least four parameter model storage maps, namely, a multidimensional dynamic parameter value domain model, a multidimensional dynamic effectiveness model, a multidimensional dynamic parameter value domain mapping extension model and a multidimensional dynamic parameter influencing factor model, the corresponding initialization methods of the four parameter models and a method for obtaining parameter values.
6. A software development method based on multi-dimensional dynamic parameters as claimed in claim 1, characterized in that: The multidimensional dynamic parameter effectiveness model is used to control whether the multidimensional dynamic parameters are enabled; the multidimensional dynamic parameter influencing factor model is used to set data for the judgment conditions of the logical judgment gateway involved in the multidimensional dynamic parameters; the multidimensional dynamic parameter value domain model is used to represent the judgment value corresponding to the judgment condition of the logical judgment gateway involved in the multidimensional dynamic parameters, that is, the influencing factor; wherein the influencing factor is divided into primary influencing factors and secondary influencing factors based on its data dimension; the multidimensional dynamic parameter value domain mapping extension model is used to represent the secondary influencing factor.
7. A software development method based on multi-dimensional dynamic parameters as claimed in claim 1, characterized in that: The multidimensional dynamic parameter effectiveness model includes parameter ID, parameter name, policy number, parameter effectiveness start date, parameter effectiveness end date and parameter effective area information; the multidimensional dynamic parameter influencing factor model sets information for each parameter influencing factor of the multidimensional dynamic parameter, that is, sets information for the judgment condition of each logical judgment gateway, and the information that needs to be set includes parameter ID, influencing factor name, influencing factor order, priority of influencing factors at the same level and parameter effective area information; the multidimensional dynamic parameter value domain model includes parameter ID, parameter effective area, parameter value, all first-level influencing factors and extended influencing factor information; the multidimensional dynamic parameter value domain extension model includes data ID, upper and lower limits of second-level influencing factors, second-level influencing factor judgment conditions and extended parameter values.
8. A software development system based on multi-dimensional dynamic parameters, characterized in that: include: A business logic analysis and multi-dimensional dynamic parameter selection unit, which is used to select multi-dimensional dynamic parameters related to the logic judgment of the current business scenario from a pre-built multi-dimensional dynamic parameter set; wherein the construction of the multi-dimensional dynamic parameter set is specifically: pre-acquiring the logic judgment gateways existing in the current business scenario, and constructing a gateway combination based on the logic judgment gateways; wherein the gateway combination is composed of a number of logic judgment gateways, and the logic judgment gateways are associated with corresponding judgment conditions and judgment values; by combining the judgment conditions corresponding to each logic judgment gateway in each gateway combination obtained into a multi-dimensional dynamic parameter; A parameter configuration unit, which is used to configure the selected multidimensional dynamic parameters based on the business needs of the current business scenario during the encoding process of the current business scenario logic judgment; wherein the parameter configuration specifically includes the configuration of the multidimensional dynamic parameter validation model, the multidimensional dynamic parameter influencing factor model, the multidimensional dynamic parameter value range model and the multidimensional dynamic parameter value range mapping extension model; The parameter processing information class compilation unit is used to compile the parameter processing information class, including the multi-dimensional parameter entity class, the parameter input information class and the dynamic parameter class, to realize the multi-dimensional parameter definition, parsing and parameter value return; The encoding unit is used to implement the program for logical judgment of the current business scenario based on the multi-dimensional dynamic parameters after parameter configuration. In the encoding process, dynamic parameters are used, and then the constructed dynamic parameter processing information class is used to implement parameter parsing to complete complex logical judgments.
9. An electronic device comprising a memory, a processor and a computer program stored and running on the memory, characterized in that: When the processor executes the program, a software development method based on multi-dimensional dynamic parameters as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a software development method based on multi-dimensional dynamic parameters as described in any one of claims 1 to 7 is implemented.
