WO2019019702A1 - 算法的生成方法、装置、终端设备及存储介质 - Google Patents
算法的生成方法、装置、终端设备及存储介质 Download PDFInfo
- Publication number
- WO2019019702A1 WO2019019702A1 PCT/CN2018/082841 CN2018082841W WO2019019702A1 WO 2019019702 A1 WO2019019702 A1 WO 2019019702A1 CN 2018082841 W CN2018082841 W CN 2018082841W WO 2019019702 A1 WO2019019702 A1 WO 2019019702A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- algorithm
- parameter
- algorithm parameter
- target
- user
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2452—Query translation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/08—Insurance
Definitions
- the present application belongs to the technical field of low-level algorithm generation, and in particular, to a method, a device, a terminal device and a storage medium for generating an algorithm.
- the insurance system includes different subsystems, and each subsystem may involve different underlying algorithms.
- the EXCEL template is usually provided by the salesman, and the IT engineer translates the algorithm described by the EXCEL template into a SQL script, and then writes the translation result in the script. Because IT engineers need to translate algorithms, they need to spend too much human resources. In addition, when there are many algorithms to be translated, the increasing development workload will increase the burden on IT engineers, resulting in longer development cycles and development efficiency. low.
- the embodiments of the present application provide a method, a device, a terminal device, and a storage medium for generating an algorithm, so as to solve the problem that the prior art implements the underlying algorithm of the insurance system, which requires manual translation, thereby resulting in a long development cycle and development efficiency. Low problem.
- a first aspect of the embodiments of the present application provides a method for generating an algorithm, including:
- Corresponding SQL statements are matched according to the target algorithm and corresponding fields of the mapped database.
- a second aspect of the embodiments of the present application provides an apparatus for generating an algorithm, including:
- the algorithm parameter dragging instruction receiving unit is configured to receive an algorithm parameter dragging instruction sent by the user in the pre-generated visual configuration interface to drag the corresponding algorithm parameter;
- a database field determining unit configured to map the dragged algorithm parameter to a corresponding database field according to a preset mapping relationship
- An algorithm parameter combination instruction receiving unit is configured to receive an algorithm parameter combination instruction sent by a user, and combine all algorithm parameters that the user has dragged into a target algorithm according to the algorithm parameter combination instruction;
- the SQL statement generating unit is configured to match the corresponding SQL statement according to the target algorithm and the corresponding field of the mapped database.
- a third aspect of an embodiment of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer The following operations are implemented when the instructions are readable:
- Corresponding SQL statements are matched according to the target algorithm and corresponding fields of the mapped database.
- a fourth aspect of the embodiments of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
- Corresponding SQL statements are matched according to the target algorithm and corresponding fields of the mapped database.
- the user can drag the corresponding algorithm parameters by issuing the algorithm parameter dragging instruction in the visual configuration interface, and then generating the corresponding target algorithm according to the dragged algorithm parameters, and matching the target algorithm to the SQL statement, there is no need to manually convert the target algorithm. It is a SQL statement, which greatly reduces the burden on IT engineers, shortens the development cycle, and improves the development efficiency of SQL algorithms.
- the target algorithm is not the underlying algorithm, the algorithm parameters involved are more easily understood by the user. It also reduces the probability of generating an incorrect SQL statement.
- FIG. 1 is a flowchart of a method for generating an algorithm according to an embodiment of the present application
- FIG. 2 is a structural diagram of an apparatus for generating an algorithm according to an embodiment of the present application
- FIG. 3 is a schematic diagram of a terminal device according to an embodiment of the present application.
- FIG. 1 is a flowchart of a method for generating an algorithm provided by an embodiment of the present application, which is described in detail as follows:
- Step S11 Receive an algorithm parameter drag instruction issued by the user in the pre-generated visual configuration interface to drag the corresponding algorithm parameter.
- the method includes:
- the algorithm parameters corresponding to the algorithm in the insurance system are generated by the keywords of the algorithm parameters, and the keywords of the algorithm parameters are displayed in a pre-developed visual configuration interface.
- the visual configuration interface is mainly used to display algorithm parameters (or unique identifiers of algorithm parameters---such as algorithm parameter keywords) and operation symbols of various algorithms involved in the insurance system, when algorithm parameters (or algorithm parameters) Unique identifiers—such as keywords for algorithm parameters) and more operands can be hidden by drop-down menus or by multiple interfaces (or pages).
- the visual configuration interface also includes setting items for setting a name or remark information for the generated target algorithm.
- the keyword of the algorithm parameter is displayed instead of the algorithm parameter itself in the visual configuration interface, which can effectively reduce the length of the character to be displayed, thereby improving Show efficiency.
- step S11 includes:
- A1 Receive an algorithm parameter drag command issued by the user in a pre-generated visual configuration interface, where the algorithm parameter drag command carries keyword information of the algorithm parameter.
- A2 Drag the corresponding algorithm parameter according to the keyword information of the algorithm parameter.
- the user finds the algorithm parameter keyword to be dragged in the visual configuration interface, and then drags the found algorithm parameter keyword to implement dragging on the algorithm parameter.
- step S12 the dragged algorithm parameters are mapped to the corresponding database fields according to the preset mapping relationship.
- the preset mapping relationship is generated by:
- the algorithm parameters involved in various algorithms in the insurance system are sorted out, and the algorithm parameter keywords corresponding to the algorithm parameters are stored in a wide table, where the wide table refers to a database table with a relatively large number of fields, which usually refers to a business topic.
- a database table associated with related indicators, dimensions, and attributes.
- the algorithm parameter keyword corresponding to the algorithm parameter such as policy information, insurance information, insured information, and policyholder information is mainly included, and the wide table further includes a parameter corresponding to the algorithm parameter keyword.
- the algorithm parameter keyword corresponding to the algorithm parameter is displayed on the visual configuration interface.
- the user selects an algorithm parameter corresponding to the algorithm parameter keyword, and selects a database corresponding to the algorithm parameter keyword.
- Field For example, if there is a field flag_value coefficient and a pol_yr policy year on the wide table A, the coefficient is an algorithm parameter keyword, and the field of the database corresponding to the “coefficient” is flag_value. Similarly, the policy parameter keyword corresponding to the “policy year” corresponds to The field of the database is "pol_yr".
- the algorithm parameter corresponding to the algorithm parameter keyword involved in the wide table of the embodiment of the present application may be pre-extracted, so that when the visual configuration interface needs to use the algorithm parameter, the data corresponding to the algorithm parameter can be directly obtained, Recalculation is required to improve execution efficiency.
- Step S13 Receive an algorithm parameter combination instruction sent by the user, and combine all the algorithm parameters that the user has dragged into the target algorithm according to the algorithm parameter combination instruction.
- the algorithm parameter combination instruction includes the dragged algorithm parameter, the sequence of the dragged algorithm parameters, and the operation symbol between the dragged algorithm parameters.
- the operation symbol is displayed on the visual configuration interface, and the target algorithm is generated according to the sequence of the algorithm parameter key selected by the user and the selected operation symbol. For example, when the user selects the algorithm parameter keyword of “coefficient”, and then selects the operation symbol “*”, and then selects the algorithm parameter keyword of “policy year”, the generated target algorithm is “coefficient* policy year”. ".
- the method includes:
- the hierarchical structure of the target algorithm is presented in a tree-like manner.
- the hierarchical structure of the target algorithm is displayed in a tree manner, including:
- the algorithm constituting the target algorithm and the algorithm parameter keywords and operation symbols involved in the algorithm constituting the target algorithm are hierarchically displayed in a tree-like manner.
- MAX basic insured algorithm result, premium algorithm result, cash value algorithm result
- Premium algorithm results: (1 + coefficient / 100 * (MAX (1, policy period - payment period +1) + policy period) / 2) * MIN (policy period, payment period) * period Premium
- the tree display which field of each table involved in each algorithm is displayed may be included, so that the user further confirms whether the generated target algorithm is erroneous, thereby reducing the probability of generating the wrong target algorithm.
- the hierarchical structure of the target algorithm is displayed in a tree-like manner, it is convenient for the user (salesman and IT engineer) to visually check whether the combined target algorithm is normal, whether there is a performance problem, and if the combined target algorithm is normal, development is performed.
- the public calling program pre-calculates the combined target algorithm. If the calculation result of the target algorithm can be calculated normally, it is determined that there is no performance problem. If the calculation result of the target algorithm cannot be calculated, it is determined that there is a performance problem. For example, when it is determined that the target algorithm is composed of multiple levels of algorithms, or when there are more than 20 algorithm parameter keywords involved, the tree structure is convenient for viewing, and the salesperson can visually see whether the target algorithm meets the requirements. There are no hand errors. The IT engineer checks to see if the target algorithm can calculate the result.
- a judging step may also be set after the step "showing the hierarchical structure of the target algorithm in a tree manner" or after step C2. Determining whether the number of tables associated with the target algorithm is greater than a preset number of table thresholds, or determining whether the data amount of the associated table is greater than a preset data amount threshold, and verifying whether the target algorithm is obtained by verifying in the database If not, it indicates that there is a performance problem, and all the associated tables or partial tables are stored in the background wide table, and the calculation results of all the tables or partial tables stored in the wide table are calculated in advance, or the associated data is The table whose amount is greater than the preset data amount threshold is stored in the wide table in the background, and the calculation result of the table in which the data amount stored in the wide table is greater than the preset data amount threshold is calculated in advance, so that the pre-computed can be directly invoked subsequently. Calculate the results, thereby reducing the
- the public caller is an execution framework, and the algorithm can be passed as one parameter to execute, or the algorithm can be read from the table.
- the calling method of the simple algorithm with less data amount is set to the first type, and after the calculation result is obtained, the user downloads the calculation result by issuing a download instruction in the visual configuration interface.
- Set the calling mode of the complex algorithm with a large amount of data to the second type insert the algorithm into the algorithm table in the background, and the background satisfies the condition (for example, the number of algorithms to be processed reaches the preset number threshold, Alternatively, when the preset time arrives, the batch execution is performed in the order of the algorithms stored in the algorithm table. Of course, after the execution ends, the processing result may be displayed.
- Step S14 matching the corresponding SQL statement according to the target algorithm and the corresponding field of the mapped database.
- the field of the database corresponding to the algorithm parameter keyword included in the target algorithm and the operation symbol are matched according to a preset matching rule to the corresponding SQL statement. For example, if the user sets an algorithm in the visual configuration interface: coefficient/100*least (policy year, payment year)* basic insurance amount, the visual configuration interface matches the algorithm set by the user after reading the structure of the wide table.
- Translate to execute SQL in the background flag_value/100*least(pol_yr,prem_term)*sum_ins .
- the field of the database corresponding to the coefficient is “ flag_value ”
- the fields of the database corresponding to “policy year”, “payment year” and “basic insurance amount” are “ pol_yr ”, “ prem_term ”, “ sum_ins ” respectively. .
- the algorithm parameter dragging instruction sent by the user in the pre-generated visual configuration interface is received, so as to drag the corresponding algorithm parameter, and the dragged algorithm parameter is mapped to the corresponding field of the database according to the preset mapping relationship, and the user is received.
- the issued algorithm parameter combination instruction combines all the algorithm parameters that the user has dragged into the target algorithm according to the algorithm parameter combination instruction, and matches the corresponding SQL statement according to the target algorithm and the corresponding field of the mapped database. Since the user can drag the corresponding algorithm parameters by issuing the algorithm parameter dragging instruction in the visual configuration interface, and then generating the corresponding target algorithm according to the dragged algorithm parameters, and matching the target algorithm to the SQL statement, there is no need to manually convert the target algorithm.
- FIG. 2 is a schematic structural diagram of an apparatus for generating an algorithm according to an embodiment of the present application. For convenience of description, only parts related to the embodiment of the present application are shown.
- the generating device 2 of the algorithm includes an algorithm parameter drag instruction receiving unit 21, a database field determining unit 22, an algorithm parameter combining instruction receiving unit 23, and an SQL statement generating unit 24. among them:
- the algorithm parameter drag instruction receiving unit 21 is configured to receive an algorithm parameter drag instruction issued by the user in the pre-generated visual configuration interface to drag the corresponding algorithm parameter.
- the generating device 2 of the algorithm includes:
- the draggable option generating module is configured to generate a draggable option by using the algorithm parameter corresponding to the algorithm in the insurance system, and the keyword of the algorithm parameter is displayed in a pre-developed visual configuration interface.
- the algorithm parameters or the unique identifier of the algorithm parameters ---- such as the keywords of the algorithm parameters
- the operands are more, they can be hidden by the drop-down menu or by multiple interfaces (or pages).
- the visual configuration interface also includes setting items for setting a name or remark information for the generated target algorithm.
- the algorithm parameter drag instruction receiving unit 21 includes:
- the algorithm parameter dragging instruction receiving module is configured to receive an algorithm parameter dragging instruction issued by the user in a pre-generated visual configuration interface, where the algorithm parameter dragging instruction carries keyword information of the algorithm parameter.
- the algorithm parameter dragging module is configured to drag the corresponding algorithm parameter according to the keyword information of the algorithm parameter.
- the database field determining unit 22 is configured to map the dragged algorithm parameters into the fields of the corresponding database according to the preset mapping relationship.
- the preset mapping relationship is generated by:
- the algorithm parameters involved in various algorithms in the insurance system are statistically stored, and the algorithm parameter keywords corresponding to the statistical algorithm parameters are stored in a wide table, and the wide table includes the following algorithm parameter keywords corresponding to at least one algorithm parameter: a policy Information, insurance information, insured information, policyholder information;
- the field of the database corresponding to the algorithm parameter keyword corresponding to the statistical algorithm parameter is stored in the wide table to obtain a preset mapping relationship.
- the algorithm parameter combination instruction receiving unit 23 is configured to receive an algorithm parameter combination instruction issued by the user, and combine all the algorithm parameters that the user has dragged into the target algorithm according to the algorithm parameter combination instruction.
- the generating device 2 of the algorithm includes:
- a tree display unit for displaying a hierarchical structure of the target algorithm in a tree manner.
- the tree display unit includes:
- An information determining module configured to determine a number of layers in which the algorithm constituting the target algorithm is located, and determine algorithm parameter keywords and operation symbols involved in an algorithm that constitutes the target algorithm;
- a tree display module is configured to hierarchically display the algorithms constituting the target algorithm and the algorithm parameter keywords and operation symbols involved in the algorithm constituting the target algorithm in a tree-like manner.
- the SQL statement generating unit 24 is configured to match the corresponding SQL statement according to the target algorithm and the corresponding field of the mapped database.
- the user can drag the corresponding algorithm parameter by issuing an algorithm parameter dragging instruction in the visual configuration interface, and then generate a corresponding target algorithm according to the dragged algorithm parameter, and match the target algorithm with the SQL statement.
- No need to manually convert the target algorithm into SQL statement which greatly reduces the burden on the IT engineer, shortens the development cycle, improves the development efficiency of the SQL algorithm, and, in addition, because the target algorithm is not the underlying algorithm, the algorithm parameters involved are also easier. It is understood by the user, therefore, the probability of generating an erroneous SQL statement can also be reduced.
- FIG. 3 is a schematic diagram of a terminal device according to an embodiment of the present application.
- the terminal device 3 of this embodiment includes a processor 30, a memory 31, and computer readable instructions 32 stored in the memory 31 and operable on the processor 30.
- Corresponding SQL statements are matched according to the target algorithm and corresponding fields of the mapped database.
- the computer readable instructions 32 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 30, To complete this application.
- the one or more modules/units may be a series of computer readable instruction instructions segments capable of performing a particular function for describing the execution of the computer readable instructions 32 in the terminal device 3.
- the computer readable instructions 32 may be divided into an algorithm parameter drag instruction receiving unit, a database field determining unit, an algorithm parameter combination instruction receiving unit, and an SQL statement generating unit, and the specific functions of each module are as follows:
- the algorithm parameter dragging instruction receiving unit is configured to receive an algorithm parameter dragging instruction sent by the user in the pre-generated visual configuration interface to drag the corresponding algorithm parameter;
- a database field determining unit configured to map the dragged algorithm parameter to a corresponding database field according to a preset mapping relationship
- An algorithm parameter combination instruction receiving unit is configured to receive an algorithm parameter combination instruction sent by a user, and combine all algorithm parameters that the user has dragged into a target algorithm according to the algorithm parameter combination instruction;
- the SQL statement generating unit is configured to match the corresponding SQL statement according to the target algorithm and the corresponding field of the mapped database.
- the terminal device 3 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal device may include, but is not limited to, the processor 30 and the memory 31. It will be understood by those skilled in the art that FIG. 3 is only an example of the terminal device 3, does not constitute a limitation of the terminal device 3, may include more or less components than those illustrated, or combine some components, or different components.
- the terminal device may further include an input/output device, a network access device, a bus, and the like.
- the so-called processor 30 can be a central processing unit (Central Processing Unit, CPU), can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
- the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
- the memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or a memory of the terminal device 3.
- the memory 31 may also be an external storage device of the terminal device 3, for example, a plug-in hard disk equipped on the terminal device 3, a smart memory card (SMC), and a secure digital (SD). Card, flash card (Flash Card) and so on.
- the memory 31 may also include both an internal storage unit of the terminal device 3 and an external storage device.
- the memory 31 is configured to store the computer readable instructions and other programs and data required by the terminal device.
- the memory 31 can also be used to temporarily store data that has been output or is about to be output.
- the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the foregoing embodiments, and may also be completed by a computer program to instruct related hardware.
- the computer program may be stored in a computer readable storage medium.
- the steps of the various method embodiments described above may be implemented when the program is executed by the processor. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请适用于底层算法生成技术领域,提供了算法的生成方法、装置、终端设备及存储介质,所述方法包括:接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。通过上述方法能够缩短开发周期,提高开发效率。
Description
本申请要求于2017年07月27日提交中国专利局、申请号为CN
201710623605.X、发明名称为“算法的生成方法及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请属于底层算法生成技术领域,尤其涉及算法的生成方法、装置、终端设备及存储介质。
保险系统包括不同的子系统,而各个子系统可能涉及不同的底层算法。
目前,在实现保险系统的底层算法时,通常是由业务员提供EXCEL模版,IT工程师再将EXCEL模板描述的算法翻译成SQL脚本,然后再将翻译结果编写在脚本中。由于需要IT工程师翻译算法,因此,需要耗费过多的人力资源,此外,在需翻译的算法较多时,成倍增加的开发工作量将增加IT工程师的负担,从而导致开发周期变长,开发效率低下。
故,需要提供一种新的算法生成方法,以解决上述技术问题。
有鉴于此,本申请实施例提供了算法的生成方法、装置、终端设备及存储介质,以解决现有技术在实现保险系统的底层算法时,需要人工翻译,从而导致开发周期变长,开发效率低下的问题。
本申请实施例的第一方面提供了一种算法的生成方法,包括:
接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;
根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;
接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;
根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
本申请实施例的第二方面提供了一种算法的生成装置,包括:
算法参数拖拉指令接收单元,用于接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;
数据库字段确定单元,用于根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;
算法参数组合指令接收单元,用于接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;
SQL语句生成单元,用于根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
本申请实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现以下操作:
接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;
根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;
接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;
根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:
接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;
根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;
接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;
根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
本申请实施例与现有技术相比存在的有益效果是:
由于用户在可视化配置界面发出算法参数拖拉指令就能拖拉对应的算法参数,再根据被拖拉的算法参数生成对应的目标算法,以及,将目标算法匹配出SQL语句,因此,无需人工将目标算法转换为SQL语句,从而极大减轻了IT工程师的负担,缩短了开发周期,提高了SQL算法的开发效率,此外,由于目标算法不是底层算法,其涉及的算法参数也更容易被用户明白,因此,也能降低生成错误SQL语句的概率。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的一种算法的生成方法的流程图;
图2是本申请实施例提供的一种算法的生成装置的结构图;
图3是本申请实施例提供的终端设备的示意图。
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。
图1示出了本申请实施例提供的一种算法的生成方法的流程图,详述如下:
步骤S11,接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数。
可选地,在所述步骤S11之前,包括:
将保险系统中的算法对应的算法参数通过所述算法参数的关键字生成可拖拉的选项,所述算法参数的关键字显示在预先开发的可视化配置界面。其中,可视化配置界面主要用于展示保险系统中涉及的各个算法的算法参数(或算法参数的唯一标识-----如算法参数的关键字)和运算符号,当算法参数(或算法参数的唯一标识-----如算法参数的关键字)和运算符号较多时,可通过下拉菜单隐藏,或者,通过多个界面(或页面)呈现。当然,该可视化配置界面还包括为生成的目标算法设置名称或备注信息的设置项。由于算法参数的关键字的字符长度会小于或等于算法参数的字符长度,因此,在可视化配置界面显示的是算法参数的关键字而不是算法参数本身,能够有效减少需显示的字符长度,从而提高显示效率。
对应地,所述步骤S11包括:
A1、接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,所述算法参数拖拉指令携带算法参数的关键字信息。
A2、根据所述算法参数的关键字信息拖拉对应的算法参数。
具体地,用户在可视化配置界面查找到需拖拉的算法参数关键字,再拖拉查找到的算法参数关键字以实现对算法参数的拖拉。
步骤S12,根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段。
具体地,所述预设的映射关系通过以下方式生成:
B1、统计保险系统中各种算法涉及到的算法参数,并将统计的算法参数对应的算法参数关键字存入宽表中,所述宽表包括以下至少一种算法参数对应的算法参数关键字:保单信息、险种信息、被保人信息、投保人信息。
B2、将与统计的算法参数对应的算法参数关键字对应的数据库的字段存入所述宽表中,得到预设的映射关系。
具体地,整理出保险系统中各种算法涉及到的算法参数,并将算法参数对应的算法参数关键字存入宽表中,该宽表是指字段比较多的数据库表,通常是指业务主题相关的指标、维度、属性关联在一起的一张数据库表。在本申请实施例的宽表中,主要包括保单信息、险种信息,被保人信息、投保人信息等算法参数对应的算法参数关键字,同时,该宽表还包括与算法参数关键字对应的数据库的字段。在可视化配置界面显示算法参数对应的算法参数关键字,当用户选择某个算法参数关键字后,表明该用户选择该算法参数关键字对应的算法参数,以及,选择该算法参数关键字对应的数据库的字段。例如,比如宽表A上有字段flag_value系数、pol_yr保单年度,则系数为算法参数关键字,该“系数”对应的数据库的字段为flag_value,同理,“保单年度”这一算法参数关键字对应的数据库的字段为“pol_yr”。
可选地,可预先提取本申请实施例的宽表涉及的算法参数关键字对应的算法参数,这样,当可视化配置界面需要使用到该算法参数时,能够直接获取该算法参数对应的数据,不需要重新计算,从而提高执行效率。当然,为了使得预先提取的算法参数都能被调用,则需要统计指定阶段(如上一日或上一月)中宽表涉及的算法参数关键字对应的算法参数的使用频率,则预先提取使用频率大于预设频率阈值的算法参数关键字对应的算法参数。
步骤S13,接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法。
其中,算法参数组合指令包括被拖拉的算法参数、被拖拉的算法参数的先后顺序,以及,被拖拉的算法参数之间的运算符号等信息。具体地,在可视化配置界面显示运算符号,根据用户选择的算法参数关键字与选择的运算符号的先后顺序,生成目标算法。例如,当用户选择“系数”这一算法参数关键字后,接着选择“*”这一运算符号,再选择“保单年度”这一算法参数关键字,则生成的目标算法为“系数*保单年度”。
可选地,为了便于用户获知组合成的目标算法的层级结构,直观、方便地判断出组合的目标算法是否有误,则在所述步骤S13之后,包括:
以树形的方式展示所述目标算法的层级结构。
可选地,所述以树形的方式展示所述目标算法的层级结构,包括:
C1、确定组成所述目标算法的算法所在的层数,以及,确定组成所述目标算法的算法涉及的算法参数关键字和运算符号。
C2、以树形的方式分层展示组成所述目标算法的算法以及组成所述目标算法的算法涉及的算法参数关键字和运算符号。
例如,在以树形的方式显示组合成的目标算法有2层算法时,可通过以下方式显示:
1层算法:
MAX(基本保额算法结果,保费算法结果,现金价值算法结果)
2层算法:
基本保额算法结果:系数/100*MIN(保单年度,交费年度)*基本保额
保费算法结果:(1+系数/100*(MAX(1,保单期数-交费期数+1)+保单期数)/2)*MIN(保单期数,交费期数)*期交保费
现金价值算法结果:系数/100*现金价值
只有1层的算法时,可通过以下方式显示:系数/100*基本保额-因重疾或残疾已给付的金额。
即,在树形显示时,将显示该目标算法由哪几个算法组成,每个算法下面涉及哪些算法参数关键字。
可选地,在树形显示时,也可以包括显示每个算法涉及的哪个表的哪个字段,以便用户进一步确认生成的目标算法是否有误,从而减少生成错误目标算法的概率。
由于以树形的方式展示目标算法的层级结构,因此,便于用户(业务员和IT工程师)直观地核查组合成的目标算法是否正常,是否有性能问题,若组合成的目标算法正常,则开发公共调用程序,预先计算组合成的目标算法,若能够正常计算出目标算法的计算结果,则判定没有性能问题,若不能计算出目标算法的计算结果,则判定有性能问题。例如,当判断出目标算法是有多个层级的算法组成,或者,涉及的算法参数关键字有20个以上时,用树形结构展示方便查看,业务员可以直观地看出目标算法是否符合要求,有没有手误。IT工程师查看目标算法是否能计算出结果。
可选地,由于性能问题通常与目标算法关联的表的数量有关,因此,也可在步骤“以树形的方式展示所述目标算法的层级结构”之后或步骤C2之后设置一个判断步骤,当判断出目标算法关联的表的数量大于预设的表数量阈值,或者,判断出关联的表的数据量大于预设的数据量阈值时,通过在数据库验证是否能够得到所述目标算法的计算结果,若不能,则表示有性能问题,并将关联的全部表或部分表存入后台的宽表中,并预先计算宽表存入的全部表或部分表的计算结果,或者,将关联的数据量大于预设的数据量阈值的表存入后台的宽表中,并预先计算宽表存入的数据量大于预设的数据量阈值的表的计算结果,这样,后续可直接调用预先计算的计算结果,从而降低在计算目标算法时出现的性能问题的概率。
需要指出的是,公共调用程序是1个执行框架,可以把算法作为1个参数传进去执行,或者从表中读取算法执行。调用方式有2种方式:第1种是直接在可视化配置界面上点击触发,第2种是在后台通过批处理任务定时执行。具体设置时,将涉及的数据量比较少的简单算法的调用方式设置为第1种,得到计算结果后,用户通过在可视化配置界面发出下载指令下载该计算结果。将数据量比较大的复杂算法的调用方式设置为第2种:把算法插入到后台的算法表中,后台在满足条件后(如,需处理的算法的个数达到预设的个数阈值,或者,在预设的时间到达时),按算法表存储的算法的先后顺序批处理执行,当然,在执行结束后,可显示处理结果。
步骤S14,根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
具体地,将目标算法包括的算法参数关键字对应的数据库的字段以及运算符号根据预设的匹配规则匹配出对应的SQL语句。例如,用户在可视化配置界面设置了算法:系数/100*least(保单年度,交费年度)*基本保额,则该可视化配置界面在读取宽表的结构后,匹配用户设置的算法,可以翻译为后台执行SQL:
flag_value/100*least(pol_yr,prem_term)*sum_ins。需要指出的是,系数对应的数据库的字段为
“
flag_value”,“保单年度”、“交费年度”、“基本保额”对应的数据库的字段分别为“
pol_yr”、“
prem_term”、“
sum_ins”。
本申请实施例中,接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数,根据预设的映射关系,将拖拉的算法参数映射为数据库的对应字段,接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法,根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。由于用户在可视化配置界面发出算法参数拖拉指令就能拖拉对应的算法参数,再根据被拖拉的算法参数生成对应的目标算法,以及,将目标算法匹配出SQL语句,因此,无需人工将目标算法转换为SQL语句,从而极大减轻了IT工程师的负担,缩短了开发周期,提高了SQL算法的开发效率,此外,由于目标算法不是底层算法,其涉及的算法参数也更容易被用户明白,因此,也能降低生成错误SQL语句的概率。
图2示出了本申请实施例提供的一种算法的生成装置的结构示意图,为了便于说明,仅示出了与本申请实施例相关的部分。
该算法的生成装置2包括:算法参数拖拉指令接收单元21、数据库字段确定单元22、算法参数组合指令接收单元23、SQL语句生成单元24。其中:
算法参数拖拉指令接收单元21,用于接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数。
可选地,所述算法的生成装置2包括:
可拖拉的选项生成模块,用于将保险系统中的算法对应的算法参数通过所述算法参数的关键字生成可拖拉的选项,所述算法参数的关键字显示在预先开发的可视化配置界面。当算法参数(或算法参数的唯一标识-----如算法参数的关键字)和运算符号较多时,可通过下拉菜单隐藏,或者,通过多个界面(或页面)呈现。当然,该可视化配置界面还包括为生成的目标算法设置名称或备注信息的设置项。
对应地,所述算法参数拖拉指令接收单元21包括:
算法参数拖拉指令接收模块,用于接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,所述算法参数拖拉指令携带算法参数的关键字信息。
算法参数拖拉模块,用于根据所述算法参数的关键字信息拖拉对应的算法参数。
数据库字段确定单元22,用于根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段。
其中,所述预设的映射关系通过以下方式生成:
统计保险系统中各种算法涉及到的算法参数,并将统计的算法参数对应的算法参数关键字存入宽表中,所述宽表包括以下至少一种算法参数对应的算法参数关键字:保单信息、险种信息、被保人信息、投保人信息;
将与统计的算法参数对应的算法参数关键字对应的数据库的字段存入所述宽表中,得到预设的映射关系。
算法参数组合指令接收单元23,用于接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法。
可选地,为了便于用户获知组合成的目标算法的层级结构,直观、方便地判断出组合的目标算法是否有误,则所述算法的生成装置2包括:
树形展示单元,用于以树形的方式展示所述目标算法的层级结构。
可选地,所述树形展示单元包括:
信息确定模块,用于确定组成所述目标算法的算法所在的层数,以及,确定组成所述目标算法的算法涉及的算法参数关键字和运算符号;
树形展示模块,用于以树形的方式分层展示组成所述目标算法的算法以及组成所述目标算法的算法涉及的算法参数关键字和运算符号。
SQL语句生成单元24,用于根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
本申请实施例中,由于用户在可视化配置界面发出算法参数拖拉指令就能拖拉对应的算法参数,再根据被拖拉的算法参数生成对应的目标算法,以及,将目标算法匹配出SQL语句,因此,无需人工将目标算法转换为SQL语句,从而极大减轻了IT工程师的负担,缩短了开发周期,提高了SQL算法的开发效率,此外,由于目标算法不是底层算法,其涉及的算法参数也更容易被用户明白,因此,也能降低生成错误SQL语句的概率。
图3是本申请一实施例提供的终端设备的示意图。如图3所示,该实施例的终端设备3包括:处理器30、存储器31以及存储在所述存储器31中并可在所述处理器30上运行的计算机可读指令32。所述处理器30执行所述计算机可读指令32时实现以下操作:
接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;
根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;
接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;
根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
或者,所述处理器30执行所述计算机可读指令32时实现上述各装置实施例中各模块/单元的功能,例如图2所示模块21至24的功能。
示例性的,所述计算机可读指令32可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器31中,并由所述处理器30执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令指令段,该指令段用于描述所述计算机可读指令32在所述终端设备3中的执行过程。例如,所述计算机可读指令32可以被分割成算法参数拖拉指令接收单元、数据库字段确定单元、算法参数组合指令接收单元、SQL语句生成单元,各模块具体功能如下:
算法参数拖拉指令接收单元,用于接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;
数据库字段确定单元,用于根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;
算法参数组合指令接收单元,用于接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;
SQL语句生成单元,用于根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
所述终端设备3可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器30、存储器31。本领域技术人员可以理解,图3仅仅是终端设备3的示例,并不构成对终端设备3的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。
所称处理器30可以是中央处理单元(Central
Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application
Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器31可以是所述终端设备3的内部存储单元,例如终端设备3的硬盘或内存。所述存储器31也可以是所述终端设备3的外部存储设备,例如所述终端设备3上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash
Card)等。进一步地,所述存储器31还可以既包括所述终端设备3的内部存储单元也包括外部存储设备。所述存储器31用于存储所述计算机可读指令以及所述终端设备所需的其他程序和数据。所述存储器31还可以用于暂时地存储已经输出或者将要输出的数据。
在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
Claims (20)
- 一种算法的生成方法,其特征在于,包括:接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
- 如权利要求1所述的算法的生成方法,其特征在于,在所述接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数之前,包括:将保险系统中的算法对应的算法参数通过所述算法参数的关键字生成可拖拉的选项,所述算法参数的关键字显示在预先开发的可视化配置界面;对应地,所述接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数包括:接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,所述算法参数拖拉指令携带算法参数的关键字信息;根据所述算法参数的关键字信息拖拉对应的算法参数。
- 如权利要求1所述的算法的生成方法,其特征在于,所述预设的映射关系通过以下方式生成:统计保险系统中各种算法涉及到的算法参数,并将统计的算法参数对应的算法参数关键字存入宽表中,所述宽表包括以下至少一种算法参数对应的算法参数关键字:保单信息、险种信息、被保人信息、投保人信息;将与统计的算法参数对应的算法参数关键字对应的数据库的字段存入所述宽表中,得到预设的映射关系。
- 如权利要求1所述的算法的生成方法,其特征在于,在所述接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法之后,包括:以树形的方式展示所述目标算法的层级结构。
- 如权利要求4所述的算法的生成方法,其特征在于,所述以树形的方式展示所述目标算法的层级结构,包括:确定组成所述目标算法的算法所在的层数,以及,确定组成所述目标算法的算法涉及的算法参数关键字和运算符号;以树形的方式分层展示组成所述目标算法的算法以及组成所述目标算法的算法涉及的算法参数关键字和运算符号。
- 一种算法的生成装置,其特征在于,包括:算法参数拖拉指令接收单元,用于接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;数据库字段确定单元,用于根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;算法参数组合指令接收单元,用于接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;SQL语句生成单元,用于根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
- 如权利要求6所述的算法的生成装置,其特征在于,所述算法的生成装置包括:可拖拉的选项生成模块,用于将保险系统中的算法对应的算法参数通过所述算法参数的关键字生成可拖拉的选项,所述算法参数的关键字显示在预先开发的可视化配置界面;所述算法参数拖拉指令接收单元包括:算法参数拖拉指令接收模块,用于接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,所述算法参数拖拉指令携带算法参数的关键字信息;算法参数拖拉模块,用于根据所述算法参数的关键字信息拖拉对应的算法参数。
- 如权利要求6所述的算法的生成装置,其特征在于,所述预设的映射关系通过以下方式生成:统计保险系统中各种算法涉及到的算法参数,并将统计的算法参数对应的算法参数关键字存入宽表中,所述宽表包括以下至少一种算法参数对应的算法参数关键字:保单信息、险种信息、被保人信息、投保人信息;将与统计的算法参数对应的算法参数关键字对应的数据库的字段存入所述宽表中,得到预设的映射关系。
- 如权利要求6所述的算法的生成装置,其特征在于,所述算法的生成装置包括:树形展示单元,用于以树形的方式展示所述目标算法的层级结构。
- 如权利要求9所述的算法的生成装置,其特征在于,所述树形展示单元包括:信息确定模块,用于确定组成所述目标算法的算法所在的层数,以及,确定组成所述目标算法的算法涉及的算法参数关键字和运算符号;树形展示模块,用于以树形的方式分层展示组成所述目标算法的算法以及组成所述目标算法的算法涉及的算法参数关键字和运算符号。
- 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现以下操作:接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
- 如权利要求11所述的终端设备,其特征在于,在所述接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数之前,所述处理器执行所述计算机可读指令时还实现以下操作:将保险系统中的算法对应的算法参数通过所述算法参数的关键字生成可拖拉的选项,所述算法参数的关键字显示在预先开发的可视化配置界面;对应地,所述接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数包括:接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,所述算法参数拖拉指令携带算法参数的关键字信息;根据所述算法参数的关键字信息拖拉对应的算法参数。
- 如权利要求11所述的终端设备,其特征在于,所述预设的映射关系通过以下方式生成:统计保险系统中各种算法涉及到的算法参数,并将统计的算法参数对应的算法参数关键字存入宽表中,所述宽表包括以下至少一种算法参数对应的算法参数关键字:保单信息、险种信息、被保人信息、投保人信息;将与统计的算法参数对应的算法参数关键字对应的数据库的字段存入所述宽表中,得到预设的映射关系。
- 如权利要求11所述的算法的终端设备,其特征在于,在所述接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法之后,所述处理器执行所述计算机可读指令时还实现以下操作:以树形的方式展示所述目标算法的层级结构。
- 如权利要求14所述的算法的终端设备,其特征在于,所述以树形的方式展示所述目标算法的层级结构,包括:确定组成所述目标算法的算法所在的层数,以及,确定组成所述目标算法的算法涉及的算法参数关键字和运算符号;以树形的方式分层展示组成所述目标算法的算法以及组成所述目标算法的算法涉及的算法参数关键字和运算符号。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数;根据预设的映射关系,将拖拉的算法参数映射为对应的数据库的字段;接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法;根据所述目标算法以及映射的数据库的对应字段匹配出对应的SQL语句。
- 如权利要求16所述的计算机可读存储介质,其特征在于,在所述接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数之前,包括:将保险系统中的算法对应的算法参数通过所述算法参数的关键字生成可拖拉的选项,所述算法参数的关键字显示在预先开发的可视化配置界面;对应地,所述接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,以拖拉对应的算法参数包括:接收用户在预先生成的可视化配置界面发出的算法参数拖拉指令,所述算法参数拖拉指令携带算法参数的关键字信息;根据所述算法参数的关键字信息拖拉对应的算法参数。
- 如权利要求16所述的计算机可读存储介质,其特征在于,所述预设的映射关系通过以下方式生成:统计保险系统中各种算法涉及到的算法参数,并将统计的算法参数对应的算法参数关键字存入宽表中,所述宽表包括以下至少一种算法参数对应的算法参数关键字:保单信息、险种信息、被保人信息、投保人信息;将与统计的算法参数对应的算法参数关键字对应的数据库的字段存入所述宽表中,得到预设的映射关系。
- 如权利要求16所述的计算机可读存储介质,其特征在于,在所述接收用户发出的算法参数组合指令,根据所述算法参数组合指令将用户已拖拉的所有算法参数组合成目标算法之后,包括:以树形的方式展示所述目标算法的层级结构。
- 如权利要求19所述的计算机可读存储介质,其特征在于,述以树形的方式展示所述目标算法的层级结构,包括:确定组成所述目标算法的算法所在的层数,以及,确定组成所述目标算法的算法涉及的算法参数关键字和运算符号;以树形的方式分层展示组成所述目标算法的算法以及组成所述目标算法的算法涉及的算法参数关键字和运算符号。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710623605.XA CN107784063B (zh) | 2017-07-27 | 2017-07-27 | 算法的生成方法及终端设备 |
CN201710623605.X | 2017-07-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019019702A1 true WO2019019702A1 (zh) | 2019-01-31 |
Family
ID=61438127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/082841 WO2019019702A1 (zh) | 2017-07-27 | 2018-04-12 | 算法的生成方法、装置、终端设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107784063B (zh) |
WO (1) | WO2019019702A1 (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107784063B (zh) * | 2017-07-27 | 2020-03-17 | 平安科技(深圳)有限公司 | 算法的生成方法及终端设备 |
CN109635041A (zh) * | 2018-12-04 | 2019-04-16 | 山东中创软件商用中间件股份有限公司 | 基于Sqoop工具的数据传输方法、装置、设备及介质 |
CN109635170A (zh) * | 2018-12-13 | 2019-04-16 | 成都四方伟业软件股份有限公司 | 算法接入方法、装置、电子设备及可读存储介质 |
CN110009117A (zh) * | 2019-03-28 | 2019-07-12 | 中车青岛四方机车车辆股份有限公司 | 基于列车状态数据的机理模型生成方法及装置 |
CN110929488B (zh) * | 2019-11-06 | 2023-12-26 | 深圳市云智融科技有限公司 | 数据处理方法及相关装置 |
CN111091469B (zh) * | 2019-11-20 | 2023-12-19 | 泰康保险集团股份有限公司 | 信息处理方法、装置、电子设备及计算机可读介质 |
CN113076155B (zh) * | 2020-01-03 | 2024-05-03 | 阿里巴巴集团控股有限公司 | 数据处理方法、装置、电子设备及计算机存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650709A (zh) * | 2009-09-08 | 2010-02-17 | 北京九恒星科技股份有限公司 | 报表生成方法和报表系统 |
CN101876969A (zh) * | 2009-12-04 | 2010-11-03 | 金蝶软件(中国)有限公司 | 报表开发方法及装置 |
CN102073701A (zh) * | 2010-12-30 | 2011-05-25 | 浪潮集团山东通用软件有限公司 | 一种基于语义定义的多数据源的数据查询方法 |
CN103186541A (zh) * | 2011-12-27 | 2013-07-03 | 阿里巴巴集团控股有限公司 | 一种映射关系生成方法及装置 |
CN107784063A (zh) * | 2017-07-27 | 2018-03-09 | 平安科技(深圳)有限公司 | 算法的生成方法及终端设备 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101556602B (zh) * | 2009-04-08 | 2013-07-03 | 王珊 | 一种基于差分表的内存OLAP What-if分析方法 |
WO2015099961A1 (en) * | 2013-12-02 | 2015-07-02 | Qbase, LLC | Systems and methods for hosting an in-memory database |
CN106096515B (zh) * | 2016-05-31 | 2019-10-25 | Oppo广东移动通信有限公司 | 一种解锁控制方法及终端设备 |
-
2017
- 2017-07-27 CN CN201710623605.XA patent/CN107784063B/zh active Active
-
2018
- 2018-04-12 WO PCT/CN2018/082841 patent/WO2019019702A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101650709A (zh) * | 2009-09-08 | 2010-02-17 | 北京九恒星科技股份有限公司 | 报表生成方法和报表系统 |
CN101876969A (zh) * | 2009-12-04 | 2010-11-03 | 金蝶软件(中国)有限公司 | 报表开发方法及装置 |
CN102073701A (zh) * | 2010-12-30 | 2011-05-25 | 浪潮集团山东通用软件有限公司 | 一种基于语义定义的多数据源的数据查询方法 |
CN103186541A (zh) * | 2011-12-27 | 2013-07-03 | 阿里巴巴集团控股有限公司 | 一种映射关系生成方法及装置 |
CN107784063A (zh) * | 2017-07-27 | 2018-03-09 | 平安科技(深圳)有限公司 | 算法的生成方法及终端设备 |
Also Published As
Publication number | Publication date |
---|---|
CN107784063B (zh) | 2020-03-17 |
CN107784063A (zh) | 2018-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019019702A1 (zh) | 算法的生成方法、装置、终端设备及存储介质 | |
US9519723B2 (en) | Aggregating electronic content items from different sources | |
CN109144647B (zh) | 一种表单设计方法与装置、终端设备以及存储介质 | |
WO2019033520A1 (zh) | 一种子系统页面的开发方法、存储介质和服务器 | |
CN111198868B (zh) | 一种智能分库实时数据迁移方法和装置 | |
WO2019041753A1 (zh) | 信息修改方法、装置、计算机设备及计算机可读存储介质 | |
WO2019179021A1 (zh) | Excel数据导入数据库的方法、装置、计算机设备及存储介质 | |
CN111427971B (zh) | 用于计算机系统的业务建模方法、装置、系统和介质 | |
WO2019062191A1 (zh) | 电子装置、提取数据表的数据的方法、系统及存储介质 | |
CN108073429B (zh) | 一种支付方式配置方法、装置、设备及存储介质 | |
US20210357991A1 (en) | Systems and Methods for Providing a Campaign Design Platform Having a Component Plug-In Framework | |
CN111880967A (zh) | 云场景下的文件备份方法、装置、介质和电子设备 | |
US10248668B2 (en) | Mapping database structure to software | |
US9823905B2 (en) | Event based code generation | |
US20200089539A1 (en) | Optimization of memory usage by integration flows | |
CN108108392B (zh) | 商品数据管理方法、装置、计算机设备及存储介质 | |
CN112000491B (zh) | 一种应用程序接口调用方法、装置、设备和存储介质 | |
CN112306648B (zh) | 事务调用方法、装置、电子设备及存储介质 | |
WO2024193001A1 (zh) | 一种升级方法、装置、设备及存储介质 | |
US10552010B2 (en) | Creating free-form contour regions on a display | |
US9201936B2 (en) | Rapid provisioning of information for business analytics | |
CN111857883B (zh) | 页面数据校验方法、装置、电子设备及存储介质 | |
CN115113862A (zh) | 一种派生指标创建方法、装置、电子设备及存储介质 | |
CN111124579B (zh) | 一种特效渲染方法、装置、电子设备及存储介质 | |
CN110221756B (zh) | 处理应用数据的方法、装置、终端及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06/08/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18837649 Country of ref document: EP Kind code of ref document: A1 |