CN109189372B - Development script generation method of insurance product and terminal equipment - Google Patents

Development script generation method of insurance product and terminal equipment Download PDF

Info

Publication number
CN109189372B
CN109189372B CN201810962324.1A CN201810962324A CN109189372B CN 109189372 B CN109189372 B CN 109189372B CN 201810962324 A CN201810962324 A CN 201810962324A CN 109189372 B CN109189372 B CN 109189372B
Authority
CN
China
Prior art keywords
product
insurance
online
development
source code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810962324.1A
Other languages
Chinese (zh)
Other versions
CN109189372A (en
Inventor
唐红俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810962324.1A priority Critical patent/CN109189372B/en
Publication of CN109189372A publication Critical patent/CN109189372A/en
Application granted granted Critical
Publication of CN109189372B publication Critical patent/CN109189372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • G06F8/24Object-oriented
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application is applicable to the technical field of software development, and provides a development script generation method and terminal equipment of an insurance product, wherein the method comprises the following steps: the product attributes of the to-be-online insurance products are respectively compared with the product attributes of each on-line insurance product to obtain the comprehensive similarity of each on-line insurance product with respect to the to-be-online insurance products, if any on-line insurance product has the comprehensive similarity greater than a preset threshold value, the source code of the on-line insurance product is obtained, the development function annotation of the to-be-online insurance product is obtained, if the development function annotation is detected in the source code, the code segment corresponding to the development function annotation in the source code is imported into the development document corresponding to the to-be-online insurance product, and the development script of the to-be-online insurance product is generated, so that the labor and time for manually writing the corresponding function source code of the to-be-online insurance product can be saved, the development efficiency of the to-be-online insurance product is improved, and the development cost is reduced.

Description

Development script generation method of insurance product and terminal equipment
Technical Field
The application belongs to the technical field of software development, and particularly relates to a development script generation method of an insurance product and terminal equipment.
Background
With the development of the scientific and technological information industry, more and more enterprises move to intellectualization, especially in the financial industry, the daily operation of the enterprises is more and more separated from the support of automated products and equipment. For insurance companies, various insurance products can be sold through an online platform, so that online change of the insurance products is completed due to changes of sales strategies or user demands by taking off shelf or updating in time for online displayed insurance products.
Currently, for each new insurance product, a developer needs to start a brand new development project, code and line the insurance product, and the process needs to consume a great deal of manpower and time cost, so that the development process of the new insurance product is low in efficiency and high in cost.
Disclosure of Invention
The embodiment of the application provides a development script generation method and terminal equipment of an insurance product, which are used for solving the problems that in the prior art, when each new insurance product is developed, a developer needs to start a brand-new development project, codes and brings the insurance product on line, and the process needs to consume a great deal of manpower and time cost, so that the development process of the new insurance product is low in efficiency and high in cost.
A first aspect of an embodiment of the present application provides a method for generating a development script of an insurance product, including:
acquiring a plurality of attribute keywords related to a product to be online insurance, and acquiring product attributes of the product to be online insurance according to the attribute keywords;
respectively acquiring the product attribute of each online insurance product;
comparing the product attribute of the product to be online insurance with the product attribute of each online insurance product to obtain the comprehensive similarity of each online insurance product with respect to the product to be online insurance;
if any online insurance product corresponding comprehensive similarity is larger than a preset threshold, acquiring a source code of the online insurance product;
acquiring development function comments of the to-be-online insurance product, wherein the development function comments are used for annotating function codes corresponding to any product function of the to-be-online insurance product;
and if the development function annotation exists in the source code, importing the code segment corresponding to the development function annotation in the source code into a development document corresponding to the to-be-online insurance product so as to generate a development script of the to-be-online insurance product based on the development document into which the code segment is imported.
A second aspect of an embodiment of the present application provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a plurality of attribute keywords related to a product to be online insurance, and acquiring product attributes of the product to be online insurance according to the attribute keywords;
respectively acquiring the product attribute of each online insurance product;
comparing the product attribute of the product to be online insurance with the product attribute of each online insurance product to obtain the comprehensive similarity of each online insurance product with respect to the product to be online insurance;
if any online insurance product corresponding comprehensive similarity is larger than a preset threshold, acquiring a source code of the online insurance product;
acquiring development function comments of the to-be-online insurance product, wherein the development function comments are used for annotating function codes corresponding to any product function of the to-be-online insurance product;
and if the development function annotation exists in the source code, importing the code segment corresponding to the development function annotation in the source code into a development document corresponding to the to-be-online insurance product so as to generate a development script of the to-be-online insurance product based on the development document into which the code segment is imported.
A third aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of a development script generation method of an insurance product as described above.
Compared with the prior art, the embodiment of the application has the beneficial effects that: according to the development script generation method and the terminal equipment for the insurance products, the product attributes of the insurance products to be online are respectively compared with the product attributes of each online insurance product, so that the comprehensive similarity of each online insurance product with respect to the online insurance products is obtained, if the comprehensive similarity corresponding to any online insurance product is larger than a preset threshold value, the source code of the online insurance product is obtained, the development function annotation is used for annotating the function code corresponding to any product function of the online insurance product, if the development function annotation exists in the source code, the code section corresponding to the development function annotation in the source code is imported into the development document corresponding to the online insurance product, so that the development script of the online insurance product is generated based on the development document imported with the code section, and because the source code of the online insurance product is used as the development script of the online insurance product, the manpower and time for manually compiling the corresponding function source code of the online insurance product can be saved, the efficiency of the online insurance product is improved, and the development cost of the online insurance product is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for generating development scripts of an insurance product according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for generating development scripts for an insurance product according to another embodiment of the present application;
FIG. 3 is a schematic flow chart of a method for generating development scripts for an insurance product according to yet another embodiment of the present application;
FIG. 4 is a schematic flow chart of a method for generating development scripts for an insurance product according to yet another embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 6 is a functional block diagram of a development script generation program of an insurance product according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for generating a development script of an insurance product according to an embodiment of the present application, in this embodiment, a server side is taken as an example, where the server may be one or more servers. As shown in fig. 1, in this embodiment, the processing of the server may include the steps of:
s101: and acquiring a plurality of attribute keywords related to the to-be-online insurance product, and acquiring the product attribute of the to-be-online insurance product according to the attribute keywords.
In this embodiment, a requirement document of a product to be online insurance may be obtained, and an insurance beneficiary keyword, an insurance category keyword and an insurance benefit type keyword of the product to be online insurance may be extracted from the requirement document of the product to be online insurance, so as to obtain a product attribute of the product to be online insurance. The product attributes of the insurance product to be online may be one or more. For example, extracting keywords of an insurance beneficiary of the to-be-online insurance product from a requirement document of the to-be-online insurance product to obtain product attributes of the insurance beneficiary of the to-be-online insurance product, wherein the product attributes can be adult risk, child risk and senior risk; extracting insurance category keywords from a demand document of an insurance product to be online to obtain insurance category product attributes of the insurance product to be online, wherein the insurance category product attributes can be accident insurance, sports insurance, education insurance, health insurance, medical insurance and endowment insurance; and extracting a profit type keyword from a demand document of the to-be-online insurance product to obtain an insurance profit type product attribute of the to-be-online insurance product, wherein the insurance profit type product attribute can be risk guarantee insurance and investment financial insurance.
S102: and respectively acquiring the product attribute of each online insurance product.
In this embodiment, the online insurance products may be numbered according to the development time sequence of the online insurance products. For example, the first developed online insurance product is numbered 001, the second developed online insurance product is numbered 002, and so on.
Specifically, the product attribute of each online insurance product may be determined according to the insurance beneficiary attribute, the insurance category attribute, and the benefit type attribute of each online insurance product, corresponding to the number of each online insurance product. For example, determining an insurance beneficiary product attribute for each online insurance product from the insurance beneficiaries of the online insurance products; determining the insurance category product attribute of each online insurance product according to the insurance category of the online insurance product; and determining the insurance benefit type product attribute of each online insurance product according to the benefit type of the online insurance product.
S103: and comparing the product attribute of the to-be-online insurance product with the product attribute of each online insurance product to obtain the comprehensive similarity of each online insurance product with respect to the to-be-online insurance product.
In this embodiment, the characters of the product attribute of the online insurance product to be online may be compared with the characters of the product attribute of each online insurance product, and the comprehensive similarity of each online insurance product with respect to the online insurance product may be obtained according to the ratio of the same characters to the characters of the product attribute of each online insurance product.
S104: and if the comprehensive similarity corresponding to any online insurance product is greater than a preset threshold, acquiring a source code of the online insurance product.
In this embodiment, the preset threshold may be set according to the requirement, which is not limited in any way. If the comprehensive similarity of any online insurance product does not exceed the preset threshold, determining that the source code of the online insurance product is quite different from the source code of the insurance product to be online, wherein the source code in the online insurance product does not have the reference value.
S105: and acquiring development function comments of the to-be-online insurance product, wherein the development function comments are used for annotating function codes corresponding to any product function of the to-be-online insurance product.
In this embodiment, a requirement document of an insurance product of a product to be online may be obtained, and scan identification is performed on the requirement document to obtain a development function annotation of the product to be online.
S106: if the development function annotation is detected to exist in the source code, the development function annotation is imported into a development document corresponding to the to-be-online insurance product in a code section corresponding to the source code, so that a development script of the to-be-online insurance product is generated based on the development document imported with the code section.
In this embodiment, a source code development function annotation can be obtained according to a source code of an online insurance product, and whether the development function annotation of the online insurance product to be online has a function annotation identical to the source code development function annotation is judged; if so, importing the code segment corresponding to the development function annotation in the source code into a development document corresponding to the to-be-online insurance product.
As can be seen from the above description, the development script generation method of the insurance product according to the embodiment of the present application obtains the comprehensive similarity of each online insurance product with respect to the online insurance product by comparing the product attribute of the online insurance product with the product attribute of each online insurance product, if any online insurance product has a comprehensive similarity greater than a preset threshold, the source code of the online insurance product is obtained, the development function annotation is used for annotating the function code corresponding to any product function of the online insurance product, if the development function annotation is detected to exist in the source code, the code segment corresponding to the development function annotation in the source code is imported into the development document corresponding to the online insurance product, so as to generate the development script of the online insurance product based on the development document into which the code segment is imported.
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for generating a development script of an insurance product according to another embodiment of the application. On the basis of the above embodiment, the above step S106 is described in detail as follows:
s201: dividing the source code into a plurality of grammar units according to a preset grammar rule.
In this embodiment, the grammar unit is a combination of source code that implements a function of the online insurance product. Specifically, the source code of the online insurance product may be divided into a plurality of grammar units according to the logical identification in the source code of the online insurance product.
S202: and obtaining the source code annotation corresponding to each grammar unit.
In this embodiment, the source code annotation is a piece of functional description of each function (grammar unit) added after the source code of that grammar unit is implemented when the online insurance product is developed.
S203: if the source code annotation consistent with the development function annotation exists, a grammar unit corresponding to the source code annotation is acquired.
In this embodiment, the process of judging whether the development function annotation is consistent with the source code annotation is:
if the characters of the source code annotation are completely consistent with the characters of the development function annotation, judging that the development function annotation is consistent with the source code annotation; if the characters of the source code annotation and the characters of the development function annotation are not completely consistent, extracting functional feature keywords from the source code annotation, inquiring a pre-stored synonym database to obtain a plurality of synonyms corresponding to the functional feature keywords, and if the synonyms which are the same as the development function annotation exist in the synonyms, judging that the development function annotation is consistent with the source code annotation.
S204: and importing the acquired grammar unit into a development document corresponding to the to-be-online insurance product.
From the above description, it can be known that by dividing the source code into a plurality of grammar units according to the preset grammar rule, if there is a source code annotation consistent with the development function annotation, acquiring the grammar unit corresponding to the source code annotation, and importing the acquired grammar unit into the development document corresponding to the to-be-online insurance product, the comparison between the source code of each to-be-developed insurance product and the development function annotation of the to-be-online insurance product can be efficiently completed, and the development efficiency is further improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a method for generating a development script of an insurance product according to still another embodiment of the present application. On the basis of the above embodiment, the above step S201 is described in detail as follows:
s301: locate the logical identifier in the source code and identify a first start identifier and a first end identifier following the logical identifier.
In this embodiment, the logical identifier is a hint phrase of a combination of source codes that implements a function in the development of the source code. Taking source code written in the C language as an example, the logical identifier may be "if", "while", "switch", etc., the start identifier may be "{", and the end identifier may be "}.
S302: the logic identifier, the start identifier and the end identifier corresponding to the logic identifier, and the code between the start identifier and the end identifier are divided into a grammar unit.
From the above description, by identifying the logic identifier, the start identifier and the end identifier, it is possible to ensure accurate obtaining of the grammar unit, and avoid misidentification of the grammar unit.
Referring to fig. 4, fig. 4 is a schematic flowchart of a method for generating a development script of an insurance product according to another embodiment of the present application. On the basis of the embodiment, the product attributes comprise an insurance beneficiary product attribute, an insurance category product attribute and an insurance benefit type product attribute; the above step S101 is described in detail as follows:
s401: acquiring a requirement document of an on-line insurance product, and extracting an insurance beneficiary keyword, an insurance category keyword and an insurance benefit type keyword of the on-line insurance product from the requirement document of the on-line insurance product.
In this embodiment, the demand document may be a text format document, a table format document, or a logical tree format document. For example, when the demand document is in a text format, a start flag ("function description", "function introduction", etc.) identifying the demand document may be scanned, and a plurality of function notes ("premium calculation function", "premium earning calculation function", etc.) in the demand document may be identified from the start flag until the identification process ends when an end flag (feature character "," etc.) of the demand document is identified.
S402: inquiring the corresponding relation between the prestored keywords and the product attributes, and acquiring the insurance beneficiary product attributes corresponding to the insurance beneficiary keywords, the insurance category product attributes corresponding to the insurance category keywords and the insurance benefit type product attributes corresponding to the insurance benefit type keywords.
As can be seen from the above description, since the requirement document is a document obtained by transaction in software development, the requirement document of the to-be-online insurance product can be conveniently obtained to extract the insurance beneficiary keyword, the insurance category keyword and the insurance benefit type keyword of the to-be-online insurance product.
In one embodiment of the present application, when the product attributes include an insurance beneficiary product attribute, an insurance category product attribute, and an insurance benefit type product attribute, step S103 includes:
comparing the characters of the product attributes of the insurance beneficiaries of each online insurance product with the characters of the product attributes of the insurance beneficiaries of the online insurance products to be online according to a preset comparison rule, and determining a first similarity; comparing the characters of the insurance type product attribute of each online insurance product with the characters of the insurance type product attribute of the insurance product to be online according to the preset comparison rule, determining a second similarity, and comparing the characters of the insurance benefit type product attribute of each online insurance product with the characters of the insurance benefit type product attribute of each online insurance product according to the preset comparison rule, and determining a third similarity;
acquiring a first weight coefficient of a preset first similarity, a second weight coefficient of a second similarity and a second weight coefficient of a third similarity;
and multiplying the first similarity by a first weight coefficient, multiplying the second similarity by a second weight coefficient, and multiplying the third similarity by a third weight coefficient to obtain the comprehensive similarity of each online insurance product and the online insurance product to be online.
The method comprises the steps of comparing characters of product attributes of insurance beneficiaries of all online insurance products with characters of product attributes of insurance beneficiaries of online insurance products to be online according to preset comparison rules, and determining the first similarity:
if the character of the insurance beneficiary product attribute of the online insurance product is completely consistent with the character of the insurance beneficiary product attribute of the online insurance product, determining that the first similarity is 1; if the character of the insurance beneficiary product attribute of the online insurance product is not completely consistent with the character of the insurance beneficiary product attribute of the to-be-online insurance product, acquiring the ratio of the same character in the character of the insurance beneficiary product attribute of the online insurance product to the character of the insurance beneficiary product attribute of the to-be-online insurance product accounting for the to-be-online insurance product, and determining the ratio as the first similarity.
The process of determining the second similarity and the third similarity is identical to the process of determining the first similarity, and will not be described again.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Corresponding to the method for generating the development script of the insurance product described in the above embodiment, fig. 5 shows a schematic structural diagram of the terminal device provided in the embodiment of the present application. For convenience of explanation, only the portions related to the present embodiment are shown.
In the present embodiment, the development script generation program 600 of the insurance product is installed and run in the terminal device 60. The terminal device 60 may be a mobile terminal, a palm top computer, a server, etc. The terminal device 60 may include, but is not limited to, a memory 601, a processor 602, and a display 603. Fig. 5 shows only a terminal device 60 having components 601-603, but it is understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
The memory 601 may in some embodiments be an internal storage unit of the terminal device 60, such as a hard disk or a memory of the terminal device 60. The memory 601 may also be an external storage device of the terminal device 60 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 60. Further, the memory 601 may also include both an internal storage unit and an external storage device of the terminal device 60. The memory 601 is used for storing application software and various data installed in the terminal device 60, such as program codes of the development script generation program 600 of the insurance product. The memory 601 may also be used to temporarily store data that has been output or is to be output.
The processor 602 may be, in some embodiments, a Central processing unit (Central ProcessingUnit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 601, such as executing the insurance product development script generation program 600.
The display 603 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch, or the like in some embodiments. The display 603 is used for displaying information processed in the terminal device 60 and for displaying visualized user interfaces, such as application menu interfaces, application icon interfaces, etc. The components 601-603 of the terminal device 60 communicate with each other via a system bus.
Referring to fig. 6, a functional block diagram of a development script generation program 600 of an insurance product according to an embodiment of the present application is shown. In this embodiment, the development script generation program 600 of the insurance product may be divided into one or more modules, which are stored in the memory 601 and executed by one or more processors (the processor 602 in this embodiment) to complete the present application. For example, in fig. 6, the development script generation program 600 of the insurance product may be divided into a first product attribute acquisition unit 701, a second product attribute acquisition unit 702, a product attribute comparison unit 703, a source code acquisition unit 704, a functional annotation acquisition unit 705, and a development script generation unit 706.
The first product attribute obtaining unit 701 is configured to obtain a plurality of attribute keywords related to a product to be online insurance, and obtain a product attribute of the product to be online insurance according to the attribute keywords;
a second product attribute obtaining unit 702, configured to obtain the product attribute of each online insurance product;
a product attribute comparison unit 703, configured to compare the product attribute of the online insurance product to be online with the product attribute of each online insurance product, so as to obtain a comprehensive similarity of each online insurance product with respect to the online insurance product to be online;
a source code obtaining unit 704, configured to obtain a source code of the online insurance product if the integrated similarity corresponding to any one of the online insurance products is greater than a preset threshold;
a function annotation obtaining unit 705, configured to obtain a development function annotation of the product to be online, where the development function annotation is used to annotate a function code corresponding to any product function of the product to be online;
and the development script generating unit 706 is configured to, if it is detected that the development function annotation exists in the source code, import a code segment corresponding to the development function annotation in the source code into a development document corresponding to the to-be-online insurance product, so as to generate a development script of the to-be-online insurance product based on the development document into which the code segment is imported.
In one embodiment of the present application, the development script generation unit 706 includes:
a grammar unit dividing module 7061, configured to divide the source code into a plurality of grammar units according to a preset grammar rule;
a source code annotation acquisition module 7062, configured to acquire a source code annotation corresponding to each grammar unit;
a grammar unit obtaining module 7063, configured to obtain, if the source code annotation consistent with the development function annotation exists, the grammar unit corresponding to the source code annotation;
and a grammar unit importing module 7064, configured to import the obtained grammar unit into a development document corresponding to the to-be-online insurance product.
In one embodiment of the application, the grammar unit partitioning module 7061 locates a logical identifier in the source code specifically and identifies a first start identifier and a first end identifier following the logical identifier; dividing the logic identifier, the start identifier and the end identifier corresponding to the logic identifier, and the code between the start identifier and the end identifier into a grammar unit.
In one embodiment of the application, the product attributes include an insurance beneficiary product attribute, an insurance category product attribute, and an insurance benefit type product attribute; the first product attribute obtaining unit 701 is specifically configured to obtain a requirement document of the product to be online, and extract an insurance beneficiary keyword, an insurance category keyword, and an insurance benefit type keyword of the product to be online from the requirement document of the product to be online;
inquiring the corresponding relation between the prestored keywords and the product attributes, and acquiring the product attributes of the insurance beneficiary corresponding to the insurance beneficiary, the product attributes of the insurance class corresponding to the insurance class keywords and the product attributes of the insurance benefit type corresponding to the insurance benefit type keywords.
In one embodiment of the present application, the development script generating program 600 of an insurance product further includes a correspondence saving unit 707 for saving a correspondence between the development function annotation and the code segment.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (6)

1. A method of generating a development script for an insurance product, comprising:
acquiring a plurality of attribute keywords related to a product to be online insurance, and acquiring product attributes of the product to be online insurance according to the attribute keywords;
respectively acquiring the product attribute of each online insurance product;
comparing the product attribute of the product to be online insurance with the product attribute of each online insurance product to obtain the comprehensive similarity of each online insurance product with respect to the product to be online insurance;
if any online insurance product corresponding comprehensive similarity is larger than a preset threshold, acquiring a source code of the online insurance product;
acquiring a requirement document of the to-be-online insurance product, scanning and identifying the requirement document, and acquiring a development function annotation of the to-be-online insurance product, which is consistent with a source code annotation, wherein the development function annotation is used for annotating a function code corresponding to any product function of the to-be-online insurance product;
if the development function annotation consistent with the source code annotation exists in the source code, importing the code segment corresponding to the development function annotation consistent with the source code annotation into a development document corresponding to the to-be-online insurance product, so as to generate a development script of the to-be-online insurance product based on the development document into which the code segment is imported;
if the development function annotation consistent with the source code annotation exists in the source code, importing the code segment corresponding to the development function annotation consistent with the source code annotation into the development document corresponding to the to-be-online insurance product, wherein the method comprises the following steps:
dividing the source code into a plurality of grammar units according to a preset grammar rule;
acquiring source code comments corresponding to each grammar unit;
if the source code annotation consistent with the development function annotation exists, acquiring the grammar unit corresponding to the source code annotation;
importing the acquired grammar unit into a development document corresponding to the to-be-online insurance product;
the dividing the source code into a plurality of grammar units according to a preset grammar rule comprises the following steps:
locating a logical identifier in the source code and identifying a first start identifier and a first end identifier following the logical identifier;
dividing the logic identifier, the start identifier and the end identifier corresponding to the logic identifier, and the code between the start identifier and the end identifier into a grammar unit.
2. The method of claim 1, wherein the product attributes include an insurance beneficiary product attribute, an insurance category product attribute, and an insurance benefit type product attribute; the obtaining a plurality of attribute keywords related to the to-be-online insurance product, and obtaining the product attribute of the to-be-online insurance product according to the attribute keywords includes:
acquiring a requirement document of the to-be-online insurance product, and extracting an insurance beneficiary keyword, an insurance category keyword and an insurance benefit type keyword of the to-be-online insurance product from the requirement document of the to-be-online insurance product;
inquiring the corresponding relation between the prestored keywords and the product attributes, and acquiring the product attributes of the insurance beneficiary corresponding to the insurance beneficiary, the product attributes of the insurance class corresponding to the insurance class keywords and the product attributes of the insurance benefit type corresponding to the insurance benefit type keywords.
3. The method for generating a development script of an insurance product according to claim 1, wherein after importing the development function annotation corresponding to the source code annotation into the development document corresponding to the insurance product to be online, the method further comprises:
and storing the corresponding relation between the development function annotation consistent with the source code annotation and the code segment.
4. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a plurality of attribute keywords related to a product to be online insurance, and acquiring product attributes of the product to be online insurance according to the attribute keywords;
respectively acquiring the product attribute of each online insurance product;
comparing the product attribute of the product to be online insurance with the product attribute of each online insurance product to obtain the comprehensive similarity of each online insurance product with respect to the product to be online insurance;
if any online insurance product corresponding comprehensive similarity is larger than a preset threshold, acquiring a source code of the online insurance product;
acquiring a requirement document of the to-be-online insurance product, scanning and identifying the requirement document, and acquiring a development function annotation of the to-be-online insurance product, which is consistent with a source code annotation, wherein the development function annotation is used for annotating a function code corresponding to any product function of the to-be-online insurance product;
if the development function annotation consistent with the source code annotation exists in the source code, importing the code segment corresponding to the development function annotation consistent with the source code annotation into a development document corresponding to the to-be-online insurance product, so as to generate a development script of the to-be-online insurance product based on the development document into which the code segment is imported;
if the development function annotation consistent with the source code annotation exists in the source code, importing the code segment corresponding to the development function annotation consistent with the source code annotation into the development document corresponding to the to-be-online insurance product, wherein the method comprises the following steps:
dividing the source code into a plurality of grammar units according to a preset grammar rule;
acquiring source code comments corresponding to each grammar unit;
if the source code annotation consistent with the development function annotation exists, acquiring the grammar unit corresponding to the source code annotation;
importing the acquired grammar unit into a development document corresponding to the to-be-online insurance product;
the dividing the source code into a plurality of grammar units according to a preset grammar rule comprises the following steps:
locating a logical identifier in the source code and identifying a first start identifier and a first end identifier following the logical identifier;
dividing the logic identifier, the start identifier and the end identifier corresponding to the logic identifier, and the code between the start identifier and the end identifier into a grammar unit.
5. The terminal device of claim 4, wherein the product attributes include an insurance beneficiary product attribute, an insurance category product attribute, and an insurance benefit type product attribute; the obtaining a plurality of attribute keywords related to the to-be-online insurance product, and obtaining the product attribute of the to-be-online insurance product according to the attribute keywords includes:
acquiring a requirement document of the to-be-online insurance product, and extracting an insurance beneficiary keyword, an insurance category keyword and an insurance benefit type keyword of the to-be-online insurance product from the requirement document of the to-be-online insurance product;
inquiring the corresponding relation between the prestored keywords and the product attributes, and acquiring the product attributes of the insurance beneficiary corresponding to the insurance beneficiary, the product attributes of the insurance class corresponding to the insurance class keywords and the product attributes of the insurance benefit type corresponding to the insurance benefit type keywords.
6. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the development script generation method of an insurance product according to any one of claims 1 to 3.
CN201810962324.1A 2018-08-22 2018-08-22 Development script generation method of insurance product and terminal equipment Active CN109189372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810962324.1A CN109189372B (en) 2018-08-22 2018-08-22 Development script generation method of insurance product and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810962324.1A CN109189372B (en) 2018-08-22 2018-08-22 Development script generation method of insurance product and terminal equipment

Publications (2)

Publication Number Publication Date
CN109189372A CN109189372A (en) 2019-01-11
CN109189372B true CN109189372B (en) 2023-12-05

Family

ID=64919497

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810962324.1A Active CN109189372B (en) 2018-08-22 2018-08-22 Development script generation method of insurance product and terminal equipment

Country Status (1)

Country Link
CN (1) CN109189372B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840072B (en) * 2019-02-02 2022-05-06 北京字节跳动网络技术有限公司 Information processing method and device
CN112115224B (en) * 2020-09-24 2024-03-08 北京百度网讯科技有限公司 Auxiliary quality inspection method and device for map data, electronic equipment and storage medium
CN117974331A (en) * 2024-03-28 2024-05-03 探保网络科技(广州)有限公司 Insurance recommendation method and system based on electronic commerce platform

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
CN106201465A (en) * 2016-06-23 2016-12-07 扬州大学 Software project personalized recommendation method towards open source community
CN106325969A (en) * 2016-08-23 2017-01-11 上海创景计算机系统有限公司 Requirement change reverse tracking system
CN106843840A (en) * 2016-12-23 2017-06-13 中国科学院软件研究所 A kind of version evolving annotation multiplexing method of source code based on similarity analysis
CN107341014A (en) * 2017-06-27 2017-11-10 乐视致新电子科技(天津)有限公司 Electronic equipment, the generation method of technical documentation and device
CN107689008A (en) * 2017-06-09 2018-02-13 平安科技(深圳)有限公司 A kind of user insures the method and device of behavior prediction

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013003664A (en) * 2011-06-13 2013-01-07 Sony Corp Information processing apparatus and method
US10210211B2 (en) * 2014-08-26 2019-02-19 Codota Dot Com Ltd. Code searching and ranking

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103473045A (en) * 2013-08-27 2013-12-25 广州华多网络科技有限公司 Method and device for generating interface documents
CN106201465A (en) * 2016-06-23 2016-12-07 扬州大学 Software project personalized recommendation method towards open source community
CN106325969A (en) * 2016-08-23 2017-01-11 上海创景计算机系统有限公司 Requirement change reverse tracking system
CN106843840A (en) * 2016-12-23 2017-06-13 中国科学院软件研究所 A kind of version evolving annotation multiplexing method of source code based on similarity analysis
CN107689008A (en) * 2017-06-09 2018-02-13 平安科技(深圳)有限公司 A kind of user insures the method and device of behavior prediction
CN107341014A (en) * 2017-06-27 2017-11-10 乐视致新电子科技(天津)有限公司 Electronic equipment, the generation method of technical documentation and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
卫军超 ; 耿楠 ; .程序代码相似度检测技术的研究与实现.信息与电脑(理论版).2017,(第03期), *
程序代码相似度检测技术的研究与实现;卫军超 等;信息与电脑(理论版)(第03期);第99-101、107页 *

Also Published As

Publication number Publication date
CN109189372A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN111177184A (en) Structured query language conversion method based on natural language and related equipment thereof
CN107704512B (en) Financial product recommendation method based on social data, electronic device and medium
CN112016304A (en) Text error correction method and device, electronic equipment and storage medium
CN109189888B (en) Electronic device, infringement analysis method, and storage medium
US20200004765A1 (en) Unstructured data parsing for structured information
CN111737499B (en) Data searching method based on natural language processing and related equipment
CN109189372B (en) Development script generation method of insurance product and terminal equipment
CN112015430A (en) JavaScript code translation method and device, computer equipment and storage medium
CN108664471B (en) Character recognition error correction method, device, equipment and computer readable storage medium
CN107491536B (en) Test question checking method, test question checking device and electronic equipment
CN113627168B (en) Method, device, medium and equipment for checking component packaging conflict
US8676791B2 (en) Apparatus and methods for providing assistance in detecting mistranslation
CN111475700A (en) Data extraction method and related equipment
CN111797217B (en) Information query method based on FAQ matching model and related equipment thereof
CN111143505B (en) Document processing method, device, medium and electronic equipment
US20150012264A1 (en) Dictionary generation device, dictionary generation method, dictionary generation program and computer-readable recording medium storing same program
CN111506595A (en) Data query method, system and related equipment
US20230186212A1 (en) System, method, electronic device, and storage medium for identifying risk event based on social information
CN112287936A (en) Optical character recognition test method and device, readable storage medium and terminal equipment
CN112163409A (en) Similar document detection method, system, terminal device and computer readable storage medium
EP2916238A1 (en) Corpus generating device, corpus generating method, and corpus generating program
US9898457B1 (en) Identifying non-natural language for content analysis
CN112149402B (en) Document matching method, device, electronic equipment and computer readable storage medium
CN110909538B (en) Question and answer content identification method and device, terminal equipment and medium
CN113434653A (en) Method, device and equipment for processing query statement and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant