Business implementation method, device, equipment and storage medium

By receiving the client's login request and querying the parameter setting table, determining whether the business function is enabled and converting the parameter type, the problem of high transformation costs in the existing technology is solved, and efficient parameter management and code reuse is achieved.

CN114791798BActive Publication Date: 2025-03-21WINNING HEALTH TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110095405.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-25
Publication Date
2025-03-21
Estimated Expiration
2041-01-25

AI Technical Summary

Technical Problem

In the prior art, when the business system changes global parameters to non-global parameters, it requires a lot of transformation, resulting in huge workload and high development costs.

Method used

By receiving the client's login request, query the parameter setting table according to the identification of the business system, determine whether the business function is enabled, and query the non-global indication information of the first parameter. If the first parameter is a global parameter, an enable instruction is sent to the client to enable the target business function in the business system.

Benefits of technology

The conversion from global parameters to non-global parameters is realized, reducing code logic transformation, thereby saving development costs and maximizing code logic reuse.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114791798B_ABST
    Figure CN114791798B_ABST
Patent Text Reader

Abstract

The present application provides a business implementation method, device, equipment and storage medium, which are applied to the field of computer technology. The method includes: receiving a login request for a business system sent by a client, querying the first parameter in the parameter setting table of each business function supported by the business system according to the identification of the business system, and determining whether each business function is enabled. If the target business function among the business functions is enabled, querying the non-global indication information of the first parameter of the target in the parameter setting table to determine whether the first parameter is a non-global parameter. If the first parameter is a global parameter, sending an enable indication of the target business function to the client. The present application queries the non-global indication information of the first parameter of the target in the parameter setting table to determine whether the client enables the target business function. Compared with the prior art, the code logic transformation starts from the bottom layer, saves development costs, and maximizes code logic reuse.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a service implementation method, device, equipment and storage medium. Background Art

[0002] In general business systems, parameters are usually used for management and maintenance in order to control whether a certain function is enabled or not. According to the scope of use of parameters, they can be divided into global parameters and non-global parameters. Among them, global parameters act on all clients, controlling all clients to achieve the same effect through the same parameters, while non-global parameters can make some clients present one effect and other clients present another effect.

[0003] In the existing technology, if more complex scenarios are encountered, such as system switching, gradual promotion of functions from pilot departments, some doctors enabling a certain function, clients using different models of hardware, etc., it is necessary to change a certain implementation effect from being enabled by all clients to being enabled by some clients, that is, changing the global parameters to non-local parameters, which requires a lot of modifications to the business system.

[0004] However, in the above method, the global parameters are modified into non-global parameters in the business system, which requires huge workload and has high development cost. Summary of the invention

[0005] The purpose of this application is to provide a business implementation method, device, equipment and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problems of huge workload and high development cost in the transformation of business systems in the prior art.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, an embodiment of the present application provides a service implementation method, the method comprising:

[0008] Receive a business system login request sent by a client, the login request including: an identifier of the business system;

[0009] According to the identification of the business system, query the first parameter in the parameter setting table of each business function supported by the business system to determine whether each business function is enabled;

[0010] If the target business function among the business functions is in an enabled state, querying the non-global indication information of the first parameter of the target business function in the parameter setting table to determine whether the first parameter is a non-global parameter;

[0011] If the first parameter is a global parameter, an activation instruction of the target service function is sent to the client, so that the client activates the target service function in the service system.

[0012] Optionally, the first parameter includes: a business parameter and a parameter description;

[0013] The step of querying, according to the identification of the business system, a first parameter in a parameter setting table of each business function supported by the business system to determine whether each business function is enabled includes:

[0014] According to the identification of the business system, obtaining a parameter setting table of each business function supported by the business system;

[0015] Whether each service function is enabled is determined according to the service parameters and the parameter description in the parameter setting table, wherein the parameter description is used to indicate the value of the service parameter when the service function is enabled.

[0016] Optionally, the login request further includes: a login identifier; and the method further includes:

[0017] If the first parameter is a non-global parameter, query the enabling subtable of the target business function to determine whether the login identifier is in the enabling subtable, the enabling subtable including at least one pre-configured login identifier for enabling the target business function;

[0018] If the login identifier is in the activation sub-table, an activation instruction of the target business function is sent to the client, so that the client activates the target business function in the business system.

[0019] Optionally, the method further comprises:

[0020] If the login identifier is not in the enabling sub-table, a disabling indication of the target service function is sent to the client, so that the client does not enable the target service function in the service system.

[0021] Optionally, the querying of the activation subtable of the target service function to determine whether the login identifier is before the activation subtable further includes:

[0022] Determine the login type corresponding to the login identifier;

[0023] Determine a target enabling subtable of the target business function according to the login type;

[0024] The querying of the activation subtable of the target business function to determine whether the login identifier is in the activation subtable includes:

[0025] The target enabling subtable of the target business function is queried to determine whether the login identifier is in the target enabling subtable.

[0026] Optionally, the method further comprises:

[0027] A parameter setting table for each business function is created according to the first parameter of each business function and the non-global indication information of the first parameter.

[0028] Optionally, the method further comprises:

[0029] Obtain multiple login types corresponding to the business system;

[0030] An enabling sub-table for each login type is created according to at least one login identifier for enabling the target business function corresponding to each login type.

[0031] In a second aspect, another embodiment of the present application provides a service implementation device, the device comprising:

[0032] A receiving module, configured to receive a login request for a business system sent by a client, wherein the login request includes: an identifier of the business system;

[0033] a query module, configured to query, according to an identifier of the business system, a first parameter in a parameter setting table of each business function supported by the business system to determine whether each business function is enabled; if a target business function among the business functions is enabled, query the non-global indication information of the first parameter of the target business function in the parameter setting table to determine whether the first parameter is a non-global parameter;

[0034] A sending module is used to send an activation instruction of the target business function to the client if the first parameter is a global parameter, so that the client activates the target business function in the business system.

[0035] Optionally, the first parameter includes: a business parameter and a parameter description;

[0036] The query module is specifically used for:

[0037] According to the identification of the business system, obtaining a parameter setting table of each business function supported by the business system;

[0038] Whether each service function is enabled is determined according to the service parameters and the parameter description in the parameter setting table, wherein the parameter description is used to indicate the value of the service parameter when the service function is enabled.

[0039] Optionally, the login request further includes: a login identifier;

[0040] The query module is also used for:

[0041] If the first parameter is a non-global parameter, query the enabling subtable of the target business function to determine whether the login identifier is in the enabling subtable, the enabling subtable including at least one pre-configured login identifier for enabling the target business function;

[0042] The sending module is further used for:

[0043] If the login identifier is in the activation sub-table, an activation instruction of the target business function is sent to the client, so that the client activates the target business function in the business system.

[0044] Optionally, the sending module is further used to:

[0045] If the login identifier is not in the enabling sub-table, a disabling indication of the target service function is sent to the client, so that the client does not enable the target service function in the service system.

[0046] Optionally, the device further comprises:

[0047] A determination module, used to determine a login type corresponding to the login identifier, and determine a target activation subtable of the target business function according to the login type;

[0048] The query module is specifically used for:

[0049] The target enabling subtable of the target business function is queried to determine whether the login identifier is in the target enabling subtable.

[0050] Optionally, the device further comprises:

[0051] A creation module is used to create a parameter setting table for each business function according to the first parameter of each business function and the non-global indication information of the first parameter.

[0052] Optionally, the device further comprises:

[0053] An acquisition module, used to acquire multiple login types corresponding to the business system;

[0054] The creation module is further used to create an enabling sub-table for each login type according to at least one login identifier corresponding to each login type for enabling the target business function.

[0055] In the third aspect, another embodiment of the present application provides a business implementation device, including: a processor, a memory and a bus, the storage medium stores a computer program executable by the processor, when the business implementation device is running, the processor and the storage medium communicate through the bus, and the processor executes the computer program to execute any one of the methods described in the first aspect above.

[0056] In a fourth aspect, another embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of the above-mentioned first aspects is executed.

[0057] The present application provides a business implementation method, device, equipment and storage medium, which are applied to the field of computer technology. The method includes: receiving a login request for a business system sent by a client, querying the first parameter in the parameter setting table of each business function supported by the business system according to the identification of the business system, and determining whether each business function is enabled. If the target business function among the business functions is enabled, querying the non-global indication information of the first parameter of the target in the parameter setting table to determine whether the first parameter is a non-global parameter. If the first parameter is a global parameter, sending an enable indication of the target business function to the client. The present application queries the non-global indication information of the first parameter of the target in the parameter setting table to determine whether the client enables the target business function. Compared with the prior art, the code logic transformation starts from the bottom layer, saves development costs, and maximizes code logic reuse. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 A schematic diagram showing the control effect of existing global parameters provided by an embodiment of the present application;

