Risk control management method, device, electronic device and storage medium
By injecting standard annotations to generate risk control classes and configure them, the complex configuration of risk control modules in the investment trading system is solved, and a simplified risk control management process is realized.
Patent Information
- Application Number
- CN202110062821.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-18
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-01-18
AI Technical Summary
In the prior art, the adjustment and configuration of the risk control module in the investment trading system need to be hard-coded, and professionals need to write the underlying code, and the operation process is complicated.
By obtaining the generation request of the risk control class, obtaining the standard annotations corresponding to the generation request, injecting the standard annotations into the original code, generating the risk control class, and configuring the risk control class based on the risk control configuration data.
The configuration and management of risk control modules can be carried out without professional programming experience, and the operation process is simplified and configuration complexity is reduced.
Smart Images

Figure CN114819430B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of financial management, and in particular, to a risk control management method, device, electronic device, and storage medium. Background Art
[0002] The securities market is a high-risk investment market, and its risks are mainly reflected in the management of invested funds and trading operations. In the process of securities investment trading, various risks need to be considered, such as market condition changes, price deviations, the credit situation of invested securities, social public opinion, bond valuations given by authoritative institutions, and the control of investment quotas required by the company, and the invested securities should not be concentrated in a certain category or a certain few securities, etc. Risk control (referring to risk control in the process of securities industry investment, risk warning, risk prohibition, etc. in the process of financial industry investment) involves all aspects and is also the most difficult part to handle in the investment process.
[0003] In related technologies, the adjustment and configuration of the risk control module in the investment trading system adopt a hard-coded method, which requires professional personnel to write low-level code to modify the source program, and the operation process is complex. Summary of the Invention
[0004] This application provides a risk control management method, device, electronic device, and storage medium to solve the problem in the prior art that the adjustment and configuration of the risk control module in the investment trading system adopt a hard-coded method, which requires professional personnel to write low-level code to modify the source program, and the operation process is complex.
[0005] In a first aspect, an embodiment of this application provides a risk control management method, including:
[0006] Obtain a generation request for a risk control class;
[0007] Obtain a standard annotation corresponding to the generation request;
[0008] Inject the standard annotation into the original code to generate a risk control class;
[0009] Obtain risk control configuration data corresponding to the risk control class;
[0010] Configure the risk control class according to the risk control configuration data.
[0011] Optionally, the configuring the risk control class according to the risk control configuration data includes:
[0012] Obtain the entry condition, statistical dimension, execution expression, execution result description, associated business type, and combination information of the risk control system to configure the risk control rules of the risk control class, where the risk control system is used for risk control;
[0013] Obtain risk control interface information, and configure the risk control condition expression, risk control result calculation expression, and risk control result description of the risk control class according to the risk control interface information;
[0014] Obtain the risk control business scenario, and configure the business scenario of the risk control class according to the risk control business scenario.
[0015] Optionally, the configuration of the risk control class according to the risk control configuration data further includes:
[0016] Obtain a risk control point generation request;
[0017] In the risk control configuration data, obtain the configuration information of the risk control point corresponding to the generation request;
[0018] Configure the risk control point according to the configuration information of the risk control point, so as to perform risk control management through the risk control point.
[0019] Optionally, the obtaining of the configuration information of the risk control point corresponding to the generation request in the risk control configuration data includes:
[0020] Obtain the business types and program interface information supported by the risk control class in the risk control configuration data;
[0021] Determine the business scenarios and risk control rules supported by the risk control class according to the business types;
[0022] Obtain the combination information that the user has the right to access;
[0023] Use the program interface information, the risk control rules, the business scenarios, and the combination information as the configuration information of the risk control point.
[0024] Optionally, the configuring of the risk control point according to the configuration information of the risk control point includes:
[0025] Associate the business scenario and the combination information to obtain an associated combination set;
[0026] Obtain the target associated combination selected by the user in the associated combination set;
[0027] Configure the risk control point corresponding to the risk control class based on the target associated combination, the program interface information, and the risk control rules.
[0028] Optionally, after configuring the risk control point according to the configuration information of the risk control point, it further includes:
[0029] Store the configuration information in the configuration data storage table of the risk control point.
[0030] Optionally, after configuring the risk control point according to the configuration information of the risk control point, the following steps are further included:
[0031] Obtain the basic information of the risk control point;
[0032] Add the basic information of the risk control point to a preset risk control point list.
[0033] Optionally, after configuring the risk control point according to the configuration information of the risk control point, the following steps are further included:
[0034] Obtain a management instruction for the risk control point from a risk control management interface, where the management instruction includes query, modification, and deletion;
[0035] Execute the management instruction in the configuration data storage table corresponding to the risk control point, so that the risk control point presents a management interface corresponding to the management instruction in the risk control management interface.
[0036] Optionally, the risk control configuration data includes: risk control rule configuration data, risk control scenario configuration data, and risk control index data.
[0037] In a second aspect, an embodiment of the present application provides a risk control management device, including:
[0038] A first acquisition module, configured to acquire a generation request for a risk control class;
[0039] A second acquisition module, configured to acquire a standard annotation corresponding to the generation request;
[0040] A generation module, configured to inject the standard annotation into the original code to generate a risk control class;
[0041] A third acquisition module, configured to acquire risk control configuration data corresponding to the risk control class;
[0042] A configuration module, configured to configure the risk control class according to the risk control configuration data.
[0043] Optionally, the configuration module includes:
[0044] A first acquisition sub-module, configured to acquire the entry condition, statistical dimension, execution expression, execution result description, associated business type, and combination information of a risk control system to configure the risk control rules of the risk control class, where the risk control system is used for risk control;
[0045] A second acquisition sub-module, configured to acquire risk control interface information, and configure the risk control condition expression, risk control result calculation expression, and risk control result description of the risk control class according to the risk control interface information;
[0046] The third acquisition sub-module is used to acquire the risk control business scenario and configure the business scenario of the risk control category according to the risk control business scenario.
[0047] Optionally, the configuration module includes:
[0048] The fourth acquisition sub-module is used to acquire a risk control point generation request;
[0049] The fifth acquisition sub-module is used to acquire the configuration information of the risk control point corresponding to the generation request in the risk control configuration data;
[0050] The configuration sub-module is used to configure the risk control point according to the configuration information of the risk control point, so as to perform risk control management through the risk control point.
[0051] Optionally, the sub-module of the configuration module includes:
[0052] The sixth acquisition sub-module is used to acquire the business types and program interface information supported by the risk control category in the risk control configuration data;
[0053] The first determination module is used to determine the business scenarios and risk control rules supported by the risk control category according to the business type;
[0054] The seventh acquisition sub-module is used to acquire the combined information that the user has the right to access;
[0055] The second determination module is used to use the program interface information, the risk control rules, the business scenario, and the combined information as the configuration information of the risk control point.
[0056] Optionally, the configuration module is specifically used for:
[0057] Associate the business scenario and the combined information to obtain an associated combined set;
[0058] Acquire the target associated combination selected by the user in the associated combined set;
[0059] Configure the target associated combination, the program interface information, and the risk control rules to obtain the risk control point corresponding to the risk control category.
[0060] Optionally, after configuring the risk control point according to the configuration information of the risk control point, it further includes:
[0061] Store the configuration information into the configuration data storage table of the risk control point.
[0062] Optionally, the configuration module is further used for:
[0063] Acquire the basic information of the risk control point of the risk control point;
[0064] Add the basic risk control point information to a preset risk control point list.
[0065] Optionally, the configuration module is further configured to:
[0066] Obtain a management instruction for the risk control point from a risk control management interface, where the management instruction includes query, modification, and deletion;
[0067] Execute the management instruction in a configuration data storage table corresponding to the risk control point, so that the risk control point presents a management interface corresponding to the management instruction in the risk control management interface.
[0068] Optionally, the risk control configuration data includes: risk control rule configuration data, risk control scenario configuration data, and risk control index data.
[0069] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus;
[0070] The memory is used to store a computer program;
[0071] The processor is configured to execute the program stored in the memory to implement the risk control management method described in the first aspect.
[0072] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the risk control management method described in the first aspect is implemented.
[0073] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: In the method provided by the embodiment of the present application, by obtaining a generation request for a risk control class, obtaining a standard annotation corresponding to the generation request, injecting the standard annotation into the original code to generate a risk control class, obtaining risk control configuration data corresponding to the risk control class, and configuring the risk control class according to the risk control configuration data. In this way, the method of injecting standard annotations is used to replace the hard-coding method in the related art. It is not necessary for professionals to modify the source program. After obtaining the generation request for the risk control class, only the corresponding standard annotation needs to be obtained and injected into the original code. The operation process is convenient and the configuration can be completed without programming experience. Description of the Drawings
[0074] The drawings here are incorporated into the description and form a part of this description, showing embodiments consistent with the present invention and used together with the description to explain the principles of the present invention.
[0075] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0076] Figure 1 It is a flowchart of the risk control management method provided by an embodiment of the present application;
[0077] Figure 2a 、 Figure 2b 、 Figure 2c 、 Figure 2d and Figure 2e It is a display diagram of the configuration page in the risk control management method provided by an embodiment of the present application;
[0078] Figure 3 It is a structural diagram of the configuration data storage table in the risk control management method provided by an embodiment of the present application;
[0079] Figure 4 It is a structural diagram of the risk control management device provided by an embodiment of the present application;
[0080] Figure 5 It is a structural diagram of the electronic device provided by an embodiment of the present application. Detailed implementation manners
[0081] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.
[0082] In the following description, reference is made to "a specific embodiment", which describes a subset of all possible embodiments. However, it can be understood that "a specific embodiment" describes the same subset or different subsets of all possible embodiments and can be combined with each other without conflict.
[0083] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0084] Before further elaborating on the embodiments of the present invention, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following explanations.
[0085] Risk control: Here it refers to the risk control in the investment process of the securities industry, such as risk warning and risk prohibition in the investment process of the financial industry.
[0086] Portfolio: By classifying securities investment transactions into different portfolios, data isolation and statistical analysis between portfolios can be achieved. A portfolio is like a business analysis unit that can be decomposed layer by layer, and the analysis of securities investment transactions can be realized by penetrating the layer-by-layer decomposition of the portfolio.
[0087] The risk control management method of the present application can be applied to an investment trading system. By establishing a risk control management interface in the investment trading system through the risk control management method, financial institutions or personnel can achieve risk control requirements through the risk control management interface.
[0088] In an embodiment of the present application, a risk control management method is provided. This method can be applied to any form of electronic device, such as terminals and servers. As Figure 1 shown, the risk control management method includes:
[0089] Step 101, obtain a generation request for a risk control class.
[0090] In some embodiments, a risk control class generation module can be set on the risk control management page for users to select. According to the risk control class generation module selected by the user, a production request for this generation class is obtained. Displaying the risk control class in the form of a module on the risk control management page can enable users to flexibly customize the risk control class, and intuitively understand the customizable risk control classes, which is intuitive and easy to understand; in addition, personnel without programming experience can also configure the risk control class according to the generation module displayed on the risk control page.
[0091] Step 102, obtain the standard annotation corresponding to the generation request.
[0092] In some embodiments, the standard annotations of different control classes are stored in the database of the investment trading system. Specifically, through the Java reflection mechanism, a unified risk control API interface specification can be defined to provide a standard annotation specification, so that the standard annotation formats of different risk control classes are consistent. After determining the generation request for the risk control class, the standard annotation corresponding to the generation request in the investment trading system can be called.
[0093] Step 103, inject the standard annotation into the original code to generate a risk control class.
[0094] In some embodiments, the standard annotation can be injected into the original code program in a hot loading manner, but not limited to this, and the loading of the risk control class can be achieved without starting and stopping the program.
[0095] Among them, the original code is the original code of the investment trading system.
[0096] Specifically, the risk control class CreditRateClass inherits from the risk control base class RiskBase and registers the parameter API and the condition API through the standard annotations @ParameterApi and @ConditionApi respectively. Among them, the parameter API can be selected from the risk control configuration parameter list, and the condition API can be selected from the risk control condition list. Both the risk control configuration parameter list and the risk control condition list are tables for storing configuration data in the database of the investment trading system.
[0097] Step 104: Obtain the risk control configuration data corresponding to the risk control class.
[0098] In some embodiments, the configuration data of each risk control class is stored in the investment trading system. After generating a new risk control class, the risk control configuration data corresponding to the risk control class is extracted from the database to complete the configuration of the risk control class.
[0099] Specifically, the risk control configuration data includes: risk control rule configuration data, risk control scenario configuration data, and risk control index data. Among them, the risk control rule configuration data includes: the entry conditions of the risk control system, statistical dimensions, execution expressions, execution result descriptions, associated business types, and combination information; the risk control scenario configuration data includes risk control business scenarios; and the risk control index data includes risk control interface information.
[0100] Step 105: Configure the risk control class according to the risk control configuration data.
[0101] In some embodiments, after obtaining the risk control configuration data in the above embodiments, the risk control rules of the risk control class are configured through the entry conditions, statistical dimensions, execution expressions, execution result descriptions, associated business types, and combination information of the risk control system; the risk control condition expressions, risk control result calculation expressions, and risk control result descriptions of the risk control class are configured through the risk control interface information; and the business scenarios of the risk control class are configured through the risk control business scenarios, completing the configuration of the risk control data of the risk control class.
[0102] In some embodiments, flexible configuration can be performed through the risk control configuration interface of the risk control system. Refer to Figure 2a , the registered risk control APIs "bond type" and "issuance method" can be obtained in the configuration interface, and the API values can be enumerated. In the expression editing area, the risk control configuration information can be edited like editing text. At the same time, functions such as mathematical operators, logical operators, and formatting are provided to meet different expression requirements. Figure 2b and Figure 2c is the configuration page for the risk control condition expression, risk control result calculation expression, and risk control result description of the risk control class, Figure 2d and Figure 2e is the configuration page for the business scenario of the risk control class by the risk control business scenario.
[0103] Specifically, after the risk control data configuration in the risk control category is completed, it is necessary to configure the instances (i.e., risk control points) in the risk control category, specifically including:
[0104] Obtain a risk control point generation request, and in the risk control configuration data, obtain the configuration information of the risk control point corresponding to the generation request; according to the configuration information of the risk control point, configure the risk control point to perform risk control management through the risk control point.
[0105] Among them, the risk control point can also be displayed in the risk control management page in the form of a module. After obtaining the risk control point selected by the user on the risk control management page, the generation request of this risk control point is obtained. For different risk control points, the risk control configuration data in the corresponding risk control category is also different. Therefore, it is necessary to obtain the configuration information corresponding to this risk control point in the risk control configuration data of the risk control category, and then configure the risk control point according to this configuration information. After the risk control point is generated, risk control management can be performed through the risk control point.
[0106] Furthermore, in the risk control configuration data, obtaining the configuration information of the risk control point corresponding to the generation request includes:
[0107] Obtain the business types and program interface information supported by the risk control category in the risk control configuration data; according to the business types, determine the business scenarios and risk control rules supported by the risk control category; obtain the combination information that the user has the right to access; use the program interface information, risk control rules, business scenarios, and combination information as the configuration information of the risk control point.
[0108] In this embodiment, for different risk control categories, the supported business types are also different. Therefore, when obtaining the configuration information of the risk control point, first obtain the business type of the risk control category, and then determine the corresponding business scenarios and risk control rules according to the business type.
[0109] Among them, the configuration information of the risk control point can be obtained from the configuration table of the risk control category. The configuration table of the risk control category is a configuration table stored in the investment trading system database and storing the risk control configuration information of the risk control category.
[0110] Furthermore, according to the configuration information of the risk control point, configuring the risk control point includes:
[0111] Associate the business scenario and the combination information to obtain an associated combination set; obtain the target associated combination selected by the user in the associated combination set; configure the target associated combination, program interface information, and risk control rules to obtain the risk control point corresponding to the risk control category.
[0112] Furthermore, after configuring the risk control point according to the configuration information of the risk control point, obtain the basic information of the risk control point of the risk control point; add the basic information of the risk control point to the preset risk control point list.
[0113] Among them, the basic information of the risk control point includes the name, number, etc. of the risk control point.
[0114] Furthermore, for the convenience of managing the risk control points, after configuring the risk control points according to the configuration information of the risk control points, the configuration information is stored in the configuration data storage table of the risk control points, so as to quickly query the configuration information corresponding to the management instruction through the configuration data storage table, and directly execute the management instruction from the configuration data storage table, making the management process more convenient and fast.
[0115] Generally, multiple risk control points are usually configured under one risk control category. For the convenience of managing the configuration data of each risk control category and risk control point, in this application, the configuration information of different categories of different risk control points is stored separately. For example, different configuration data storage tables are set for different categories of configuration information in the database, and the risk control configuration data of the risk control points and risk control categories are stored through the configuration data storage table. Specifically, the configuration data storage table includes: the risk control association combination table, the risk control business scenario table, the risk control rule table, the risk control category table, the risk control point table, and the risk control parameter table. Refer to Figure 3 , for different configuration data storage tables, different configuration information is stored one by one according to the storage list. Thus, when managing the risk control points, the configuration data corresponding to the risk control point can be accurately determined to process the configuration data.
[0116] Specifically, after configuring the risk control points according to the configuration information of the risk control points, it further includes:
[0117] Obtain the management instruction for the risk control point from the risk control management interface, and the management instruction includes query, modification, and deletion; in the configuration data storage table corresponding to the risk control point, execute the management instruction to make the risk control point present the management interface corresponding to the management instruction in the risk control management interface.
[0118] In some embodiments, after the risk control points of the risk control category are configured, the risk control points can be managed. In the risk control management interface, the management modules corresponding to the risk control category and risk control points are displayed, such as the deletion module, addition module, query module, and modification module of the risk control point configuration information, etc. Obtain the management instruction generated by the user's selection of the management module on the operation page, so as to manage the risk control points.
[0119] In the following embodiments, the specific process of managing the risk control points when the management instructions are different is described in detail.
[0120] When the management instruction is query, it specifically includes:
[0121] Risk control point table query: Query the risk control type table to obtain all enabled risk control type information; associate the types of the above-obtained risk control types with the risk control object types of the risk control point table to obtain all risk control point information; obtain all risk control rule information corresponding to the above risk control points from the risk control rule table; obtain all risk control association combination information corresponding to the above risk control points from the risk control association combination table; obtain the combination information of the above risk control association combinations from the combination table.
[0122] Risk control type API query: Use the JAVA reflection mechanism to obtain the interface API information of the specified risk control type, including: method name, Chinese method name, description, type, description when the value is illegal, data source, selection method, value type, etc. information; query the risk control parameter table to obtain the risk control parameter information of the specified risk control point.
[0123] Risk control combination perspective / risk control perspective query: Obtain the combination information that the currently logged-in account has permission to access from the combination table. If combination information is specified in the query conditions, the specified combination information is required; obtain the risk control point numbers and business type information corresponding to the above combinations from the risk control association combination table; obtain the corresponding risk control point information from the risk control point table; obtain the name of the above business type from the risk control business scenario table; obtain the corresponding risk control rules according to the above risk control points; return the above information to the front-end for display.
[0124] In the combination scenario, query the risk control information of the specified combination: Obtain all risk control association combination information corresponding to the current combination from the risk control association combination table; obtain all risk control business scenario information from the above risk control association combination information, and use reflection to iterate to obtain the risk control types corresponding to the corresponding business scenarios; then, according to the above-obtained risk control type information, query the risk control point table to obtain all risk control point information; query the risk control rule table according to the above risk control point information to obtain all configured risk control rule information; construct the above-obtained information into a list containing business scenarios, risk control points, and risk control rule information, and set the risk control points corresponding to the business scenarios as selected according to the risk control association combination information obtained in the first step above.
[0125] When the management instruction is to modify, it specifically includes:
[0126] Modify risk control parameters: Modify the information of the specified parameters in the risk control parameter table.
[0127] Modify risk control rules: Modify the information of the specified rules in the risk control rule table.
[0128] Modify risk control association combinations: Delete the information of the specified risk control points in the risk control association combination table.
[0129] Batch insert the selected risk control association combination information into the risk control association combination table.
[0130] Modify risk control point information: Modify the information of the specified risk control points in the risk control point table.
[0131] If the enabled status of a risk control point changes, it is necessary to update the enabled status information of the specified risk control point in the risk control association combination table.
[0132] When the management instruction is deletion, it specifically includes:
[0133] Delete risk control parameters: Delete all parameter information in the risk control parameter table according to the parameter number. Delete risk control points: Delete the specified risk control point information in the risk control point table. Delete all risk control rule information of the specified risk control point in the risk control rule table. Delete all risk control parameter information of the specified risk control point in the risk control parameter table; Delete all risk control management by combination information of the specified risk control point in the risk control rule table.
[0134] Delete risk control point information associated with the combination: Delete all risk control association combination information corresponding to the specified combination in the risk control association combination table.
[0135] Delete risk control rules: Delete all rule information in the risk control rule table according to the rule number.
[0136] Delete risk control parameters: Delete all parameter information in the risk control parameter table according to the parameter number.
[0137] When the management instruction is addition, it specifically includes:
[0138] Add risk control parameters: Add information on the specified rule to the risk control rule table.
[0139] Add risk control point information associated with the combination: Add all selected risk control association combination information in the risk control association combination table.
[0140] In the above embodiments, various types of specified information (such as specified combinations, information on specified rules, etc.) can all be configuration information selected by the user on the risk control management page.
[0141] In some other embodiments, a series of elements such as risk control indicators, indicator parameters, indicator options, mathematical operators, logical operators, custom functions, mathematical functions, formatting symbols, etc. can be visualized to provide a simple and highly interactive risk control indicator expression configuration function for development, testing, operation and maintenance, and customers. And, the expression translation engine can support translating the indicator expression into the syntax that common expression engines on the market can support, and at the same time also support the verification function of the indicator expression.
[0142] In this application, by obtaining a generation request for a risk control class, obtaining a standard annotation corresponding to the generation request, injecting the standard annotation into the original code to generate a risk control class, obtaining risk control configuration data corresponding to the risk control class, and configuring the risk control class according to the risk control configuration data. In this way, the method of injecting standard annotations is used to replace the hard-coded method in related technologies. It is not necessary for professionals to modify the source program. After obtaining the generation request for the risk control class, only the corresponding standard annotation needs to be obtained and injected into the original code. The operation process is convenient and can be completed without programming experience. Through risk control scenarios, various business scenario configuration association requirements can be realized. By combining and associating risk control scenarios and risk control points, multi-level and more detailed risk control can be achieved. The risk control class templates the risk control points, and the risk control points are the concretization of the risk control class. The two-layer structure provides a template for configuration, which is convenient for configurators to configure with one key and also realizes the sharing of experience. At the same time, the risk control points are independent of each other and do not interfere with each other, ensuring personalized risk control requirements in various business scenarios. The risk control parameters parameterize the risk control, and each parameter can obtain a fixed value or be input by the configurator, ensuring flexibility.
[0143] Based on the same concept, in an embodiment of this application, a risk control management device is provided. For the specific implementation of this device, reference can be made to the description in the method embodiment part, and repeated parts will not be elaborated. As Figure 4 shown, the device mainly includes:
[0144] A first acquisition module 401, configured to acquire a generation request for a risk control class;
[0145] A second acquisition module 402, configured to acquire a standard annotation corresponding to the generation request;
[0146] A generation module 403, configured to inject the standard annotation into the original code to generate a risk control class;
[0147] A third acquisition module 404, configured to acquire risk control configuration data corresponding to the risk control class;
[0148] A configuration module 405, configured to configure the risk control class according to the risk control configuration data.
[0149] Optionally, the configuration module includes:
[0150] Obtaining the entry conditions, statistical dimensions, execution expressions, execution result descriptions, associated business types, and combination information of the risk control system to configure the risk control rules of the risk control class, where the risk control system is used for risk control;
[0151] Obtaining risk control interface information, and configuring the risk control condition expression, risk control result calculation expression, and risk control result description of the risk control class according to the risk control interface information;
[0152] Obtain the risk control business scenario and configure the business scenario of the risk control category according to the risk control business scenario.
[0153] Optionally, the configuration module is specifically used for:
[0154] Obtain a risk control point generation request;
[0155] In the risk control configuration data, obtain the configuration information of the risk control point corresponding to the generation request;
[0156] Configure the risk control point according to the configuration information of the risk control point for risk control management through the risk control point.
[0157] Optionally, the configuration module is specifically used for:
[0158] Obtain the business types and program interface information supported by the risk control category in the risk control configuration data;
[0159] Determine the business scenarios and risk control rules supported by the risk control category according to the business types;
[0160] Obtain the combined information that the user has the right to access;
[0161] Use the program interface information, the risk control rules, the business scenarios, and the combined information as the configuration information of the risk control point.
[0162] Optionally, the configuration module is specifically used for:
[0163] Associate the business scenario and the combined information to obtain an associated combination set;
[0164] Obtain the target associated combination selected by the user in the associated combination set;
[0165] Configure the target associated combination, the program interface information, and the risk control rules to obtain the risk control point corresponding to the risk control category.
[0166] Optionally, after configuring the risk control point according to the configuration information of the risk control point, it further includes:
[0167] Store the configuration information in the configuration data storage table of the risk control point.
[0168] Optionally, the configuration module is further used for:
[0169] Obtain the basic information of the risk control point of the risk control point;
[0170] Add the basic information of the risk control point to a preset risk control point list.
[0171] Optionally, the configuration module is further used for:
[0172] Obtain a management instruction for the risk control point from the risk control management interface, where the management instruction includes query, modification, and deletion;
[0173] Execute the management instruction in the configuration data storage table corresponding to the risk control point, so that the risk control point presents a management interface corresponding to the management instruction in the risk control management interface.
[0174] Optionally, the risk control configuration data includes: risk control rule configuration data, risk control scenario configuration data, and risk control index data.
[0175] Based on the same concept, an electronic device is provided in an embodiment of the present application. As Figure 5 shown, the electronic device mainly includes: a processor 501, a communication interface 502, a memory 503, and a communication bus 504. Among them, the processor 501, the communication interface 502, and the memory 503 communicate with each other through the communication bus 504. Among them, a program executable by the processor 501 is stored in the memory 503, and the processor 501 executes the program stored in the memory 503 to implement the following steps:
[0176] Obtain a generation request for a risk control class;
[0177] Obtain a standard annotation corresponding to the generation request;
[0178] Inject the standard annotation into the original code to generate a risk control class;
[0179] Obtain risk control configuration data corresponding to the risk control class;
[0180] Configure the risk control class according to the risk control configuration data.
[0181] The communication bus 504 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus 504 can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 5 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0182] The communication interface 502 is used for communication between the above electronic device and other devices.
[0183] The memory 503 may include a Random Access Memory (RAM), or may also include a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor 501.
[0184] The aforementioned processor 501 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc., or may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0185] In another embodiment of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer is caused to execute the risk control management method described in the above embodiment.
[0186] In the above embodiment, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions are transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wirelessly (such as infrared, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape, etc.), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc.
[0187] It should be noted that in this text, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.
[0188] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to these embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.
Claims
1. A risk control management method, characterized in that, it includes: Obtain a generation request for risk control; Obtain the standard annotation corresponding to the generation request; Inject the standard annotation into the original code to generate a risk control class; Obtain the risk control configuration data corresponding to the risk control class; the risk control configuration data includes: risk control rule configuration data, risk control scenario configuration data, and risk control index data; Configure the risk control class according to the risk control configuration data; Among them, the configuring the risk control class according to the risk control configuration data includes: Obtain the entry condition, statistical dimension, execution expression, execution result description, associated business type, and combination information of the risk control system, and configure the risk control rules of the risk control class, where the risk control system is used for risk control; Obtain the risk control interface information, and configure the risk control condition expression, risk control result calculation expression, and risk control result description of the risk control class according to the risk control interface information; Obtain the risk control business scenario, and configure the business scenario of the risk control class according to the risk control business scenario.
2. The risk control management method according to claim 1, characterized in that, the configuring the risk control class according to the risk control configuration data includes: Obtain a risk control point generation request, where the risk control point is an instance of the risk control class; In the risk control configuration data, obtain the configuration information of the risk control point corresponding to the generation request; Configure the risk control point according to the configuration information of the risk control point, so as to perform risk control management through the risk control point.
3. The risk control management method according to claim 2, characterized in that, the obtaining the configuration information of the risk control point corresponding to the generation request in the risk control configuration data includes: Obtain the business type and program interface information supported by the risk control class in the risk control configuration data; Determine the business scenario and risk control rules supported by the risk control class according to the business type; Obtain the combination information that the user has the right to access; Use the program interface information, the risk control rules, the business scenario, and the combination information as the configuration information of the risk control point.
4. The risk control management method according to claim 3, characterized in that, the configuring the risk control point according to the configuration information of the risk control point includes: Associate the business scenario and the combination information to obtain an associated combination set; Obtain the target associated combination selected by the user in the associated combination set; Configure the target associated combination, the program interface information, and the risk control rules to obtain the risk control point corresponding to the risk control class.
5. The risk control management method according to claim 2, characterized in that, after the configuring the risk control point according to the configuration information of the risk control point, it further includes: Store the configuration information in the configuration data storage table of the risk control point.
6. The risk control management method according to claim 2, characterized in that, after the configuring the risk control point according to the configuration information of the risk control point, it further includes: Obtain the basic information of the risk control point of the risk control point; Add the basic information of the risk control point to the preset risk control point list.
7. The risk control management method according to claim 2, It is characterized in that after configuring the risk control points according to the configuration information of the risk control points, it further includes: obtaining a management instruction for the risk control point from a risk control management interface, where the management instruction includes query, modification, and deletion; executing the management instruction in a configuration data storage table corresponding to the risk control point, so that the risk control point presents a management interface corresponding to the management instruction in the risk control management interface.
8. A risk control management device It is characterized in that it includes: a first acquisition module, configured to acquire a generation request for a risk control class; a second acquisition module, configured to acquire a standard annotation corresponding to the generation request; a generation module, configured to inject the standard annotation into original code to generate a risk control class; a third acquisition module, configured to acquire risk control configuration data corresponding to the risk control class; the risk control configuration data includes: risk control rule configuration data, risk control scenario configuration data, and risk control index data; a configuration module, configured to configure the risk control class according to the risk control configuration data; wherein, the configuration module includes: a first acquisition sub-module, configured to acquire an entry condition of a risk control system, a statistical dimension, an execution expression, an execution result description, an associated business type, and combination information, so as to configure the risk control rules of the risk control class; a second acquisition sub-module, configured to acquire risk control interface information, and configure a risk control condition expression, a risk control result calculation expression, and a risk control result description of the risk control class according to the risk control interface information; a third acquisition sub-module, configured to acquire a risk control business scenario, and configure the business scenario of the risk control class according to the risk control business scenario.
9. The risk control management device according to claim 8 It is characterized in that the configuration module includes: a fourth acquisition sub-module, configured to acquire a risk control point generation request; a fifth acquisition sub-module, configured to acquire configuration information of a risk control point corresponding to the generation request from the risk control configuration data; a configuration sub-module, configured to configure the risk control point according to the configuration information of the risk control point, so as to perform risk control management through the risk control point.
10. The risk control management device according to claim 9 It is characterized in that the configuration module sub-module includes: a sixth acquisition sub-module, configured to acquire a business type and program interface information supported by the risk control class from the risk control configuration data; a first determination module, configured to determine a business scenario and risk control rules supported by the risk control class according to the business type; a seventh acquisition sub-module, configured to acquire combination information to which a user has access rights; a second determination module, configured to use the program interface information, the risk control rules, the business scenario, and the combination information as the configuration information of the risk control point.
11. An electronic device It is characterized in that it includes: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus; the memory is used for storing a computer program; the processor is configured to execute the program stored in the memory to implement the risk control management method according to any one of claims 1-7.
12. A computer-readable storage medium stores a computer program, characterized in that, when the computer program is executed by a processor, it implements the risk control management method described in any one of claims 1-7.
Citation Information
Patent Citations
Risk control method, risk control apparatus, electronic device, and storage medium
US20210044614A1