[0060] Figure 2 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 1 ;

[0061] Figure 3 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 2 ;

[0062] Figure 4 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 3 ;

[0063] Figure 5 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 4 ;

[0064] Figure 6 A schematic diagram showing the control effect of parameters provided in an embodiment of the present application;

[0065] Figure 7 A schematic diagram showing the structure of a service implementation device provided in an embodiment of the present application is shown;

[0066] Figure 8 A schematic diagram of the structure of a service implementation device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0067] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0068] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0069] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0070] In general business systems, in order to control whether a certain function is enabled or not, "parameters" are usually used for management and maintenance. Based on the scope of use of parameters, they can be divided into "global parameters" and "non-global parameters". "Global parameters" act on all clients and control all clients to achieve the same effect through the same parameters. "Non-global parameters" can set some clients to have one effect and other clients to have another effect.

[0071] Taking the medical management system as an example, it provides electronic certification services (Certificate Authority, CA), which refers to the activities of authenticity and reliability verification provided by all parties involved in electronic signatures, including the following situations:

[0072] The first type, "CA function", is a global parameter. When the parameter value is 0, all clients do not enable the CA function. When the parameter value is 1, all clients enable the CA function. The parameter value is 1 for enabling, and the parameter value is 0 for disabling. The default value is 0.

[0073] Figure 1 A schematic diagram showing the control effect of the existing global parameters provided by the embodiment of the present application is shown as follows: Figure 1 As shown, it includes a database server 10, a department client 20, and a department client 30. Configuration A can be a "CA function". The "CA function" is a global parameter. If the parameter value controlling this function is 1, it means that both the department client 20 and the department client 30 have enabled the electronic signature CA function, so the department client 20 and the department client 30 present effect A. If the parameter value controlling this function is 0, it means that both the department client 20 and the department client 30 have not enabled the electronic signature CA function, so the department client 20 and the department client 30 present effect B.

[0074] It should be noted that effect A, for example, can automatically add electronic signatures to the department client 20 and the department client 30 in the resident physician station management software, and effect B, for example, can not automatically add electronic signatures to the department client 20 and the department client 30 in the resident physician station management software.

[0075] The second type, when facing business needs like "Which clinical departments enable the medical and technical billing function", it is necessary to set the parameter value to a group of values, such as "Which clinical departments enable the medical and technical billing function, the value is a department ID set, for example: 01, 02, 11, 19", this is a "non-global parameter", indicating that departments 01, 02, 11 and 19 can enable this function. It can be seen that this type of parameter requires the auxiliary program to perform additional code parsing processing to determine whether the logged-in department ID is in the parameter set, thereby realizing function control.

[0076] However, when encountering more complex scenarios, such as system switching, gradual promotion of functions from pilot departments, activation of functions for some physicians or roles, matching of clients of different models, etc., taking "whether to enable the clinical pathway function" as an example, it is necessary to change the previous "global parameter" to enable it in some departments. In this case, the parameter value needs to be changed from "0 or 1" to "department identification set, for example: 01, 02, 11, 19". In this usage scenario, such troubles are often faced, and the business system is forced to undergo a large number of compatible modifications, which is a huge workload.

[0077] Based on this, the present application provides a business implementation method, which determines whether the client enables the target business function by querying the non-global indication information of the first parameter of the target in the parameter setting table. Compared with the existing technology, the code logic transformation starts from the bottom layer, saves development costs, and maximizes code logic reuse.

[0078] The technical solution of the present application is described in detail below in conjunction with several specific embodiments.

[0079] Figure 2 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 1 The execution subject of this embodiment may be a service implementation device, for example, Figure 1 The database server shown.

[0080] like Figure 2 As shown, the method may include:

[0081] S101: Receive a business system login request sent by a client.

[0082] The client is installed with a business system. When the business system needs to be used, the user can log in to the business system through the client. Correspondingly, the business implementation device can receive a business system login request sent by the client, wherein the login request includes: an identifier of the business system.

[0083] Taking the business system as a medical management system as an example, a doctor can log in to the management system through the client, that is, the business implementation device receives a login request for the management system sent by the client.

[0084] S102 . According to the identification of the business system, query the first parameter in the parameter setting table of each business function supported by the business system to determine whether each business function is enabled.

[0085] The business functions supported by the business system may include, for example, "CA function", "allergy drug management function", "regular training student management function", "clinical department medical technology billing function", and "clinical pathway function".

[0086] Among them, the "CA function" supported by the business system can provide the electronic signature function in the business system, the "allergy drug management function" supported by the business system can provide the allergy drug management function in the business system, the "regular training student management function" supported by the business system can provide the regular training student management function in the business system, the "clinical department medical billing activation function" supported by the business system can provide the clinical department medical billing activation function in the business system, and the "clinical pathway activation function" supported by the business system can provide the clinical pathway activation function in the business system.

[0087] In this embodiment, the business implementation device stores parameter setting tables corresponding to business functions of multiple different types of systems. According to the identification of the business system in the login request, the first parameter in the parameter setting table corresponding to the business functions of the business system can be queried to determine whether each business function is enabled. Each business function can correspond to a parameter setting table, and the first parameter is used to indicate whether each business function is enabled, that is, whether the business function can be provided in the business system.

[0088] Taking the service function "CA function" as an example, the parameter setting table corresponding to the "CA function" includes a first parameter, and the first parameter is used to indicate "whether the CA function is enabled".

[0089] S103: If the target business function among the business functions is in an enabled state, query the parameter setting table for non-global indication information of the first parameter of the target business function to determine whether the first parameter is a non-global parameter.

[0090] If the first parameter of the target business function in each business function indicates that the target business function can be enabled, that is, the target business function is in an enabled state, then the non-global indication information of the first parameter of the target business function in the parameter setting table of the target business function can be queried to determine whether the first parameter is a non-global parameter, wherein the non-global indication information is used to indicate whether the first parameter is a non-global parameter, and the non-global parameter refers to that the business system on some clients can provide the target business function, and the global parameter refers to that the business system on all clients can provide the target business function.

[0091] That is, if the target business function is in an enabled state, the parameter setting table of the target business function may also include non-global indication information of the first parameter of the target business function, and then the parameter setting table may be queried to determine whether the first parameter is a non-global parameter.

[0092] S104: If the first parameter is a global parameter, sending an activation instruction of the target business function to the client, so that the client activates the target business function in the business system.

[0093] If the first parameter is a global parameter, indicating that the business systems on all clients can provide the target business function, an enable indication of the target business function can be sent to the client so that the client enables the target business function in the business system. The enable indication is used to instruct the client to enable the target business function in the business system.

[0094] The business implementation method of this embodiment receives a login request for the business system sent by the client, queries the first parameter in the parameter setting table of each business function supported by the business system according to the identification of the business system, determines whether each business function is enabled, and if the target business function among the business functions is enabled, queries the non-global indication information of the first parameter of the target in the parameter setting table to determine whether the first parameter is a non-global parameter, and if the first parameter is a global parameter, sends an enable indication of the target business function to the client. In this embodiment, the non-global indication information of the first parameter of the target in the parameter setting table is queried to determine whether the client enables the target business function. Based on the query parameter setting table, the code logic transformation starts from the bottom layer, saving development costs and realizing code logic reuse to the greatest extent.

[0095] Optionally, before step S101, the method may further include:

[0096] A parameter setting table for each business function is created according to the first parameter of each business function and the non-global indication information of the first parameter.

[0097] That is to say, the parameter setting table of each business function includes the first parameter of each business function and the non-global indication information of the first parameter. Taking the business functions including "CA function" as an example, refer to Table 1. Table 1 is a parameter setting table. The header of the parameter setting table includes: attribute name, attribute description and example. The attribute description is used to describe the attribute name, and the example is an example of the attribute name.

[0098] Among them, the attribute names include: parameter code, first parameter, non-global indication information, among which, the parameter code is the parameter code that controls the "CA function" in the underlying logic code; the first parameter includes business parameters and parameter descriptions, and the parameter description is used to indicate the value of the business parameter when the business function is enabled.

[0099] As shown in Table 1, the attribute description of the parameter code is: the number information or primary key information of the parameter, which is used to mark the uniqueness of each record. An example is: SYS_01, which means that the parameter controlling the "CA function" in the underlying logic code is SYS_01; the attribute description of the parameter description is: the value of the parameter in the business function enabling state, an example is: whether the electronic signature "CA function" is enabled (a value of 1 indicates enabling, a value of 0 indicates not enabling, and the default value is 0); the attribute description of the business parameter is: the parameter value currently used; the attribute description of the non-global indication information is: whether the parameter is a global parameter (a value of 0 indicates a global parameter, a value of 1 indicates a non-global parameter, and the default value is 0), an example is: 1.

[0100]

[0101] Table 1

[0102]

[0103] Table 2

[0104] Refer to Table 2, which is the parameter setting table of the existing global parameters. It can be seen from Table 2 that the parameter setting table of the existing global parameters includes parameter codes, parameter descriptions, and business parameters, but does not include non-global parameter indication information. Therefore, the current parameter management system is optimized through this solution to improve the accuracy and flexibility of parameter management. Without processing the foreground business code, a simple adaptation logic processing can be performed at the bottom of the framework, that is, the conversion of global parameters to non-global parameters can be quickly realized. This can greatly improve code reuse, improve parameter scalability, reduce the complexity and workload of internal transformation, and facilitate on-site implementation and flexible control and management by customers according to management needs.

[0105] Optionally, the first parameter includes: business parameters and parameter description. Figure 3 The embodiment describes a possible implementation of step S200. Figure 3 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 2 ,like Figure 3 As shown, step S102 may include:

[0106] S1021. According to the identification of the business system, obtain a parameter setting table for each business function supported by the business system.

[0107] S1022. Determine whether each business function is enabled according to the business parameters and parameter descriptions in the parameter setting table.

[0108] Among them, the business implementation device stores parameter tables corresponding to various business functions of multiple different types of systems. According to the identifier of the business system in the login request, the parameter setting table of each business function supported by the business system is obtained. Each business function can correspond to a parameter setting table. The parameter setting table includes a first parameter, and the first parameter includes a business parameter and a parameter description. The business parameter is used to indicate the parameter value corresponding to the business function, and the parameter description is used to indicate the value of the business parameter when the business function is enabled. Referring to Table 1, taking the business function as "CA function" as an example, if the business parameter is 1, the parameter description is used to indicate the value of the business parameter when the "CA function" is enabled. For example, a value of 1 indicates enabled, and a value of 0 indicates not enabled. Therefore, it can be determined that the "CA function" can be enabled.

[0109] The service implementation method of this embodiment obtains the parameter setting table of each service function supported by the service system according to the identification of the service system, and determines whether each service function is enabled according to the service parameters and parameter descriptions in the parameter setting table. In this embodiment, whether a service function is enabled can be determined by the service parameters and parameter descriptions in the parameter setting table.

[0110] Optionally, if the first parameter is a non-global parameter, the enabled subtable of the target business function can also be queried. Figure 4 The examples are described below. Figure 4 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 3 ,like Figure 4 As shown, the method may also include:

[0111] S201: If the first parameter is a non-global parameter, query the activation subtable of the target business function to determine whether the login identifier is in the activation subtable.

[0112] The login request also includes a login identifier. The login identifier can be, for example, any one of a personnel identifier, a department identifier, and a nursing station identifier. That is, when logging into the business system, the user needs to provide a login account, which can be a personnel account, namely a personnel identifier, a department account, namely a department identifier, and a nursing station identifier, namely a nursing station account. In this way, the login identifier can be carried in the login request.

[0113] If the target business function is in an enabled state, the non-global indication information of the first parameter of the target business function in the parameter setting table can be queried to determine whether the first parameter is a non-global parameter. If the first parameter is a non-global parameter, the enabling subtable of the target business function can be queried to determine whether the login identifier is in the enabling subtable, wherein the enabling subtable includes at least one pre-configured login identifier for enabling the target business function.

[0114] That is, if the first parameter is a non-global parameter, it means that the business systems on some clients can provide the target business function, and then the enabling sub-table of the target business function can be queried.

[0115] If yes, execute step S202, if no, execute step S203.

[0116] S202: Send an activation instruction of the target business function to the client, so that the client activates the target business function in the business system.

[0117] If the login identifier is in the enabling subtable, it means that the business system on the client can provide the target business function, and an enabling instruction for the target business function can be sent to the client so that the client can enable the target business function in the business system. If the login identifier is not in the enabling subtable, it means that the business system on the client cannot provide the target business function, and no indication information may be sent to the client so that the client does not enable the target business function in the business system.

[0118] S203: Send a disabling indication of the target service function to the client, so that the client does not enable the target service function in the service system.

[0119] If the login ID is not in the enabled subtable, it means that the business system on the client cannot provide the target business function. Then, an indication of not enabling the target business function can be given to the client so that the client does not enable the target business function in the business system. The indication of not enabling is used to instruct the client not to enable the target business function in the business system.

[0120] It should be noted that when processing business logic, the code logic of calling parameters does not change and remains consistent with the previous processing logic. There is no need to split and judge some parameters in a collection manner like in the prior art, but a simple judgment process can be used.

[0121] The service implementation method of this embodiment, if the first parameter is a non-global parameter, queries the enabling subtable of the target service function to determine whether the login identifier is in the enabling subtable, if the login identifier is in the enabling subtable, sends an enabling instruction of the target service function to the client, so that the client enables the target service function in the service system, if the login identifier is not in the enabling subtable, sends a disabling instruction of the target service function to the client, so that the client does not enable the target service function in the service system. In this embodiment, firstly, it is determined whether the first parameter is a non-global variable, and then information is obtained from the enabling subtable according to the login indication, so that it can be determined whether the target service function is enabled or not.

[0122] Exemplarily, the number of enabled subtables for the target business function includes but is not limited to one, and corresponding enabled subtables can be created for different login types. Therefore, it is also possible to obtain the enabled subtable corresponding to the login type based on the login type corresponding to the login identifier, and query whether the login identifier is in the enabled subtable corresponding to the login type.

[0123] Combine the following Figure 5 The embodiment describes a possible implementation of step S201. Figure 5 The following is a schematic diagram showing the process of implementing the service provided by the embodiment of the present application. Figure 4 ,like Figure 5 As shown, before step S201, the method may further include:

[0124] S301: Determine the login type corresponding to the login identifier.

[0125] S302: Determine the target enabled subtable of the target business function according to the login type.

[0126] Among them, the number of enabled sub-tables for the target business function can be multiple, and different login types correspond to different enabled sub-tables. Therefore, when a login request is received, the login type of the login identifier carried in the login request can be determined first. The login type can be, for example, any one of the personnel login type, department login type, and nursing station login type, and then the target enabled sub-table for the target business function is determined according to the login type.

[0127] Accordingly, step S201 may include:

[0128] S2011. Query the target enabling subtable of the target business function to determine whether the login identifier is in the target enabling subtable.

[0129] After determining the target enabling subtable for the target business function, you can also query the target business subtable to determine whether the login ID is in the target enabling subtable. In other words, different login types correspond to different enabling subtables. The target enabling subtable is determined based on the login ID, and queries are performed in the target enabling subtable, which effectively improves the query speed.

[0130] Optionally, before step 301, the method may further include:

[0131] Get multiple login types corresponding to the business system;

[0132] According to at least one login identifier for enabling the target business function under each login type, an enabling subtable for each login type is created.

[0133] Among them, the multiple login types corresponding to the business system refer to the login types supported by the business system. The multiple login types may include, for example, personnel login type, department login type, and nursing station login type.

[0134] Acquire multiple login types corresponding to the business system, and then create an enabling subtable for each login type based on at least one login identifier for enabling the target business function corresponding to each login type. That is to say, each login type corresponds to an enabling subtable, and the enabling subtable for each login type is created based on at least one login identifier for enabling the target business function corresponding to the login type. Then, the target enabling subtable can be determined from the enabling subtables for each login type based on the login identifier corresponding to the login type.

[0135] Refer to Table 3, which is an enabling sub-table. Taking the target business function including "CA function" and the login type as "department login" as an example, the header of the department enabling sub-table includes: attribute name, attribute description, and example. The attribute description is used to indicate the login identifier for enabling the "CA function", and the example is an example of the attribute name.

[0136] Among them, the attribute name includes: department code, and the attribute description of the department code is: the department identification of the first parameter is enabled, and the example is: Dept_01, which means that the department code controlling the "CA function" in the underlying logic code is Dept_01.

[0137]

[0138] Table 3

[0139] Table 4 is another type of enabled sub-table. Taking the target business function including "CA function" and the login type as "personnel login" as an example, the header of the department enabled sub-table includes: attribute name, attribute description, example. The attribute description is used to indicate the login identifier for enabling the "CA function", and the example is an example of the attribute name.

[0140] Among them, the attribute name includes: staff code, the staff code is used to indicate the staff identification, and the attribute description is: the staff identification of the first parameter is enabled, and the example is: Staff_99, which means that the staff code controlling the "CA function" in the underlying logic code is Staff_99.

[0141]

[0142] Table 4

[0143] Of course, Table 3 and Table 4 are just examples. Compared with the existing technology, by creating an enabled sub-table for each login type, N detailed value information sub-tables, i.e., enabled sub-tables, can be expanded on the basis of the parameter setting table that previously only had one global parameter. The sub-tables can be flexibly set according to departments, nursing stations, titles, roles, personnel, etc. The solution has high scalability and currently provides reserved expansion according to personnel, departments, nursing stations, roles, etc. If the business needs to expand other information in the later stage, it can also be quickly expanded.

[0144] The service implementation method of this embodiment determines the login type corresponding to the login identifier, determines the target enablement subtable of the target service function according to the login type, queries the target enablement subtable of the target service function, and determines whether the login identifier is in the target enablement subtable. In this embodiment, querying in the target enablement subtable effectively improves the query speed.

[0145] In a practical application, the technical solution of the present application can be used to promote parameterized functions such as "allergy drug management function" and "regular training student management function" from department pilot projects and partial personnel to the entire hospital. R&D personnel only need to adjust the underlying code for the first time, and no additional development adjustments are required afterwards, saving a lot of program modification costs. The flexible configuration and parameter control of related functions during the hospital promotion period also avoids frequent program updates, allowing the functions to be quickly promoted and recognized by customers.

[0146] The technical solution of this application is described below in conjunction with a specific implementation. Figure 6 A schematic diagram showing the control effect of the parameters provided in the embodiment of the present application is shown as follows: Figure 6 As shown, it includes: a database server 10, a department client 20, and a department client 30. Configuration A can be "whether to enable the electronic signature CA function". If the "CA function" is not enabled, the department client 20 and the department client 30 present effect B. If the "CA function" is enabled, it is determined whether the parameter controlling the "CA function" is a non-global parameter. If it is not a non-global parameter or a global parameter, the department client 20 and the department client 30 both present effect A. If it is a non-global parameter, the enabling sub-table can be queried to determine whether the login identifiers corresponding to the department client 20 and the department client 30 are in the enabling sub-table. If the login identifier corresponding to the department client 20 is in the enabling sub-table, the department client 30 presents effect A. If the login identifier corresponding to the department client 30 is not in the enabling sub-table, the department client 30 presents effect B.

[0147] Figure 7 The schematic diagram of the structure of the service implementation device provided in the embodiment of the present application is shown, and the service implementation device can be integrated in the service implementation device. Figure 7 As shown, the service implementation device 40 may include:

[0148] The receiving module 401 is used to receive a login request of a business system sent by a client, wherein the login request includes: an identifier of the business system;

[0149] A query module 402 is used to query the first parameter in the parameter setting table of each business function supported by the business system according to the identification of the business system to determine whether each business function is enabled; if the target business function among the business functions is enabled, query the non-global indication information of the first parameter of the target business function in the parameter setting table to determine whether the first parameter is a non-global parameter;

[0150] The sending module 403 is configured to send an activation instruction of the target service function to the client if the first parameter is a global parameter, so that the client activates the target service function in the service system.

[0151] Optionally, the first parameter includes: a business parameter and a parameter description;

[0152] The query module 402 is specifically used for:

[0153] According to the identification of the business system, obtaining a parameter setting table of each business function supported by the business system;

[0154] Whether each service function is enabled is determined according to the service parameters and the parameter description in the parameter setting table, wherein the parameter description is used to indicate the value of the service parameter when the service function is enabled.

[0155] Optionally, the login request further includes: a login identifier;

[0156] The query module 402 is further used for:

[0157] If the first parameter is a non-global parameter, query the enabling subtable of the target business function to determine whether the login identifier is in the enabling subtable, the enabling subtable including at least one pre-configured login identifier for enabling the target business function;

[0158] The sending module 403 is further used for:

[0159] If the login identifier is in the activation sub-table, an activation instruction of the target business function is sent to the client, so that the client activates the target business function in the business system.

[0160] Optionally, the sending module 403 is further configured to:

[0161] If the login identifier is not in the enabling sub-table, a disabling indication of the target service function is sent to the client, so that the client does not enable the target service function in the service system.

[0162] Optionally, the device further comprises:

[0163] A determination module 404 is used to determine a login type corresponding to the login identifier, and determine a target enabled subtable of the target business function according to the login type;

[0164] The query module 402 is specifically used for:

[0165] The target enabling subtable of the target business function is queried to determine whether the login identifier is in the target enabling subtable.

[0166] Optionally, the device further comprises:

[0167] The creation module 405 is used to create a parameter setting table for each business function according to the first parameter of each business function and the non-global indication information of the first parameter.

[0168] Optionally, the device further comprises:

[0169] An acquisition module 406 is used to acquire multiple login types corresponding to the business system;

[0170] The creation module 405 is further configured to create an enabling sub-table for each login type according to at least one login identifier for enabling the target business function corresponding to each login type.

[0171] The service implementation device, implementation process and implementation principle of this embodiment can refer to the service implementation method in the above method embodiment, and will not be described in detail here.

[0172] Figure 8 The schematic diagram of the structure of the service implementation device provided in the embodiment of the present application is shown. The service implementation device can be Figure 1 The database server 10 shown. Figure 8 As shown, the business implementation device 50 includes: a processor 501, a memory 502 and a bus 503. The memory 502 stores a computer program executable by the processor 501. When the business implementation device 50 is running, the processor 501 communicates with the memory 502 through the bus 503, and the processor 501 executes the computer program to execute the above method embodiment.

[0173] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above method embodiment is executed.

[0174] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0175] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.

[0176] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A service implementation method, characterized in that: include: Receive a business system login request sent by a client, the login request including: an identifier of the business system; According to the identification of the business system, query the first parameter in the parameter setting table of each business function supported by the business system to determine whether each business function is enabled; If the target business function among the business functions is in an enabled state, querying the non-global indication information of the first parameter of the target business function in the parameter setting table to determine whether the first parameter is a non-global parameter; If the first parameter is a global parameter, sending an activation instruction of the target service function to the client, so that the client activates the target service function in the service system; The login request also includes: a login identifier; the method also includes: If the first parameter is a non-global parameter, query the enabling subtable of the target business function to determine whether the login identifier is in the enabling subtable, the enabling subtable including at least one pre-configured login identifier for enabling the target business function; If the login identifier is in the activation sub-table, sending an activation instruction of the target service function to the client, so that the client activates the target service function in the service system; If the login identifier is not in the enabling sub-table, a disabling indication of the target service function is sent to the client, so that the client does not enable the target service function in the service system.

2. The method according to claim 1, characterized in that The first parameters include: business parameters and parameter descriptions; The step of querying, according to the identification of the business system, a first parameter in a parameter setting table of each business function supported by the business system to determine whether each business function is enabled includes: According to the identification of the business system, obtaining a parameter setting table of each business function supported by the business system; Whether each service function is enabled is determined according to the service parameters and the parameter description in the parameter setting table, wherein the parameter description is used to indicate the value of the service parameter when the service function is enabled.

3. The method according to claim 1, characterized in that The querying of the activation subtable of the target business function to determine whether the login identifier is before the activation subtable further includes: Determine the login type corresponding to the login identifier; Determine a target enabling subtable of the target business function according to the login type; The querying of the activation subtable of the target business function to determine whether the login identifier is in the activation subtable includes: The target enabling subtable of the target business function is queried to determine whether the login identifier is in the target enabling subtable.

4. The method according to claim 2, characterized in that: The method further comprises: A parameter setting table for each business function is created according to the first parameter of each business function and the non-global indication information of the first parameter.

5. The method according to claim 3, characterized in that: The method further comprises: Obtain multiple login types corresponding to the business system; An enabling sub-table for each login type is created according to at least one login identifier for enabling the target business function corresponding to each login type.

6. A service implementation device, characterized in that: include: A receiving module, configured to receive a login request for a business system sent by a client, wherein the login request includes: an identifier of the business system; a query module, configured to query, according to an identifier of the business system, a first parameter in a parameter setting table of each business function supported by the business system to determine whether each business function is enabled; if a target business function among the business functions is enabled, query the non-global indication information of the first parameter of the target business function in the parameter setting table to determine whether the first parameter is a non-global parameter; a sending module, configured to send an activation instruction of the target service function to the client if the first parameter is a global parameter, so that the client activates the target service function in the service system; The login request also includes: a login identifier; the query module is also used to: If the first parameter is a non-global parameter, query the enabling subtable of the target business function to determine whether the login identifier is in the enabling subtable, the enabling subtable including at least one pre-configured login identifier for enabling the target business function; The sending module is further used for: If the login identifier is in the activation sub-table, sending an activation instruction of the target service function to the client, so that the client activates the target service function in the service system; The sending module is further used for: If the login identifier is not in the enabling sub-table, a disabling indication of the target service function is sent to the client, so that the client does not enable the target service function in the service system.

7. A service implementation device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores a computer program executable by the processor, and when the service implementation device is running, the processor communicates with the memory via the bus, and the processor executes the computer program to execute the method described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Service data switching method, device, computer equipment and storage medium

    CN110334123A

  • Link tracking method and apparatus

    WO2020233015A1